Question: Among the businesses in Tempe, list the attribute of the business with a medium review count.

SELECT DISTINCT T3.attribute_name FROM Business AS T1 INNER JOIN Business_Attributes AS T2 ON T1.business_id = T2.business_id INNER JOIN Attributes AS T3 ON T2.attribute_id = T3.attribute_id WHERE T1.city = 'Tempe' AND T1.review_count = 'Medium'

Among the businesses in Tempe , list the attribute of the business with a medium review count .

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


Question: For the solution of the most 'sw' methods, what is its path?

SELECT DISTINCT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Lang = 'sw'

For the solution of the most ' sw ' methods , what is its path ?

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


Question: Among the books that were published by Scholastic, how many were written by J.K Rowling?

SELECT COUNT(*) FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id INNER JOIN book_author AS T3 ON T3.book_id = T1.book_id INNER JOIN author AS T4 ON T4.author_id = T3.author_id WHERE T2.publisher_name = 'Scholastic' AND T4.author_name = 'J.K. Rowling'

Among the books that were published by Scholastic , how many were written by J.K Rowling ?

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


Question: What is the fax number for the district with the most number of crimes in January, 2018?

SELECT T1.fax FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T2.date LIKE '%1/2018%' GROUP BY T2.district_no ORDER BY COUNT(case_number) DESC LIMIT 1

What is the fax number for the district with the most number of crimes in January , 2018 ?

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


Question: How many reviews of businesses that are still open received an uber rating on the funny vote?

SELECT COUNT(T1.business_id) FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T2.review_votes_funny = 'Uber' AND T1.active = 'true'

How many reviews of businesses that are still open received an uber rating on the funny vote ?

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


Question: Write down the author name, affiliation, jounal short name and full name of the paper "Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats".

SELECT T2.Name, T2.Affiliation, T3.ShortName, T3.FullName FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Journal AS T3 ON T1.JournalId = T3.Id WHERE T1.Title = 'Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats'

Write down the author name , affiliation , jounal short name and full name of the paper " Decreased Saliva Secretion and Down - Regulation of AQP5 in Submandibular Gland in Irradiated Rats " .

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


Question: What are the detail and id of the teacher who teaches the largest number of courses?

SELECT T1.teacher_details ,  T1.teacher_id FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id  =  T2.teacher_id GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 1

What are the detail and i d of the teacher who teaches the largest number of courses ?

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


Question: What are the names of directors who directed movies with 5 star rating? Also return the title of these movies.

SELECT T1.director ,  T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID  =  T2.mID WHERE T2.stars  =  5

What are the names of directors who directed movies with 5 star rating ? Also return the title of these movies .

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


Question: Who is the user who created the list titled 'Sound and Vision'? Was he a subcriber when he created the list?

SELECT T1.user_id, T1.user_subscriber FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_title LIKE 'Sound and Vision'

Who is the user who created the list titled ' Sound and Vision ' ? Was he a subcriber when he created the list ?

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


Question: Calculate the average attribute value of all neutral superheroes.

SELECT AVG(T1.attribute_value) FROM hero_attribute AS T1 INNER JOIN superhero AS T2 ON T1.hero_id = T2.id INNER JOIN alignment AS T3 ON T2.alignment_id = T3.id WHERE T3.alignment = 'Neutral'

Calculate the average attribute value of all neutral superheroes .

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


Question: Please list the titles of all the books that Lucas Wyldbore has ordered.

SELECT T1.title FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id INNER JOIN customer AS T4 ON T4.customer_id = T3.customer_id WHERE T4.first_name = 'Lucas' AND T4.last_name = 'Wyldbore'

Please list the titles of all the books that Lucas Wyldbore has ordered .

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


Question: How many meeting events were held in 2020?

SELECT COUNT(event_id) FROM event WHERE type = 'Meeting' AND SUBSTR(event_date, 1, 4) = '2020'

How many meeting events were held in 2020 ?


Question: What are the keywords of the episode "Shield"?

SELECT T2.keyword FROM Episode AS T1 INNER JOIN Keyword AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'Shield'

What are the keywords of the episode " Shield " ?


Question: Which university is in Los Angeles county and opened after 1950?

SELECT campus FROM campuses WHERE county  =  "Los Angeles" AND YEAR  >  1950

Which university is in Los Angeles county and opened after 1950 ?

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


Question: How old are the students with allergies to food and animal types on average?

SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  "food" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  "animal")

How old are the students with allergies to food and animal types on average ?

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


Question: Show the colleges that have both authors with submission score larger than 90 and authors with submission score smaller than 80.

SELECT College FROM submission WHERE Scores  >  90 INTERSECT SELECT College FROM submission WHERE Scores  <  80

Show the colleges that have both authors with submission score larger than 90 and authors with submission score smaller than 80 .

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


Question: Which building has the largest number of company offices? Give me the building name.

SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1

Which building has the largest number of company offices ? Give me the building name .

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


Question: What are the names of wrestlers days held less than 100?

SELECT Name FROM wrestler WHERE Days_held  <  100

What are the names of wrestlers days held less than 100 ?

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


Question: Please provide top three sets that don't appear in Magic: The Gathering Online, along with their names in in alphabetical order.

SELECT name FROM sets WHERE mtgoCode IS NULL ORDER BY name LIMIT 3

Please provide top three sets that do n't appear in Magic : The Gathering Online , along with their names in in alphabetical order .

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


Question: Find the distinct majors of students who have treasurer votes.

SELECT DISTINCT T1.Major FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Treasurer_Vote

Find the distinct majors of students who have treasurer votes .

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


Question: On 10/20/2014, what is the duration of the fastest trip which started from the station with latitude and longitudes of 37.789625 and -122.400811, respectively? Indicate the bike id.

SELECT MIN(T2.duration), T2.bike_id FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name WHERE T2.start_date LIKE '10/20/2014%' AND T1.lat = 37.789625 AND T1.long = -122.400811

On 10/20/2014 , what is the duration of the fastest trip which started from the station with latitude and longitudes of 37.789625 and -122.400811 , respectively ? Indicate the bike i d.

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


Question: What are the different hangar locations and how many pilots correspond to each. Also, what are their average ages?

SELECT count(T1.pilot_name) ,  avg(T1.age) ,  T2.location FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name  =  T2.plane_name GROUP BY T2.location

What are the different hangar locations and how many pilots correspond to each . Also , what are their average ages ?

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


Question: What is the total number of words in page containing pair of word id "100" and "317"?

SELECT words FROM langs WHERE lid = ( SELECT lid FROM biwords WHERE w1st = 100 AND w2nd = 317 )

What is the total number of words in page containing pair of word i d " 100 " and " 317 " ?

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


Question: Show headquarters with at least two companies in the banking industry.

SELECT headquarters FROM company WHERE main_industry  =  'Banking' GROUP BY headquarters HAVING count(*)  >=  2

Show headquarters with at least two companies in the banking industry .

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


Question: Calculate the number of international students of University of Wisconsin-Madison in 2013.

SELECT CAST(T1.num_students * T1.pct_international_students AS REAL) / 100 FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2013 AND T2.university_name = 'University of Wisconsin-Madison'

Calculate the number of international students of University of Wisconsin - Madison in 2013 .

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


Question: What are the ids and titles for papers that have never been cited?

SELECT paper_id ,  title FROM Paper WHERE paper_id NOT IN (SELECT cited_paper_id FROM Citation)

What are the ids and titles for papers that have never been cited ?

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


Question: How many payments are there for each invoice?

SELECT invoice_id ,  count(*) FROM Payments GROUP BY invoice_id

How many payments are there for each invoice ?


Question: What is the percentage of furniture orders that were shipped through first class in 2013 at the Central superstore?

