Question: Give the build year, model, and builder of each vehicle.

SELECT build_year ,  model ,  builder FROM vehicle

Give the build year , model , and builder of each vehicle .

O O B-COLUMN I-COLUMN O B-COLUMN O O B-COLUMN O O B-TABLE O


Question: 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

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 is n't preferrerd if another vendor is available ?

O O O O O O B-COLUMN I-COLUMN O O O O O B-COLUMN I-COLUMN O O B-TABLE I-TABLE O O O O O B-TABLE O O O B-COLUMN I-COLUMN I-COLUMN B-COLUMN B-COLUMN O O


Question: 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'


Question: 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 percentage of the orders placed by Kaleena were shipped by the international method ?

O O O O B-TABLE O O B-VALUE O B-TABLE O O B-VALUE B-COLUMN O


Question: What are the names and parties of representatives?

SELECT Name ,  Party FROM representative

What are the names and parties of representatives ?


Question: Show the names of customers with nationality "England" or "Australia".

SELECT Name FROM customer WHERE Nationality  =  "England" OR Nationality  =  "Australia"

Show the names of customers with nationality " England " or " Australia " .

O O B-COLUMN O B-TABLE O B-COLUMN O B-COLUMN O O O B-COLUMN O O


Question: 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'

Please provide the gender of at least one user who owns an HTC Desire 826 device .

O O O B-COLUMN O O O O O O O O B-VALUE B-VALUE I-VALUE B-COLUMN O


Question: What is the average score of the posts owned by the user csgillespie?

SELECT AVG(T1.Score) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'

What is the average score of the posts owned by the user csgillespie ?

O O O O B-COLUMN O O B-TABLE B-COLUMN O O B-TABLE B-VALUE O


Question: 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 type of the organization with the most research staff ?

O O O O O O B-TABLE O O O B-TABLE I-TABLE O


Question: What are the lengths and heights of roller coasters?

SELECT LENGTH ,  Height FROM roller_coaster

What are the lengths and heights of roller coasters ?

O O O B-COLUMN O B-COLUMN O B-TABLE I-TABLE O


Question: 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"

Find the committees that have delegates both from from the democratic party and the liberal party .

O O B-COLUMN O O O O O O O B-COLUMN O O O B-COLUMN B-COLUMN O


Question: Among the patients with the normal level of triglyceride, how many of them have other symptoms observed?

SELECT COUNT(T1.ID) FROM Examination AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.TG < 200 AND T1.Symptoms IS NOT NULL

Among the patients with the normal level of triglyceride , how many of them have other symptoms observed ?

O O O O O O O O O O O O O O O O B-COLUMN O O


Question: What are the ids , names , prices , and colors of all products that have been listed in less than two orders ?

select t1.product_id ,  t1.product_name ,  t1.product_price ,  t1.product_color from products as t1 join order_items as t2 on t1.product_id  =  t2.product_id join orders as t3 on t2.order_id  =  t3.order_id group by t1.product_id having count(*) < 2

O O O O O O O O O O O O O B-TABLE O O O O O O O O B-TABLE O


Question: 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 many roles did Julia Roberts play in the series ?

O O B-COLUMN O B-VALUE I-VALUE O O O O O


Question: 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 most common position of players in match seasons .

O O O O B-COLUMN O O O B-TABLE I-TABLE O


Question: Provide the list of the longest movies. Arrange these titles in alphabetical order.

SELECT title FROM film WHERE length = ( SELECT MAX(length) FROM film )

Provide the list of the longest movies . Arrange these titles in alphabetical order .

O O O O O B-COLUMN O O O O B-COLUMN O O O O


Question: What is the package number and weight of the heaviest package that was sent by a client named John or something similar?

SELECT T1.PackageNumber ,  max(T1.Weight) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender  =  T2.AccountNumber WHERE T2.Name LIKE "John";

What is the package number and weight of the heaviest package that was sent by a client named John or something similar ?

O O O B-COLUMN B-COLUMN O B-COLUMN O O O B-TABLE O O B-COLUMN O O B-TABLE B-COLUMN B-COLUMN O O O O


Question: 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'

What is the capital city of the Philippines ?


Question: What are the unique types of player positions in the tryout?

What are the unique types of player positions in the tryout ?


Question: 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 are the cities no customers live in ?


Question: 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'

Which character did Orlando Bloom play in the movie Pirates of the Caribbean : The Curse of the Black Pearl ?

O B-COLUMN O B-VALUE I-VALUE O O O B-TABLE B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O


Question: 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'

What is the average number of professional or master / undergraduate courses being taught by each professor ?

O O O O O O O O O O O B-TABLE O B-TABLE I-TABLE O O O


Question: 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

State the total pages of the words that has repeated times of 2593 .

O O O B-COLUMN O O B-TABLE O O O O O B-VALUE O


Question: What is the id of the property that had the lowest requested price from the vendor, and what was that price?

SELECT property_id ,  vendor_requested_price FROM Properties ORDER BY vendor_requested_price LIMIT 1;

What is the i d of the property that had the lowest requested price from the vendor , and what was that price ?

O O O O O O O B-TABLE O O O O B-COLUMN I-COLUMN O O O O O O O O O O


Question: 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

What are the names of wrestlers and their teams in elimination , ordered descending by days held ?

O O O B-COLUMN O B-TABLE O O B-COLUMN O B-TABLE O O O O B-COLUMN I-COLUMN O


Question: 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 )

For the employees who have the highest pay frequency , please list their vacation hours .

O O B-TABLE O O O O O O O O O O B-COLUMN I-COLUMN O


