Question: What is the incident type description for the incident type with code "VIOLENCE"?

SELECT incident_type_description FROM Ref_Incident_Type WHERE incident_type_code  =  "VIOLENCE"

What is the incident type description for the incident type with code " VIOLENCE " ?

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


Question: How tall is the actor who played "Lurch"?

SELECT T2.`Height (Inches)` FROM characters AS T1 INNER JOIN actor AS T2 ON T1.ActorID = T2.ActorID WHERE T1.`Character Name` = 'Lurch'

How tall is the actor who played " Lurch " ?


Question: Which two countries does the Detroit River flow through? Give the full name of the country.

SELECT T3.Name FROM located AS T1 INNER JOIN river AS T2 ON T1.River = T2.Name INNER JOIN country AS T3 ON T3.Code = T1.Country WHERE T2.Name = 'Detroit River'

Which two countries does the Detroit River flow through ? Give the full name of the country .

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


Question: Show the players and the years played.

SELECT Player ,  Years_Played FROM player


Question: Show the number of audience in year 2008 or 2010.

SELECT Num_of_Audience FROM festival_detail WHERE YEAR  =  2008 OR YEAR  =  2010

Show the number of audience in year 2008 or 2010 .

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


Question: Which studios have never worked with the director Walter Hill?

SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director  =  "Walter Hill"

Which studios have never worked with the director Walter Hill ?

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


Question: Find the country that the most papers are affiliated with.

SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid  =  t2.instid JOIN papers AS t3 ON t2.paperid  =  t3.paperid GROUP BY t1.country ORDER BY count(*) DESC LIMIT 1

Find the country that the most papers are affiliated with .

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


Question: What is the category of the business with short review length and highest review stars within business ID from 7 to 14?

SELECT DISTINCT T3.category_name FROM Reviews AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T2.business_id >= 7 AND T2.business_id < 15 AND T1.review_length = 'Short' AND T1.review_stars = ( SELECT MAX(review_stars) FROM Reviews )

What is the category of the business with short review length and highest review stars within business ID from 7 to 14 ?

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


Question: How many female users use ZenFone 5 devices?

SELECT COUNT(T1.gender) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T2.device_id = T1.device_id WHERE T1.gender = 'F' AND T2.device_model = 'ZenFone 5'

How many female users use ZenFone 5 devices ?


Question: What are the minimum and maximum vote percents of elections?

SELECT min(Vote_Percent) ,  max(Vote_Percent) FROM election

What are the minimum and maximum vote percents of elections ?

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


Question: Find the number of activities available.

Find the number of activities available .


Question: What are the tracking numbers and dates for all shipments listed?

SELECT shipment_tracking_number ,  shipment_date FROM Shipments

What are the tracking numbers and dates for all shipments listed ?

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


Question: How many members are in each party?

SELECT T2.party_name ,  count(*) FROM Member AS T1 JOIN party AS T2 ON T1.party_id  =  T2.party_id GROUP BY T1.party_id


Question: Show the school name and type for schools without a school bus.

SELECT school ,  TYPE FROM school WHERE school_id NOT IN (SELECT school_id FROM school_bus)

Show the school name and type for schools without a school bus .

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


Question: Who is the owner of email address "JEREMY.HURTADO@sakilacustomer.org"? Give the full name.

SELECT first_name, last_name FROM customer WHERE email = 'JEREMY.HURTADO@sakilacustomer.org'

Who is the owner of email address " JEREMY.HURTADO@sakilacustomer.org " ? Give the full name .

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


Question: What is the type and id of the organization that has the most research staff?

SELECT T1.organisation_type ,  T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1

What is the type and i d of the organization that has the most research staff ?

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


Question: Give the stadium of the institution which is the greatest enrollment.

SELECT Stadium FROM institution ORDER BY Enrollment DESC LIMIT 1

Give the stadium of the institution which is the greatest enrollment .

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


Question: What are the names of the different artists from Bangladesh who never received a rating higher than a 7?

SELECT DISTINCT artist_name FROM artist WHERE country  =  "Bangladesh" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating  >  7

What are the names of the different artists from Bangladesh who never received a rating higher than a 7 ?

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


Question: What was the product id of the transaction happened at 2012/8/23 21:20:00?

SELECT T1.ProductID FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T1.Date = '2012-08-23' AND T1.Time = '21:20:00'

What was the product i d of the transaction happened at 2012/8/23 21:20:00 ?

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


Question: What are the date and venue of each debate?

What are the date and venue of each debate ?


Question: How many respondents who participated in the survey in 2014 work remotely at least 50% of the time?

SELECT COUNT(T1.AnswerText) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T1.QuestionID = 93 AND T1.SurveyID = 2014 AND T1.AnswerText = 'Yes'

How many respondents who participated in the survey in 2014 work remotely at least 50 % of the time ?

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


Question: Return the average horizontal bar points across all gymnasts.

SELECT avg(Horizontal_Bar_Points) FROM gymnast

Return the average horizontal bar points across all gymnasts .

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


Question: Name the professor who got graduation from the University of Boston.

SELECT first_name, last_name FROM prof WHERE graduate_from = 'University of Boston'

Name the professor who got graduation from the University of Boston .

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


Question: Who were the governors of the parties associated with delegates from district 1?

SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party  =  T2.Party_ID WHERE T1.District  =  1

Who were the governors of the parties associated with delegates from district 1 ?

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


Question: List the ids and ratings of each actors played in the movie with the id 1722327?

SELECT T1.actorid, T1.a_quality FROM actors AS T1 INNER JOIN movies2actors AS T2 ON T1.actorid = T2.actorid WHERE T2.movieid = 1722327

List the ids and ratings of each actors played in the movie with the i d 1722327 ?

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


Question: What is the venue of the competition "1994 FIFA World Cup qualification" hosted by "Nanjing ( Jiangsu )"?

SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = "Nanjing ( Jiangsu )" AND T3.competition = "1994 FIFA World Cup qualification"

What is the venue of the competition " 1994 FIFA World Cup qualification " hosted by " Nanjing ( Jiangsu ) " ?

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


Question: What is the highest amount of difference between the ordered quantity and actual quantity received in a single purchase order and to which vendor was the purchase order made?

SELECT T2.OrderQty - T2.ReceivedQty, VendorID FROM PurchaseOrderHeader AS T1 INNER JOIN PurchaseOrderDetail AS T2 ON T1.PurchaseOrderID = T2.PurchaseOrderID ORDER BY T2.OrderQty - T2.ReceivedQty DESC LIMIT 1

What is the highest amount of difference between the ordered quantity and actual quantity received in a single purchase order and to which vendor was the purchase order made ?

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


Question: How many shipments were shipped to customers living in California in year 2016?

SELECT COUNT(*) AS per FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE STRFTIME('%Y', T2.ship_date) = '2016' AND T1.state = 'CA'

How many shipments were shipped to customers living in California in year 2016 ?

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


Question: What are the names of all friends who are from New York?

SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend WHERE T1.city  =  'new york city'

What are the names of all friends who are from New York ?

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


Question: Show the name of employees with three lowest salaries.

SELECT name FROM Employee ORDER BY salary ASC LIMIT 3

Show the name of employees with three lowest salaries .


Question: What is the total number of active businesses in AZ with a medium review count?

SELECT COUNT(business_id) FROM Business WHERE review_count = 'Medium' AND state = 'AZ' AND active = 'true'

What is the total number of active businesses in AZ with a medium review count ?

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


Question: Show the names and main services for train stations that have the top three total number of passengers.

SELECT name ,  main_services FROM station ORDER BY total_passengers DESC LIMIT 3

Show the names and main services for train stations that have the top three total number of passengers .

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


Question: Sort buildings in descending order of the number of stories, and return their completion years.

SELECT Completed_Year FROM building ORDER BY Number_of_Stories DESC

Sort buildings in descending order of the number of stories , and return their completion years .

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


Question: List all active vendors who offer a purchasing web service.

SELECT Name FROM Vendor WHERE ActiveFlag = 1

List all active vendors who offer a purchasing web service .


Question: What cities are located in Northern California?

SELECT city FROM geographic WHERE region = 'northern california'

What cities are located in Northern California ?


Question: Which flight carrier operator has the most cancelled flights?

SELECT T1.Description FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID ORDER BY T2.CANCELLED DESC LIMIT 1

Which flight carrier operator has the most cancelled flights ?


Question: Show the name of buildings that do not have any institution.

SELECT name FROM building WHERE building_id NOT IN (SELECT building_id FROM institution)

Show the name of buildings that do not have any institution .

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


Question: What is the id of the candidate whose email is stanley.monahan@example.org?

SELECT T2.candidate_id FROM people AS T1 JOIN candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = "stanley.monahan@example.org"

What is the i d of the candidate whose email is stanley.monahan@example.org ?


Question: Which of these players performs the best in crossing actions, Alexis, Ariel Borysiuk or Arouna Kone?