SELECT CAST(SUM(CASE  WHEN T1.`Ship Mode` = 'First Class' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM central_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Category = 'Furniture' AND STRFTIME('%Y', T1.`Ship Date`) = '2013'

What is the percentage of furniture orders that were shipped through first class in 2013 at the Central superstore ?

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


Question: Is SuperSport Park located at Centurion?

SELECT T2.City_Name FROM Venue AS T1 INNER JOIN City AS T2 ON T1.City_Id = T2.City_Id WHERE T1.Venue_Name LIKE 'St George%'

Is SuperSport Park located at Centurion ?


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

SELECT customer_id FROM customers WHERE customer_name LIKE "%Diana%"

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


Question: Find the name of the user who gave the highest rating.

SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id  =  T2.u_id ORDER BY T2.rating DESC LIMIT 1

Find the name of the user who gave the highest rating .

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


Question: What is the alphabetically ordered list of all distinct medications?

SELECT DISTINCT name FROM medication ORDER BY name

What is the alphabetically ordered list of all distinct medications ?


Question: What is the name, account type, and account balance corresponding to the customer with the highest credit score?

SELECT cust_name ,  acc_type ,  acc_bal FROM customer ORDER BY credit_score DESC LIMIT 1

What is the name , account type , and account balance corresponding to the customer with the highest credit score ?

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


Question: How many students taking a bachelor's degree received an A in all of the courses that they took?

SELECT COUNT(T2.student_id) FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id WHERE T2.grade = 'A' AND T1.type = 'UG'

How many students taking a bachelor 's degree received an A in all of the courses that they took ?

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


Question: Find the number of scientists involved for each project name.

SELECT count(*) ,  T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project GROUP BY T1.name

Find the number of scientists involved for each project name .


Question: Return the name of the player who earns the most money.

SELECT Name FROM player ORDER BY Earnings DESC LIMIT 1

Return the name of the player who earns the most money .

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


Question: Find the first names of the teachers that teach first grade.

SELECT DISTINCT T2.firstname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE grade  =  1

Find the first names of the teachers that teach first grade .

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


Question: List the forenames of all distinct drivers in alphabetical order?

SELECT DISTINCT forename FROM drivers ORDER BY forename ASC

List the forenames of all distinct drivers in alphabetical order ?


Question: What is the course description and number of credits for QM-261?

SELECT crs_credit ,  crs_description FROM course WHERE crs_code  =  'QM-261'

What is the course description and number of credits for QM-261 ?

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


Question: What is the title of the page on which the word "grec" has an occurrence of 52 times.

SELECT T3.title FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'grec' AND T2.occurrences = 52

What is the title of the page on which the word " grec " has an occurrence of 52 times .

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


Question: What is the average credit score for customers who have taken a loan?

SELECT avg(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan)

What is the average credit score for customers who have taken a loan ?

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


Question: What is the miles per square hour of the cheapest car produced by the USA?

SELECT T4.acceleration FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country INNER JOIN data AS T4 ON T4.ID = T1.ID WHERE T3.country = 'USA' ORDER BY T1.price ASC LIMIT 1

What is the miles per square hour of the cheapest car produced by the USA ?

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


Question: How many calories on average does a recipe that comes from "Produce for Better Health Foundation and 5 a Day" contain?

SELECT AVG(T2.calories) FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.source = 'Produce for Better Health Foundation and 5 a Day'

How many calories on average does a recipe that comes from " Produce for Better Health Foundation and 5 a Day " contain ?

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


Question: What is the most common first name?

SELECT person_name FROM person GROUP BY person_name ORDER BY COUNT(person_name) DESC LIMIT 1


Question: What is the id of the organization with the maximum number of outcomes and how many outcomes are there?

SELECT T1.organisation_id ,  count(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id  =  T2.project_id GROUP BY T1.organisation_id ORDER BY count(*) DESC LIMIT 1

What is the i d of the organization with the maximum number of outcomes and how many outcomes are there ?

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


Question: Find distinct cities of address of students?

SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id JOIN students AS T3 ON T2.person_id = T3.student_id

Find distinct cities of address of students ?

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


Question: what are the event details of the services that have the type code 'Marriage'?

SELECT T1.event_details FROM EVENTS AS T1 JOIN Services AS T2 ON T1.Service_ID  =  T2.Service_ID WHERE T2.Service_Type_Code  =  'Marriage'

what are the event details of the services that have the type code ' Marriage ' ?

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


Question: What are the foiled cards that are incredibly powerful when paired with non foiled cards? List the IDs.

SELECT id FROM cards WHERE cardKingdomId IS NOT NULL AND cardKingdomFoilId IS NOT NULL

What are the foiled cards that are incredibly powerful when paired with non foiled cards ? List the IDs .

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


Question: Give the distinct names of wines made before 2000 or after 2010.

SELECT DISTINCT Name FROM WINE WHERE YEAR  <  2000 OR YEAR  >  2010

Give the distinct names of wines made before 2000 or after 2010 .

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


Question: In the state where Lisa Murkowski is the representative, how many cities have zero employees?

SELECT COUNT(T3.city) FROM congress AS T1 INNER JOIN state AS T2 ON T1.abbreviation = T2.abbreviation INNER JOIN zip_data AS T3 ON T2.abbreviation = T3.state WHERE T1.first_name = 'Murkowski' AND T1.last_name = 'Lisa' AND T3.employees = 0

In the state where Lisa Murkowski is the representative , how many cities have zero employees ?

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


Question: which country did participated in the most number of Tournament competitions?

SELECT country FROM competition WHERE competition_type  =  'Tournament' GROUP BY country ORDER BY count(*) DESC LIMIT 1

which country did participated in the most number of Tournament competitions ?

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


Question: Please list the official full names of all the current legislators who were once a senator during his or her terms.

SELECT T2.official_full_name FROM `current-terms` AS T1 INNER JOIN current AS T2 ON T2.bioguide_id = T1.bioguide WHERE T1.state_rank IS NOT NULL

Please list the official full names of all the current legislators who were once a senator during his or her terms .

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


Question: What are the employee ids of employees who report to Payam, and what are their salaries?

SELECT employee_id ,  salary FROM employees WHERE manager_id  =  (SELECT employee_id FROM employees WHERE first_name  =  'Payam' )

What are the employee ids of employees who report to Payam , and what are their salaries ?

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


Question: How many headphones cost more than 200 for each headphone class?

SELECT count(*) ,  CLASS FROM headphone WHERE price  >  200 GROUP BY CLASS

How many headphones cost more than 200 for each headphone class ?

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


Question: What are the 10 most cited papers, and how many citations did each have?

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

What are the 10 most cited papers , and how many citations did each have ?

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


Question: List the names of all routes in alphabetic order.

SELECT route_name FROM Delivery_Routes ORDER BY route_name

List the names of all routes in alphabetic order .


Question: What is the name of the publisher who published Agatha Christie's first book?

SELECT T4.publisher_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id INNER JOIN publisher AS T4 ON T4.publisher_id = T1.publisher_id WHERE T3.author_name = 'Agatha Christie' ORDER BY T1.publication_date ASC LIMIT 1

What is the name of the publisher who published Agatha Christie 's first book ?

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


Question: How many more times does the first word in the biwords pair "àbac-xinès" occur than the biwords pair itself?

SELECT occurrences - ( SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'àbac' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'xinès' ) ) AS CALUS FROM words WHERE word = 'àbac'

How many more times does the first word in the biwords pair " àbac - xinès " occur than the biwords pair itself ?

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


Question: For all cards illustrated by Jim Pavelec. and describe the text of the ruling of these cards. Do these cards have missing or degraded properties and values.

SELECT T2.text , CASE WHEN T1.hasContentWarning = 1 THEN 'YES' ELSE 'NO' END FROM cards AS T1 INNER JOIN rulings AS T2 ON T2.uuid = T1.uuid WHERE T1.artist = 'Jim Pavelec'

For all cards illustrated by Jim Pavelec . and describe the text of the ruling of these cards . Do these cards have missing or degraded properties and values .

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


Question: Describe the capital city and languages used in the country with the shortest life expectancy.

SELECT T1.Capital, T2.Language FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode INNER JOIN City AS T3 ON T1.Code = T3.CountryCode ORDER BY T1.LifeExpectancy LIMIT 1

Describe the capital city and languages used in the country with the shortest life expectancy .

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


Question: Show the names of members that have a rank in round higher than 3.

SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID  =  T2.Member_ID WHERE T2.Rank_in_Round  >  3

Show the names of members that have a rank in round higher than 3 .

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


Question: What is the price of the car ID 15?

SELECT T2.price FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.ID = 15


Question: Provide the country ID of East London.

SELECT Country_id FROM City WHERE City_Name = 'East London'

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


Question: Please list the departments that David Bradley used to belong to.

SELECT T2.DepartmentID FROM Person AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Department AS T3 ON T2.DepartmentID = T3.DepartmentID WHERE T1.FirstName = 'David' AND T1.LastName = 'Bradley'

Please list the departments that David Bradley used to belong to .

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


Question: Which set is not available outside of the United States and has foil cards with Japanese writing on them? Please include the set ID in your response.

SELECT T1.name, T1.id FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language = 'Japanese' AND T1.isFoilOnly = 1 AND T1.isForeignOnly = 0

Which set is not available outside of the United States and has foil cards with Japanese writing on them ? Please include the set ID in your response .

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


Question: How many characteristics does the product named "sesame" have?

SELECT count(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id  =  t2.product_id WHERE t1.product_name  =  "sesame"

How many characteristics does the product named " sesame " have ?

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


Question: On what street in Tuolumne County is Good Heavens restaurant located?

SELECT T1.street_name FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant INNER JOIN geographic AS T3 ON T2.city = T3.city WHERE T2.label = 'good heavens' AND T3.county = 'tuolumne county'

On what street in Tuolumne County is Good Heavens restaurant located ?

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


Question: What is the "active to date" of the latest contact channel used by "Tillman Ernser"?

SELECT max(t2.active_to_date) FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.customer_name  =  "Tillman Ernser"

What is the " active to date " of the latest contact channel used by " Tillman Ernser " ?

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


Question: Find the name of all the cities and states.

SELECT town_city FROM addresses UNION SELECT state_province_county FROM addresses

Find the name of all the cities and states .


Question: How many universities are in Illinois or Ohio?

SELECT count(*) FROM University WHERE state  =  'Illinois' OR state  =  'Ohio'

How many universities are in Illinois or Ohio ?


Question: How many restaurants' owners are in California?

SELECT COUNT(owner_state) FROM businesses WHERE owner_state = 'CA'

How many restaurants ' owners are in California ?


Question: What is the total number of schools with a mailing city in Hickman belonging to the charter number 00D4?

SELECT COUNT(*) FROM schools WHERE CharterNum = '00D4' AND MailCity = 'Hickman'

What is the total number of schools with a mailing city in Hickman belonging to the charter number 00D4 ?

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


Question: How many total items were requested for the Onslow Co School District urban metro school projects?

SELECT SUM(T1.item_quantity) FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.school_metro = 'urban' AND T2.school_district = 'Onslow Co School District'

How many total items were requested for the Onslow Co School District urban metro school projects ?

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


Question: Find the name of scientists who are not assigned to any project.

SELECT Name FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)

Find the name of scientists who are not assigned to any project .

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


Question: How many pairs of positively correlated genes are both non-essential?

SELECT COUNT(T2.GeneID2) FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 WHERE T2.Expression_Corr > 0 AND T1.Essential = 'Non-Essential'

How many pairs of positively correlated genes are both non - essential ?

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


Question: Show ids, first names, last names, and phones for all customers.

SELECT customer_id ,  customer_first_name ,  customer_last_name ,  customer_phone FROM Customers

Show ids , first names , last names , and phones for all customers .


Question: What is the occupation and response of female customers within the number of inhabitants range of 20 to 25?

SELECT DISTINCT T1.OCCUPATION, T2.RESPONSE FROM Customers AS T1 INNER JOIN Mailings1_2 AS T2 ON T1.ID = T2.REFID INNER JOIN Demog AS T3 ON T1.GEOID = T3.GEOID WHERE T1.SEX = 'Female' AND T3.INHABITANTS_K >= 20 AND T3.INHABITANTS_K <= 25

What is the occupation and response of female customers within the number of inhabitants range of 20 to 25 ?

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


Question: From which country is the company "Drachenblut Delikatessen" from?

SELECT Country FROM Customers WHERE CompanyName = 'Drachenblut Delikatessen'

From which country is the company " Drachenblut Delikatessen " from ?

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


Question: What is the average price of products with manufacturer codes equal to 2?

SELECT avg(price) FROM products WHERE Manufacturer  =  2

What is the average price of products with manufacturer codes equal to 2 ?

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


Question: List crimes that the FBI has classified as Drug Abuse by their report number.

SELECT T2.report_no FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no WHERE T1.title = 'Drug Abuse'

List crimes that the FBI has classified as Drug Abuse by their report number .

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


Question: List the date, theme and sales of the journal which did not have any of the listed editors serving on committee.

SELECT date ,  theme ,  sales FROM journal EXCEPT SELECT T1.date ,  T1.theme ,  T1.sales FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID  =  T2.journal_ID

List the date , theme and sales of the journal which did not have any of the listed editors serving on committee .

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


Question: What is the area of Egypt as a percentage of Asia?

SELECT T2.Percentage FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent WHERE T3.Name = 'Asia' AND T1.Name = 'Egypt'

What is the area of Egypt as a percentage of Asia ?

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


Question: What are the names of all the players who received a yes during tryouts, and also what are the names of their colleges?

SELECT T1.pName ,  T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'

What are the names of all the players who received a yes during tryouts , and also what are the names of their colleges ?

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


Question: What is the name of the department in the Building Mergenthaler?

SELECT DName FROM DEPARTMENT WHERE Building  =  "Mergenthaler"

What is the name of the department in the Building Mergenthaler ?

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


Question: Find the last name of the latest contact individual of the organization "Labour Party".

SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id  =  t2.organization_id JOIN individuals AS t3 ON t2.individual_id  =  t3.individual_id WHERE t1.organization_name  =  "Labour Party" ORDER BY t2.date_contact_to DESC LIMIT 1

Find the last name of the latest contact individual of the organization " Labour Party " .

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


Question: What is the average rating of Apps falling under the racing genre and what is the percentage ratio of positive sentiment reviews?

SELECT AVG(T1.Rating), CAST(COUNT(CASE WHEN T2.Sentiment = 'Positive' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.Sentiment) FROM playstore AS T1 INNER JOIN user_reviews AS T2 ON T1.App = T2.App WHERE T1.Genres = 'Racing'

What is the average rating of Apps falling under the racing genre and what is the percentage ratio of positive sentiment reviews ?

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


Question: Provide the business entity ID who did not achieved projected yearly sales quota in 2013.

SELECT DISTINCT T1.BusinessEntityID FROM SalesPerson AS T1 INNER JOIN SalesPersonQuotaHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE STRFTIME('%Y', T2.QuotaDate) = '2013' AND T1.SalesQuota < T1.SalesLastYear

Provide the business entity ID who did not achieved projected yearly sales quota in 2013 .

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


Question: How many types of Cake does this bakery sell?

SELECT count(*) FROM goods WHERE food  =  "Cake"

How many types of Cake does this bakery sell ?


Question: Name the person, award, organization, result and credited status of the assistant director in S20-E13.

SELECT T1.person, T1.award, T1.organization, T1.result, T2.credited FROM Award AS T1 INNER JOIN Credit AS T2 ON T2.episode_id = T1.episode_id WHERE T2.episode_id = 'S20-E13' AND T2.role = 'assistant director';

Name the person , award , organization , result and credited status of the assistant director in S20 - E13 .

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


Question: Count the total number of bookings made.

Count the total number of bookings made .


Question: What are the names and dates of races, and the names of the tracks where they are held?

SELECT T1.name ,  T1.date ,  T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id  =  T2.track_id

What are the names and dates of races , and the names of the tracks where they are held ?

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


Question: Which country has the smallest surface area and the most crowded city?

SELECT T2.Name FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code ORDER BY T1.Population DESC, T2.SurfaceArea DESC LIMIT 1

Which country has the smallest surface area and the most crowded city ?

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


Question: What is the minimum, maximum, and average market value for every company?

SELECT min(market_value) ,  max(market_value) ,  avg(market_value) FROM company

What is the minimum , maximum , and average market value for every company ?

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


Question: What is the first name and last name of the student living furthest to Linda Smith?

SELECT T3.Fname ,  T3.Lname FROM Direct_distance AS T1 JOIN Student AS T2 ON T1.city1_code  =  T2.city_code JOIN Student AS T3 ON T1.city2_code  =  T3.city_code WHERE T2.Fname  =  "Linda" AND T2.Lname  =  "Smith" ORDER BY distance DESC LIMIT 1

What is the first name and last name of the student living furthest to Linda Smith ?

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


Question: How much higher in percentage is Ariel Borysiuk's overall rating than that of Paulin Puel?

SELECT (SUM(CASE WHEN t1.player_name = 'Ariel Borysiuk' THEN t2.overall_rating ELSE 0 END) * 1.0 - SUM(CASE WHEN t1.player_name = 'Paulin Puel' THEN t2.overall_rating ELSE 0 END)) * 100 / SUM(CASE WHEN t1.player_name = 'Paulin Puel' THEN t2.overall_rating ELSE 0 END) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id

How much higher in percentage is Ariel Borysiuk 's overall rating than that of Paulin Puel ?

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


Question: What is the total cost for all the orders placed on 5/29/2013?

SELECT SUM(TotalDue) FROM PurchaseOrderHeader WHERE OrderDate LIKE '2013-05-29%'

What is the total cost for all the orders placed on 5/29/2013 ?


Question: Sort the driver names by age in ascending order.

SELECT Driver FROM driver ORDER BY Age ASC

Sort the driver names by age in ascending order .


Question: How many flights do we have?


Question: List all the Catalan language wikipedia page title with less than 10 number of different words in these pages.

SELECT title FROM pages WHERE words < 10

List all the Catalan language wikipedia page title with less than 10 number of different words in these pages .

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


Question: Which country has three different religions-Anglicanism, Christianity, and Roman Catholicism and uses 100% English?

SELECT T2.Country FROM country AS T1 INNER JOIN religion AS T2 ON T1.Code = T2.Country INNER JOIN language AS T3 ON T3.Country = T2.Country WHERE (T2.Name = 'Anglican' OR T2.Name = 'Christian' OR T2.Name = 'Roman Catholic') AND T3.Name = 'English' AND T3.Percentage = 100 GROUP BY T1.Name HAVING COUNT(T1.Name) = 3

Which country has three different religions - Anglicanism , Christianity , and Roman Catholicism and uses 100 % English ?

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


Question: What are the names of managers in ascending order of level?

SELECT Name FROM manager ORDER BY LEVEL ASC

What are the names of managers in ascending order of level ?

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


Question: List the title and author's name of papers published in the 2007 Neoplasia journal.

SELECT T1.Title, T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Journal AS T3 ON T1.JournalId = T3.Id WHERE T3.FullName = 'Neoplasia' AND T1.Year = 2007

List the title and author 's name of papers published in the 2007 Neoplasia journal .

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


Question: Which courses are taught on days MTW?

SELECT CName FROM COURSE WHERE Days  =  "MTW"


Question: What are the rating and average age for sailors who reserved red boats for each rating?

SELECT T1.rating ,  avg(T1.age) FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid  =  T2.sid JOIN Boats AS T3 ON T3.bid  =  T2.bid WHERE T3.color  =  'red' GROUP BY T1.rating

What are the rating and average age for sailors who reserved red boats for each rating ?

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


Question: Report the distinct advisors who have more than 2 students.

SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING count(*)  >  2

Report the distinct advisors who have more than 2 students .

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


Question: Which religion is most prevalent in Asia?

SELECT T4.Name FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country INNER JOIN religion AS T4 ON T4.Country = T3.Code WHERE T1.Name = 'Asia' GROUP BY T4.Name ORDER BY SUM(T4.Percentage) DESC LIMIT 1

Which religion is most prevalent in Asia ?


Question: Who are the ministers who took office after 1961 or before 1959?

SELECT minister FROM party WHERE took_office  >  1961 OR took_office  <  1959

Who are the ministers who took office after 1961 or before 1959 ?

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


Question: Which player had the most game presentatons in 2011 NBA season.

SELECT playerID FROM players_teams WHERE year = 2011 ORDER BY GP DESC LIMIT 1

Which player had the most game presentatons in 2011 NBA season .


Question: what are the details of the cmi masters that have the cross reference code 'Tax'?

SELECT T1.cmi_details FROM Customer_Master_Index AS T1 JOIN CMI_Cross_References AS T2 ON T1.master_customer_id  =  T2.master_customer_id WHERE T2.source_system_code  =  'Tax'

what are the details of the cmi masters that have the cross reference code ' Tax ' ?

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


Question: Provide the app users IDs and time for the event ID of 82.

SELECT T1.app_id, T2.timestamp FROM app_events AS T1 INNER JOIN events AS T2 ON T2.event_id = T1.event_id WHERE T2.event_id = 82

Provide the app users IDs and time for the event ID of 82 .

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


Question: Show the countries that have managers of age above 50 or below 46.

SELECT Country FROM manager WHERE Age  >  50 OR Age  <  46

Show the countries that have managers of age above 50 or below 46 .

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


Question: How many different instruments does the musician with the last name "Heilo" use?

SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid  =  T2.id WHERE T2.lastname  =  "Heilo"

How many different instruments does the musician with the last name " Heilo " use ?

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


Question: How many crimes were committed at 018XX S KOMENSKY AVEin May 2018?

SELECT SUM(CASE WHEN date LIKE '5/%/2018%' THEN 1 ELSE 0 END) FROM Crime WHERE block = '018XX S KOMENSKY AVE'

How many crimes were committed at 018XX S KOMENSKY AVEin May 2018 ?

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


Question: How many cities are there in Monterey?

SELECT COUNT(DISTINCT city) FROM geographic WHERE region = 'monterey'


Question: Which is the city where most of the 1 star reviews come from?

SELECT T2.city FROM reviews AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.Stars = 1 GROUP BY T2.city ORDER BY COUNT(T2.city) DESC LIMIT 1

Which is the city where most of the 1 star reviews come from ?

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


Question: List all the users with average star less than 3 stars in 2012

SELECT user_id FROM Users WHERE user_yelping_since_year = 2012 AND user_average_stars < 3

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


Question: How much percentage of the film did Mary Keitel perform more than Angela Witherspoon?

SELECT CAST((SUM(IIF(T1.first_name = 'ANGELA' AND T1.last_name = 'WITHERSPOON', 1, 0)) - SUM(IIF(T1.first_name = 'MARY' AND T1.last_name = 'KEITEL', 1, 0))) AS REAL) * 100 / SUM(IIF(T1.first_name = 'MARY' AND T1.last_name = 'KEITEL', 1, 0)) FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id

How much percentage of the film did Mary Keitel perform more than Angela Witherspoon ?

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


Question: Please list the email adresses of the reviewers who have given the lowest rating to the product HL Mountain Pedal.

SELECT T1.EmailAddress FROM ProductReview AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'HL Mountain Pedal' ORDER BY T1.Rating LIMIT 1

Please list the email adresses of the reviewers who have given the lowest rating to the product HL Mountain Pedal .

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


Question: Please list the opening time on Mondays of all the Yelp_Businesses in Anthem that are still running.

SELECT T1.opening_time FROM Business_Hours AS T1 INNER JOIN Days AS T2 ON T1.day_id = T2.day_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id WHERE T2.day_of_week LIKE 'Monday' AND T3.city LIKE 'Anthem' AND T3.active LIKE 'True' GROUP BY T1.opening_time

Please list the opening time on Mondays of all the Yelp_Businesses in Anthem that are still running .

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


Question: Please list any three order numbers that have been shipped using Speedy Express.

SELECT T1.OrderID FROM Orders AS T1 INNER JOIN Shippers AS T2 ON T1.ShipVia = T2.ShipperID WHERE T2.CompanyName = 'Speedy Express' LIMIT 3

Please list any three order numbers that have been shipped using Speedy Express .

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


Question: What is the publisher's name of Blue Beetle II?

SELECT T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.superhero_name = 'Blue Beetle II'

What is the publisher 's name of Blue Beetle II ?

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


Question: Please list the names of all the players that are over 90 kg and are right-shooted.

SELECT T1.PlayerName FROM PlayerInfo AS T1 INNER JOIN weight_info AS T2 ON T1.weight = T2.weight_id WHERE T2.weight_in_kg > 90 AND T1.shoots = 'R'

Please list the names of all the players that are over 90 kg and are right - shooted .

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


Question: What are the names of players who do not play any games?

SELECT Player_name FROM player WHERE Player_ID NOT IN (SELECT Player_ID FROM game_player)

What are the names of players who do not play any games ?

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


Question: List all the description of the films starring Lucille Tracy?

SELECT T1.film_id FROM film_actor AS T1 INNER JOIN actor AS T2 ON T1.actor_id = T2.actor_id WHERE T2.first_name = 'LUCILLE' AND T2.last_name = 'TRACY'

List all the description of the films starring Lucille Tracy ?

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


Question: List the location descriptions and aldermen's full names of the arson by explosive.

SELECT T2.location_description, T1.alderman_first_name, T1.alderman_last_name, T1.alderman_name_suffix FROM Ward AS T1 INNER JOIN Crime AS T2 ON T2.ward_no = T1.ward_no INNER JOIN IUCR AS T3 ON T3.iucr_no = T2.iucr_no WHERE T3.primary_description = 'ARSON' AND T3.secondary_description = 'BY EXPLOSIVE'

List the location descriptions and aldermen 's full names of the arson by explosive .

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


Question: Which person whose friends have the oldest average age?

SELECT T2.name ,  avg(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name  =  T2.friend GROUP BY T2.name ORDER BY avg(T1.age) DESC LIMIT 1

Which person whose friends have the oldest average age ?

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


Question: List all of the user ids and ages who rated movies with the id 1695219?

SELECT T2.userid, T2.age FROM u2base AS T1 INNER JOIN users AS T2 ON T1.userid = T2.userid WHERE T1.movieid = 1695219

List all of the user ids and ages who rated movies with the i d 1695219 ?

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


Question: How many students are enlisted in the Peace Corps organization are enrolled in UCSD school?

SELECT COUNT(T1.name) FROM enlist AS T1 INNER JOIN enrolled AS T2 ON T1.name = T2.name WHERE T1.organ = 'peace_corps' AND T2.school = 'ucsd'

How many students are enlisted in the Peace Corps organization are enrolled in UCSD school ?

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


Question: What province does the 4th most populous city in the United Kingdom belong to, and how many people live there?

SELECT T1.Province, T1.Population FROM city AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T2.Name = 'United Kingdom' ORDER BY T1.Population DESC LIMIT 3, 1

What province does the 4th most populous city in the United Kingdom belong to , and how many people live there ?

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


Question: Find the team names of the universities whose enrollments are smaller than the average enrollment size.

SELECT t2.team_name FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id  =  t2.school_id WHERE enrollment  <  (SELECT avg(enrollment) FROM university)

Find the team names of the universities whose enrollments are smaller than the average enrollment size .

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


Question: How old was composer of the show when he was nominated for Emmy's Outstanding Music Composition for a Series in 2009. Indicate his full name as well.

SELECT T1.year - T2.birthdate AS ageIn2009, T2.name FROM Award AS T1 INNER JOIN Person AS T2 ON T1.person = T2.name WHERE T1.role = 'composer' AND T1.organization = 'Primetime Emmy Awards' AND T1.award = 'Outstanding Music Composition for a Series (Original Dramatic Score)' AND T1.result = 'Nominee' AND T1.year = 2009;

How old was composer of the show when he was nominated for Emmy 's Outstanding Music Composition for a Series in 2009 . Indicate his full name as well .

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


Question: Find the number of customers handled by each of the sales people.

SELECT COUNT(CustomerID) FROM Sales GROUP BY SalesPersonID

Find the number of customers handled by each of the sales people .

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


Question: Which nations have a boundary with the Kalahari Desert?

SELECT T3.Name FROM desert AS T1 INNER JOIN geo_desert AS T2 ON T1.Name = T2.Desert INNER JOIN country AS T3 ON T3.Code = T2.Country WHERE T1.Name = 'Kalahari'

Which nations have a boundary with the Kalahari Desert ?


Question: How many different captain ranks are there?

SELECT count(DISTINCT rank) FROM captain

How many different captain ranks are there ?


Question: How many orders does Luca Mancini have in his invoices?

SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini";

How many orders does Luca Mancini have in his invoices ?

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


Question: What type of food is served at the restaurant located at 3140, Alpine Road at San Mateo County?

SELECT T2.food_type FROM location AS T1 INNER JOIN generalinfo AS T2 ON T1.id_restaurant = T2.id_restaurant INNER JOIN geographic AS T3 ON T2.city = T3.city WHERE T3.County = 'san mateo county' AND T1.street_name = 'alpine rd' AND T1.street_num = 3140

What type of food is served at the restaurant located at 3140 , Alpine Road at San Mateo County ?

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


Question: What is the name of the project with the most hours?

SELECT name FROM projects ORDER BY hours DESC LIMIT 1

What is the name of the project with the most hours ?

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


Question: What are the number of shipments managed and names of each manager?

SELECT T2.Name ,  count(*) FROM Shipment AS T1 JOIN Employee AS T2 ON T1.Manager = T2.EmployeeID GROUP BY T1.Manager;

What are the number of shipments managed and names of each manager ?

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


Question: Which orders have shipment after 2000-01-01? Give me the order ids.

SELECT order_id FROM shipments WHERE shipment_date > "2000-01-01"

Which orders have shipment after 2000 - 01 - 01 ? Give me the order ids .

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


Question: What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'?

SELECT DISTINCT T1.creation FROM department AS T1 JOIN management AS T2 ON T1.department_id  =  T2.department_id JOIN head AS T3 ON T2.head_id  =  T3.head_id WHERE T3.born_state  =  'Alabama'

What are the distinct creation years of the departments managed by a secretary born in state ' Alabama ' ?

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


Question: What are the names of institutions, ordered alphabetically?

SELECT Name FROM institution ORDER BY Name ASC

What are the names of institutions , ordered alphabetically ?


Question: What is the name of each aircraft and how many flights does each one complete?

SELECT T2.name ,  count(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid GROUP BY T1.aid

What is the name of each aircraft and how many flights does each one complete ?

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


Question: Among the female clients, how many of them have a complaint with a priority of 1?

SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN callcenterlogs AS T2 ON T1.client_id = T2.`rand client` WHERE T1.sex = 'Female' AND T2.priority = 1

Among the female clients , how many of them have a complaint with a priority of 1 ?

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


Question: Show the description and code of the attraction type most tourist attractions belong to.

SELECT T1.Attraction_Type_Description ,  T2.Attraction_Type_Code FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code  =  T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT(*) DESC LIMIT 1

Show the description and code of the attraction type most tourist attractions belong to .

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


Question: What is the count of enzymes without any interactions?

SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction );

What is the count of enzymes without any interactions ?


Question: What is the percentage of the set of cards that have Chinese Simplified as the language and are only available for online games?

SELECT CAST(SUM(CASE WHEN T2.language = 'Chinese Simplified' AND T1.isOnlineOnly = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode

What is the percentage of the set of cards that have Chinese Simplified as the language and are only available for online games ?

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


Question: Please list the IDs of the users who answered "Yes" to the question "Do you think that discussing a physical health issue with your employer would have negative consequences?" in 2014's survey.

SELECT T2.UserID FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T1.questiontext = 'Do you think that discussing a physical health issue with your employer would have negative consequences?' AND T2.AnswerText LIKE 'Yes' AND T2.SurveyID = 2014

Please list the IDs of the users who answered " Yes " to the question " Do you think that discussing a physical health issue with your employer would have negative consequences ? " in 2014 's survey .

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


Question: Please list the depth of the lakes that are located in the Province of Albania.

SELECT T2.Depth FROM located AS T1 INNER JOIN lake AS T2 ON T1.Lake = T2.Name WHERE T1.Province = 'Albania'

Please list the depth of the lakes that are located in the Province of Albania .

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


Question: List the method, date and amount of all the payments, in ascending order of date.

SELECT Payment_Method_Code ,  Date_Payment_Made ,  Amount_Payment FROM Payments ORDER BY Date_Payment_Made ASC

List the method , date and amount of all the payments , in ascending order of date .

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


Question: Return the first names of customers who did not rented a film after the date '2005-08-23 02:06:01'.

SELECT first_name FROM customer WHERE customer_id NOT IN( SELECT customer_id FROM rental WHERE rental_date  >  '2005-08-23 02:06:01' )

Return the first names of customers who did not rented a film after the date ' 2005 - 08 - 23 02:06:01 ' .

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


Question: How many path does the github address "https://github.com/jeffdik/tachy.git" have?

SELECT COUNT(DISTINCT T2.Path) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Url = 'https://github.com/jeffdik/tachy.git'

How many path does the github address " https://github.com/jeffdik/tachy.git " have ?


Question: What is the cost of the slowest and least expensive shipping method?

SELECT method_name FROM shipping_method ORDER BY cost ASC LIMIT 1

What is the cost of the slowest and least expensive shipping method ?

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


Question: What are the phone and email for customer Harold?

SELECT Customer_Phone ,  Customer_Email_Address FROM CUSTOMERS WHERE Customer_Name  =  "Harold"

What are the phone and email for customer Harold ?


Question: How many tweets in total were posted by a user in Argentina?

SELECT COUNT(T1.TweetID) FROM twitter AS T1 INNER JOIN location AS T2 ON T2.LocationID = T1.LocationID WHERE T2.Country = 'Argentina' LIMIT 1

How many tweets in total were posted by a user in Argentina ?


Question: List the names of universities with a score less than 28% of the average score of all universities in 2015.

SELECT T2.university_name FROM university_ranking_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2015 AND T1.score * 100 < ( SELECT AVG(score) * 28 FROM university_ranking_year WHERE year = 2015 )

List the names of universities with a score less than 28 % of the average score of all universities in 2015 .

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


Question: List all the subject names.


Question: Provide the ranking system ID of the Center for World University Rankings.

SELECT id FROM ranking_system WHERE system_name = 'Center for World University Rankings'

Provide the ranking system ID of the Center for World University Rankings .

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


Question: Please list the bowling skills of all the players from Australia.

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

Please list the bowling skills of all the players from Australia .

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


Question: Show the county name and population of all counties.

SELECT County_name ,  Population FROM county

Show the county name and population of all counties .


Question: What is the transaction ratio being made at Sac State American River Courtyard and Sac State Union?

SELECT CAST(COUNT(CASE WHEN T2.LocationName = 'Sac State American River Courtyard' THEN T1.TransactionID ELSE NULL END) AS REAL) * 100 / COUNT(CASE WHEN T2.LocationName = 'Sac State Union' THEN T1.TransactionID ELSE NULL END) FROM `transaction` AS T1 INNER JOIN location AS T2 ON T1.LocationID = T2.LocationID

What is the transaction ratio being made at Sac State American River Courtyard and Sac State Union ?

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


Question: What is the status of card "Cloudchaser Eagle"?

SELECT DISTINCT T2.status FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Cloudchaser Eagle'

What is the status of card " Cloudchaser Eagle " ?

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


Question: What is the sport with the most scholarship students?

SELECT sportname FROM Sportsinfo WHERE onscholarship  =  'Y' GROUP BY sportname ORDER BY count(*) DESC LIMIT 1

What is the sport with the most scholarship students ?


Question: What is the name of the body builder with the greatest body weight?

SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Weight DESC LIMIT 1

What is the name of the body builder with the greatest body weight ?

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


Question: Which car models have total production larger than 100 or top speed higher than 150?

SELECT model FROM vehicle WHERE total_production  >  100 OR top_speed  >  150

Which car models have total production larger than 100 or top speed higher than 150 ?

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


Question: What are the distinct ids of customers who made an order after any order that was Cancelled?

SELECT DISTINCT customer_id FROM Customer_Orders WHERE order_date  >  (SELECT min(order_date) FROM Customer_Orders WHERE order_status_code  =  "Cancelled")

What are the distinct ids of customers who made an order after any order that was Cancelled ?

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


Question: Find all the songs that do not have a back vocal.

SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid WHERE TYPE  =  "back"

Find all the songs that do not have a back vocal .

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


Question: Which state have the highest number of PayPal donations for an honoree whose portion of a donation included corporate sponsored giftcard?

SELECT DISTINCT donor_state FROM donations WHERE for_honoree = 't' AND payment_included_campaign_gift_card = 't' AND payment_method = 'paypal' AND donor_state = ( SELECT donor_state FROM donations GROUP BY donor_state ORDER BY SUM(donation_total) DESC LIMIT 1 )

Which state have the highest number of PayPal donations for an honoree whose portion of a donation included corporate sponsored giftcard ?

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


Question: Please indicate the business id have the closing time with the category of Arts & Entertainment on Sunday.

SELECT T1.business_id, T3.closing_time FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business_Hours AS T3 ON T1.business_id = T3.business_id INNER JOIN Days AS T4 ON T3.day_id = T4.day_id WHERE T2.category_name = 'Arts & Entertainment' AND T4.day_of_week = 'Sunday'

Please indicate the business i d have the closing time with the category of Arts & Entertainment on Sunday .

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


Question: Please list all horror films that have a rating of 1.

SELECT T1.movieid FROM u2base AS T1 INNER JOIN movies2directors AS T2 ON T1.movieid = T2.movieid WHERE T1.rating = 1 AND T2.genre = 'Horror'

Please list all horror films that have a rating of 1 .

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


Question: How long did it take the user, known by his or her display name 'Zolomon' to get the badge? Count from the date the user's account was created.

SELECT T1.Date - T2.CreationDate FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Zolomon'

How long did it take the user , known by his or her display name ' Zolomon ' to get the badge ? Count from the date the user 's account was created .

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


Question: How many organizations are established in the country with the most ethnic groups?

SELECT COUNT(T2.Province) FROM country AS T1 INNER JOIN organization AS T2 ON T1.Code = T2.Country INNER JOIN ethnicGroup AS T3 ON T3.Country = T2.Country GROUP BY T1.Name ORDER BY COUNT(T3.Name) DESC LIMIT 1

How many organizations are established in the country with the most ethnic groups ?

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


Question: Show the name of the county with the biggest population.

SELECT County_name FROM county ORDER BY Population DESC LIMIT 1

Show the name of the county with the biggest population .


Question: Who are the coaches for team with winning rate of 80% and above?

SELECT coachID FROM coaches GROUP BY tmID, coachID, won, lost HAVING CAST(won AS REAL) * 100 / (won + lost) > 80

Who are the coaches for team with winning rate of 80 % and above ?

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


Question: Find the first and last name of the author(s) who wrote the paper "Nameless, Painless".

SELECT t1.fname ,  t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid  =  t2.authid JOIN papers AS t3 ON t2.paperid  =  t3.paperid WHERE t3.title  =  "Nameless ,  Painless"

Find the first and last name of the author(s ) who wrote the paper " Nameless , Painless " .

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


Question: What are the official names of cities that have hosted more than one competition?

SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID  =  T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT(*)  >  1

What are the official names of cities that have hosted more than one competition ?

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


Question: How many products supplied by Plutzer Lebensmittelgromrkte AG that is currently out of stock and on order?

SELECT COUNT(T1.ProductID) FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T2.CompanyName = 'Plutzer Lebensmittelgromrkte AG' AND T1.UnitsInStock = 0 AND T1.UnitsOnOrder = 0

How many products supplied by Plutzer Lebensmittelgromrkte AG that is currently out of stock and on order ?

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


Question: How many cities are in U.A.E?

SELECT SUM(CASE WHEN T2.Country_Name = 'U.A.E' THEN 1 ELSE 0 END) FROM City AS T1 INNER JOIN country AS T2 ON T1.Country_id = T2.Country_id


Question: How many people rated 5 for the podcast which title contains the word 'spoiler' under the 'art' category '?

SELECT COUNT(T3.podcast_id) FROM categories AS T1 INNER JOIN podcasts AS T2 ON T2.podcast_id = T1.podcast_id INNER JOIN reviews AS T3 ON T3.podcast_id = T2.podcast_id WHERE T2.title LIKE '%spoilers%' AND T1.category = 'arts' AND T3.rating = 5

How many people rated 5 for the podcast which title contains the word ' spoiler ' under the ' art ' category ' ?

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


Question: How many bikes can be borrowed in San Jose Diridon Caltrain Station at 12:06:01 on 2013/8/29?

SELECT T2.bikes_available FROM station AS T1 INNER JOIN status AS T2 ON T1.id = T2.station_id WHERE T1.name = 'San Jose Diridon Caltrain Station' AND T2.time = '2013/08/29 12:06:01'

How many bikes can be borrowed in San Jose Diridon Caltrain Station at 12:06:01 on 2013/8/29 ?

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


Question: State the full height and width for menu called "El Fuerte Del Palmar".

SELECT T1.full_height, T1.full_width FROM MenuPage AS T1 INNER JOIN Menu AS T2 ON T2.id = T1.menu_id WHERE T2.name = 'El Fuerte Del Palmar'

State the full height and width for menu called " El Fuerte Del Palmar " .

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


Question: Show codes and fates of missions, and names of ships involved.

SELECT T1.Code ,  T1.Fate ,  T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID  =  T2.Ship_ID

Show codes and fates of missions , and names of ships involved .

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


Question: What is the full name of the employee with the lowest salary?

SELECT first_name, last_name FROM employee ORDER BY salary ASC LIMIT 1

What is the full name of the employee with the lowest salary ?

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


Question: Find all the customer information in state NY.

SELECT * FROM CUSTOMER WHERE State  =  "NY"

Find all the customer information in state NY .


Question: List the expansion type of the set "Huitième édition".

SELECT type FROM sets WHERE code IN ( SELECT setCode FROM set_translations WHERE translation = 'Huitième édition' )

List the expansion type of the set " Huitième édition " .

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


Question: What is the title of the movie with the most keywords?

SELECT T1.title FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id GROUP BY T1.title ORDER BY COUNT(T2.keyword_id) DESC LIMIT 1

What is the title of the movie with the most keywords ?

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


Question: What is the gender of the student Linda Smith?

SELECT Sex FROM Student WHERE Fname = "Linda" AND Lname = "Smith";

What is the gender of the student Linda Smith ?


Question: List the title of movies in Latin released between 1/01/1990 and 12/31/1995.

SELECT T1.title FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T3.language_name = 'Latin' AND T1.release_date BETWEEN '1990-01-01' AND '1995-12-31'

List the title of movies in Latin released between 1/01/1990 and 12/31/1995 .

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


Question: Show institution name which there is no staff in our record.

SELECT institution_name FROM institution WHERE institution_id NOT IN (SELECT institution_id FROM staff)

Show institution name which there is no staff in our record .

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


Question: How many credit card withdrawals were recorded after 1995?

SELECT COUNT(account_id) FROM trans WHERE STRFTIME('%Y', date) > '1995' AND operation = 'VYBER KARTOU'

How many credit card withdrawals were recorded after 1995 ?


Question: Among the employees who are married and wish to receive e-mail promotions, how much higher is their highest pay rate from the average pay rate?

SELECT MAX(T1.Rate) - SUM(T1.Rate) / COUNT(T1.BusinessEntityID) FROM EmployeePayHistory AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Employee AS T3 ON T2.BusinessEntityID = T3.BusinessEntityID WHERE T2.EmailPromotion = 2 AND T3.MaritalStatus = 'M'

Among the employees who are married and wish to receive e - mail promotions , how much higher is their highest pay rate from the average pay rate ?

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


Question: How many users have "uber" number of fans?

SELECT COUNT(user_id) FROM Users WHERE user_fans LIKE 'Uber'

How many users have " uber " number of fans ?


Question: Which Wikipedia page number has the highest number of words in the Catalan language?

SELECT page FROM pages WHERE words = ( SELECT MAX(words) FROM pages )

Which Wikipedia page number has the highest number of words in the Catalan language ?

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


Question: What is Kenneth Charles's position title?

SELECT T2.positiontitle FROM employee AS T1  INNER JOIN position AS T2  ON T1.positionID = T2.positionID WHERE T1.firstname = 'Kenneth' AND T1.lastname = 'Charles'

What is Kenneth Charles 's position title ?

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


Question: Show all distinct building descriptions.

SELECT DISTINCT building_description FROM Apartment_Buildings

Show all distinct building descriptions .


Question: Show the most common nationality of hosts.

SELECT Nationality FROM HOST GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1

Show the most common nationality of hosts .


Question: Find the major that is studied by the most female students.

SELECT Major FROM STUDENT WHERE Sex  =  "F" GROUP BY major ORDER BY count(*) DESC LIMIT 1

Find the major that is studied by the most female students .


Question: Who was nominated for award no.313? Give the full name.

SELECT T1.name FROM Person AS T1 INNER JOIN Award AS T2 ON T1.person_id = T2.person_id WHERE T2.award_id = 313

Who was nominated for award no.313 ? Give the full name .

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


Question: What is the total revenue of each manufacturer?

SELECT sum(revenue) ,  name FROM manufacturers GROUP BY name

What is the total revenue of each manufacturer ?


Question: For each institution id , how many staff members does each institution have that was founded after 1800 ? return their names .

select t1.institution_name ,  count(*) from institution as t1 join staff as t2 on t1.institution_id  =  t2.institution_id where t1.founded  >  1800 group by t2.institution_id

For each institution i d , how many staff members does each institution have that was founded after 1800 ? return their names .

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


Question: What is the title of the book written by George Orwell that has the lowest sale price?

SELECT T1.title FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn  =  T2.isbn JOIN Author AS T3 ON T2.Author  =  T3.idAuthor WHERE T3.name  =  "George Orwell" ORDER BY T1.saleprice LIMIT 1

What is the title of the book written by George Orwell that has the lowest sale price ?

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


Question: What was the difference of number of units sold in station number 1 and number 2 on year 2012?

SELECT SUM(CASE WHEN T1.station_nbr = 1 THEN units ELSE 0 END) - SUM(CASE WHEN T1.station_nbr = 2 THEN units ELSE 0 END) FROM relation AS T1 INNER JOIN sales_in_weather AS T2 ON T1.store_nbr = T2.store_nbr WHERE T2.`date` LIKE '%2012%'

What was the difference of number of units sold in station number 1 and number 2 on year 2012 ?

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


Question: How many "5" star reviews does the Yelp business No. "10682" get?

SELECT COUNT(review_length) FROM Reviews WHERE business_id = 10682 AND review_stars = 5

How many " 5 " star reviews does the Yelp business No . " 10682 " get ?

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


Question: find the number of different programs that are broadcast during night time.

SELECT count(DISTINCT program_id) FROM broadcast WHERE time_of_day  =  'Night'

find the number of different programs that are broadcast during night time .

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


Question: How many solicit on public way prostitution crimes were arrested in West Garfield Park?

SELECT SUM(CASE WHEN T2.arrest = 'TRUE' THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN IUCR AS T3 ON T2.iucr_no = T3.iucr_no WHERE T1.community_area_name = 'West Garfield Park' AND T3.secondary_description = 'SOLICIT ON PUBLIC WAY' AND T3.primary_description = 'PROSTITUTION'

How many solicit on public way prostitution crimes were arrested in West Garfield Park ?

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


Question: Please list top five molecules that have double bonds in alphabetical order.

SELECT DISTINCT T.molecule_id FROM bond AS T WHERE T.bond_type = '=' ORDER BY T.molecule_id LIMIT 5

Please list top five molecules that have double bonds in alphabetical order .


Question: How many dishes are included in the menu page ID 144?

SELECT COUNT(*) FROM MenuItem WHERE menu_page_id = 144

How many dishes are included in the menu page ID 144 ?

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


Question: Which park did the most people attend in 2008?

SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1;

Which park did the most people attend in 2008 ?

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


Question: How many patients with a abnormal C-reactive protein don't have their data recorded?

SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE (T2.CRP = '+' ) AND T1.Description IS NULL

How many patients with a abnormal C - reactive protein do n't have their data recorded ?


Question: Show the agency ids and the number of staff in each agent?

SELECT agency_id ,  count(*) FROM Staff GROUP BY agency_id

Show the agency ids and the number of staff in each agent ?

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


Question: Please calculate the total payment amount of customers who come from the USA.

SELECT SUM(T1.amount) FROM payments AS T1 INNER JOIN customers AS T2 ON T1.customerNumber = T2.customerNumber WHERE T2.country = 'USA'

Please calculate the total payment amount of customers who come from the USA .

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


Question: What is the salaray and name of the employee with the most certificates to fly planes more than 5000?

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

What is the salaray and name of the employee with the most certificates to fly planes more than 5000 ?

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


Question: Name the podcast title, rating and review content created by '76A4C24B6038145'.

SELECT T2.title, T2.rating, T2.content FROM podcasts AS T1 INNER JOIN reviews AS T2 ON T2.podcast_id = T1.podcast_id WHERE T2.author_id = '76A4C24B6038145'

Name the podcast title , rating and review content created by ' 76A4C24B6038145 ' .

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


Question: How many times does ROY SWEAZY has reserved a room.

SELECT count(*) FROM Reservations WHERE FirstName = "ROY" AND LastName  =  "SWEAZY";

How many times does ROY SWEAZY has reserved a room .

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


Question: How many male students filed for bankruptcy as compare to female students?

SELECT COUNT(T2.name) - SUM(IIF(T2.name IS NULL, 1, 0)) AS num FROM filed_for_bankrupcy AS T1 LEFT JOIN male AS T2 ON T2.name = T1.name

How many male students filed for bankruptcy as compare to female students ?

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


Question: What is all the information of all the products that have a price between 60 and 120?

SELECT * FROM products WHERE price BETWEEN 60 AND 120

What is all the information of all the products that have a price between 60 and 120 ?

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


Question: List all the sets available in Italian translation. State the total number of cards per set.

SELECT T1.name, T1.totalSetSize FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language = 'Italian'

List all the sets available in Italian translation . State the total number of cards per set .

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


Question: Show the names of countries that have more than one roller coaster.

SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID  =  T2.Country_ID GROUP BY T1.Name HAVING COUNT(*)  >  1

Show the names of countries that have more than one roller coaster .

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


Question: List the country and how many customers are there.

SELECT country, COUNT(customerNumber) FROM customers GROUP BY country

List the country and how many customers are there .


Question: Where can the introduction of the races held on Circuit de Barcelona-Catalunya be found?

SELECT DISTINCT T1.url FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.name = 'Circuit de Barcelona-Catalunya'

Where can the introduction of the races held on Circuit de Barcelona - Catalunya be found ?

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


Question: Among the sales team in South region, write down the numbers of orders made by the sales team ID of one digit.

SELECT COUNT(T1.OrderNumber) FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID WHERE T2.Region = 'South' AND T2.SalesTeamID BETWEEN 1 AND 9 GROUP BY T2.SalesTeamID HAVING COUNT(T1.OrderNumber)

Among the sales team in South region , write down the numbers of orders made by the sales team ID of one digit .

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


Question: How many females does this network has?

SELECT count(*) FROM Person WHERE gender  =  'female'

How many females does this network has ?


Question: Give me the the customer details and id for the customers who had two or more policies but did not file any claims.

SELECT T1.customer_details ,  T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >=  2 EXCEPT SELECT T1.customer_details ,  T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id  =  T2.customer_id JOIN Claims AS T3 ON T2.policy_id  =  T3.policy_id

Give me the the customer details and i d for the customers who had two or more policies but did not file any claims .

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


Question: Show all publishers and the number of books for each publisher.

SELECT publisher ,  count(*) FROM book_club GROUP BY publisher

Show all publishers and the number of books for each publisher .


Question: Among the episodes that were aired in 1998, how many won an International Monitor Awards?

SELECT COUNT(T1.episode_id) FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id WHERE strftime('%Y', T1.air_date) = '1998' AND T2.organization = 'International Monitor Awards' AND T2.result = 'Winner'

Among the episodes that were aired in 1998 , how many won an International Monitor Awards ?

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


Question: Find all the details of the customers who have been involved in an interaction with status `` Stuck '' and service and channel detail `` bad '' .

select t1.customer_details from customers as t1 join customer_interactions as t2 on t1.customer_id  =  t2.customer_id where t2.status_code  =  "stuck" and services_and_channels_details  =  "bad"

Find all the details of the customers who have been involved in an interaction with status ` ` Stuck '' and service and channel detail ` ` bad '' .

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


Question: Name all the trips where the bike was borrowed and returned on a different day. State the city where the bike was returned.

SELECT DISTINCT T1.city FROM station AS T1 INNER JOIN trip AS T2 ON T2.start_station_name = T1.name WHERE SUBSTR(CAST(T2.start_date AS TEXT), INSTR(T2.start_date, '/') + 1) - SUBSTR(CAST(T2.start_date AS TEXT), INSTR(T2.start_date, ' ') - 5) <> SUBSTR(CAST(T2.end_date AS TEXT), INSTR(T2.end_date, '/') + 1) - SUBSTR(CAST(T2.end_date AS TEXT), INSTR(T2.end_date, ' ') - 5)

Name all the trips where the bike was borrowed and returned on a different day . State the city where the bike was returned .

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


Question: For case number '134472-2015', list the last name of the officers involved and state the subject statuses.

SELECT T2.last_name, T1.subject_statuses FROM incidents AS T1 INNER JOIN officers AS T2 ON T1.case_number = T2.case_number WHERE T1.case_number = '134472-2015'

For case number ' 134472 - 2015 ' , list the last name of the officers involved and state the subject statuses .

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


Question: How many properties are there with at least 2 features?

SELECT count(*) FROM Properties GROUP BY property_id HAVING count(*)  >= 2;

How many properties are there with at least 2 features ?


Question: Return the apartment numbers of the apartments with type code "Flat".

SELECT apt_number FROM Apartments WHERE apt_type_code  =  "Flat"

Return the apartment numbers of the apartments with type code " Flat " .

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


Question: How many calories does the recipe "Raspberry Chiffon Pie" contain?

SELECT T2.calories FROM Recipe AS T1 INNER JOIN Nutrition AS T2 ON T1.recipe_id = T2.recipe_id WHERE T1.title = 'Raspberry Chiffon Pie'

How many calories does the recipe " Raspberry Chiffon Pie " contain ?

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


Question: What are the personal names used both by some course authors and some students?

SELECT personal_name FROM Course_Authors_and_Tutors INTERSECT SELECT personal_name FROM Students

What are the personal names used both by some course authors and some students ?

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


Question: How much lower in percentage is the unit price of Ikura in order no. 10273 than its standard unit price?

SELECT CAST((T1.UnitPrice - T2.UnitPrice) AS REAL) * 100 / T1.UnitPrice FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T2.OrderID = 10273 AND T1.ProductName = 'Ikura'

How much lower in percentage is the unit price of Ikura in order no . 10273 than its standard unit price ?

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


Question: List all package numbers received by Leo Wong ?

select t1.packagenumber from package as t1 join client as t2 on t1.recipient  =  t2.accountnumber where t2.name = "leo wong";

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


Question: What is the product, chromosome, and porphyria of the enzymes located at 'Cytosol'?

SELECT product ,  chromosome ,  porphyria FROM enzyme WHERE LOCATION  =  'Cytosol'

What is the product , chromosome , and porphyria of the enzymes located at ' Cytosol ' ?

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


Question: What is the average sales for each categories?

SELECT AVG(ProductSales) FROM `Sales by Category` GROUP BY CategoryName

What is the average sales for each categories ?

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


Question: What is the most popular full name of the actors?

SELECT first_name ,  last_name FROM actor GROUP BY first_name ,  last_name ORDER BY count(*) DESC LIMIT 1

What is the most popular full name of the actors ?


Question: What is the name and rank of every university in Wisconsin?

SELECT T1.university_name ,  T2.rank FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id  =  T2.university_id WHERE T1.state  =  'Wisconsin'

What is the name and rank of every university in Wisconsin ?

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


Question: List the short name and home page URL of all the international conferences on artificial intelligence.

SELECT ShortName, HomePage FROM Conference WHERE FullName LIKE 'International Conference on Artificial Intelligence%'

List the short name and home page URL of all the international conferences on artificial intelligence .

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


Question: Find the name and capacity of the stadium where the event named "World Junior" happened.

SELECT t1.name ,  t1.capacity FROM stadium AS t1 JOIN event AS t2 ON t1.id  =  t2.stadium_id WHERE t2.name  =  'World Junior'

Find the name and capacity of the stadium where the event named " World Junior " happened .

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


Question: What are the names of all the clubs starting with the oldest?

SELECT name FROM club ORDER BY Start_year ASC

What are the names of all the clubs starting with the oldest ?


Question: What are the names of the players who played for Acadie-Bathurst Titan during the regular season in 1998-1999?

SELECT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.SEASON = '1998-1999' AND T1.GAMETYPE = 'Regular Season' AND T1.TEAM = 'Acadie-Bathurst Titan'

What are the names of the players who played for Acadie - Bathurst Titan during the regular season in 1998 - 1999 ?

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


Question: What is the credited cast for the episode "In the Name of the Grandfather"?

SELECT DISTINCT T2.person FROM Episode AS T1 INNER JOIN Credit AS T2 ON T1.episode_id = T2.episode_id WHERE T1.title = 'In the Name of the Grandfather' AND T2.category = 'Cast' AND T2.credited = 'true';

What is the credited cast for the episode " In the Name of the Grandfather " ?

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


Question: How many times longer is the longest river in Tajikistan than the shortest river?

SELECT MAX(T2.Length) / MIN(T2.Length) FROM located AS T1 INNER JOIN river AS T2 ON T1.River = T2.Name WHERE T1.Country = 'TJ'

How many times longer is the longest river in Tajikistan than the shortest river ?

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


Question: What are the total amount of money in the invoices billed from Chicago, Illinois?

SELECT sum(total) FROM invoices WHERE billing_city  =  "Chicago" AND billing_state  =  "IL";

What are the total amount of money in the invoices billed from Chicago , Illinois ?

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


Question: List the names of editors that are not on any journal committee.

SELECT Name FROM editor WHERE editor_id NOT IN (SELECT editor_id FROM journal_committee)

List the names of editors that are not on any journal committee .

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


Question: List down the closing day of businesses located at SC State.

SELECT T3.day_id - T2.day_id FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id INNER JOIN Days AS T3 ON T2.day_id = T3.day_id WHERE T1.state = 'SC'

List down the closing day of businesses located at SC State .

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


Question: Find the number of papers published in different conferences each year.

SELECT count(*) ,  venue ,  YEAR FROM Paper GROUP BY venue ,  YEAR

Find the number of papers published in different conferences each year .


Question: Find the claim id and the number of settlements made for the claim with the most recent settlement date.

SELECT count(*) ,  T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id  =  T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1

Find the claim i d and the number of settlements made for the claim with the most recent settlement date .

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


Question: What are the names of the different official languages, as well as the number of countries that speak each?

SELECT T2.name ,  COUNT(*) FROM official_languages AS T1 JOIN languages AS T2 ON T1.language_id  =  T2.id GROUP BY T2.name

What are the names of the different official languages , as well as the number of countries that speak each ?

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


Question: How many games do not have any sales in Europe?

SELECT COUNT(*) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id WHERE T2.region_name = 'Europe' AND T1.num_sales = 0

How many games do not have any sales in Europe ?


Question: List the urls for all the "fiction-science-fiction" podcasts.

SELECT itunes_url FROM podcasts WHERE podcast_id IN ( SELECT podcast_id FROM categories WHERE category = 'fiction-science-fiction' )

List the urls for all the " fiction - science - fiction " podcasts .

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


Question: Count the number of papers published by Columbia University in 2009.

SELECT count(DISTINCT T1.paper_id) FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id  =  T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id  =  T3.affiliation_id WHERE T3.name LIKE "Columbia University" AND T1.year  =  2009

Count the number of papers published by Columbia University in 2009 .

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


Question: What are the grade number and classroom number of each class in the list?

SELECT DISTINCT classroom ,  grade FROM list

What are the grade number and classroom number of each class in the list ?

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


Question: How many Turkish universities are there in the database?

SELECT COUNT(*) FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'Turkey'

How many Turkish universities are there in the database ?


Question: Provide the full names of vampire heroes.

SELECT T1.full_name FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T2.race = 'Vampire'

Provide the full names of vampire heroes .


Question: Provide the list of product IDs and names under the meat/poultry category.

SELECT T2.ProductName, T1.CategoryName FROM Categories AS T1 INNER JOIN Products AS T2 ON T1.CategoryID = T2.CategoryID WHERE T2.ReorderLevel = ( SELECT MAX(ReorderLevel) FROM Products )

Provide the list of product IDs and names under the meat / poultry category .

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


Question: What are the top 3 artists with the largest number of songs in the language Bangla?

SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  "bangla" GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3

What are the top 3 artists with the largest number of songs in the language Bangla ?

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


Question: Show all the ranks and the number of male and female faculty for each rank.

SELECT rank ,  sex ,  count(*) FROM Faculty GROUP BY rank ,  sex

Show all the ranks and the number of male and female faculty for each rank .

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


Question: Return all the enrollments of institutions in either the city of Vancouver or the city of Calgary .

select sum(enrollment) from institution where city  =  "vancouver" or city  =  "calgary"

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


Question: Calculate the difference in the average number of low-priority orders shipped by truck in each month of 1995 and 1996.

SELECT (CAST(SUM(IIF(STRFTIME('%Y', T2.l_shipdate) = 1995, 1, 0)) AS REAL) / 12) - (CAST(SUM(IIF(STRFTIME('%Y', T2.l_shipdate) = 1996, 1, 0)) AS REAL) / 12) FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T1.o_orderpriority = '5-LOW' AND T2.l_shipmode = 'TRUCK'

Calculate the difference in the average number of low - priority orders shipped by truck in each month of 1995 and 1996 .

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


Question: How many cities are in Connecticut?

SELECT COUNT(*) FROM city WHERE state = 'Connecticut'


Question: List all the businesses that closed at 8PM.

SELECT DISTINCT business_id FROM Business_Hours WHERE closing_time = '8PM'

List all the businesses that closed at 8PM .


Question: Find the name of the movies that are played in either cinema Odeon or Imperial.

SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code  =  T2.movie WHERE T2.name  =  'Odeon' OR T2.name  =  'Imperial'

Find the name of the movies that are played in either cinema Odeon or Imperial .

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


Question: How many customers do not have an order?

SELECT count(*) FROM Customers WHERE customer_id NOT IN  ( SELECT customer_id FROM Customer_orders)

How many customers do not have an order ?


Question: List all the elements of the toxicology of the molecule "TR004".

SELECT DISTINCT T.element FROM atom AS T WHERE T.molecule_id = 'TR004'

List all the elements of the toxicology of the molecule " TR004 " .

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


Question: In countries where there is more than one ethnic group, name the ethnic group with the greatest presence in each country and the country to which it corresponds.

SELECT Country, Name FROM ethnicGroup AS T1 WHERE Percentage < 100 AND Percentage = ( SELECT MAX(Percentage) FROM ethnicGroup AS T2 WHERE T1.Country = T2.Country )

In countries where there is more than one ethnic group , name the ethnic group with the greatest presence in each country and the country to which it corresponds .

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


Question: What are the attribute numbers that are related to payment?

SELECT attribute_id FROM Attributes WHERE attribute_name LIKE '%payment%'

What are the attribute numbers that are related to payment ?


Question: Show all the distinct ratings in the database.

Show all the distinct ratings in the database .


Question: What is the lowest grade for the District Special Education Consortia School with National Center for Educational Statistics school district identification number of 0613360?

SELECT MIN(T1.`Low Grade`) FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.NCESDist = '0613360' AND T2.EdOpsCode = 'SPECON'

What is the lowest grade for the District Special Education Consortia School with National Center for Educational Statistics school district identification number of 0613360 ?

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


Question: What are the names and colors of all products that have been shipped?

SELECT T1.product_name ,  T1.product_color FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id  =  T2.product_id JOIN Shipment_Items AS T3 ON T2.order_item_id  =  T3.order_item_id JOIN Shipments AS T4 ON T3.shipment_id  =  T4.shipment_id

What are the names and colors of all products that have been shipped ?


Question: What is the average height of paintings for different medium types?

SELECT avg(height_mm) ,  medium FROM paintings GROUP BY medium

What is the average height of paintings for different medium types ?

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


Question: Count the number of pilots who have planes in Chicago.

SELECT 	count(DISTINCT T1.pilot_name) FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name  =  T2.plane_name WHERE T2.location  =  'Chicago'

Count the number of pilots who have planes in Chicago .

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


Question: Who is the director that directed the highest number of movies in the 70s? If there are multiple directors with the same amount of movies, list all of their names and indicate the highest rating score that those movies got from the users.

SELECT T2.director_name, T1.rating_score FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_release_year BETWEEN 1970 AND 1979 GROUP BY T2.director_id ORDER BY COUNT(T2.movie_id) DESC LIMIT 1

Who is the director that directed the highest number of movies in the 70s ? If there are multiple directors with the same amount of movies , list all of their names and indicate the highest rating score that those movies got from the users .

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