Question: 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`

How many students are unemployed and have payment due ?


Question: 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 are the maximum duration and resolution of songs grouped and ordered by languages ?

O O O O B-COLUMN O B-COLUMN O B-TABLE O O O O B-COLUMN O


Question: How many counties are there?

SELECT count(*) FROM county_public_safety


Question: 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

Who is the most valuable player who played in the 2000 - 2001 season of the International league ?

O O O O O B-TABLE O O O O B-VALUE I-VALUE I-VALUE B-COLUMN O O B-VALUE B-COLUMN O


Question: Select the project names which are not assigned yet.

SELECT Name FROM Projects WHERE Code NOT IN (SELECT Project FROM AssignedTo)

Select the project names which are not assigned yet .


Question: What are the different names of sailors who are older than some other sailor with a rating larger than 7?

SELECT DISTINCT name FROM Sailors WHERE age  >  (SELECT min(age) FROM Sailors WHERE rating  >  7);

What are the different names of sailors who are older than some other sailor with a rating larger than 7 ?

O O O O B-COLUMN O B-TABLE O B-COLUMN O O O O O O O B-COLUMN O O B-VALUE O


Question: Which driver ranked the first in the Canadian Grand Prix in 2007? Please give his reference name.

SELECT T3.forename, T3.surname, T3.driverRef FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T1.name = 'Canadian Grand Prix' AND T2.rank = 1 AND T1.year = 2007

Which driver ranked the first in the Canadian Grand Prix in 2007 ? Please give his reference name .

O B-TABLE B-COLUMN O O O O B-VALUE I-VALUE I-VALUE O B-VALUE O O O O O B-COLUMN O


Question: 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 is the word i d for title " Sometent " ?

O O O O B-COLUMN I-COLUMN O B-COLUMN O B-VALUE O O


Question: 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 coach has the best performance for team DET in history ? What was the winning percentage ? Name the coach and the year he coached .

O O O O O O O O O O O O O B-TABLE I-TABLE O O O B-COLUMN O O O O B-COLUMN O B-COLUMN O


Question: 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

How many 10 - star votes were given to the episode titled " Cherished " ?

O O B-VALUE O B-COLUMN B-TABLE O O O O B-TABLE B-COLUMN O B-VALUE O O


Question: 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"

Find the names and descriptions of the photos taken at the tourist attraction called " film festival " .

O O B-COLUMN O B-COLUMN O O B-TABLE O O O B-TABLE I-TABLE O O B-COLUMN I-COLUMN O O


Question: What are the ids of sailors who reserved red and blue boats?

SELECT DISTINCT T2.sid FROM Boats AS T1 JOIN Reserves AS T2 ON  T1.bid  =  T2.bid WHERE T1.color  =  'red' INTERSECT SELECT DISTINCT T2.sid FROM Boats AS T1 JOIN Reserves AS T2 ON  T1.bid  =  T2.bid WHERE T1.color  =  "blue"

What are the ids of sailors who reserved red and blue boats ?

O O O B-COLUMN O O O B-TABLE B-VALUE O B-COLUMN B-TABLE O


Question: 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'

How many countries in Europe & Central Asia uses Danish krone as its currency ? List the full names of those coutnries .

O O B-TABLE O B-VALUE I-VALUE I-VALUE I-VALUE O B-VALUE I-VALUE O O B-COLUMN O O O O B-COLUMN O O O O


Question: How many members did attend the event 'Community Theater' in 2019?

SELECT COUNT(T2.link_to_member) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'Community Theater' AND SUBSTR(T1.event_date, 1, 4) = '2019'

How many members did attend the event ' Community Theater ' in 2019 ?

O O O O B-TABLE O B-TABLE O B-VALUE I-VALUE O O B-VALUE O


Question: How much do the products cost on average?

How much do the products cost on average ?


Question: 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 city_code of the city that the most students live in ?

O O O B-COLUMN O O O O O O B-TABLE O O O


Question: 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

List all the possible ways to get to attractions , together with the number of attractions accessible by these methods .

O O O O O O O B-TABLE I-TABLE O B-COLUMN O O O O O O O O O O


Question: 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

How many exhibitions has each artist had ?


Question: Show the location codes and the number of documents in each location.

SELECT location_code ,  count(*) FROM Document_locations GROUP BY location_code

Show the location codes and the number of documents in each location .

O O B-COLUMN I-COLUMN O O O O B-TABLE I-TABLE I-TABLE I-TABLE O


Question: Give me the molecule ID of the double bond type.

SELECT DISTINCT T.molecule_id FROM bond AS T WHERE T.bond_type = '='

Give me the molecule ID of the double bond type .

O O O B-COLUMN I-COLUMN O O O B-TABLE B-COLUMN O


Question: 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'

Provide the number of orders that were handled by Michael Suyama .

O O O O B-TABLE O O O O B-VALUE B-VALUE O


Question: 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

Provide the name of disabled male students that are unemployed .

O O B-COLUMN O B-TABLE B-TABLE O O O B-TABLE O


Question: 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")

What are the names of wines produced before any wine from the Brander winery ?

O O O B-COLUMN O O O O O B-TABLE O O B-COLUMN B-COLUMN O


Question: 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

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 .

O O O O O O O O O O O O O O O O O O O O O B-TABLE I-TABLE B-TABLE O O O O O B-COLUMN I-COLUMN O O O O B-COLUMN O O O O O O O O O


Question: What is the receipt number and date corresponding to the receipt for which the most expensive item was purchased?

SELECT T1.ReceiptNumber ,  T1.Date FROM receipts AS T1 JOIN items AS T2 ON T1.ReceiptNumber  =  T2.receipt JOIN goods AS T3 ON T2.item  =  T3.id ORDER BY T3.price DESC LIMIT 1

What is the receipt number and date corresponding to the receipt for which the most expensive item was purchased ?

O O O B-COLUMN B-COLUMN O B-COLUMN O O O O O O O O O B-COLUMN O O O


Question: For each payment method, return how many customers use it.

SELECT payment_method_code ,  count(*) FROM customers GROUP BY payment_method_code

For each payment method , return how many customers use it .

O O B-COLUMN I-COLUMN O O O O B-TABLE O O O


Question: 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'

Among the customers who have ordered the product " Telescoping Adjustable Floor Lamp " , how many of them are consumers ?

O O B-COLUMN O O O O B-TABLE B-COLUMN B-VALUE I-VALUE I-VALUE I-VALUE O O O O O O O B-VALUE O


Question: How many business processes do we have?

How many business processes do we have ?


Question: 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'

Find the number of routes operated by American Airlines .

O O B-COLUMN O B-TABLE O O B-VALUE B-TABLE O


Question: What are the titles of all books written by an author with a name that contains Plato?

SELECT T1.title FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn  =  T2.isbn JOIN Author AS T3 ON T2.Author  =  T3.idAuthor WHERE T3.name LIKE "%Plato%"

What are the titles of all books written by an author with a name that contains Plato ?

O O O B-COLUMN O O B-TABLE O O O B-COLUMN O O B-COLUMN O O B-COLUMN O


Question: 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 average star rating given by female customers to brand ID 10018 from 1/25/2015 to 3/10/2015 ?

O O O O B-COLUMN I-COLUMN O O O B-TABLE O B-COLUMN I-COLUMN B-VALUE O O O O O


Question: 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 down the first name of patients who have cystitis condition .

O O O B-COLUMN O O B-COLUMN O O B-VALUE B-TABLE O


Question: 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'

Which district did the review on 2018/9/11 come from ? Give the name of the city .

O B-TABLE B-COLUMN O B-TABLE O B-VALUE O O O O O O O O B-COLUMN O


Question: 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'

In which province is city Glenrothes located ? What is the capital of the province ?

O O O O B-TABLE B-VALUE O O O O O B-COLUMN O O B-TABLE O


Question: What is the average price of products for each product type?

SELECT product_type_code ,  avg(product_price) FROM Products GROUP BY product_type_code

What is the average price of products for each product type ?

O O O O O O B-TABLE O O B-COLUMN I-COLUMN O


Question: 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

Give the name of each department and the number of employees in each .


Question: Among the students majored in interior design, who have attended the Community Theater event?

SELECT T2.first_name, T2.last_name FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major INNER JOIN attendance AS T3 ON T2.member_id = T3.link_to_member INNER JOIN event AS T4 ON T3.link_to_event = T4.event_id WHERE T4.event_name = 'Community Theater' AND T1.major_name = 'Interior Design'

Among the students majored in interior design , who have attended the Community Theater event ?

O O O B-TABLE O B-VALUE I-VALUE O O O B-TABLE O B-VALUE I-VALUE B-TABLE O


Question: List names for drivers from Hartford city and younger than 40.

SELECT name FROM driver WHERE home_city  =  'Hartford' AND age  <  40

List names for drivers from Hartford city and younger than 40 .

O B-COLUMN O B-TABLE O B-VALUE B-COLUMN O O O B-VALUE O


Question: 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'

How many kinds of products are supplied by " Karkki Oy " company ?

O O O O B-TABLE O B-TABLE O O B-VALUE I-VALUE O B-COLUMN O


Question: 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'

Among the reference ID of under 10 who got response by marketing department , compare their education status .

O O B-COLUMN B-COLUMN O O B-VALUE O O B-COLUMN O O O O O O B-COLUMN O O


Question: Provide the ID of 1C Company.

SELECT T.id FROM publisher AS T WHERE T.publisher_name = '1C Company'


Question: What are all the distinct last names of all the engineers?

SELECT DISTINCT last_name FROM Maintenance_Engineers

What are all the distinct last names of all the engineers ?

O O O O O B-COLUMN I-COLUMN O O B-TABLE I-TABLE O


Question: Which bond type accounted for the majority of the bonds found in molecule TR010 and state whether or not this molecule is carcinogenic?

SELECT T.bond_type FROM ( SELECT T1.bond_type, COUNT(T1.molecule_id) FROM bond AS T1  WHERE T1.molecule_id = 'TR010' GROUP BY T1.bond_type ORDER BY COUNT(T1.molecule_id) DESC LIMIT 1 ) AS T

Which bond type accounted for the majority of the bonds found in molecule TR010 and state whether or not this molecule is carcinogenic ?

O B-TABLE B-COLUMN O O O O O O O O O B-COLUMN B-VALUE O O O O O O O O O O


Question: 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'

What is the percentage of larceny cases among all cases that happened in Edgewater community ?

O O O O O B-VALUE O O O O O O O B-VALUE B-TABLE O


Question: 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'

List down the last name of patients who are allergic to dairy products .

O O O B-COLUMN O O B-COLUMN O O B-TABLE B-VALUE I-VALUE I-VALUE O


Question: List the name of artworks that are not nominated.

SELECT Name FROM Artwork WHERE Artwork_ID NOT IN (SELECT Artwork_ID FROM nomination)

List the name of artworks that are not nominated .


Question: 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

Write the names of the podcasts in the music category that have a rating greater than 3 .

O O O O O B-COLUMN O O B-VALUE B-COLUMN O O O B-COLUMN O O B-VALUE O


Question: Which districts have at least two addresses?

SELECT district FROM address GROUP BY district HAVING count(*)  >=  2

Which districts have at least two addresses ?


Question: 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

Among Frank Welker 's voice - acted movies , list the movie titles and the total gross when the estimated inflation rate was less than 2 .

O B-VALUE I-VALUE O B-COLUMN I-COLUMN I-COLUMN O B-VALUE O O B-COLUMN B-COLUMN O O B-COLUMN I-COLUMN O O O B-COLUMN I-COLUMN O O O B-VALUE O


Question: 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

What is the thumbnail photo file for the product with the i d " 979 " ?

O O O B-COLUMN I-COLUMN I-COLUMN O O B-COLUMN B-COLUMN I-COLUMN I-COLUMN I-COLUMN O B-VALUE O O


Question: 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'

What is the average monthly circulating supply for Frozen in 2014 .

O O O O O B-COLUMN I-COLUMN O B-VALUE O B-VALUE O


Question: List the client id and detail with most number of invoices.

SELECT T1.client_id ,  T2.client_details FROM Invoices AS T1 JOIN Clients AS T2 ON T1.client_id  =  T2.client_id GROUP BY T1.client_id ORDER BY count(*) DESC LIMIT 1

List the client i d and detail with most number of invoices .

O O B-TABLE B-COLUMN I-COLUMN B-COLUMN I-COLUMN O O O O B-TABLE O


Question: 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'

Please list the names of all the neighborhoods in Central Chicago .


Question: What is the discount name with most number of renting history records?

SELECT T2.name FROM renting_history AS T1 JOIN discount AS T2 ON T1.discount_id  =  T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1

What is the discount name with most number of renting history records ?

O O O B-TABLE B-COLUMN O O O O B-TABLE I-TABLE O O


Question: What is the largest payment amount?

SELECT amount FROM payment ORDER BY amount DESC LIMIT 1


Question: 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' )

How many more movie lists were created by the user who created the movie list " 250 Favourite Films " ?

O O O O B-TABLE B-TABLE O O O B-COLUMN O O O O B-COLUMN O B-VALUE I-VALUE I-VALUE O O


Question: 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

What are the names of the singers who sang the top 3 most highly rated songs and what countries do they hail from ?

O B-COLUMN I-COLUMN I-COLUMN O O O O B-COLUMN O O O O O O B-TABLE O O B-COLUMN O O O O O


Question: Select the names of all the products in the store.

Select the names of all the products in the store .


Question: Return the names of directors who are older than the average age.

SELECT name FROM director WHERE age  >  (SELECT avg(age) FROM director)

Return the names of directors who are older than the average age .

O O B-COLUMN O B-TABLE O O O O O O B-COLUMN O


Question: 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'

Who inspected Jean Samocki and what was the result ?

O B-TABLE B-VALUE I-VALUE O O O O B-COLUMN O


Question: 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 number of patients ' prescriptions physician John Dorian made .

O O B-COLUMN O B-COLUMN O B-TABLE B-COLUMN B-COLUMN I-COLUMN O O


Question: 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 the full name of the team that has the most players from UCLA ?

O O O O B-COLUMN O O B-TABLE O O O O B-TABLE O B-VALUE O


Question: 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 are the names of instructors who did n't teach courses in the Spring ?

O O O B-COLUMN O B-TABLE O B-COLUMN O B-TABLE O O O B-VALUE O


Question: Give me the dates when the max temperature was higher than 85.

SELECT date FROM weather WHERE max_temperature_f  >  85

Give me the dates when the max temperature was higher than 85 .

O O O B-COLUMN B-TABLE I-TABLE B-COLUMN I-COLUMN O O O B-VALUE O


Question: 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

For the city with the most elders , what 's its area code ?

O O O O O O O O O O O B-TABLE B-COLUMN O


Question: How many students were absence for 4 month?

SELECT COUNT(name) FROM longest_absense_from_school WHERE month = 4

How many students were absence for 4 month ?


Question: Indicate the last number of each street.

Indicate the last number of each street .


Question: What is the unique id number identifying the onion object class?

SELECT OBJ_CLASS_ID FROM OBJ_CLASSES WHERE OBJ_CLASS = 'onion'

What is the unique i d number identifying the onion object class ?

O O O O O O O O O B-VALUE B-COLUMN I-COLUMN O


Question: 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'

Provide the patients ' full names who received the extraction of wisdom tooth .

B-TABLE O B-COLUMN O O O O O O B-VALUE I-VALUE I-VALUE I-VALUE O


Question: Find the total and average amount of settlements.

SELECT sum(settlement_amount) ,  avg(settlement_amount) FROM settlements

Find the total and average amount of settlements .


Question: Show the transmitters of radios and the cities of the channels they are associated with.

SELECT T3.Transmitter ,  T2.City FROM city_channel_radio AS T1 JOIN city_channel AS T2 ON T1.City_channel_ID  =  T2.ID JOIN radio AS T3 ON T1.Radio_ID  =  T3.Radio_ID

Show the transmitters of radios and the cities of the channels they are associated with .

O O B-COLUMN O B-TABLE O O B-COLUMN O O B-TABLE O O O O O


Question: 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'

Which country is the University of Oxford located ?

O B-TABLE O O B-TABLE B-VALUE I-VALUE O O


Question: 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 the percentage of the total products ordered were not rejected by Drill size ?


Question: 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)

How many transactions payment made by customer that is lower than 10000 . Group the result by year .

O O O B-COLUMN O O B-COLUMN O O O O B-VALUE O O O O O O O


Question: 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

How many users were trialists when they rated the movie " A Way of Life " ?

O O B-COLUMN B-COLUMN I-COLUMN O O O O B-TABLE O O O O O O O


Question: 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

List the player 's name of Mumbai Indians in the match ID 335990 .

O O B-TABLE O B-COLUMN O B-VALUE I-VALUE O O B-COLUMN I-COLUMN B-VALUE O


Question: 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'

List the runtime of movies starred by an African - American actor born on December 28 , 1954 .

O O B-COLUMN O B-TABLE O O O B-VALUE I-VALUE I-VALUE B-TABLE O O O O O O O


Question: How many students play video games?

SELECT count(DISTINCT StuID) FROM Plays_games


Question: 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'


Question: What are the names of perpetrators?

SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID  =  T2.People_ID


Question: 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'

Tally the match IDs in which V Kohli is the " Man of the Match " .

O O B-COLUMN I-COLUMN O O B-VALUE I-VALUE O O O B-COLUMN I-COLUMN I-COLUMN B-TABLE O O


Question: What is the id and the number of citations of the most cited paper?

SELECT paper_id ,  count(*) FROM Citation GROUP BY cited_paper_id ORDER BY count(*) DESC LIMIT 1

What is the i d and the number of citations of the most cited paper ?

O O O O O O O O O B-TABLE O O O B-COLUMN B-COLUMN O


Question: 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

Show ids , customer ids , card type codes , card numbers for all cards .

O O O B-COLUMN I-COLUMN B-TABLE B-COLUMN I-COLUMN I-COLUMN O B-COLUMN B-COLUMN O O O O


Question: 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

Which country has the highest GDP per capita ?


Question: 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

What is the average number of games published by a publisher ?


Question: Which teams have build up play passing more than 70? Please list their short names.

SELECT DISTINCT t1.team_short_name FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.buildUpPlayPassing > 70

Which teams have build up play passing more than 70 ? Please list their short names .

O B-TABLE O B-COLUMN I-COLUMN I-COLUMN I-COLUMN O O B-VALUE O O O B-COLUMN I-COLUMN I-COLUMN O


Question: 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 the NOC code of the region of the competitors weighted 77 kg ?

O O O B-COLUMN O O O B-COLUMN O O O B-COLUMN B-VALUE O O


Question: Find the content that has the highest total values in all boxes.

SELECT CONTENTS FROM boxes ORDER BY value DESC LIMIT 1

Find the content that has the highest total values in all boxes .

O O B-COLUMN O O O O O B-COLUMN O O B-TABLE O


Question: 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 out the category name of business i d 5 .

O O O B-TABLE B-COLUMN O B-COLUMN I-COLUMN I-COLUMN B-VALUE O


Question: 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";


Question: 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 ids of all students who played video games and sports ?

O O O O O O B-COLUMN O B-TABLE I-TABLE I-TABLE O B-TABLE O


Question: Who was the first one paid his/her dues? Tell the full name.

SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T2.source = 'Dues' ORDER BY T2.date_received LIMIT 1

Who was the first one paid his / her dues ? Tell the full name .

O O O B-COLUMN I-COLUMN O O O O B-VALUE O O O O B-TABLE O


Question: 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

What are the names of departments that have primarily affiliated physicians .

O O O B-COLUMN O B-COLUMN O O B-COLUMN B-TABLE O O


Question: 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'

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 ?

O O B-COLUMN O O O O O B-VALUE O O O O O O O B-VALUE O O O O O O B-VALUE O O O O O O O B-VALUE O B-TABLE O O O O O O O B-TABLE O


Question: 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

List at least 10 users ID that has 4 as an average ratings of all reviews sent .

O O O O B-TABLE B-COLUMN O O B-VALUE O O O O O O O O O


Question: What was the fastest lap speed among all drivers in the 2009 Spanish Grand Prix?

SELECT T2.fastestLapSpeed FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.name = 'Spanish Grand Prix' AND T1.year = 2009 AND T2.fastestLapSpeed IS NOT NULL ORDER BY T2.fastestLapSpeed DESC LIMIT 1

What was the fastest lap speed among all drivers in the 2009 Spanish Grand Prix ?

O O O B-COLUMN I-COLUMN I-COLUMN O O O O O B-VALUE B-VALUE I-VALUE I-VALUE O


Question: Count the number of languages.


Question: 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'

How many users belong to " game - Art Style " category ?

O O O O O O B-VALUE I-VALUE I-VALUE I-VALUE B-TABLE B-COLUMN O


Question: 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 )

How many female students joined a marines and air force organization ?

O O B-TABLE O O O B-VALUE O B-VALUE I-VALUE B-COLUMN O


Question: 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

Find the name of the department that has the fewest members .

O O B-COLUMN O O B-TABLE O O O O B-TABLE O


Question: What mediums were used for the painting with id 80 ?

select medium from paintings where paintingid  =  80

What mediums were used for the painting with i d 80 ?

O B-COLUMN O O O O B-TABLE O O O B-VALUE O


Question: Among the sets of cards that have an Italian translation, how many of them have a base set number of under 100?

SELECT COUNT(T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.translation IS NOT NULL AND T1.baseSetSize < 100 AND T2.language = 'Italian'

Among the sets of cards that have an Italian translation , how many of them have a base set number of under 100 ?

O O B-TABLE O O O O O B-VALUE B-COLUMN O O O O O O O B-COLUMN B-COLUMN O O O B-VALUE O


Question: 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 average weight of Japanese cars with 4 cylinders that were produced from 1975 to 1980 ?

O O O O B-COLUMN O B-VALUE O O B-VALUE B-COLUMN O O B-TABLE O B-VALUE O B-VALUE O


Question: What are the total and average points of drivers?

SELECT sum(Points) ,  avg(Points) FROM driver

What are the total and average points of drivers ?


Question: 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

How many images have at least 25 attributes ?


Question: 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

Tell the address of employee who did inspection ID 52238 ?

O O B-COLUMN O B-TABLE O O B-TABLE B-COLUMN B-VALUE O


Question: 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'

How many papers were published in 2011 in the journal whose short name is " Mol Brain " ?

O O B-TABLE O O O B-VALUE O O B-TABLE O B-COLUMN I-COLUMN O O B-VALUE I-VALUE O O


Question: Find the last names of teachers teaching in classroom 109.

SELECT lastname FROM teachers WHERE classroom  =  109

Find the last names of teachers teaching in classroom 109 .

O O B-COLUMN I-COLUMN O B-TABLE O O B-COLUMN B-VALUE O


Question: 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

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 .

O O O O O O O O O O O B-TABLE O O O O O O B-COLUMN O O O O O O O B-COLUMN O O O O


Question: 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 language is ' El plan infinito ' written in ?

O B-COLUMN O O B-VALUE I-VALUE I-VALUE O O O O


Question: Show different teams of technicians and the number of technicians in each team.

SELECT Team ,  COUNT(*) FROM technician GROUP BY Team

Show different teams of technicians and the number of technicians in each team .

O O O O B-TABLE O O O O O O O B-COLUMN O


Question: 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;

List the names of the employees who authorized the destruction of documents and the employees who destroyed the corresponding documents .

O O O O O B-TABLE O O O O O B-TABLE I-TABLE I-TABLE B-COLUMN O O O O O O


Question: Which country is the league Italy Serie A from?

SELECT t1.name FROM Country AS t1 INNER JOIN League AS t2 ON t1.id = t2.country_id WHERE t2.name = 'Italy Serie A'

Which country is the league Italy Serie A from ?

O B-TABLE O O B-TABLE B-VALUE I-VALUE I-VALUE O O


Question: Find the biographical data and details of students who got not only the most common result but also a result that is obtained by 3 students in behaviour monitoring.

SELECT T1.bio_data ,  T1.student_details FROM Students AS T1 JOIN Behaviour_Monitoring AS T2 ON T1.student_id  =  T2.student_id WHERE T2.behaviour_monitoring_details IN ( SELECT behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count(*) DESC LIMIT 1 ) INTERSECT SELECT T1.bio_data ,  T1.student_details FROM Students AS T1 JOIN Behaviour_Monitoring AS T2 ON T1.student_id  =  T2.student_id WHERE T2.behaviour_monitoring_details IN ( SELECT behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details HAVING count(*)  =  3 )

Find the biographical data and details of students who got not only the most common result but also a result that is obtained by 3 students in behaviour monitoring .

O O O B-COLUMN O O O B-TABLE O O O O O O O O O O O O O O O O B-VALUE B-COLUMN O B-TABLE I-TABLE O


Question: 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

Find the personal names of students not enrolled in any course .

O O B-COLUMN I-COLUMN O B-TABLE B-TABLE I-TABLE O O O O


Question: 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

Which season played the highest number of matches at M Chinnaswamy Stadium ?

O B-COLUMN O O O O O B-TABLE O B-VALUE I-VALUE I-VALUE O


Question: 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';

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 .

O O O O O O O O B-TABLE O O O B-COLUMN O O O B-VALUE B-VALUE B-COLUMN B-COLUMN B-COLUMN B-VALUE I-VALUE I-VALUE O O O O B-COLUMN O O O O O O O O B-COLUMN O O O O O O O O B-TABLE O


Question: Please list the leagues from Germany.

SELECT t2.name FROM Country AS t1 INNER JOIN League AS t2 ON t1.id = t2.country_id WHERE t1.name = 'Germany'


Question: List the names of all music genres.


Question: 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;

List the hardware model name for the phones that have screen mode type " Text " or RAM size greater than 32 .

O O B-COLUMN B-COLUMN B-COLUMN O O B-TABLE O O B-COLUMN I-COLUMN B-COLUMN O B-COLUMN O O B-COLUMN O O O B-VALUE O


Question: 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 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 ?

O O O B-COLUMN O O O O O B-TABLE B-COLUMN O O O B-TABLE O O O O O O O O O O O O O O


Question: 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'

How many users belong to the MOBA category ?


Question: How many superheroes have the super power of "Super Strength"?

SELECT COUNT(T1.hero_id) FROM hero_power AS T1 INNER JOIN superpower AS T2 ON T1.power_id = T2.id WHERE T2.power_name = 'Super Strength'

How many superheroes have the super power of " Super Strength " ?

O O O O O B-TABLE B-COLUMN O O B-VALUE I-VALUE O O


Question: 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 solution contains files within a more popular repository , the solution ID18 or solution ID19 ?

O O O O O O O O B-COLUMN O O B-TABLE B-VALUE O B-VALUE B-VALUE O


Question: Show the name of drivers in descending order of age.

SELECT name FROM driver ORDER BY age DESC

Show the name of drivers in descending order of age .

O O B-COLUMN O B-TABLE O O O O B-COLUMN O


Question: 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'

How many male patients have been described as immune to quadrivalent HPV ?

O O O B-COLUMN O O B-COLUMN O B-TABLE I-TABLE B-VALUE O O


Question: 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')

Give the title of the prerequisite to the course International Finance .

O O B-COLUMN O O B-TABLE O O B-TABLE B-VALUE I-VALUE O


Question: 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

Please list the departure airports of the flights on 2018/8/1 that were delayed .

O O O O B-TABLE O O O O B-VALUE O O B-COLUMN O


Question: 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

Give the area code of the city with the white population ranging between 1700 to 2000 .

O O B-TABLE B-COLUMN O O O O O B-COLUMN I-COLUMN O O B-VALUE O B-VALUE O


Question: List the card names with value that cost more converted mana for the face.

SELECT name FROM cards ORDER BY faceConvertedManaCost LIMIT 1

List the card names with value that cost more converted mana for the face .

O O B-TABLE B-COLUMN O O O O O B-COLUMN I-COLUMN O O O O


Question: For the patient who was born on 1959/2/18, what is the decrease rate for his/her total cholesterol from November to December in 1981?

SELECT CAST((SUM(CASE WHEN T2.Date LIKE '1981-11-%' THEN T2.`T-CHO` ELSE 0 END) - SUM(CASE WHEN T2.Date LIKE '1981-12-%' THEN T2.`T-CHO` ELSE 0 END)) AS REAL) / SUM(CASE WHEN T2.Date LIKE '1981-12-%' THEN T2.`T-CHO` ELSE 0 END) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Birthday = '1959-02-18'

For the patient who was born on 1959/2/18 , what is the decrease rate for his / her total cholesterol from November to December in 1981 ?

O O B-TABLE O O O O B-VALUE O O O O O B-COLUMN O O O O O O O O O O O B-VALUE O


Question: What is the list of school locations sorted in descending order of school foundation year?

SELECT LOCATION FROM school ORDER BY Founded DESC

What is the list of school locations sorted in descending order of school foundation year ?

O O O O O O B-COLUMN O O O O O B-TABLE B-COLUMN O O


Question: Return the the details of all products.

SELECT DISTINCT product_details FROM products

Return the the details of all products .


Question: 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 are the descriptions of the categories that products with product descriptions that contain the letter t are in ?

O O O O O O B-TABLE O B-TABLE O B-COLUMN I-COLUMN O O O O O O O O


Question: 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'

What is the name of male and white actor with actor ID 439 ?

O O O B-COLUMN O B-VALUE O B-VALUE O O B-TABLE B-COLUMN B-VALUE O


Question: How many cities are there in England?

SELECT COUNT(ID) FROM City WHERE District = 'England'


Question: 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 the names of companies and of employees .


Question: What are the ids of instructors who didnt' teach?

SELECT id FROM instructor EXCEPT SELECT id FROM teaches

What are the ids of instructors who did nt ' teach ?

O O O O O B-TABLE O B-COLUMN O O B-TABLE O


Question: What are the names of the bikes that have substring 'fiber' in their material?

SELECT product_name FROM bike WHERE material LIKE "%fiber%"

What are the names of the bikes that have substring ' fiber ' in their material ?

O O O O O O B-TABLE O O O O B-COLUMN O O O B-COLUMN O


Question: 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 's the average rating score of the movie " A Way of Life " ?

O O O O B-TABLE B-COLUMN O O B-TABLE O B-VALUE I-VALUE I-VALUE I-VALUE O O


Question: 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 total number of employees that worked in the Finance department ?

O O O O B-COLUMN O O O O O O B-VALUE B-TABLE O


Question: Show all the different invoice ids and statuses of the payments

SELECT DISTINCT T1.invoice_id ,  T1.invoice_status FROM Invoices AS T1 JOIN Payments AS T2 ON T1.invoice_id  =  T2.invoice_id

O O O O B-TABLE B-COLUMN B-COLUMN I-COLUMN O O B-TABLE


Question: 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

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 ?

O O B-VALUE B-COLUMN B-TABLE O O O O O O O B-COLUMN O O O O O O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE


Question: 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'

What percentage of students are highly satisfied with the Intro to Database 2 course ?

O O O B-COLUMN O O O O O B-VALUE I-VALUE I-VALUE I-VALUE B-TABLE O


Question: 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'

List the case numbers of domestic violence crimes reported in Lincoln Square .

O O B-COLUMN I-COLUMN O B-COLUMN O B-TABLE O O B-VALUE I-VALUE O


Question: 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'

Sir Rodney 's Marmalade is supplied by which company and who is the contact for this company ?

B-VALUE B-COLUMN B-VALUE I-VALUE O B-TABLE O O B-COLUMN O O O O B-COLUMN O O O O


Question: What are the names and year of construction for the mills of 'Grondzeiler' type?

SELECT name ,  built_year FROM mill WHERE TYPE  =  'Grondzeiler'

What are the names and year of construction for the mills of ' Grondzeiler ' type ?

O O O B-COLUMN O O O O O O B-TABLE O O B-VALUE O B-COLUMN O


Question: Which circuit did the 2009 Spanish Grand Prix use?

SELECT T1.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.year = 2009 AND T2.name = 'Spanish Grand Prix'

Which circuit did the 2009 Spanish Grand Prix use ?

O B-TABLE B-COLUMN O B-VALUE B-VALUE I-VALUE I-VALUE O O


Question: 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'

What is the credit card number for Michelle E Cox ?

O O O B-TABLE I-TABLE O O B-VALUE B-VALUE B-VALUE O


Question: What is the average number of goals made by Parma as the away team while playing in Italy?

SELECT CAST(SUM(T1.away_team_goal) AS REAL) / COUNT(T1.id) FROM "Match" AS T1 INNER JOIN TEAM AS T2 ON T1.away_team_api_id = T2.team_api_id INNER JOIN Country AS T3 ON T1.country_id = T3.id WHERE T2.team_long_name = 'Parma' AND T3.name = 'Italy'

What is the average number of goals made by Parma as the away team while playing in Italy ?

O O O O B-COLUMN O O O O B-VALUE O O B-COLUMN B-TABLE O O O B-VALUE O


Question: 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"

Return the staff ids and genders for any staff with the title Department Manager .

O O B-TABLE B-COLUMN B-COLUMN I-COLUMN O O O O O O B-COLUMN I-COLUMN O


Question: Give the number of "4" stars Yelp businesses in "Mesa" city.

SELECT COUNT(business_id) FROM Business WHERE stars = 4 AND city = 'Mesa'

Give the number of " 4 " stars Yelp businesses in " Mesa " city .

O O O O O B-VALUE O B-COLUMN O B-TABLE O O B-VALUE O B-COLUMN O


Question: 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 percentage ratio of students who are enlisted in foreign legions that have a due payment ?

O O O O O O O O O B-TABLE O B-COLUMN B-VALUE O O O O B-TABLE O


Question: Which classroom has the most students?

SELECT classroom FROM list GROUP BY classroom ORDER BY count(*) DESC LIMIT 1


Question: What is the product average price?


Question: 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

Which male students are unemployed , disable and were absent for 5 month ?

O O O O B-TABLE O B-TABLE O O O O B-VALUE B-COLUMN O


Question: 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

What are the different states that have students trying out ?

O O O O B-COLUMN O O O B-TABLE I-TABLE O


Question: 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'

Please list the names of all the products under the type " promo brushed steel " .

O O O B-COLUMN O O O O O O B-COLUMN O B-VALUE I-VALUE I-VALUE O O


Question: 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

Please list all the answers to the question " Any additional notes or comments " that are not null in 2014 's survey .

O O O O B-TABLE O O B-TABLE O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O O O O O O B-VALUE O B-COLUMN O


Question: 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 )

Count the number of colors that are not used in any products .


Question: Which countries has the most number of airlines?

SELECT country FROM airlines GROUP BY country ORDER BY count(*) DESC LIMIT 1

Which countries has the most number of airlines ?


Question: 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 are the city name , i d , and number of addresses corresponding to the city with the most addressed ?

O O O B-COLUMN O O O O O O O O B-TABLE O O O B-TABLE O O O O O


Question: 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

Find the i d of the customer who made the most orders .


Question: Give the maximum and minimum weeks on top across all volumes.

SELECT max(Weeks_on_Top) ,  min(Weeks_on_Top) FROM volume

Give the maximum and minimum weeks on top across all volumes .

O O O O O B-COLUMN I-COLUMN I-COLUMN O O B-TABLE O


Question: Show the distinct venues of debates


Question: 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 was the number of female Hispanic students who graduated within 100 percent of expected time for " Pennsylvania State University - Altoona " ?

O O O O B-VALUE O O O O O O O O O O O O O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O O


Question: 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'

How many awards has Rene Balcer been nominated for ?


Question: 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

What are the full names of the non - google female entity legislators that have not been registered in Federal Election Commission data ?

O O O O O B-VALUE O O O B-COLUMN I-COLUMN I-COLUMN O O O O O O O O O O O O


Question: 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

What is the customer last name , i d and phone number with most number of orders ?

O O O B-TABLE B-COLUMN I-COLUMN O O O O B-COLUMN I-COLUMN O O O O B-TABLE O


Question: 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

What is the age of the oldest Marketing Specialist by 12/31/2015 and what is his / her hourly rate ?

O O O O O O O B-VALUE I-VALUE O O O O O O O O O B-COLUMN O


Question: 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 are the titles and directors of the movies whose star is greater than the average stars of the movies directed by James Cameron ?

O O O B-COLUMN O B-COLUMN O O B-TABLE O O O O O O O B-COLUMN O O O O O B-COLUMN I-COLUMN O


Question: Which of these artists have designed a card in the set Coldsnap, Jeremy Jarvis, Aaron Miller or Chippy?

SELECT T1.artist FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE (T2.name = 'Coldsnap' AND T1.artist = 'Chippy') OR (T2.name = 'Coldsnap' AND T1.artist = 'Aaron Miller') OR (T2.name = 'Coldsnap' AND T1.artist = 'Jeremy Jarvis') GROUP BY T1.artist

Which of these artists have designed a card in the set Coldsnap , Jeremy Jarvis , Aaron Miller or Chippy ?

O O O B-COLUMN O O O B-TABLE O O B-TABLE B-COLUMN O B-VALUE I-VALUE O B-VALUE I-VALUE O B-VALUE O


Question: 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 full names of faculty members who are a part of department 520 ?

O O O O B-COLUMN O B-TABLE B-TABLE O O O O O O B-VALUE O


Question: 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'

Among the students from the navy department , how many of them have payment due ?

O O O O O B-VALUE O O O O O O O B-TABLE I-TABLE O


Question: 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'

Calculate the difference between running business in Glendale City and Mesa City .

O O O O O B-TABLE O B-VALUE O O B-VALUE B-COLUMN O


Question: What are the first and last names of all distinct artists who made sculptures before 1900?

SELECT DISTINCT T1.lname ,  T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID  =  T2.sculptorID WHERE T2.year  <  1900

What are the first and last names of all distinct artists who made sculptures before 1900 ?

O O O O O O B-COLUMN O O O B-TABLE O O B-COLUMN O B-VALUE O


Question: 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

Show the names of phones and the districts of markets they are on , in ascending order of the ranking of the market .

O O B-COLUMN O B-TABLE O O B-COLUMN O O O O O O O O O O O B-COLUMN O B-TABLE B-TABLE O


Question: 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

Among the players , what percentage are both captain and keeper ?

O O B-COLUMN B-TABLE I-TABLE O O O B-VALUE I-VALUE I-VALUE O


Question: 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

Find the name of instructor who is the advisor of the student who has the highest number of total credits .

B-COLUMN O B-COLUMN O B-TABLE O O O B-TABLE O O B-TABLE O O O O O O B-COLUMN I-COLUMN O


Question: 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'

How many departments have David Bradley been in ?

O B-TABLE B-TABLE O B-VALUE B-VALUE O O O


Question: List the name of clubs that do not have players.

SELECT Name FROM club WHERE Club_ID NOT IN (SELECT Club_ID FROM player)

List the name of clubs that do not have players .

O O B-COLUMN O B-TABLE O O O O B-TABLE O


Question: 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)

Find the number of items that did not receive any review .


Question: 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

Which of the app is the best selling app and what is the sentiments polarity of it ?

O O O O O O O O B-COLUMN O O O O B-COLUMN I-COLUMN O O O


Question: 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%"

What are the titles and studios of films that have been produced by a studio whose name contains " Universal " ?

O O O B-COLUMN O O O B-TABLE O O O O O O B-COLUMN O O O O B-COLUMN O O


Question: 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

Show the name of the university with the lowest number of students in 2015 .

O O O O O B-TABLE O O O O O B-COLUMN O B-VALUE O


Question: 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 )

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 ?

O O O O B-COLUMN O O B-VALUE O O O O O O O O B-COLUMN O O O O O O O B-TABLE O O O O O O O O


Question: 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'

How many ingredients are needed to prepare Idaho Potato Supreme ?

O O O O O O B-TABLE B-VALUE I-VALUE I-VALUE O


Question: 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 is the percentage of solutions for the method that needs to be compiled in the English methods ?

O O O O O B-TABLE O O B-TABLE O O O O B-COLUMN O O O O O


Question: 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";

List the name of all tracks in the playlists of Movies .

O O B-COLUMN O O B-TABLE O O B-TABLE O B-COLUMN O


Question: 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

What is the percentage of crime cases that have been classified as " drug abuse " by the FBI and happened on the street ?

O O O O O B-TABLE O O O O O O O B-VALUE I-VALUE O O O O O O O O B-VALUE O


Question: 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'

Among the female users that uses OPPO as their phone brand , what is the percentage of them of the user that uses R815 T model to install the app ?

O O O O O O B-VALUE O O B-COLUMN I-COLUMN O O O O O B-VALUE O O O O O O B-VALUE I-VALUE O O O O O O


Question: 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

In which organization did Constantine Makris win the most awards ?

O O B-COLUMN O B-VALUE I-VALUE B-VALUE O O B-TABLE O


Question: 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'

Calculate the average salary for employees who did inspection on License Re - Inspection .

O O O B-COLUMN O B-TABLE O O O O B-VALUE I-VALUE I-VALUE B-TABLE O


Question: 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 the names and phone numbers of customers living in California state .


Question: 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'

Where are the shelves where the down tube product was stored ?

O O O B-COLUMN O O B-VALUE I-VALUE B-TABLE O O O


Question: 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 disparate number of the comedy films that got the 1 rating ?

O O O O O O O B-VALUE O O O O B-VALUE B-COLUMN O


Question: 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

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 .

O O O O O O O O B-COLUMN O O O O O B-TABLE I-TABLE O O O B-VALUE O O O O B-VALUE I-VALUE O B-TABLE O


Question: 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

What is the percentage of the ratings were rated by user who was a subcriber ?

O O O O O O B-TABLE O O O O O O O B-COLUMN O


Question: What are the ids of the students who registered for course 301?

SELECT student_id FROM student_course_attendance WHERE course_id  =  301

What are the ids of the students who registered for course 301 ?

O O O O O O B-COLUMN O O O B-COLUMN B-VALUE O


Question: 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'

Among the courses that are basic or medium undergraduate courses , how many of them are taught by a faculty member ?

O O B-COLUMN O O O O O O B-TABLE O O O O O O B-TABLE I-TABLE O O O O


Question: What are the different contents in boxes?

What are the different contents in boxes ?


Question: 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';

Who did " The Tiny Canadian " play as in the show ?

O O O B-VALUE I-VALUE I-VALUE O O O O O O O


Question: Tell the build Up play passing class for "FC Lorient" on 2010/2/22.

SELECT t2.buildUpPlayPassingClass FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t1.team_long_name = 'FC Lorient' AND t2.`date` LIKE '2010-02-22%'

Tell the build Up play passing class for " FC Lorient " on 2010/2/22 .

O O B-COLUMN I-COLUMN I-COLUMN I-COLUMN I-COLUMN O O B-VALUE I-VALUE O O B-VALUE O


Question: List the names of members in ascending alphabetical order.

SELECT Name FROM member ORDER BY Name ASC

List the names of members in ascending alphabetical order .


Question: 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'

What is the total quantity that Cindy Stewart order " Lexmark X 9575 Professional All - in - One Color Printer " in the south superstore ?

O O O O B-COLUMN O B-VALUE I-VALUE O O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O O O B-TABLE I-TABLE O


Question: 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

In which region have the most 1 - star reviews been done ?

O O B-COLUMN O O O B-VALUE O B-COLUMN B-TABLE O O O


Question: 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'

Among the players who were born in 1977 , provide names and birthdates of the players from England .

O O B-TABLE O O O O B-VALUE O O O O O O O O O B-VALUE O


Question: 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"

Find the addresses of the course authors who teach the course with name " operating system " or " data structure " .

O O B-COLUMN O O B-TABLE B-COLUMN O O O B-COLUMN I-COLUMN I-COLUMN O B-COLUMN I-COLUMN O O O B-COLUMN I-COLUMN O O


Question: How many players had the highest potential score for crossing that preferred to use their left foots while attacking?

SELECT COUNT(t1.id) FROM Player_Attributes AS t1 WHERE t1.preferred_foot = 'left' AND t1.crossing = ( SELECT MAX(crossing) FROM Player_Attributes)

How many players had the highest potential score for crossing that preferred to use their left foots while attacking ?

O O B-TABLE O O O O O O B-COLUMN O B-COLUMN O O O B-VALUE O O O O


Question: What are the aircrafts with top 3 shortest lengthes? List their names.

SELECT name FROM Aircraft ORDER BY distance LIMIT 3

What are the aircrafts with top 3 shortest lengthes ? List their names .

O O O B-TABLE O O O O O O O O B-COLUMN O


Question: 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"

List the titles of the papers whose authors are from the institution " Indiana University " .

B-COLUMN O B-COLUMN O O B-TABLE O B-TABLE O O O O O B-COLUMN I-COLUMN O O


Question: What is the average fastest lap time in seconds for Lewis Hamilton in all the Formula_1 races?

SELECT AVG(CAST(SUBSTR(T2.fastestLapTime, 1, INSTR(T2.fastestLapTime, ':') - 1) AS INTEGER) * 60 + CAST(SUBSTR(T2.fastestLapTime, INSTR(T2.fastestLapTime, ':') + 1) AS REAL)) FROM drivers AS T1 INNER JOIN results AS T2 ON T1.driverId = T2.driverId WHERE T1.surname = 'Hamilton' AND T1.forename = 'Lewis'

What is the average fastest lap time in seconds for Lewis Hamilton in all the Formula_1 races ?

O O O O B-COLUMN I-COLUMN I-COLUMN O O O B-VALUE B-VALUE O O O O O O


Question: 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

What is the brand of the device used by the most users in the M23 - 26 user group ?

O O B-COLUMN I-COLUMN O O B-COLUMN O O O O O O O B-VALUE I-VALUE I-VALUE O B-COLUMN O


Question: How many pages does the Catalan language have in Wikipedia?

SELECT pages FROM langs WHERE lang = 'ca'

How many pages does the Catalan language have in Wikipedia ?


Question: Find the number of authors who did not publish any paper that is cited more than 50 times.

SELECT count(*) FROM Author WHERE Author_id NOT IN ( SELECT T2.author_id FROM Citation AS T1 JOIN Author_list AS T2 ON T1.cited_paper_id  =  T2.paper_id GROUP BY T1.cited_paper_id HAVING count(DISTINCT T1.paper_id)  >  50)

Find the number of authors who did not publish any paper that is cited more than 50 times .

O O O O B-TABLE O O O O O B-COLUMN O O O O O B-VALUE O O


Question: Which teachers have taught the student with the earliest transcript issuance? List the teacher details.

SELECT T1.teacher_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id  =  T2.teacher_id JOIN Transcripts AS T3 ON T2.student_id  =  T3.student_id ORDER BY T3.date_of_transcript ASC LIMIT 1

Which teachers have taught the student with the earliest transcript issuance ? List the teacher details .

O B-TABLE O O O B-COLUMN O O O B-TABLE O O O O B-COLUMN B-COLUMN O


Question: 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

What are the famous titles and ages of each artist , listed in descending order by age ?

O O O B-COLUMN I-COLUMN O O O O B-TABLE O O O O O O B-COLUMN O


Question: 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

For each state , find the total account balance of customers whose credit score is above 100 .

O O B-COLUMN O O O O O O O B-TABLE O B-COLUMN I-COLUMN O O B-VALUE O


Question: How many animal type allergies exist?

SELECT count(*) FROM Allergy_type WHERE allergytype  =  "animal"


Question: What was the anti-nucleus antibody concentration level for the patient id 3605340 on 1996/12/2?

SELECT ANA FROM Examination WHERE ID = 3605340 AND `Examination Date` = '1996-12-02'

What was the anti - nucleus antibody concentration level for the patient i d 3605340 on 1996/12/2 ?

O O O O O O O B-TABLE O O O O B-COLUMN I-COLUMN B-VALUE O B-VALUE O


Question: 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'

List all the title of the paper that Jianli Hua published .

O O O B-COLUMN O O B-TABLE B-TABLE B-VALUE I-VALUE O O


Question: 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

Find the names of courses that have either 3 credits or 1 credit but 4 hours .

O O B-COLUMN O B-TABLE O O O B-VALUE B-COLUMN O B-VALUE O O B-VALUE B-COLUMN O


Question: How many clubs are there?


Question: What is the total number of points for all players?

What is the total number of points for all players ?


Question: 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 are the i d and the amount of refund of the booking that incurred the most times of payments ?

O O O O O O O B-COLUMN I-COLUMN I-COLUMN O O B-TABLE O O O O O O B-TABLE O


Question: Find the press whose yearly profit is more than 15 billion or whose monthly profit is more than 1 billion. Return the press names.

SELECT name FROM press WHERE Year_Profits_billion  >  15 OR Month_Profits_billion  >  1

Find the press whose yearly profit is more than 15 billion or whose monthly profit is more than 1 billion . Return the press names .

O O B-TABLE O B-COLUMN I-COLUMN I-COLUMN O O B-VALUE O O O B-COLUMN I-COLUMN I-COLUMN O O B-VALUE O O O O O B-COLUMN O


Question: Which year has the most degrees conferred?

SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY sum(degrees) DESC LIMIT 1

Which year has the most degrees conferred ?


Question: 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'

What is the capital of the country that has the Licancabur Mountain ?

O O O B-COLUMN O O B-TABLE O O O B-VALUE B-COLUMN O


Question: How many of the account holders in South Bohemia still do not own credit cards?

SELECT COUNT(T3.account_id) FROM district AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id INNER JOIN disp AS T3 ON T2.client_id = T3.client_id WHERE T1.A3 = 'south Bohemia' AND T3.type != 'OWNER'

How many of the account holders in South Bohemia still do not own credit cards ?

O O O O B-COLUMN O O B-VALUE I-VALUE O O O B-VALUE O O O


Question: What is the amount spent by customer "38508" at the gas stations? How much had the customer spent in January 2012?

SELECT SUM(T1.Price) , SUM(IIF(T3.Date = '201201', T1.Price, 0)) FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID INNER JOIN yearmonth AS T3 ON T1.CustomerID = T3.CustomerID WHERE T1.CustomerID = '38508'

What is the amount spent by customer " 38508 " at the gas stations ? How much had the customer spent in January 2012 ?

O O O B-TABLE O O B-COLUMN O B-VALUE O B-COLUMN O B-TABLE I-TABLE O O O O O O O O O B-VALUE O


Question: What is the number of distinct publication dates?

SELECT COUNT (DISTINCT Publication_Date) FROM publication

What is the number of distinct publication dates ?


Question: 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';

What is the title of episode that won the Best International TV Series Award in 2017 ?

O O O B-COLUMN O B-TABLE O O O B-COLUMN B-VALUE I-VALUE I-VALUE B-COLUMN O B-VALUE O


Question: What is the name of the most expensive product with type Clothes?

SELECT product_name FROM Products WHERE product_type_code  =  "Clothes" ORDER BY product_price DESC LIMIT 1

What is the name of the most expensive product with type Clothes ?

O O O O O O O O B-TABLE B-COLUMN I-COLUMN B-COLUMN O


Question: 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 are the names of body builders in descending order of total scores ?

O O O B-COLUMN O B-TABLE I-TABLE O O O O B-COLUMN O O


Question: 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 are the enrollment dates of all the tests that have result " Pass " ?

O O B-COLUMN I-COLUMN O O O O O O O B-COLUMN O B-COLUMN O O


Question: Among all superheroes in Marvel Comics, identify the percentage of 'good' superheroes.

SELECT CAST(COUNT(CASE WHEN T3.alignment = 'Good' THEN T1.id ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN alignment AS T3 ON T1.alignment_id = T3.id WHERE T2.publisher_name = 'Marvel Comics'

Among all superheroes in Marvel Comics , identify the percentage of ' good ' superheroes .

O O B-TABLE O B-VALUE I-VALUE O O O O O O B-VALUE O O O


Question: Which allergy is the most common?

SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count(*) DESC LIMIT 1


Question: 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

What is the document type name and the document type description and creation date for all the documents ?

O O O B-COLUMN I-COLUMN B-COLUMN O O B-COLUMN I-COLUMN I-COLUMN O O O O O O B-TABLE O


Question: 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'

Please provide the path of solution of method whose full comment is Feeds data into the parser .

O O O B-COLUMN O B-TABLE O B-TABLE O B-COLUMN I-COLUMN O B-VALUE I-VALUE I-VALUE I-VALUE I-VALUE O


Question: 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

In the West , how many stores are there in the city whose land area is below 20,000,000 ?

O O B-VALUE O O O B-TABLE I-TABLE I-TABLE I-TABLE O O O B-COLUMN I-COLUMN O O B-VALUE O


Question: 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 is the bowling skill of SC Ganguly ?

O O O B-COLUMN B-COLUMN O B-VALUE I-VALUE O


Question: Which of the Italian constructor got the highest point to date? Give its introduction website?

SELECT T1.url FROM constructors AS T1 INNER JOIN constructorStandings AS T2 on T1.constructorId = T2.constructorId WHERE T1.nationality = 'Italian' ORDER BY T2.points DESC LIMIT 1

Which of the Italian constructor got the highest point to date ? Give its introduction website ?

O O O B-VALUE B-TABLE O O O B-COLUMN O O O O O O O O