SELECT t1.player_name, t2.crossing FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name IN ('Alexis', 'Ariel Borysiuk', 'Arouna Kone') ORDER BY t2.crossing DESC LIMIT 1

Which of these players performs the best in crossing actions , Alexis , Ariel Borysiuk or Arouna Kone ?

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


Question: State the courses and level of courses by professors who are faculty employees.

SELECT T3.course_id, T3.courseLevel FROM taughtBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id INNER JOIN course AS T3 ON T3.course_id = T1.course_id WHERE T2.hasPosition = 'Faculty_eme'

State the courses and level of courses by professors who are faculty employees .

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


Question: What is the least common media type in all tracks?

SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId  =  T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) ASC LIMIT 1

What is the least common media type in all tracks ?


Question: find the name of all departments that do actually have one or more employees assigned to them.

SELECT DISTINCT T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id

find the name of all departments that do actually have one or more employees assigned to them .

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


Question: List the project details of the project both producing patent and paper as outcomes.

SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id WHERE T2.outcome_code  =  'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id WHERE T2.outcome_code  =  'Patent'

List the project details of the project both producing patent and paper as outcomes .

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


Question: How many goals were scored while the goalkeeper was on the ice in the 1924 WCHL by the goalie with the most goals scored?

SELECT SUM(PostGA) FROM Goalies WHERE lgID = 'WCHL' AND year = '1924' GROUP BY playerID ORDER BY SUM(PostGA) DESC LIMIT 1

How many goals were scored while the goalkeeper was on the ice in the 1924 WCHL by the goalie with the most goals scored ?

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


Question: What is the prediction class between object class 'chain' and 'label' in image 2360078?

SELECT DISTINCT T2.PRED_CLASS FROM IMG_REL AS T1 INNER JOIN PRED_CLASSES AS T2 ON T2.PRED_CLASS_ID = T1.PRED_CLASS_ID INNER JOIN IMG_OBJ AS T3 ON T1.IMG_ID = T3.IMG_ID AND T1.OBJ1_SAMPLE_ID = T3.OBJ_SAMPLE_ID INNER JOIN OBJ_CLASSES AS T4 ON T3.OBJ_CLASS_ID = T4.OBJ_CLASS_ID WHERE T1.IMG_ID = 2360078 AND T1.OBJ1_SAMPLE_ID = 15 OR T1.OBJ2_SAMPLE_ID = 18

What is the prediction class between object class ' chain ' and ' label ' in image 2360078 ?

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


Question: What is the inspection result for inspection done by Thomas Langley?

SELECT DISTINCT T2.results FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T1.first_name = 'Thomas' AND T1.last_name = 'Langley'

What is the inspection result for inspection done by Thomas Langley ?

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


Question: What are the cities that have more than 2 airports sorted by number of airports?

SELECT city FROM airports GROUP BY city HAVING count(*)  >  2 ORDER BY count(*)

What are the cities that have more than 2 airports sorted by number of airports ?

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


Question: Where is competitor Estelle Nze Minko from?

SELECT T1.region_name FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T3.full_name = 'Estelle Nze Minko'

Where is competitor Estelle Nze Minko from ?


Question: What is the average calorie count for all recipes using coarsely ground black pepper?

SELECT AVG(T3.calories) FROM Ingredient AS T1 INNER JOIN Quantity AS T2 ON T2.ingredient_id = T1.ingredient_id INNER JOIN Nutrition AS T3 ON T3.recipe_id = T2.recipe_id WHERE T1.name = 'coarsely ground black pepper'

What is the average calorie count for all recipes using coarsely ground black pepper ?

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


Question: Return the lowest and highest prices of goods grouped and ordered by food type.

SELECT min(price) ,  max(price) ,  food FROM goods GROUP BY food ORDER BY food

Return the lowest and highest prices of goods grouped and ordered by food type .

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


Question: In episode with the highest votes, list the category of awards it is nominated for.

SELECT T1.award_category FROM Award AS T1 INNER JOIN Episode AS T2 ON T1.episode_id = T2.episode_id WHERE T1.result = 'Nominee' ORDER BY T2.votes DESC LIMIT 1;

In episode with the highest votes , list the category of awards it is nominated for .

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


Question: Among the crimes reported to the ward located at 1958 N. Milwaukee Ave., list down the report number of the crimes happened inside the apartment.

SELECT T1.case_number FROM Crime AS T1 INNER JOIN Ward AS T2 ON T2.ward_no = T1.ward_no WHERE T1.location_description = 'APARTMENT' AND T2.ward_office_address = '1958 N. Milwaukee Ave.'

Among the crimes reported to the ward located at 1958 N. Milwaukee Ave . , list down the report number of the crimes happened inside the apartment .

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


Question: What are the distinct venues for papers, ordered by year?

SELECT DISTINCT venue ,  YEAR FROM paper ORDER BY YEAR

What are the distinct venues for papers , ordered by year ?

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


Question: Tally the full names of actors in the film "Alabama Devil."

SELECT T2.first_name, T2.last_name FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id WHERE T3.title = 'ALABAMA DEVIL'

Tally the full names of actors in the film " Alabama Devil . "

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


Question: Name the superhero, otherwise known as Charles Chandler.

SELECT superhero_name FROM superhero WHERE full_name = 'Charles Chandler'

Name the superhero , otherwise known as Charles Chandler .

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


Question: Which coach had the highest winning rates in the 2009 season? What's coach's nickname.

SELECT T2.coachID, T1.nameNick FROM Master AS T1 INNER JOIN Coaches AS T2 ON T1.coachID = T2.coachID WHERE T2.year = 2009 ORDER BY CAST(T2.W AS REAL) / (T2.W + T2.L) DESC LIMIT 1

Which coach had the highest winning rates in the 2009 season ? What 's coach 's nickname .

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


Question: What is the color code and description of the product named "chervil"?

SELECT t1.color_code ,  t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code  =  t2.color_code WHERE t1.product_name  =  "chervil"

What is the color code and description of the product named " chervil " ?

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


Question: What are the names of all movies that were made after 2000 or reviewed by Brittany Harris?

SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID JOIN Reviewer AS T3 ON T1.rID  =  T3.rID WHERE T3.name  =  'Brittany Harris' OR T2.year  >  2000

What are the names of all movies that were made after 2000 or reviewed by Brittany Harris ?

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


Question: Find the id and location of circuits that belong to France or Belgium?

SELECT circuitid ,  LOCATION FROM circuits WHERE country = "France" OR country = "Belgium"

Find the i d and location of circuits that belong to France or Belgium ?

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


Question: List out the code for drivers who have nationality in America.

SELECT code FROM drivers WHERE Nationality = 'American'

List out the code for drivers who have nationality in America .

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


Question: Show the names of mountains with height more than 5000 or prominence more than 1000.

SELECT Name FROM mountain WHERE Height  >  5000 OR Prominence  >  1000

Show the names of mountains with height more than 5000 or prominence more than 1000 .

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


Question: How many different departments are there?

SELECT count(DISTINCT dept_name) FROM department

How many different departments are there ?


Question: What is the ratio between customers who live in Texas and customers who live in Indiana?

SELECT CAST(SUM(CASE  WHEN State = 'Texas' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE  WHEN State = 'Indiana' THEN 1 ELSE 0 END) FROM people

What is the ratio between customers who live in Texas and customers who live in Indiana ?

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


Question: How many undergraduates are there at San Jose State

SELECT sum(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus  =  t2.id WHERE t1.year  =  2004 AND t2.campus  =  "San Jose State University"

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


Question: How much did Petit Auto pay on 2004-08-09?

SELECT t1.amount FROM payments AS t1 INNER JOIN customers AS t2 ON t1.customerNumber = t2.customerNumber WHERE t2.customerName = 'Petit Auto' AND t1.paymentDate = '2004-08-09'

How much did Petit Auto pay on 2004 - 08 - 09 ?

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


Question: Show the order ids, order dates, and order status codes for all orders by customer Jeromy.

SELECT order_id ,  order_date ,  order_status_code FROM Customer_orders AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_name  =  "Jeromy"

Show the order ids , order dates , and order status codes for all orders by customer Jeromy .

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


Question: How many customers in Chicago ordered at least 10 Cardinal EasyOpen D-Ring Binders in a single order?

SELECT COUNT(DISTINCT T1.`Customer ID`) FROM west_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T3.`Product Name` = 'Cardinal EasyOpen D-Ring Binders' AND T2.City = 'Chicago' AND T1.Quantity > 10

How many customers in Chicago ordered at least 10 Cardinal EasyOpen D - Ring Binders in a single order ?

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


Question: What kind of political system is in place in the country with the highest inflation rate?

SELECT T1.Government FROM politics AS T1 INNER JOIN economy AS T2 ON T1.Country = T2.Country ORDER BY T2.Inflation DESC LIMIT 1

What kind of political system is in place in the country with the highest inflation rate ?

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


Question: What is the id and name of the aircraft that can cover the maximum distance?

SELECT aid ,  name FROM Aircraft ORDER BY distance DESC LIMIT 1

What is the i d and name of the aircraft that can cover the maximum distance ?

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


Question: List the full names of Republican legislators who have a nickname.

SELECT T1.official_full_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.party = 'Republican' AND T1.nickname_name IS NOT NULL GROUP BY T1.official_full_name

List the full names of Republican legislators who have a nickname .


Question: How many businesses in Glendale are reviewed by user with the ID of 20241?

SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.city = 'Glendale' AND T2.user_id = 20241

How many businesses in Glendale are reviewed by user with the ID of 20241 ?

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


Question: How many active employees do not wish to receive e-mail promotions?

SELECT COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.CurrentFlag = 1 AND T2.EmailPromotion = 1

How many active employees do not wish to receive e - mail promotions ?

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


Question: Define the bounding box of the object sample no. 7 on image no. 42.

SELECT X, Y, W, H FROM IMG_OBJ WHERE IMG_ID = 42 AND OBJ_SAMPLE_ID = 7

Define the bounding box of the object sample no . 7 on image no . 42 .

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


Question: Sate the author name and published year for paper id 2?

SELECT T1.Name, T3.Year FROM Author AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.AuthorId INNER JOIN Paper AS T3 ON T2.PaperId = T3.Id WHERE T2.PaperId = 2

Sate the author name and published year for paper i d 2 ?

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


Question: Return the maximum and average power for the vehicles built by Zhuzhou.

SELECT max(power) ,  avg(power) FROM vehicle WHERE builder  =  'Zhuzhou'

Return the maximum and average power for the vehicles built by Zhuzhou .

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


Question: Find the claims that led to more than two settlements or have the maximum claim value. For each of them, return the date the claim was made and the id of the claim.

SELECT T1.Date_Claim_Made ,  T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id  =  T2.Claim_id GROUP BY T1.Claim_id HAVING count(*)  >  2 UNION SELECT T1.Date_Claim_Made ,  T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id  =  T2.Claim_id WHERE T1.Amount_Claimed  =  ( SELECT max(Amount_Claimed) FROM Claims )

Find the claims that led to more than two settlements or have the maximum claim value . For each of them , return the date the claim was made and the i d of the claim .

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


Question: What is the actual finish time for Bruce McLaren in the race No.743?

SELECT T2.time FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 743 AND T1.forename = 'Bruce' AND T1.surname = 'McLaren'

What is the actual finish time for Bruce McLaren in the race No.743 ?

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


Question: What is the general and specific description of incident 275?

SELECT primary_description, secondary_description FROM IUCR WHERE iucr_no = 275

What is the general and specific description of incident 275 ?


Question: What is each customer's move in date, and the corresponding customer id and details?

SELECT T2.date_moved_in ,  T1.customer_id ,  T1.customer_details FROM Customers AS T1 JOIN Customer_Events AS T2 ON T1.customer_id  =  T2.customer_id

What is each customer 's move in date , and the corresponding customer i d and details ?

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


Question: Find the name of the youngest organization.

SELECT organization_name FROM organizations ORDER BY date_formed DESC LIMIT 1

Find the name of the youngest organization .


Question: Among the employees working at the office in New York, how many of them have a good job performance?

SELECT COUNT(*) FROM employee AS T1 INNER JOIN location AS T2  ON T1.locationID = T2.locationID WHERE T2.state = 'NY' AND T1.performance = 'Good'

Among the employees working at the office in New York , how many of them have a good job performance ?

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


Question: What are the names of the courses that have exactly 1 student enrollment?

SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name HAVING COUNT(*)  =  1

What are the names of the courses that have exactly 1 student enrollment ?

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


Question: What are the statement ids, statement details, and account details, for all accounts?

SELECT T1.statement_id ,  T2.statement_details ,  T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id

What are the statement ids , statement details , and account details , for all accounts ?

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


Question: Calculate the average age of the persons who participated in the 1992 Summer Games.

SELECT AVG(T2.age) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.games_name = '1992 Summer'

Calculate the average age of the persons who participated in the 1992 Summer Games .

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


Question: How many dishes have appeared on the menu in less than 5 years?

SELECT COUNT(*) FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.last_appeared - T1.first_appeared < 5

How many dishes have appeared on the menu in less than 5 years ?

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


Question: What is the language of the book titled Zorro?

SELECT T2.language_name FROM book AS T1 INNER JOIN book_language AS T2 ON T1.language_id = T2.language_id WHERE T1.title = 'Zorro'

What is the language of the book titled Zorro ?

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


Question: List the name of the top ten most ordered product's names in descending order of the number of orders.

SELECT T3.ProductName FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID GROUP BY T3.ProductName ORDER BY COUNT(*) DESC LIMIT 10

List the name of the top ten most ordered product 's names in descending order of the number of orders .

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


Question: Provide eateries' IDs, names and addresses which were inspected on 30th July, 2016.

SELECT DISTINCT T2.business_id, T2.name, T2.address FROM inspections AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id WHERE T1.date = '2016-07-30'

Provide eateries ' IDs , names and addresses which were inspected on 30th July , 2016 .

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


Question: What is the full name of the driver who transported the first shipment of the company?

SELECT T2.first_name, T2.last_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id ORDER BY T1.ship_date ASC LIMIT 1

What is the full name of the driver who transported the first shipment of the company ?

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


Question: Among the crimes, what percentage are severe?

SELECT CAST(COUNT(CASE WHEN index_code = 'I' THEN iucr_no ELSE NULL END) AS REAL) * 100 / COUNT(iucr_no) FROM IUCR

Among the crimes , what percentage are severe ?


Question: Which country is McMaster University located in?

SELECT T2.country_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T1.university_name = 'McMaster University'

Which country is McMaster University located in ?


Question: What is the name of the youngest captain?

SELECT name FROM captain ORDER BY age LIMIT 1

What is the name of the youngest captain ?


Question: Which businesses are no longer in business but have a low number of votes useful?

SELECT DISTINCT T1.business_id FROM Reviews AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Business_Categories AS T3 ON T2.business_id = T3.business_id INNER JOIN Categories AS T4 ON T3.category_id = T4.category_id WHERE T2.active LIKE 'FALSE' AND T1.review_votes_useful LIKE 'Low'

Which businesses are no longer in business but have a low number of votes useful ?

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


Question: How many different colleges are there?


Question: How many employees have territories in the Eastern region?

SELECT COUNT(DISTINCT T1.FirstName) FROM Employees AS T1 INNER JOIN EmployeeTerritories AS T2 ON T1.EmployeeID = T2.EmployeeID INNER JOIN Territories AS T3 ON T2.TerritoryID = T3.TerritoryID INNER JOIN Region AS T4 ON T3.RegionID = T4.RegionID WHERE T4.RegionDescription = 'Eastern'

How many employees have territories in the Eastern region ?

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


Question: How many Formula_1 races took place on the circuits in Italy?

SELECT COUNT(T2.circuitId) FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Italy'

How many Formula_1 races took place on the circuits in Italy ?

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


Question: List the description of the outcomes for all projects.

SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code  =  T2.outcome_code

List the description of the outcomes for all projects .

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


Question: Among the coaches who have received an award after the year 1940, how many of them have already died?

SELECT COUNT(T1.coachID) FROM Master AS T1 INNER JOIN AwardsCoaches AS T2 ON T1.coachID = T2.coachID WHERE T1.deathYear IS NOT NULL AND T2.year > 1940

Among the coaches who have received an award after the year 1940 , how many of them have already died ?

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


Question: What are the different contents of boxes for which the value is higher than the average value across all boxes?

SELECT DISTINCT CONTENTS FROM boxes WHERE value  >  (SELECT avg(value) FROM boxes)

What are the different contents of boxes for which the value is higher than the average value across all boxes ?

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


Question: What are the names of the rivers in Canada?

SELECT DISTINCT T1.River FROM located AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T2.Name = 'Canada' AND T1.River IS NOT NULL

What are the names of the rivers in Canada ?


Question: Find the names of rooms that have been reserved for more than 60 times.

SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId GROUP BY T1.Room HAVING count(*)  >  60

Find the names of rooms that have been reserved for more than 60 times .

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


Question: Indicate the bounding box of the image 8.

SELECT X, Y, W, H FROM IMG_OBJ WHERE IMG_ID = 8

Indicate the bounding box of the image 8 .


Question: What is the average lap time for Lewis Hamilton in the 2009 Malaysian Grand Prix?

SELECT AVG(T2.milliseconds) FROM races AS T1 INNER JOIN lapTimes AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.forename = 'Lewis' AND T3.surname = 'Hamilton' AND T1.year = 2009 AND T1.name = 'Malaysian Grand Prix'

What is the average lap time for Lewis Hamilton in the 2009 Malaysian Grand Prix ?

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


Question: Please list the full names of the students in the Student_Club that come from the Art and Design Department.

SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department = 'Art and Design Department'

Please list the full names of the students in the Student_Club that come from the Art and Design Department .

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


Question: Among the films starred by Reese West, what is the difference between the films that have store ID of 1 and store ID of 2?

SELECT SUM(IIF(T4.film_id = 1, 1, 0)) - SUM(IIF(T4.film_id = 2, 1, 0)) AS diff FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T1.film_id = T3.film_id INNER JOIN inventory AS T4 ON T3.film_id = T4.film_id WHERE T2.first_name = 'Reese' AND T2.last_name = 'West'

Among the films starred by Reese West , what is the difference between the films that have store ID of 1 and store ID of 2 ?

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


Question: What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?

SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.distance  >  5000 GROUP BY T1.eid ORDER BY count(*) DESC LIMIT 1

What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000 ?

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


Question: In store ID 2, how many of the films are R rating?

SELECT COUNT(T1.film_id) FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id WHERE T2.store_id = 2 AND T1.rating = 'R'

In store ID 2 , how many of the films are R rating ?

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


Question: Which country has produced both players with earnings over 1400000 and players with earnings below 1100000?

SELECT Country FROM player WHERE Earnings  >  1400000 INTERSECT SELECT Country FROM player WHERE Earnings  <  1100000

Which country has produced both players with earnings over 1400000 and players with earnings below 1100000 ?

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


Question: How many horror movies were made by the worst directors?

SELECT COUNT(T1.movieid) FROM movies2directors AS T1 INNER JOIN movies AS T2 ON T1.movieid = T2.movieid INNER JOIN directors AS T3 ON T1.directorid = T3.directorid WHERE T1.genre = 'horror' AND T3.d_quality = 0

How many horror movies were made by the worst directors ?

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


Question: Among the NBA All-star players in 1996 season , which have more than 70% free throw rate? Please give their player id.

SELECT playerID FROM player_allstar WHERE season_id = 1996 AND CAST(ft_made AS REAL) * 100 / ft_attempted > 70

Among the NBA All - star players in 1996 season , which have more than 70 % free throw rate ? Please give their player i d.

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


Question: For all the purchase order transactions, name all the products with low quality.

SELECT DISTINCT T1.Name FROM Product AS T1 INNER JOIN TransactionHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Class = 'L' AND T2.TransactionType = 'P' ORDER BY T1.Name

For all the purchase order transactions , name all the products with low quality .

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


Question: Return the largest difference in sale price and purchase price.

SELECT max(saleprice - purchaseprice) FROM Book

Return the largest difference in sale price and purchase price .

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


Question: Which country had the gas station that sold the most expensive product id No.2 for one unit?

SELECT T2.Country FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T1.ProductID = 2 ORDER BY T1.Price DESC LIMIT 1

Which country had the gas station that sold the most expensive product i d No.2 for one unit ?

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


Question: How many types of credit cards are there and how many are vista?

SELECT COUNT(CardNumber) FROM CreditCard WHERE CardType = 'vista'

How many types of credit cards are there and how many are vista ?

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


Question: What is the average alcohol content per 12-ounce beer bottle produced by Boston Beer Company?

SELECT AVG(T1.abv) FROM beers AS T1 INNER JOIN breweries AS T2 ON T1.brewery_id = T2.id WHERE T2.name = 'Boston Beer Company' AND T1.ounces = 12

What is the average alcohol content per 12 - ounce beer bottle produced by Boston Beer Company ?

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


Question: How many incidents in which the subject's weapon was a vehicle were investigated by a female officer?

SELECT COUNT(T1.case_number) FROM incidents AS T1 INNER JOIN officers AS T2 ON T1.case_number = T2.case_number WHERE T1.subject_weapon = 'Vehicle' AND T2.gender = 'F'

How many incidents in which the subject 's weapon was a vehicle were investigated by a female officer ?

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


Question: Show the times used by climbers to climb mountains in Country Uganda.

SELECT T1.Time FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID WHERE T2.Country  =  "Uganda"

Show the times used by climbers to climb mountains in Country Uganda .

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


Question: What are the names of the services that have never been used?

SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id  =  t2.service_id

What are the names of the services that have never been used ?


Question: How many students have absences of no more than 3 months?

SELECT COUNT(name) FROM longest_absense_from_school WHERE month < 3

How many students have absences of no more than 3 months ?


Question: Find the names of customers whose name contains "Diana".

SELECT customer_details FROM customers WHERE customer_details LIKE "%Diana%"

Find the names of customers whose name contains " Diana " .


Question: List the names of the country that officially uses English as their language.

SELECT T2.Name FROM CountryLanguage AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.IsOfficial = 'T' AND T1.Language = 'English'

List the names of the country that officially uses English as their language .

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


Question: What are the carriers of devices whose software platforms are not "Android"?

SELECT Carrier FROM device WHERE Software_Platform != 'Android'

What are the carriers of devices whose software platforms are not " Android " ?

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


Question: Among the recipes with sea bass, how many percent of recipes can serve 10 people and above?

SELECT CAST(SUM(CASE WHEN T1.servings >= 10 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T3.name = 'sea bass steak'

Among the recipes with sea bass , how many percent of recipes can serve 10 people and above ?

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


Question: Which store sales person was reently hired? Indicate his/her full name and gender.

SELECT T2.FirstName, T2.MiddleName, T2.LastName, T1.Gender FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.PersonType = 'SP'

Which store sales person was reently hired ? Indicate his / her full name and gender .

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


Question: What is the display name of the user who has the most number of views?

SELECT DisplayName FROM users WHERE Views = ( SELECT MAX(Views) FROM users )

What is the display name of the user who has the most number of views ?

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


Question: What are the languages of the first two published books?

SELECT T2.language_name FROM book AS T1 INNER JOIN book_language AS T2 ON T1.language_id = T2.language_id ORDER BY T1.publication_date ASC LIMIT 2

What are the languages of the first two published books ?


Question: State the number of the "魅蓝Note 2" users who are in the "F29-32" group.

SELECT COUNT(T2.device_id) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T1.`group` = 'F29-32' AND T2.device_model = '魅蓝Note 2'

State the number of the " 魅蓝Note 2 " users who are in the " F29 - 32 " group .

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


Question: What are the different location codes for documents?

SELECT DISTINCT location_code FROM Document_locations

What are the different location codes for documents ?


Question: List all the non-sales employees in ascending order of its business entitty ID.

SELECT FirstName, LastName FROM Person WHERE PersonType = 'EM' ORDER BY BusinessEntityID

List all the non - sales employees in ascending order of its business entitty ID .

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


Question: Show all home conferences and the number of universities in each conference.

SELECT home_conference ,  count(*) FROM University GROUP BY home_conference

Show all home conferences and the number of universities in each conference .

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


Question: Which customer have the biggest purchase in one order and where does this order being ship to?

SELECT T1.CompanyName, T2.ShipCountry FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID GROUP BY T1.CompanyName, T2.ShipCountry ORDER BY COUNT(T3.ProductID) DESC LIMIT 1

Which customer have the biggest purchase in one order and where does this order being ship to ?

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


Question: Which channels are broadcast in the morning? Give me the channel names.

SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  'Morning'

Which channels are broadcast in the morning ? Give me the channel names .

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


Question: What is the average and total transaction amount?

SELECT avg(transaction_amount) ,  sum(transaction_amount) FROM Financial_transactions

What is the average and total transaction amount ?

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


Question: Calculate the total price of shipped orders belonging to Land of Toys Inc. under the classic car line of products.

SELECT SUM(t3.priceEach * t3.quantityOrdered) FROM customers AS t1 INNER JOIN orders AS t2 ON t1.customerNumber = t2.customerNumber INNER JOIN orderdetails AS t3 ON t2.orderNumber = t3.orderNumber INNER JOIN products AS t4 ON t3.productCode = t4.productCode WHERE t4.productLine = 'Classic Cars' AND t1.customerName = 'Land of Toys Inc.' AND t2.status = 'Shipped'

Calculate the total price of shipped orders belonging to Land of Toys Inc. under the classic car line of products .

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


Question: Count the number of cards the customer with the first name Art and last name Turcotte has.

SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_first_name  =  "Art" AND T2.customer_last_name  =  "Turcotte"

Count the number of cards the customer with the first name Art and last name Turcotte has .

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


Question: How many businesses were founded after 1960 in a nation that wasn't independent?

SELECT COUNT(T3.Name) FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN organization AS T3 ON T3.Country = T2.Country WHERE T2.Independence = NULL AND STRFTIME('%Y', T3.Established) > '1960'

How many businesses were founded after 1960 in a nation that was n't independent ?

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


Question: For the weather station has store no.9, what was the increased percentage of the average temperature from 2012/2/2 to 2012/2/3?

SELECT CAST((SUM(CASE WHEN T1.`date` = '2012-02-03' THEN T1.tavg * 1 ELSE 0 END) - SUM(CASE WHEN T1.`date` = '2012-02-02' THEN T1.tavg * 1 ELSE 0 END)) AS REAL) * 100 / SUM(CASE WHEN T1.`date` = '2012-02-02' THEN T1.tavg * 1 ELSE 0 END) FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 9

For the weather station has store no.9 , what was the increased percentage of the average temperature from 2012/2/2 to 2012/2/3 ?

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


Question: What are the names and locations of all tracks?

What are the names and locations of all tracks ?


Question: How many documents do not have any expense?

SELECT count(*) FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses )

How many documents do not have any expense ?


Question: What is the average number of pages per minute color?

SELECT avg(pages_per_minute_color) FROM product

What is the average number of pages per minute color ?

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


Question: How many active businesses are located at Phoenix, Arizona?

SELECT COUNT(business_id) FROM Business WHERE city LIKE 'Phoenix' AND active LIKE 'True'

How many active businesses are located at Phoenix , Arizona ?

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


Question: Among the customers in the furniture market segment, how many of them have a nation key of 1?

SELECT COUNT(c_custkey) FROM customer WHERE c_mktsegment = 'FURNITURE' AND c_nationkey = 1

Among the customers in the furniture market segment , how many of them have a nation key of 1 ?

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


Question: What is the percentage of the podcast that are categorized in four or more categories?

SELECT COUNT(T1.podcast_id) FROM ( SELECT podcast_id FROM categories GROUP BY podcast_id HAVING COUNT(category) >= 4 ) AS T1

What is the percentage of the podcast that are categorized in four or more categories ?

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


Question: What is the full name of the employee who gave the highest amount of fine of all time?

SELECT T.first_name, T.last_name FROM ( SELECT T1.first_name, T1.last_name, SUM(T3.fine) FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id GROUP BY T1.first_name, T1.last_name ORDER BY SUM(T3.fine) DESC LIMIT 1 ) t

What is the full name of the employee who gave the highest amount of fine of all time ?

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


Question: Please list the names of all the games published by 10TACLE Studios.

SELECT T1.game_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id WHERE T3.publisher_name = '10TACLE Studios'

Please list the names of all the games published by 10TACLE Studios .

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


Question: From which branch does the sales representative employee who made the most sales in 2005? Please indicates its full address and phone number.

SELECT T3.addressLine1, T3.addressLine2, T3.phone FROM orderdetails AS T1 INNER JOIN orders AS T2 ON T1.orderNumber = T2.orderNumber INNER JOIN customers AS T3 ON T2.customerNumber = T3.customerNumber INNER JOIN employees AS T4 ON T3.salesRepEmployeeNumber = T4.employeeNumber INNER JOIN offices AS T5 ON T4.officeCode = T5.officeCode WHERE STRFTIME('%Y', T2.orderDate) = '2005' AND T4.jobTitle = 'Sales Rep' ORDER BY T1.quantityOrdered DESC LIMIT 1

From which branch does the sales representative employee who made the most sales in 2005 ? Please indicates its full address and phone number .

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


Question: Show statement id, statement detail, account detail for accounts.

SELECT T1.statement_id ,  T2.statement_details ,  T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id

Show statement i d , statement detail , account detail for accounts .

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


Question: What is the role with the smallest number of employees? Find the role codes.

SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1

What is the role with the smallest number of employees ? Find the role codes .

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


Question: What are the title and director of each film?

What are the title and director of each film ?


Question: Find the movies with the highest average rating. Return the movie titles and average rating.

SELECT T2.title ,  avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID  =  T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) DESC LIMIT 1

Find the movies with the highest average rating . Return the movie titles and average rating .

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


Question: State one biword pair with occurence of 4.

SELECT T1.word, T3.word FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st INNER JOIN words AS T3 ON T3.wid = T2.w2nd WHERE T2.occurrences = 4 LIMIT 1

State one biword pair with occurence of 4 .


Question: List the full address of all the American restaurants with a review of 4 or more?

SELECT T1.street_num, T1.street_name, T1.city FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T2.review >= 4

List the full address of all the American restaurants with a review of 4 or more ?

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


Question: What is the name of the country whose citizens have the lowest purchasing power?

SELECT T2.Name FROM economy AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code ORDER BY T1.Inflation DESC LIMIT 1

What is the name of the country whose citizens have the lowest purchasing power ?

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


Question: What are the names and id of platforms whose download rank is 1?

SELECT Platform_name ,  Platform_ID FROM platform WHERE Download_rank  =  1

What are the names and i d of platforms whose download rank is 1 ?

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


Question: What are all the album titles, in alphabetical order?

What are all the album titles , in alphabetical order ?


Question: Retrieve the title of the paper that has the largest number of authors.

SELECT t2.title FROM authorship AS t1 JOIN papers AS t2 ON t1.paperid  =  t2.paperid WHERE t1.authorder  =  (SELECT max(authorder) FROM authorship)

Retrieve the title of the paper that has the largest number of authors .

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


Question: Name the most famous university in Argentina.

SELECT T1.university_name FROM university AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T3.country_name = 'Argentina' GROUP BY T1.university_name ORDER BY SUM(T2.score) DESC LIMIT 1

Name the most famous university in Argentina .


Question: For each course id, how many students are registered and what are the course names?

SELECT T3.course_name ,  count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id

For each course i d , how many students are registered and what are the course names ?

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


Question: Provide the number of students enrolled in the "Statistical Learning" course.

SELECT COUNT(T2.student_id) FROM course AS T1 INNER JOIN registration AS T2 ON T1.course_id = T2.course_id WHERE T1.name = 'Statistical learning'

Provide the number of students enrolled in the " Statistical Learning " course .

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


Question: List the character names in the "Open Water" movie.

SELECT T2.character_name FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'Open Water'

List the character names in the " Open Water " movie .

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


Question: How many milliseconds long is Fast As a Shark?

SELECT milliseconds FROM tracks WHERE name = "Fast As a Shark";

How many milliseconds long is Fast As a Shark ?

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


Question: What is the NOC code of the region where the tallest male Olympic competitor is from?

SELECT T1.noc FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T3.gender = 'M' ORDER BY T3.height DESC LIMIT 1

What is the NOC code of the region where the tallest male Olympic competitor is from ?

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


Question: Find the model, class, and construction of the headphone with the lowest price.

SELECT model ,  CLASS ,  construction FROM headphone ORDER BY price LIMIT 1

Find the model , class , and construction of the headphone with the lowest price .

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


Question: Which bowling skills did the players from Zimbabwea have?

SELECT T1.Bowling_skill FROM Bowling_Style AS T1 INNER JOIN Player AS T2 ON T1.Bowling_Id = T2.Bowling_skill INNER JOIN Country AS T3 ON T2.Country_Name = T3.Country_Id WHERE T3.Country_Name = 'Zimbabwea'

Which bowling skills did the players from Zimbabwea have ?

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


Question: List all the disabled female students.

SELECT T1.name FROM disabled AS T1 INNER JOIN male AS T2 ON T1.name <> T2.name


Question: Give me the title and highest price for each film.

SELECT T2.title ,  max(T1.price) FROM schedule AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T1.film_id

Give me the title and highest price for each film .

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


Question: Mention the series code of countries using pound sterling as their currency unit. Which country belongs to high income group among them.

SELECT DISTINCT T1.CountryCode, T1.CurrencyUnit, T1.IncomeGroup FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.CurrencyUnit = 'Pound sterling' AND T1.IncomeGroup LIKE '%high income%'

Mention the series code of countries using pound sterling as their currency unit . Which country belongs to high income group among them .

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


Question: List any five countries which use English as an official language.

SELECT T1.Name FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T' LIMIT 5

List any five countries which use English as an official language .

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


Question: Is the teacher who teaches course no.9 a faculty member?

SELECT T2.hasPosition FROM taughtBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T1.course_id = 9

Is the teacher who teaches course no.9 a faculty member ?


Question: Please show the titles of films and the types of market estimations.

SELECT T1.Title ,  T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID  =  T2.Film_ID

Please show the titles of films and the types of market estimations .

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


Question: How many collections does each document belong to? List the count and the document id.

SELECT count(*) ,  T2.Document_Object_ID FROM Collections AS T1 JOIN Documents_in_Collections AS T2 ON T1.Collection_ID = T2.Collection_ID GROUP BY T2.Document_Object_ID

How many collections does each document belong to ? List the count and the document i d.

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


Question: What are the first names of the faculty members playing both Canoeing and Kayaking?

SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Kayaking'

What are the first names of the faculty members playing both Canoeing and Kayaking ?

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


Question: Which cities have at least one customer but no performer?

SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID  =  T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID  =  T2.Address_ID

Which cities have at least one customer but no performer ?


Question: For each competition, count the number of matches.

SELECT count(*) ,  Competition FROM MATCH GROUP BY Competition

For each competition , count the number of matches .


Question: Tell the language of the movie "C'era una volta il West".

SELECT T3.language_name FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T1.title LIKE 'C%era una volta il West'

Tell the language of the movie " C'era una volta il West " .

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


Question: Find the total account balance of each customer from Utah or Texas.

SELECT sum(acc_bal) FROM customer WHERE state  =  'Utah' OR state  =  'Texas'

Find the total account balance of each customer from Utah or Texas .

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


Question: Among the stations with 3 stores, how many stations have a station pressure of no more than 30 on February 18, 2014?

SELECT COUNT(station_nbr) FROM weather WHERE `date` = '2014-02-18' AND stnpressure < 30 AND station_nbr IN ( SELECT station_nbr FROM relation GROUP BY station_nbr HAVING COUNT(store_nbr) = 3 )

Among the stations with 3 stores , how many stations have a station pressure of no more than 30 on February 18 , 2014 ?

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


Question: How many reshared tweets have over 100 likes?

SELECT COUNT(DISTINCT TweetID) FROM twitter WHERE IsReshare = 'TRUE' AND Likes > 100

How many reshared tweets have over 100 likes ?

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


Question: What are the names and nationalities of the members?

What are the names and nationalities of the members ?


Question: Find the names of users who did not leave any review.

SELECT name FROM useracct WHERE u_id NOT IN (SELECT u_id FROM review)

Find the names of users who did not leave any review .

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


Question: What is the current official Instagram handle of current legislator Bob Corker?

SELECT T2.instagram FROM current AS T1 INNER JOIN `social-media` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.official_full_name = 'Bob Corker'

What is the current official Instagram handle of current legislator Bob Corker ?

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


Question: Find the id of Sailors (sid) that reserved red or blue boat.

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

Find the i d of Sailors ( sid ) that reserved red or blue boat .

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


Question: Among the actors born in New York City, list the genre of their movie with a rating greater than 5.

SELECT T1.Genre FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T3.`Birth City` = 'New York City' AND T1.Rating > 5

Among the actors born in New York City , list the genre of their movie with a rating greater than 5 .

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


Question: Show the advisors of the students whose city of residence has city code "BAL".

SELECT Advisor FROM STUDENT WHERE city_code  =  "BAL"

Show the advisors of the students whose city of residence has city code " BAL " .

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


Question: Which film has the most number of actors or actresses? List the film name, film id and description.

SELECT T2.title ,  T2.film_id ,  T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id  =  T2.film_id GROUP BY T2.film_id ORDER BY count(*) DESC LIMIT 1

Which film has the most number of actors or actresses ? List the film name , film i d and description .

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


Question: How many vacation hours do the male employees have on average?

SELECT CAST(SUM(T1.VacationHours) AS REAL) / COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.Gender = 'M' AND T2.PersonType = 'EM'

How many vacation hours do the male employees have on average ?

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


Question: Please list the app IDs of all the users in the Securities category.

SELECT T2.app_id FROM label_categories AS T1 INNER JOIN app_labels AS T2 ON T1.label_id = T2.label_id WHERE T1.category = 'Securities'

Please list the app IDs of all the users in the Securities category .

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


Question: Calculate the percentage of inspections with verified quality. Among them, how many businesses were from Chicago?

SELECT CAST(COUNT(CASE WHEN T2.results LIKE '%Pass%' THEN T2.inspection_id END) AS REAL) * 100 / COUNT(T2.inspection_id), COUNT(DISTINCT T2.license_no) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.city = 'CHICAGO'

Calculate the percentage of inspections with verified quality . Among them , how many businesses were from Chicago ?

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


Question: which shop has happy hour most frequently? List its id and number of happy hours.

SELECT shop_id ,  count(*) FROM happy_hour GROUP BY shop_id ORDER BY count(*) DESC LIMIT 1

which shop has happy hour most frequently ? List its i d and number of happy hours .

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


Question: List every album whose title starts with A in alphabetical order.

SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title;

List every album whose title starts with A in alphabetical order .

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


Question: List the first name of all the customers whose last name is Chen.

SELECT FirstName, LastName FROM Customers WHERE LastName = 'Chen'

List the first name of all the customers whose last name is Chen .

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


Question: Count the number of different countries that climbers are from.

SELECT COUNT(DISTINCT Country) FROM climber

Count the number of different countries that climbers are from .


Question: List down the area code and country of the city named Savoy.

SELECT T1.area_code, T2.county FROM area_code AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code INNER JOIN zip_data AS T3 ON T1.zip_code = T3.zip_code WHERE T3.city = 'Savoy'

List down the area code and country of the city named Savoy .

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


Question: What is the role of SC Ganguly in the match on 2008/4/18?

SELECT T2.Role_Id FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Rolee AS T3 ON T2.Role_Id = T3.Role_Id INNER JOIN Match AS T4 ON T2.Match_Id = T4.Match_Id WHERE T1.Player_Name = 'SC Ganguly' AND T4.Match_Date = '2008-04-18'

What is the role of SC Ganguly in the match on 2008/4/18 ?

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


Question: How many males were members of the current legislators?

SELECT COUNT(*) FROM current WHERE gender_bio = 'M'

How many males were members of the current legislators ?


Question: Please show the results of music festivals and the number of music festivals that have had each, ordered by this count.

SELECT RESULT ,  COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC

Please show the results of music festivals and the number of music festivals that have had each , ordered by this count .

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


Question: What is the maximum humidity in Powell Street BART when bike 496 was borrowed from the station on 8/29/2013?

SELECT T2.max_humidity FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T1.start_date LIKE '8/29/2013%' AND T1.bike_id = 496 AND T1.start_station_name = 'Powell Street BART'

What is the maximum humidity in Powell Street BART when bike 496 was borrowed from the station on 8/29/2013 ?

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


Question: Provide the ID, sex, birthday of all patients diagnosed with 'RA' that are within the UN normal index.

SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.UN < 30 AND T1.Diagnosis = 'RA'

Provide the ID , sex , birthday of all patients diagnosed with ' RA ' that are within the UN normal index .

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


Question: List all the unspecified gender characters.

SELECT T1.character_name FROM movie_cast AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.gender_id WHERE T2.gender = 'Unspecified'

List all the unspecified gender characters .


Question: List all Zimbabwean players.

SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_Id WHERE T2.Country_Name = 'Zimbabwea'


Question: What are the ids, types, and details of the organization with the most research staff?

SELECT T1.organisation_id ,  T1.organisation_type ,  T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id  =  T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1

What are the ids , types , and details of the organization with the most research staff ?

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


Question: What are the name and citizenship of the drivers who have driven the vehicle model 'DJ1'?

SELECT T1.name ,  T1.citizenship FROM driver AS T1 JOIN vehicle_driver AS T2 ON T1.driver_id  =  T2.driver_id JOIN vehicle AS T3 ON T2.vehicle_id  =  T3.vehicle_id WHERE T3.model  =  'DJ1'

What are the name and citizenship of the drivers who have driven the vehicle model ' DJ1 ' ?

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


Question: Give the names of tracks that do not have a race in the class 'GT'.

SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id WHERE T1.class  =  'GT'

Give the names of tracks that do not have a race in the class ' GT ' .

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


Question: Which year do the majority of the players were born?

SELECT DOB FROM Player GROUP BY DOB ORDER BY COUNT(DOB) DESC LIMIT 1

Which year do the majority of the players were born ?


Question: Find the names of districts which have more than one spokesman.

SELECT t1.name FROM district AS t1 JOIN spokesman_district AS t2 ON t1.District_ID  =  t2.District_ID GROUP BY t2.District_ID HAVING count(*)  >  1

Find the names of districts which have more than one spokesman .

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


Question: How many clients are there?


Question: Find the name of the activity that has the largest number of student participants.

SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1

Find the name of the activity that has the largest number of student participants .

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


Question: how many authors are under age 30?

SELECT count(*) FROM author WHERE age  <  30


Question: Who performed the song named "Le Pop"?

SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  "Le Pop"

Who performed the song named " Le Pop " ?

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


Question: Count the number of packages sent by Ogden Wernstrom and received by Leo Wong.

SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender  =  T2.AccountNumber WHERE T2.Name = "Ogden Wernstrom" INTERSECT SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Recipient  =  T2.AccountNumber WHERE T2.Name = "Leo Wong"

Count the number of packages sent by Ogden Wernstrom and received by Leo Wong .

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


Question: What is the name of the least popular plane?

SELECT plane_name FROM pilotskills GROUP BY plane_name ORDER BY count(*) LIMIT 1

What is the name of the least popular plane ?


Question: Tell the name of the shipper company for the order No.10585.

SELECT T2.CompanyName FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T1.OrderID = 10585

Tell the name of the shipper company for the order No.10585 .

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


Question: What is the comment's rating score of the post which was created on 7/19/2010 7:19:56 PM

SELECT T1.Score FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T1.CreationDate = '2010-07-19 19:19:56.0'

What is the comment 's rating score of the post which was created on 7/19/2010 7:19:56 PM

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


Question: List the distinct names of the instructors, ordered by name.

SELECT DISTINCT name FROM  instructor ORDER BY name

List the distinct names of the instructors , ordered by name .


Question: Please give the names of the races held on the circuits in Spain.

SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Spain'

Please give the names of the races held on the circuits in Spain .

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


Question: What is the year of independence of Brunei?

SELECT IndepYear FROM Country WHERE Name = 'Brunei'

What is the year of independence of Brunei ?


Question: Count the number of different colleges that players who play for Columbus Crew are from.

SELECT count(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team  =  T2.Team_id WHERE T2.Name  =  "Columbus Crew"

Count the number of different colleges that players who play for Columbus Crew are from .

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


Question: Please list the order keys of all the orders made by a customer whose account is in debt.

SELECT T1.o_orderkey FROM orders AS T1 INNER JOIN customer AS T2 ON T1.o_custkey = T2.c_custkey WHERE T2.c_acctbal < 0

Please list the order keys of all the orders made by a customer whose account is in debt .

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


Question: What are the first, middle, and last names of all individuals, ordered by last name?

SELECT individual_first_name ,  individual_middle_name ,  individual_last_name FROM individuals ORDER BY individual_last_name

What are the first , middle , and last names of all individuals , ordered by last name ?

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


Question: What are the id and name of the participants who received score 5 for their sound quality or rhythm tempo?

SELECT T1.id ,  T1.name FROM participants AS T1 JOIN performance_score AS T2 ON T2.participant_id  =  T1.id WHERE T2.voice_sound_quality  =  5 OR T2.rhythm_tempo  =  5

What are the i d and name of the participants who received score 5 for their sound quality or rhythm tempo ?

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


Question: How many active users are there in the event?

SELECT COUNT(app_id) FROM app_events WHERE is_active = 1

How many active users are there in the event ?


Question: In Shakespeare's works before 1600, list down the title of the tragic story he had written that involved a character named "Tybalt".

SELECT DISTINCT T1.title FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id INNER JOIN paragraphs AS T3 ON T2.id = T3.chapter_id INNER JOIN characters AS T4 ON T3.character_id = T4.id WHERE T1.DATE < 1600 AND T1.GenreType = 'Tragedy' AND T4.CharName = 'Tybalt'

In Shakespeare 's works before 1600 , list down the title of the tragic story he had written that involved a character named " Tybalt " .

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


Question: How many Yelp_Business under the category of "Food" are good for kids?

SELECT COUNT(T3.stars) FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id INNER JOIN Business_Attributes AS T4 ON T3.business_id = T4.business_id INNER JOIN Attributes AS T5 ON T4.attribute_id = T5.attribute_id WHERE T1.category_name LIKE 'Food' AND T5.attribute_name LIKE 'Good for Kids' AND T4.attribute_value LIKE 'TRUE'

How many Yelp_Business under the category of " Food " are good for kids ?

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


Question: Find the room number of the rooms which can sit 50 to 100 students and their buildings.

SELECT building ,  room_number FROM classroom WHERE capacity BETWEEN 50 AND 100

Find the room number of the rooms which can sit 50 to 100 students and their buildings .

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


Question: Among films with store ID of 2, list the title of films with the highest rental rate.

SELECT T1.title FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id WHERE T2.store_id = 2 ORDER BY rental_rate DESC LIMIT 1

Among films with store ID of 2 , list the title of films with the highest rental rate .

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


Question: Calculate the difference in the average age of elderly and middle-aged clients in the Northeast region.

SELECT (CAST(SUM(CASE WHEN T1.age BETWEEN 35 AND 55 THEN T1.age ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.age BETWEEN 35 AND 55 THEN 1 ELSE 0 END)) - (CAST(SUM(CASE WHEN T1.age > 65 THEN T1.age ELSE 0 END) AS REAL) / SUM(CASE WHEN T1.age > 65 THEN 1 ELSE 0 END)) AS difference FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN state AS T3 ON T2.state_abbrev = T3.StateCode WHERE T3.Region = 'Northeast'

Calculate the difference in the average age of elderly and middle - aged clients in the Northeast region .

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


Question: What is the linearized sequenced of API calls of the method whose solution path is "mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln"?

SELECT T2.ApiCalls FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'mauriciodeamorim_tdd.encontro2Tdd.Encontro2.sln'

What is the linearized sequenced of API calls of the method whose solution path is " mauriciodeamorim_tdd.encontro2\Tdd . Encontro2.sln " ?

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


Question: Provide the titles, main characters, and associated songs of the movies directed by Wolfgang Reitherman in 1977.

SELECT T1.movie_title, T2.hero, T2.song FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title INNER JOIN director AS T3 ON T1.movie_title = T3.name WHERE T3.director = 'Wolfgang Reitherman' AND SUBSTR(T1.release_date, LENGTH(T1.release_date) - 3, LENGTH(T1.release_date)) = '1977'

Provide the titles , main characters , and associated songs of the movies directed by Wolfgang Reitherman in 1977 .

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


Question: How many resources with a unit price less than 15 are not technology type? List them by vendor id

SELECT vendorid FROM resources WHERE project_resource_type = 'Technology' AND item_unit_price <= 15

How many resources with a unit price less than 15 are not technology type ? List them by vendor i d

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


Question: Who is the company's highest-paid single female employee? Include her full name and job title.

SELECT T3.FirstName, T3.MiddleName, T3.LastName, T1.JobTitle FROM Employee AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Person AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE T1.MaritalStatus = 'S' AND T1.Gender = 'F' ORDER BY T2.Rate DESC LIMIT 1

Who is the company 's highest - paid single female employee ? Include her full name and job title .

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


Question: Please list trips id started on the hottest day.

SELECT T1.id FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code ORDER BY T2.max_temperature_f DESC LIMIT 1

Please list trips i d started on the hottest day .

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


Question: How many of the busineses are in Casa Grande?

SELECT COUNT(city) FROM Business WHERE city LIKE 'Casa Grande'

How many of the busineses are in Casa Grande ?


Question: How many documents correspond with each project id?

SELECT project_id ,  count(*) FROM Documents GROUP BY project_id

How many documents correspond with each project i d ?

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


Question: Name the country with fastest growth in adjusted net national income in 1980 and state the currency used by this country.

SELECT T2.countryname, T1.CurrencyUnit FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.IndicatorName = 'Adjusted net national income (annual % growth)' AND T2.Year = 1980 AND T1.CurrencyUnit != '' ORDER BY T2.Value DESC LIMIT 1

Name the country with fastest growth in adjusted net national income in 1980 and state the currency used by this country .

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


Question: What are the names of both paintings and sculptures created between 1900 and 1950?

SELECT title FROM paintings WHERE YEAR BETWEEN 1900 AND 1950 UNION SELECT title FROM sculptures WHERE YEAR BETWEEN 1900 AND 1950

What are the names of both paintings and sculptures created between 1900 and 1950 ?

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


Question: Name all goalies with 10 or more empty net goals. Name the players and season where he played.

SELECT T1.firstName, T1.lastName , T2.year FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.ENG >= 10

Name all goalies with 10 or more empty net goals . Name the players and season where he played .

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


Question: Show all dates of transactions whose type code is "SALE".

SELECT date_of_transaction FROM TRANSACTIONS WHERE transaction_type_code  =  "SALE"

Show all dates of transactions whose type code is " SALE " .

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


Question: Show all card type codes and the number of customers holding cards in each type.

SELECT card_type_code ,  count(DISTINCT customer_id) FROM Customers_cards GROUP BY card_type_code

Show all card type codes and the number of customers holding cards in each type .

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


Question: Count the number of chip model that do not have wifi.

SELECT count(*) FROM chip_model WHERE wifi  =  'No'

Count the number of chip model that do not have wifi .

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


Question: Find the distinct Advisor of students who have treasurer votes in the spring election cycle.

SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Treasurer_Vote WHERE T2.Election_Cycle  =  "Spring"

Find the distinct Advisor of students who have treasurer votes in the spring election cycle .

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


Question: What are the names and ids of stations that had more than 14 bikes available on average or were installed in December?

SELECT T1.name ,  T1.id FROM station AS T1 JOIN status AS T2 ON T1.id  =  T2.station_id GROUP BY T2.station_id HAVING avg(T2.bikes_available)  >  14 UNION SELECT name ,  id FROM station WHERE installation_date LIKE "12/%"

What are the names and ids of stations that had more than 14 bikes available on average or were installed in December ?

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


Question: Is the molecule with the most double bonds carcinogenic?

SELECT T1.label FROM molecule AS T1 INNER JOIN ( SELECT T.molecule_id, COUNT(T.bond_type) FROM bond AS T WHERE T.bond_type = '=' GROUP BY T.molecule_id ORDER BY COUNT(T.bond_type) DESC LIMIT 1 ) AS T2 ON T1.molecule_id = T2.molecule_id

Is the molecule with the most double bonds carcinogenic ?


Question: Find the name of all the clubs at "AKW".

SELECT clubname FROM club WHERE clublocation  =  "AKW"

Find the name of all the clubs at " AKW " .

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


Question: List the names of all the channels owned by either CCTV or HBS

SELECT name FROM channel WHERE OWNER  =  'CCTV' OR OWNER  =  'HBS'

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


Question: How many inspections done in 2010 had serious food safety issue?

SELECT COUNT(T2.inspection_id) FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE strftime('%Y', T2.inspection_date) = '2010' AND T1.risk_level = 3

How many inspections done in 2010 had serious food safety issue ?

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


Question: Return the name of the category to which the film 'HUNGER ROOF' belongs.

SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id  =  T2.category_id JOIN film AS T3 ON T2.film_id  =  T3.film_id WHERE T3.title  =  'HUNGER ROOF'

Return the name of the category to which the film ' HUNGER ROOF ' belongs .

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


Question: List all the model names sorted by their launch year.

SELECT model_name FROM chip_model ORDER BY launch_year

List all the model names sorted by their launch year .

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


Question: List all the deceased goalies and the teams he had played whose birth country was in Canada.

SELECT DISTINCT firstName, lastName, T3.name FROM Goalies AS T1 INNER JOIN Master AS T2 ON T2.playerID = T1.playerID INNER JOIN Teams AS T3 ON T1.lgID = T3.lgID WHERE T2.birthCountry = 'Canada' AND T2.deathYear IS NOT NULL AND T2.pos = 'G'

List all the deceased goalies and the teams he had played whose birth country was in Canada .

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


Question: What was the registration date for the user whose login name is ratione?

SELECT date_registered FROM Users WHERE login_name  =  'ratione';

What was the registration date for the user whose login name is ratione ?

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


Question: Among films with a rental rate of 4.99, what is the total number of films starred by Bob Fawcett?

SELECT COUNT(T1.actor_id) FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.rental_rate = 4.99 AND T1.first_name = 'Bob' AND T1.last_name = 'Fawcett'

Among films with a rental rate of 4.99 , what is the total number of films starred by Bob Fawcett ?

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


Question: What are the names of actors and the musicals that they are in?

SELECT T1.Name ,  T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID  =  T2.Musical_ID

What are the names of actors and the musicals that they are in ?

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


Question: Name the Chief Executive Officer and when he/she was hired.

SELECT T1.fname, T1.lname, T1.hire_date FROM employee AS T1 INNER JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T2.job_desc = 'Chief Financial Officier'

Name the Chief Executive Officer and when he / she was hired .

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


Question: What is the average and total capacity for all dorms who are of gender X?

SELECT avg(student_capacity) ,  sum(student_capacity) FROM dorm WHERE gender  =  'X'

What is the average and total capacity for all dorms who are of gender X ?

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


Question: List the heat, name, and nation for all the cyclists.

SELECT heat ,  name ,  nation FROM cyclist

List the heat , name , and nation for all the cyclists .

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


Question: In businesses with a category of "DJs", how many businesses are rated less than 5?

SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T3.category_name = 'DJs' AND T1.stars < 5

In businesses with a category of " DJs " , how many businesses are rated less than 5 ?

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


Question: Find the names of courses taught by the tutor who has personal name "Julio".

SELECT T2.course_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id  =  T2.author_id WHERE T1.personal_name  =  "Julio"

Find the names of courses taught by the tutor who has personal name " Julio " .

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


Question: What is the code of the prevalent disease with the highest occurrences?

SELECT T2.code FROM all_prevalences AS T1 INNER JOIN conditions AS T2 ON T1.ITEM = T2.DESCRIPTION ORDER BY T1.OCCURRENCES DESC LIMIT 1

What is the code of the prevalent disease with the highest occurrences ?

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


Question: What is the title and location of the oldest painting ?

select title ,  location from paintings order by year limit 1

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


Question: List players' first name and last name who received salary from team Washington Nationals in both 2005 and 2007.

SELECT T2.name_first ,  T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals'

List players ' first name and last name who received salary from team Washington Nationals in both 2005 and 2007 .

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


Question: Write all comments made on the post titled 'How does gentle boosting differ from AdaBoost?'

SELECT T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.Title = 'How does gentle boosting differ from AdaBoost?'

Write all comments made on the post titled ' How does gentle boosting differ from AdaBoost ? '

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


Question: What is the race class with most number of races.

SELECT CLASS FROM race GROUP BY CLASS ORDER BY count(*) DESC LIMIT 1

What is the race class with most number of races .


Question: Name the city of the station that trip ID 585842 borrowed a bike and indicate when that station was first installed.

SELECT T2.city, T2.installation_date FROM trip AS T1 INNER JOIN station AS T2 ON T2.name = T1.start_station_name WHERE T1.id = 585842

Name the city of the station that trip ID 585842 borrowed a bike and indicate when that station was first installed .

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


Question: Calculate the average usage of each bike in the third quarter of year 2013. Find the average wind direction within the same period.

SELECT AVG(T1.duration), AVG(T2.wind_dir_degrees) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE SUBSTR(CAST(T2.date AS TEXT), 1, INSTR(T2.date, '/') - 1) IN ('7', '8', '9') AND SUBSTR(CAST(T2.date AS TEXT), -4) = '2013'

Calculate the average usage of each bike in the third quarter of year 2013 . Find the average wind direction within the same period .

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


Question: How many regions are affected?

SELECT count(DISTINCT region_id) FROM affected_region


Question: Which parts have more than 2 faults? Show the part name and id.

SELECT T1.part_name ,  T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id  =  T2.part_id GROUP BY T1.part_id HAVING count(*)  >  2

Which parts have more than 2 faults ? Show the part name and i d.

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


Question: List all the policy types used by the customer enrolled in the most policies.

SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id JOIN available_policies AS t3 ON t2.policy_id  =  t3.policy_id WHERE t1.customer_name  =  (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1)

List all the policy types used by the customer enrolled in the most policies .

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


Question: What are the names of workshop groups in which services with product name "film" are performed?

SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID WHERE T2.Product_Name  =  "film"

What are the names of workshop groups in which services with product name " film " are performed ?

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


Question: What are the distinct stage presence scores for all the songs that are in language 'English' ?

SELECT DISTINCT T2.stage_presence FROM songs AS T1 JOIN performance_score AS T2 ON T1.id  =  T2.songs_id WHERE T1.language  =  'English'

What are the distinct stage presence scores for all the songs that are in language ' English ' ?

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


Question: List the total scores of body builders in ascending order.

SELECT Total FROM body_builder ORDER BY Total ASC

List the total scores of body builders in ascending order .

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


Question: What are the total products value shipped to Brazil by Speedy Express Company?

SELECT SUM(T2.Quantity * T2.UnitPrice) FROM Orders AS T1 INNER JOIN `Order Details` AS T2 ON T1.OrderID = T2.OrderID INNER JOIN Shippers AS T3 ON T1.ShipVia = T3.ShipperID WHERE T3.CompanyName = 'Speedy Express' AND T1.ShipCountry = 'Brazil'

What are the total products value shipped to Brazil by Speedy Express Company ?

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


Question: Which product allows the company to make the highest profit on a single item among those that are the fastest to manufacture? Indicate the rating of the product if there any.

SELECT T1.Name, T2.Rating FROM Product AS T1 INNER JOIN ProductReview AS T2 ON T1.ProductID = T2.ProductID WHERE T1.DaysToManufacture = ( SELECT DaysToManufacture FROM Product ORDER BY DaysToManufacture LIMIT 1 ) ORDER BY T1.ListPrice - T1.StandardCost DESC LIMIT 1

Which product allows the company to make the highest profit on a single item among those that are the fastest to manufacture ? Indicate the rating of the product if there any .

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


Question: Give the alignment and superpowers of the superhero named Atom IV.

SELECT T4.alignment, T3.power_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T3.id = T2.power_id INNER JOIN alignment AS T4 ON T1.alignment_id = T4.id WHERE T1.superhero_name = 'Atom IV'

Give the alignment and superpowers of the superhero named Atom IV .

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


Question: Provide the badge names received in 2011 for the user whose location is in the North Pole.

SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE STRFTIME('%Y', T2.Date) = '2011' AND T1.Location = 'North Pole'

Provide the badge names received in 2011 for the user whose location is in the North Pole .

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


Question: Which team had more than one player who grabbed more than 600 rebounds in 2011? Give the full name of the team.

SELECT T1.tmID FROM teams AS T1 INNER JOIN players_teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year = 2011 AND T2.rebounds > 600

Which team had more than one player who grabbed more than 600 rebounds in 2011 ? Give the full name of the team .

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