Question: What are the average prices of products for each manufacturer?

SELECT avg(T1.price) ,  T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.name

What are the average prices of products for each manufacturer ?

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


Question: Find the countries where no driver come from.

SELECT country FROM country WHERE country_id NOT IN (SELECT country FROM driver)

Find the countries where no driver come from .


Question: What percentage of streets named 11th Street are in Alameda County?

SELECT CAST(SUM(IIF(T1.street_name = '11th st', 1, 0)) AS REAL) * 100 / COUNT(T1.id_restaurant) FROM location AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.County = 'alameda county'

What percentage of streets named 11th Street are in Alameda County ?

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


Question: List down the DOB of players who received the "man of the match" award.

SELECT T2.DOB FROM Match AS T1 INNER JOIN Player AS T2 ON T2.Player_Id = T1.Man_of_the_Match

List down the DOB of players who received the " man of the match " award .

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


Question: What are the first names of all teachers who have taught a course and the corresponding descriptions?

SELECT T2.emp_fname ,  T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code

What are the first names of all teachers who have taught a course and the corresponding descriptions ?

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


Question: Which vendor gives the best profit on net for product ID 342?

SELECT T1.Name FROM Vendor AS T1 INNER JOIN ProductVendor AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.ProductID = 342 ORDER BY T2.LastReceiptCost - T2.StandardPrice DESC LIMIT 1

Which vendor gives the best profit on net for product ID 342 ?

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


Question: Indicate the molecule id is belonging to the TR000_1_2 bond that has the first atom named TR000_1.

SELECT T2.molecule_id, T2.bond_id, T1.atom_id FROM connected AS T1 INNER JOIN bond AS T2 ON T1.bond_id = T2.bond_id WHERE T1.atom_id = 'TR000_1' AND T2.bond_id = 'TR000_1_2'

Indicate the molecule i d is belonging to the TR000_1_2 bond that has the first atom named TR000_1 .

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


Question: In how many cities are there airports in the country of Greenland?

SELECT count(DISTINCT city) FROM airports WHERE country  =  'Greenland'

In how many cities are there airports in the country of Greenland ?

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


Question: How many Olympic competitors are from Finland?

SELECT COUNT(T1.person_id) FROM person_region AS T1 INNER JOIN noc_region AS T2 ON T1.region_id = T2.id WHERE T2.region_name = 'Finland'

How many Olympic competitors are from Finland ?


Question: Among the employees who are married, how many of them have a western name style?

SELECT COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN Person AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T2.NameStyle = 0 AND T1.MaritalStatus = 'M'

Among the employees who are married , how many of them have a western name style ?

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


Question: What is the full address of business number 24?

SELECT T1.AddressLine1, T1.AddressLine2 FROM Address AS T1 INNER JOIN BusinessEntityAddress AS T2 ON T1.AddressID = T2.AddressID WHERE T2.BusinessEntityID = 24

What is the full address of business number 24 ?


Question: What are the names of the districts that have both mall and village store style shops?

SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id WHERE t1.Type  =  "City Mall" INTERSECT SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id  =  t2.store_id JOIN district AS t3 ON t2.district_id  =  t3.district_id WHERE t1.Type  =  "Village Store"

What are the names of the districts that have both mall and village store style shops ?

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


Question: What is the name of the ship with the largest tonnage?

SELECT Name FROM ship ORDER BY Tonnage DESC LIMIT 1

What is the name of the ship with the largest tonnage ?

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


Question: Which trip had the longest duration? State the start and end station.

SELECT start_station_name, end_station_name FROM trip WHERE duration = ( SELECT MAX(duration) FROM trip )

Which trip had the longest duration ? State the start and end station .

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


Question: Please list all the brands that contain a part under the type "promo brushed steel".

SELECT p_brand FROM part WHERE p_type = 'PROMO BRUSHED STEEL'

Please list all the brands that contain a part under the type " promo brushed steel " .

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


Question: State the max temperature of the weather station which has the no.21 store on 2012/11/9.

SELECT tmax FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 21 AND T1.`date` = '2012-11-09'

State the max temperature of the weather station which has the no.21 store on 2012/11/9 .

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


Question: What is the average quantities ordered with payment method code "MasterCard" on invoices?

SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code  =  "MasterCard"

What is the average quantities ordered with payment method code " MasterCard " on invoices ?

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


Question: What is the name and salary for employee with id 242518965?

SELECT name ,  salary FROM Employee WHERE eid  =  242518965

What is the name and salary for employee with i d 242518965 ?

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


Question: Give the names of universities with number of students ranges from 400 to 1000.

SELECT DISTINCT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.num_students BETWEEN 400 AND 1000

Give the names of universities with number of students ranges from 400 to 1000 .

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


Question: What is the name of the company that has the product with the highest unit price?

SELECT T2.CompanyName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.UnitPrice = ( SELECT MAX(UnitPrice) FROM Products )

What is the name of the company that has the product with the highest unit price ?

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


Question: List the case number of crimes against society that happened in June 2018.

SELECT T2.case_number FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no WHERE T2.date LIKE '6/%/2018%' AND T1.crime_against = 'Society'

List the case number of crimes against society that happened in June 2018 .

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


Question: Find the number of products with category "Spices" and typically sold above 1000.

SELECT count(*) FROM products WHERE product_category_code  =  "Spices" AND typical_buying_price  >  1000

Find the number of products with category " Spices " and typically sold above 1000 .

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


Question: Please provide the ID of the user with the most followers on the list.

SELECT user_id FROM lists ORDER BY list_followers DESC LIMIT 1

Please provide the ID of the user with the most followers on the list .

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


Question: What is the average median income for all City type of stores?

SELECT AVG(`Median Income`) FROM `Store Locations` WHERE Type = 'City'

What is the average median income for all City type of stores ?

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


Question: What are the different customer ids, and how many cards does each one hold?

SELECT customer_id ,  count(*) FROM Customers_cards GROUP BY customer_id

What are the different customer ids , and how many cards does each one hold ?

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


Question: Please indicate the college of the person whose first name is Katy with the link to the major "rec1N0upiVLy5esTO".

SELECT T2.college FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.link_to_major = 'rec1N0upiVLy5esTO' AND T1.first_name = 'Katy'

Please indicate the college of the person whose first name is Katy with the link to the major " rec1N0upiVLy5esTO " .

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


Question: Which country became independent on 1492-01-01? Give the full name of the country.

SELECT T1.Name FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T2.Independence = '1492-01-01'

Which country became independent on 1492 - 01 - 01 ? Give the full name of the country .

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


Question: What is the role name and role description for employee called Ebba?

SELECT T2.role_name ,  T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T1.employee_name  =  "Ebba"

What is the role name and role description for employee called Ebba ?

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


Question: What are the names of projects that require more than 300 hours, and how many scientists are assigned to each?

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

What are the names of projects that require more than 300 hours , and how many scientists are assigned to each ?

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


Question: What are the names of the students who took classes in 2009 or 2010?

SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id  =  T2.id WHERE YEAR  =  2009 OR YEAR  =  2010

What are the names of the students who took classes in 2009 or 2010 ?

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


Question: What are the distinct product names of bikes owned by cyclists from 'Russia' or cyclists from 'Great Britain'?

SELECT DISTINCT T3.product_name FROM cyclist AS T1 JOIN cyclists_own_bikes AS T2 ON T1.id  =  T2.cyclist_id JOIN bike AS T3 ON T2.bike_id  =  T3.id WHERE T1.nation  =  'Russia' OR T1.nation  =  'Great Britain'

What are the distinct product names of bikes owned by cyclists from ' Russia ' or cyclists from ' Great Britain ' ?

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


Question: Among the Artifact cards, which are black color and comes with foreign languague translation?

SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Artifact' AND T1.colors = 'B'

Among the Artifact cards , which are black color and comes with foreign languague translation ?

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


Question: What are the maximum price and score of wines for each year?

SELECT max(Price) ,  max(Score) ,  YEAR FROM WINE GROUP BY YEAR

What are the maximum price and score of wines for each year ?

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


Question: How many WGA Award (TV) award recipients were born in the USA from 2009 to 2010?

SELECT COUNT(*) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T2.award_category = 'WGA Award (TV)' AND T1.birth_country = 'USA' AND T2.year BETWEEN 2009 AND 2010;

How many WGA Award ( TV ) award recipients were born in the USA from 2009 to 2010 ?

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


Question: Among the businesses with a category of Accessories, what is the percentage of the business with less than 4 stars?

SELECT CAST(SUM(CASE WHEN T1.stars < 4 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.stars) AS "percentage" FROM Business AS T1 INNER JOIN Business_Categories ON T1.business_id = Business_Categories.business_id INNER JOIN Categories AS T3 ON Business_Categories.category_id = T3.category_id WHERE T3.category_name LIKE 'Accessories'

Among the businesses with a category of Accessories , what is the percentage of the business with less than 4 stars ?

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


Question: Show all video games with type Collectible card game.

SELECT gname FROM Video_games WHERE gtype  =  "Collectible card game"

Show all video games with type Collectible card game .

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


Question: What is the date of birth of the actor who played the role of a "writer"?

SELECT T2.birthdate FROM Award AS T1 INNER JOIN Person AS T2 ON T1.person_id = T2.person_id WHERE T1.role = 'writer'

What is the date of birth of the actor who played the role of a " writer " ?

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


Question: How many item states are there in the orders?

SELECT count(DISTINCT order_item_status_code) FROM Order_items

How many item states are there in the orders ?


Question: Count the number of distinct names associated with the photos.

Count the number of distinct names associated with the photos .


Question: What are the last names of customers without invoice totals exceeding 20?

SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId  =  T2.CustomerId WHERE T2.total  >  20

What are the last names of customers without invoice totals exceeding 20 ?

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


Question: How many users who have joined Yelp since "2005" but have no fans?

SELECT COUNT(user_id) FROM Users WHERE user_yelping_since_year = 2005 AND user_fans LIKE 'None'

How many users who have joined Yelp since " 2005 " but have no fans ?

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


Question: What is maximum group equity shareholding of the companies?

SELECT max(group_equity_shareholding) FROM operate_company

What is maximum group equity shareholding of the companies ?

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


Question: Among the black students in 2011, list the institution site and name of those who has 20 t0 30 degree-seeking students in the cohort.

SELECT DISTINCT T1.site, T1.chronname FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.year = 2011 AND T2.race = 'B' AND T2.grad_cohort BETWEEN 20 AND 30

Among the black students in 2011 , list the institution site and name of those who has 20 t0 30 degree - seeking students in the cohort .

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


Question: Find the number of medications prescribed for each brand.

SELECT count(*) ,  T1.name FROM medication AS T1 JOIN prescribes AS T2 ON T1.code = T2.medication GROUP BY T1.brand

Find the number of medications prescribed for each brand .

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


Question: How many active businesses are opened during late afternoon in the Phoenix city? List out the top 3 categories name for these businesses.

SELECT DISTINCT T4.category_name FROM Business_Hours AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Business_Categories AS T3 ON T2.business_id = T3.business_id INNER JOIN Categories AS T4 ON T3.category_id = T4.category_id WHERE T2.active = 'true' AND T2.city = 'Phoenix' AND T1.opening_time >= '5PM' LIMIT 3

How many active businesses are opened during late afternoon in the Phoenix city ? List out the top 3 categories name for these businesses .

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


Question: How much does headphones cost on average for each headphone construction?

SELECT construction ,  avg(price) FROM headphone GROUP BY construction

How much does headphones cost on average for each headphone construction ?


Question: Which league did player id"adamsja01" play in 1920?

SELECT lgID FROM ScoringSC WHERE playerID = 'adamsja01' AND year = 1920

Which league did player id"adamsja01 " play in 1920 ?


Question: list the first and last names, and the addresses of all employees in the ascending order of their birth date.

SELECT fname ,  lname ,  address FROM employee ORDER BY Bdate

list the first and last names , and the addresses of all employees in the ascending order of their birth date .

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


Question: What is the name of the division that has had the lowest number of draft matches in the 2019 season?

SELECT T2.name FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2019 AND T1.FTR = 'D' GROUP BY T2.division ORDER BY COUNT(FTR) LIMIT 1

What is the name of the division that has had the lowest number of draft matches in the 2019 season ?

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


Question: What is the name of the authors of papers in which conferences have been published whose full name includes the word Workshop?

SELECT T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Conference AS T3 ON T1.ConferenceId = T3.Id WHERE T3.FullName LIKE '%Workshop%'

What is the name of the authors of papers in which conferences have been published whose full name includes the word Workshop ?

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


Question: How many employees earn their salaries on a monthly basis at an hourly rate of more than 50?

SELECT COUNT(BusinessEntityID) FROM EmployeePayHistory WHERE rate * PayFrequency > 50

How many employees earn their salaries on a monthly basis at an hourly rate of more than 50 ?

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


Question: What are the names of the products that were ordered that have a unit price of no more than 5?

SELECT DISTINCT T1.ProductName FROM Products AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID WHERE T2.UnitPrice < 5

What are the names of the products that were ordered that have a unit price of no more than 5 ?

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


Question: Find the states of the colleges that have students in the tryout who played in striker position.

SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'striker'

Find the states of the colleges that have students in the tryout who played in striker position .

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


Question: Show ids for all aircrafts with more than 1000 distance.

SELECT aid FROM Aircraft WHERE distance  >  1000

Show ids for all aircrafts with more than 1000 distance .

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


Question: Provide the name of competitors from Greece.

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

Provide the name of competitors from Greece .


Question: Among the authors affiliated with Soongsil University, list the authors' names and papers published during the year 2000.

SELECT T2.Title, T1.Name FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.Affiliation = 'Soongsil University' AND T2.Year = 2000

Among the authors affiliated with Soongsil University , list the authors ' names and papers published during the year 2000 .

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


Question: What are the names of parties and their respective regions?

SELECT T1.party_name ,  T2.region_name FROM party AS T1 JOIN region AS T2 ON T1.region_id  =  T2.region_id

What are the names of parties and their respective regions ?

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


Question: Name the player who has the most NHL points in draft year.

SELECT T2.PlayerName FROM SeasonStatus AS T1 INNER JOIN PlayerInfo AS T2 ON T1.ELITEID = T2.ELITEID WHERE T1.P = ( SELECT MAX(P) FROM SeasonStatus )

Name the player who has the most NHL points in draft year .


Question: Please list the first 3 teams that got the most penalty minutes in 2006.

SELECT name FROM Teams WHERE year = 2006 GROUP BY tmID, name ORDER BY SUM(PIM) DESC LIMIT 3

Please list the first 3 teams that got the most penalty minutes in 2006 .

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


Question: What atoms are connected in single type bonds?

SELECT T2.atom_id, T2.atom_id2 FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id WHERE T1.bond_type = '-'

What atoms are connected in single type bonds ?

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


Question: Distinguish the films performed by Judy Dean according to category.

SELECT T5.name FROM actor AS T1 INNER JOIN film_actor AS T2 ON T1.actor_id = T2.actor_id INNER JOIN film AS T3 ON T2.film_id = T3.film_id INNER JOIN film_category AS T4 ON T2.film_id = T4.film_id INNER JOIN category AS T5 ON T4.category_id = T5.category_id WHERE T1.first_name = 'Judy' AND T1.last_name = 'Dean'

Distinguish the films performed by Judy Dean according to category .

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


Question: List all the ingredients for Strawberry Sorbet.

SELECT T3.name FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Strawberry Sorbet'

List all the ingredients for Strawberry Sorbet .


Question: Which model has the least amount of RAM? List the model name and the amount of RAM.

SELECT Model_name ,  RAM_MiB FROM chip_model ORDER BY RAM_MiB ASC LIMIT 1;

Which model has the least amount of RAM ? List the model name and the amount of RAM .

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


Question: What was the longest time that Lewis Hamilton had spent at a pit stop?

SELECT T1.duration FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.forename = 'Lewis' AND T2.surname = 'Hamilton' ORDER BY T1.duration DESC LIMIT 1

What was the longest time that Lewis Hamilton had spent at a pit stop ?

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


Question: List the dates and vote percents of elections.

SELECT Date ,  Vote_Percent FROM election

List the dates and vote percents of elections .

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


Question: In the molecule TR008, how many carbons are present?

SELECT COUNT(T.atom_id) FROM atom AS T WHERE T.molecule_id = 'TR008' AND T.element = 'c'

In the molecule TR008 , how many carbons are present ?


Question: What is the name of the airport that is the destination of the most number of routes that start in China?

SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid WHERE T1.country  =  'China' GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1

What is the name of the airport that is the destination of the most number of routes that start in China ?

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


Question: Was each expense in October Meeting on October 8, 2019 approved?

SELECT T3.approved FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T1.event_name = 'October Meeting' AND T1.event_date LIKE '2019-10-08%'

Was each expense in October Meeting on October 8 , 2019 approved ?

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


Question: Who are the female account holders who own credit cards and also have loans?

SELECT T1.client_id FROM client AS T1 INNER JOIN disp AS T2 ON T1.client_id = T2.client_id INNER JOIN account AS T5 ON T2.account_id = T5.account_id INNER JOIN loan AS T3 ON T5.account_id = T3.account_id INNER JOIN card AS T4 ON T2.disp_id = T4.disp_id WHERE T1.gender = 'F'

Who are the female account holders who own credit cards and also have loans ?

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


Question: What is the most expensive price paid by a customer for the book "Bite Me If You Can (Argeneau #6)"?

SELECT MAX(T2.price) FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id WHERE T1.title = 'Bite Me If You Can (Argeneau #6)'

What is the most expensive price paid by a customer for the book " Bite Me If You Can ( Argeneau # 6 ) " ?

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


Question: What is the average overall score across countries with English as their official language?

SELECT avg(T1.overall_score) FROM countries AS T1 JOIN official_languages AS T2 ON T1.id  =  T2.country_id JOIN languages AS T3 ON T2.language_id  =  T3.id WHERE T3.name  =  "English"

What is the average overall score across countries with English as their official language ?

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


Question: How many more scenes are there in Act 1 than in Act 5 in Twelfth Night?

SELECT SUM(IIF(T2.Act = 1, 1, 0)) - SUM(IIF(T2.Act = 5, 1, 0)) AS more FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.Title = 'Twelfth Night'

How many more scenes are there in Act 1 than in Act 5 in Twelfth Night ?

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


Question: Find the max, average and min training hours of all players.

SELECT avg(HS) ,  max(HS) ,  min(HS) FROM Player

Find the max , average and min training hours of all players .


Question: Among all the atoms from 21 to 25, list all the molecules that are carcinogenic.

SELECT DISTINCT T2.molecule_id FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE SUBSTR(T1.atom_id, -2) BETWEEN '21' AND '25' AND T2.label = '+'

Among all the atoms from 21 to 25 , list all the molecules that are carcinogenic .

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


Question: Identify the name of the sales person with employee ID 7.

SELECT FirstName, MiddleInitial, LastName FROM Employees WHERE EmployeeID = 7

Identify the name of the sales person with employee ID 7 .

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


Question: How many accounts in Beroun were opened after 1996?

SELECT COUNT(account_id) FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T1.date) > '1996' AND T2.A2 = 'Beroun'

How many accounts in Beroun were opened after 1996 ?

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


Question: List all the explanations about object classes of all the images with an x and y coordinate of 0.

SELECT T1.OBJ_CLASS FROM OBJ_CLASSES AS T1 INNER JOIN IMG_OBJ AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T2.X = 0 AND T2.Y = 0 GROUP BY T1.OBJ_CLASS

List all the explanations about object classes of all the images with an x and y coordinate of 0 .

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


Question: How many users installed the app but are not active?

SELECT COUNT(app_id) FROM app_events WHERE is_installed = 1 AND is_active = 0

How many users installed the app but are not active ?

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


Question: For every medicine id, what are the names of the medicines that can interact with more than one enzyme?

SELECT T1.id ,  T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id HAVING count(*)  >=  2

For every medicine i d , what are the names of the medicines that can interact with more than one enzyme ?

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


Question: List the builders of railways in ascending alphabetical order.

SELECT Builder FROM railway ORDER BY Builder ASC

List the builders of railways in ascending alphabetical order .


Question: Provide the title, total gross, and MPAA rating of the movie which has a hero named Elsa.

SELECT T1.movie_title, T1.total_gross, T1.MPAA_rating FROM movies_total_gross AS T1 INNER JOIN characters AS T2 ON T1.movie_title = T2.movie_title INNER JOIN director AS T3 ON T3.name = T1.movie_title WHERE T2.hero = 'Elsa'

Provide the title , total gross , and MPAA rating of the movie which has a hero named Elsa .

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


Question: How many distinct orders were there in 2003 when the quantity ordered was less than 30?

SELECT COUNT(DISTINCT T1.orderNumber) FROM orderdetails AS T1 INNER JOIN orders AS T2 ON T1.orderNumber = T2.orderNumber WHERE T1.quantityOrdered < 30 AND STRFTIME('%Y', T2.orderDate) = '2003'

How many distinct orders were there in 2003 when the quantity ordered was less than 30 ?

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


Question: What proportion of male police officers looked into events where people were injured?

SELECT CAST(SUM(T2.gender = 'M') AS REAL) * 100 / COUNT(T1.case_number) FROM incidents T1 INNER JOIN officers T2 ON T1.case_number = T2.case_number WHERE T1.subject_statuses = 'Injured'

What proportion of male police officers looked into events where people were injured ?

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


Question: What is the average amount of a student loan?

SELECT avg(amount_of_loan) FROM Student_Loans

What is the average amount of a student loan ?

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


Question: List all documents ids that are not the parent of other documents.

SELECT Document_Object_ID FROM Document_Objects EXCEPT SELECT Parent_Document_Object_ID FROM Document_Objects

List all documents ids that are not the parent of other documents .

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


Question: How many more papers in total were published in the journal "Cases Journal" than in the journal "Molecular Brain" in percentage?

SELECT SUM(CASE WHEN T1.FullName = 'Cases Journal' THEN 1 ELSE 0 END) - SUM(CASE WHEN T1.FullName = 'Molecular Brain' THEN 1 ELSE 0 END) AS DIFF FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId

How many more papers in total were published in the journal " Cases Journal " than in the journal " Molecular Brain " in percentage ?

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


Question: What is the average rating of songs for each language?

SELECT avg(rating) ,  languages FROM song GROUP BY languages

What is the average rating of songs for each language ?

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


Question: Which is the publisher for the game "Prism: Light the Way"?

SELECT T1.publisher_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T3.game_name = 'Prism: Light the Way'

Which is the publisher for the game " Prism : Light the Way " ?

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


Question: What are the maximum fastest lap speed in races held after 2004 grouped by race name and ordered by year?

SELECT max(T2.fastestlapspeed) ,  T1.name ,  T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year

What are the maximum fastest lap speed in races held after 2004 grouped by race name and ordered by year ?

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


Question: How many movies exist for each rating?

SELECT count(*) ,  rating FROM movies GROUP BY rating


Question: What are the names and buildings of the deparments, sorted by budget descending?

SELECT dept_name ,  building FROM department ORDER BY budget DESC

What are the names and buildings of the deparments , sorted by budget descending ?

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


Question: List the phone numbers of all employees.

List the phone numbers of all employees .


Question: Please list down ID of movies acted by top 5 actors based on actor rating.

SELECT T2.movieid FROM actors AS T1 INNER JOIN movies2actors AS T2 ON T1.actorid = T2.actorid GROUP BY T2.actorid ORDER BY AVG(T1.a_quality) DESC LIMIT 5

Please list down ID of movies acted by top 5 actors based on actor rating .

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


Question: Name the item ordered by Jonathan Doherty with the highest quantity in the East region.

SELECT T3.`Product Name` FROM east_superstore AS T1 INNER JOIN people AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T1.`Product ID` WHERE T2.`Customer Name` = 'Jonathan Doherty' AND T2.Region = 'East' ORDER BY T1.Quantity DESC LIMIT 1

Name the item ordered by Jonathan Doherty with the highest quantity in the East region .

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


Question: How many members of Business have the Medium size of tee shirt?

SELECT COUNT(T2.member_id) FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T1.major_name = 'Business' AND T2.t_shirt_size = 'Medium'

How many members of Business have the Medium size of tee shirt ?

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


Question: Show all product names without an order.

SELECT product_name FROM Products EXCEPT SELECT T1.product_name FROM Products AS t1 JOIN Order_items AS T2 ON T1.product_id  =  T2.product_id

Show all product names without an order .


Question: Find the name and flag of ships that are not steered by any captain with Midshipman rank.

SELECT name ,  flag FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain WHERE rank  =  'Midshipman')

Find the name and flag of ships that are not steered by any captain with Midshipman rank .

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


Question: List the Collection Name that document owned by 'Ransom ' belong to .

select t1.collection_name from collections as t1 join documents_in_collections as t2 on t1.collection_id = t2.collection_id join document_objects as t3 on t2.document_object_id  =  t3.document_object_id where t3.owner  =  'ransom'

List the Collection Name that document owned by ' Ransom ' belong to .

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


Question: What percentage of cards with format commander and legal status do not have a content warning?

SELECT CAST(SUM(CASE WHEN T1.hasContentWarning = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.format = 'commander' AND T2.status = 'Legal'

What percentage of cards with format commander and legal status do not have a content warning ?

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


Question: List by their ID the complaints received by the company on 25/09/2014 that took the longest.

SELECT `Complaint ID` FROM events WHERE strftime('%J', `Date sent to company`) - strftime('%J', `Date received`) = ( SELECT MAX(strftime('%J', `Date sent to company`) - strftime('%J', `Date received`)) FROM events WHERE `Date sent to company` = '2014-09-25' ) AND `Date sent to company` = '2014-09-25'

List by their ID the complaints received by the company on 25/09/2014 that took the longest .

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


Question: What are the ids of all students for courses and what are the names of those courses?

SELECT T1.student_id ,  T2.course_name FROM student_course_registrations AS T1 JOIN courses AS T2 ON T1.course_id = T2.course_id

What are the ids of all students for courses and what are the names of those courses ?

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


Question: Among the coaches who won the 'ABA Coach of the Year' award, which is the coach with the highest number of won games?

SELECT T1.coachID FROM coaches AS T1 INNER JOIN awards_coaches AS T2 ON T1.coachID = T2.coachID WHERE T2.award = 'ABA Coach of the Year' GROUP BY T1.coachID, T1.won ORDER BY T1.won DESC LIMIT 1

Among the coaches who won the ' ABA Coach of the Year ' award , which is the coach with the highest number of won games ?

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


Question: What is the id and first name of all the drivers who participated in the Australian Grand Prix and the Chinese Grand Prix?

SELECT T2.driverid ,  T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid  =  T3.driverid WHERE T1.name = "Australian Grand Prix" INTERSECT SELECT T2.driverid ,  T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid  =  T3.driverid WHERE T1.name = "Chinese Grand Prix"

What is the i d and first name of all the drivers who participated in the Australian Grand Prix and the Chinese Grand Prix ?

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


Question: How many users with more than 10 views created their account after the year 2013?

SELECT COUNT(id) FROM users WHERE STRFTIME('%Y', CreationDate) > '2013' AND Views > 10

How many users with more than 10 views created their account after the year 2013 ?

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


Question: Which physicians are affiliated with either Surgery or Psychiatry department? Give me their names.

SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID  =  T2.physician JOIN department AS T3 ON T2.department  =  T3.DepartmentID WHERE T3.name  =  'Surgery' OR T3.name  =  'Psychiatry'

Which physicians are affiliated with either Surgery or Psychiatry department ? Give me their names .

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


Question: What is the name of member in charge of greatest number of events?

SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id  =  T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY count(*) DESC LIMIT 1

What is the name of member in charge of greatest number of events ?

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


Question: What are the movie titles with the highest average rating and what are those ratings?

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

What are the movie titles with the highest average rating and what are those ratings ?

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


Question: List the names of all distinct paintings from shortest to longest in height.

SELECT DISTINCT title FROM paintings ORDER BY height_mm

List the names of all distinct paintings from shortest to longest in height .

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


Question: Compute the number of products with a price larger than or equal to $180.

SELECT count(*) FROM products WHERE price >= 180

Compute the number of products with a price larger than or equal to $ 180 .

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


Question: Show names of climbers and the names of mountains they climb.

SELECT T1.Name ,  T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID  =  T2.Mountain_ID

Show names of climbers and the names of mountains they climb .

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


Question: Show all staff names who have been both speaker and sponsor in some conference.

SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.role  =  'Speaker' INTERSECT SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.role  =  'Sponsor'

Show all staff names who have been both speaker and sponsor in some conference .

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


Question: How many Federalist representatives are there whose first names are Benjamin?

SELECT COUNT(T.bioguide_id) FROM ( SELECT T1.bioguide_id FROM historical AS T1 INNER JOIN `historical-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.first_name = 'Benjamin' AND T2.party = 'Federalist' AND T2.type = 'rep' GROUP BY T1.bioguide_id ) AS T

How many Federalist representatives are there whose first names are Benjamin ?

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


Question: What are the sale details and dates of transactions with amount smaller than 3000?

SELECT T1.sales_details ,  T2.date_of_transaction FROM SALES AS T1 JOIN TRANSACTIONS AS T2 ON T1.sales_transaction_id  =  T2.transaction_id WHERE T2.amount_of_transaction  <  3000

What are the sale details and dates of transactions with amount smaller than 3000 ?

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


Question: Find the ids of paintings whose height is bigger than 500 and less than 2000?

SELECT paintingID FROM paintings WHERE height_mm  >  500 AND height_mm  <  2000

Find the ids of paintings whose height is bigger than 500 and less than 2000 ?

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


Question: Find the full name, Wiki Pedia page link, and date of birth of German drivers born between 1971 and 1985. List it in descending order of date of birth.

SELECT forename, surname, url, dob FROM drivers WHERE nationality = 'German' AND STRFTIME('%Y', dob) BETWEEN '1971' AND '1985' ORDER BY dob DESC

Find the full name , Wiki Pedia page link , and date of birth of German drivers born between 1971 and 1985 . List it in descending order of date of birth .

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


Question: How many different roles are there in the club "Bootup Baltimore"?

SELECT count(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid WHERE t1.clubname  =  "Bootup Baltimore"

How many different roles are there in the club " Bootup Baltimore " ?

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


Question: List out all bankrupt students that are able to make payment before due?

SELECT T1.name FROM filed_for_bankrupcy AS T1 INNER JOIN no_payment_due AS T2 ON T1.name = T2.name WHERE T2.bool = 'neg'

List out all bankrupt students that are able to make payment before due ?


Question: Which user has the website URL listed at 'http://stackoverflow.com'

SELECT DisplayName FROM users WHERE WebsiteUrl = 'http://stackoverflow.com'

Which user has the website URL listed at ' http://stackoverflow.com '

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


Question: Show the names of products and the number of events they are in.

SELECT T1.Product_Name ,  COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID  =  T2.Product_ID GROUP BY T1.Product_Name

Show the names of products and the number of events they are in .


Question: Find the average unit price of jazz tracks.

SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId  =  T2.GenreId WHERE T1.Name  =  "Jazz"

Find the average unit price of jazz tracks .

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


Question: What is the count of customers that Steve Johnson supports?

SELECT count(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = "Steve" AND T1.last_name = "Johnson";

What is the count of customers that Steve Johnson supports ?

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


Question: State the first name of male clients who did not receive timely response from the call center.

SELECT T1.first FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T2.`Timely response?` = 'No' AND T1.sex = 'Male'

State the first name of male clients who did not receive timely response from the call center .

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


Question:
How many liked by people does the solution path "ninject_Ninject\Ninject.sln
" have?

SELECT DISTINCT T1.Stars FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Path = 'ninject_NinjectNinject.sln'

How many liked by people does the solution path " ninject_Ninject\Ninject.sln " have ?

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


Question: How many users answered "No" to the question "Would you bring up a mental health issue with a potential employer in an interview?" in 2014's survey?

SELECT COUNT(T2.UserID) FROM Question AS T1 INNER JOIN Answer AS T2 ON T1.questionid = T2.QuestionID WHERE T1.questiontext = 'Would you bring up a mental health issue with a potential employer in an interview?' AND T2.SurveyID = 2014 AND T2.AnswerText LIKE 'NO'

How many users answered " No " to the question " Would you bring up a mental health issue with a potential employer in an interview ? " in 2014 's survey ?

O O B-COLUMN 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 O O B-VALUE O B-COLUMN O


Question: Among all the tweets posted on Mondays, how many of them are reshared?

SELECT COUNT(DISTINCT TweetID) FROM twitter WHERE Weekday = 'Monday' AND IsReshare = 'TRUE'

Among all the tweets posted on Mondays , how many of them are reshared ?

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


Question: Calculate the profit of each products. List all products with more than $100 in profit.

SELECT DISTINCT Name FROM Product WHERE ListPrice - StandardCost > 100

Calculate the profit of each products . List all products with more than $ 100 in profit .

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


Question: What percentage of nations have achieved independence since 1993 and practice parliamentary democracy? Please include any three parliament-based democracies that attained independence after 1993.

SELECT SUM(IIF(government = 'parliamentary democracy', 1, 0)) , CAST(SUM(IIF(government = 'parliamentary democracy', 1, 0)) AS REAL) * 100 / COUNT(*) FROM politics AS t1 WHERE STRFTIME('%Y', independence) >= '1993'

What percentage of nations have achieved independence since 1993 and practice parliamentary democracy ? Please include any three parliament - based democracies that attained independence after 1993 .

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


Question: For each student answer, find the email address of the student and the date of the answer. Sort them in descending order of dates.

SELECT T2.Email_Adress ,  T1.Date_of_Answer FROM Student_Answers AS T1 JOIN Students AS T2 ON T1.Student_ID  =  T2.Student_ID ORDER BY T1.Date_of_Answer DESC

For each student answer , find the email address of the student and the date of the answer . Sort them in descending order of dates .

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


Question: List the name, location, mascot for all schools.

SELECT school_name ,  LOCATION ,  mascot FROM school

List the name , location , mascot for all schools .

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


Question: What is the eyes colour of Abraham Sapien?

SELECT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.full_name = 'Abraham Sapien'

What is the eyes colour of Abraham Sapien ?

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


Question: Provide a list of restaurants from Marin county.

SELECT T1.label FROM generalinfo AS T1 INNER JOIN geographic AS T2 ON T1.city = T2.city WHERE T2.county = 'marin county'

Provide a list of restaurants from Marin county .


Question: What are the first name and age of the artist who had the longest life?

SELECT fname  ,  deathYear - birthYear FROM artists ORDER BY deathYear - birthYear DESC LIMIT 1

What are the first name and age of the artist who had the longest life ?

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


Question: What is the song in the volume with the maximum weeks on top?

SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1

What is the song in the volume with the maximum weeks on top ?

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


Question: What is the name of the product that was ordered recently by Darren Powers?

SELECT T3.`Product Name` FROM people AS T1 INNER JOIN central_superstore AS T2 ON T1.`Customer ID` = T2.`Customer ID` INNER JOIN product AS T3 ON T3.`Product ID` = T2.`Product ID` WHERE T1.`Customer Name` = 'Darren Powers' ORDER BY T2.`Order Date` DESC LIMIT 1

What is the name of the product that was ordered recently by Darren Powers ?

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


Question: List all names of courses with 1 credit?

SELECT CName FROM COURSE WHERE Credits  =  1

List all names of courses with 1 credit ?

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


Question: From which state do the 5 biggest donor, who gave the highest cost of optional support, come from? List their donor_acctid and calculate for their average cost of optional support for every donations they make and identtify the project's type of resource to which they gave the hightest optional support.

SELECT T1.school_state, T2.donor_acctid, AVG(T2.donation_optional_support), T1.resource_type FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid ORDER BY T2.donation_optional_support DESC LIMIT 5

From which state do the 5 biggest donor , who gave the highest cost of optional support , come from ? List their donor_acctid and calculate for their average cost of optional support for every donations they make and identtify the project 's type of resource to which they gave the hightest optional support .

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


Question: Please list the time of the races held on Sepang International Circuit.

SELECT DISTINCT T2.time FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.name = 'Sepang International Circuit'

Please list the time of the races held on Sepang International Circuit .

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


Question: show the name of all bridges that was designed by american archtect, and sort the result by the bridge feet length.

SELECT t1.name FROM bridge AS t1 JOIN architect AS t2 ON t1.architect_id  =  t2.id WHERE t2.nationality  =  'American' ORDER BY t1.length_feet

show the name of all bridges that was designed by american archtect , and sort the result by the bridge feet length .

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


Question: List the name of the stadium where both the player 'Walter Samuel' and the player 'Thiago Motta' got injured.

SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id WHERE T3.player  =  'Walter Samuel' INTERSECT SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id WHERE T3.player  =  'Thiago Motta'

List the name of the stadium where both the player ' Walter Samuel ' and the player ' Thiago Motta ' got injured .

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


Question: What are the names of players who train between 500 and 1500 hours?

SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500

What are the names of players who train between 500 and 1500 hours ?

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


Question: What is the voting numbers and percentage of the best rating scale of the episode which had keyword of "arab stereotype"?

SELECT T2.votes, T2.percent FROM Keyword AS T1 INNER JOIN Vote AS T2 ON T1.episode_id = T2.episode_id WHERE T1.keyword = 'arab stereotype' AND T2.stars = 10;

What is the voting numbers and percentage of the best rating scale of the episode which had keyword of " arab stereotype " ?

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


Question: Who is the delegate of district 1 in the elections?

SELECT Delegate FROM election WHERE District  =  1

Who is the delegate of district 1 in the elections ?

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


Question: Who is the advisor of student with ID 1004?

SELECT Advisor FROM Student WHERE StuID  =  1004

Who is the advisor of student with ID 1004 ?


Question: Identify by their ID the molecules in which there is carbon.

SELECT T.molecule_id FROM atom AS T WHERE T.element = 'c'

Identify by their ID the molecules in which there is carbon .


Question: Among the employees who were born before 1969, what is the work shift of the 6th oldest employee?

SELECT T3.StartTime, T3.EndTime FROM Employee AS T1 INNER JOIN EmployeeDepartmentHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID INNER JOIN Shift AS T3 ON T2.ShiftId = T3.ShiftId WHERE STRFTIME('%Y', T1.BirthDate) < '1969' ORDER BY T1.BirthDate LIMIT 5, 1

Among the employees who were born before 1969 , what is the work shift of the 6th oldest employee ?

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


Question: How many female students were there in Pierre and Marie Curie University in 2015?

SELECT CAST(T1.num_students * T1.pct_female_students AS REAL) / 100 FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2015 AND T2.university_name = 'Pierre and Marie Curie University'

How many female students were there in Pierre and Marie Curie University in 2015 ?

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


Question: Please list top two sets of cards with their IDs that have Italian-language cards and are located in the Shadowmoor block in alphabetical order.

SELECT T1.name, T1.id FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.block = 'Shadowmoor' AND T2.language = 'Italian' ORDER BY T1.id LIMIT 2

Please list top two sets of cards with their IDs that have Italian - language cards and are located in the Shadowmoor block in alphabetical order .

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


Question: Which customer paid the most in 2012/8/25?

SELECT CustomerID FROM transactions_1k WHERE Date = '2012-08-25' GROUP BY CustomerID ORDER BY SUM(Price) DESC LIMIT 1

Which customer paid the most in 2012/8/25 ?


Question: List out the name of players who have a height of 5'8".

SELECT T2.PlayerName FROM height_info AS T1 INNER JOIN PlayerInfo AS T2 ON T1.height_id = T2.height WHERE T1.height_in_inch = '5''8"'

List out the name of players who have a height of 5'8 " .

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


Question: What is the title of the employee involved in inspection ID 60332?

SELECT T1.title FROM employee AS T1 INNER JOIN inspection AS T2 ON T1.employee_id = T2.employee_id WHERE T2.inspection_id = 60332

What is the title of the employee involved in inspection ID 60332 ?

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


Question: List down the customer ids who placed order with Michael Suyama.

SELECT T2.CustomerID FROM Employees AS T1 INNER JOIN Orders AS T2 ON T1.EmployeeID = T2.EmployeeID WHERE T1.FirstName = 'Michael' AND T1.LastName = 'Suyama'

List down the customer ids who placed order with Michael Suyama .

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


Question: List the chapter ID of the works with a year greater than the 89% of average year of all listed works of Shakespeare.

SELECT T2.id FROM works AS T1 INNER JOIN chapters AS T2 ON T1.id = T2.work_id WHERE T1.DATE > ( SELECT AVG(DATE) FROM works ) * 0.89

List the chapter ID of the works with a year greater than the 89 % of average year of all listed works of Shakespeare .

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


Question: What is the full name of the professor who graduated from an Ivy League School?

SELECT first_name, last_name FROM prof WHERE graduate_from IN ( 'Brown University',  'Columbia University',  'Cornell University',  'Dartmouth College',  'Harvard University',  'Princeton University',  'University of Pennsylvania',  'Yale University' )

What is the full name of the professor who graduated from an Ivy League School ?

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


Question: Among the students with a capability below 3, what is the difference of undergraduate students from research postgraduate students?

SELECT SUM(CASE WHEN T2.type = 'UG' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.type = 'RPG' THEN 1 ELSE 0 END) FROM RA AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T1.capability < 3

Among the students with a capability below 3 , what is the difference of undergraduate students from research postgraduate students ?

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


Question: List the football teams that has a chance creation passing class of Risky. Inidcate its short name only.

SELECT DISTINCT t1.team_short_name FROM Team AS t1 INNER JOIN Team_attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.chanceCreationPassingClass = 'Risky'

List the football teams that has a chance creation passing class of Risky . Inidcate its short name only .

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


Question: What is the first name of the student whose last name starting with the letter S and is taking ACCT-211 class?

SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T2.class_code  =  T3.class_code WHERE T3.crs_code  =  'ACCT-211' AND T1.stu_lname LIKE 'S%'

What is the first name of the student whose last name starting with the letter S and is taking ACCT-211 class ?

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


Question: Who is the youngest player to have won the Purple Cap?

SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Season AS T2 ON T1.Player_Id = T2.Purple_Cap ORDER BY T2.Season_Year - SUBSTR(T1.DOB, 1, 4) LIMIT 1

Who is the youngest player to have won the Purple Cap ?

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


Question: What is the language of the card with the multiverse number 149934?

SELECT language FROM foreign_data WHERE multiverseid = 149934

What is the language of the card with the multiverse number 149934 ?

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


Question: What is the city with the most customers?

SELECT T.city FROM ( SELECT T1.city, COUNT(T3.customer_id) AS num FROM city AS T1 INNER JOIN address AS T2 ON T2.city_id = T1.city_id INNER JOIN customer AS T3 ON T2.address_id = T3.address_id GROUP BY T1.city ) AS T ORDER BY T.num DESC LIMIT 1

What is the city with the most customers ?


Question: Show the role code with the least employees.

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

Show the role code with the least employees .


Question: How many Jewish residents are there in Moldova?

SELECT T2.Percentage * T1.Population FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Moldova' AND T2.Name = 'Jewish'

How many Jewish residents are there in Moldova ?


Question: What are the codes and corresponding contents of all the boxes, ordered by their values?

SELECT code ,  CONTENTS FROM boxes ORDER BY value

What are the codes and corresponding contents of all the boxes , ordered by their values ?

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


Question: What is the school type of the school with the highest latitude? Indicate the name of the school as well as the latitude coordinates.

SELECT T1.`School Type`, T1.`School Name`, T2.Latitude FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode ORDER BY T2.Latitude DESC LIMIT 1

What is the school type of the school with the highest latitude ? Indicate the name of the school as well as the latitude coordinates .

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


Question: List the description, code and the number of services for each service type.

SELECT T1.Service_Type_Description ,  T2.Service_Type_Code ,  COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T2.Service_Type_Code

List the description , code and the number of services for each service type .

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


Question: How many schools do not participate in the basketball match?

SELECT count(*) FROM university WHERE school_id NOT IN (SELECT school_id FROM basketball_match)

How many schools do not participate in the basketball match ?

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


Question: What are the headquarters with at least two companies in the banking industry?

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

What are the headquarters with at least two companies in the banking industry ?

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


Question: Which teams have winning rate less than 50%?

SELECT name FROM teams WHERE CAST(won AS REAL) * 100 / (won + lost) < 50

Which teams have winning rate less than 50 % ?


Question: Name the atoms' elements that form bond TR000_2_3.

SELECT T2.element FROM connected AS T1 INNER JOIN atom AS T2 ON T1.atom_id = T2.atom_id WHERE T1.bond_id = 'TR000_2_3'

Name the atoms ' elements that form bond TR000_2_3 .

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


Question: Write all comments made by user 'A Lion.'

SELECT T2.Text FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'A Lion'

Write all comments made by user ' A Lion . '

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


Question: List all the pay rates of all employees that were hired at 20 years of age.

SELECT T2.Rate FROM Employee AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE STRFTIME('%Y', T1.HireDate) - STRFTIME('%Y', T1.BirthDate) = 20

List all the pay rates of all employees that were hired at 20 years of age .

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


Question: Find all the vocal types.


Question: For the Yelp business which had the most number of "short" tips, which category does it belong to?

SELECT DISTINCT T1.category_name FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T2.business_id = T3.business_id INNER JOIN Tips AS T4 ON T3.business_id = T4.business_id WHERE T4.tip_length LIKE 'short'

For the Yelp business which had the most number of " short " tips , which category does it belong to ?

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


Question: Show all product names without an order.

SELECT product_name FROM Products EXCEPT SELECT T1.product_name FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id  =  T2.product_id

Show all product names without an order .


Question: What campuses opened between 1935 and 1939?

SELECT campus FROM campuses WHERE YEAR  >=  1935 AND YEAR  <=  1939

What campuses opened between 1935 and 1939 ?


Question: For the lists that got more than 3000 followers, how many did the users who created those lists are paying subscribers?

SELECT COUNT(T1.user_id) FROM lists_users AS T1 INNER JOIN lists AS T2 ON T1.list_id = T2.list_id WHERE T2.list_followers > 3000 AND T1.user_has_payment_method = 1

For the lists that got more than 3000 followers , how many did the users who created those lists are paying subscribers ?

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


Question: What is the full comment on the method whose solution path is "bmatzelle_nini\Source\Nini.sln" with a tokenized name of "alias text add alias"?

SELECT T2.FullComment FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'bmatzelle_niniSourceNini.sln' AND T2.NameTokenized = 'alias text add alias'

What is the full comment on the method whose solution path is " bmatzelle_nini\Source\Nini.sln " with a tokenized name of " alias text add alias " ?

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


Question: Find the names of districts whose government links use a 'gov' domain.

SELECT name FROM district WHERE Government_website LIKE "%gov%"

Find the names of districts whose government links use a ' gov ' domain .

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


Question: Identify whether the molecule that contains atom TR001_1 is carcinogenic.

SELECT T2.label AS flag_carcinogenic FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.atom_id = 'TR001_1'

Identify whether the molecule that contains atom TR001_1 is carcinogenic .


Question: For each year, return the year and the average number of attendance at home games.

SELECT YEAR ,  avg(attendance) FROM home_game GROUP BY YEAR;

For each year , return the year and the average number of attendance at home games .

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


Question: How many order keys are not applied for the discount?

SELECT COUNT(l_orderkey) FROM lineitem WHERE l_discount = 0

How many order keys are not applied for the discount ?

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


Question: In the complains received in 2012, how many of them are submitted through email?

SELECT COUNT(`Submitted via`) FROM events WHERE strftime('%Y', `Date received`) = '2012' AND `Submitted via` = 'Email'

In the complains received in 2012 , how many of them are submitted through email ?

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


Question: Find the total payment of the orders by customers from San Francisco.

SELECT SUM(T3.UnitPrice * T3.Quantity * (1 - T3.Discount)) AS TOTALPAYMENT FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN `Order Details` AS T3 ON T2.OrderID = T3.OrderID WHERE T1.City = 'San Francisco'

Find the total payment of the orders by customers from San Francisco .

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


Question: What is the percentage of documentary films?

SELECT CAST(SUM(IIF(T2.name = 'Documentary', 1, 0)) AS REAL) * 100 / COUNT(T1.film_id) FROM film_category AS T1 INNER JOIN category AS T2 ON T1.category_id = T2.category_id

What is the percentage of documentary films ?


Question: Count the number of authors.


Question: Among the active businesses located at Mesa, AZ, list the category and attributes of business with a low review count.

SELECT T3.category_name FROM Business AS T1 INNER JOIN Business_Categories AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T2.category_id = T3.category_id WHERE T1.review_count = 'Low' AND T1.city = 'Mesa' AND T1.active = 'true' AND T1.state = 'AZ'

Among the active businesses located at Mesa , AZ , list the category and attributes of business with a low review count .

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


Question: What are the names of all airports in Cuba or Argentina?

SELECT name FROM airports WHERE country  =  'Cuba' OR country  =  'Argentina'

What are the names of all airports in Cuba or Argentina ?

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


Question: When did Equatorial Guinea become independent?

SELECT T2.Independence FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Equatorial Guinea'

When did Equatorial Guinea become independent ?


Question: How many 5 star businesses have uber review votes for funny?

SELECT COUNT(business_id) FROM Reviews WHERE review_stars = 5 AND review_votes_funny = 'Uber'

How many 5 star businesses have uber review votes for funny ?

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


Question: How many papers do we have in NAACL 2000?

SELECT count(*) FROM Paper WHERE venue  =  "NAACL" AND YEAR  =  2000

How many papers do we have in NAACL 2000 ?


Question: Which weather station does the store that sold the highest quantity of item 9 belongs to?

SELECT station_nbr FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr WHERE T1.item_nbr = 9 GROUP BY T2.station_nbr ORDER BY SUM(T1.units) DESC LIMIT 1

Which weather station does the store that sold the highest quantity of item 9 belongs to ?

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


Question: For the teams with normal build-up play dribbling class in 2014, List the names of the teams with less than average chance creation passing, in descending order of chance creation passing.

SELECT t3.team_long_name FROM Team AS t3 INNER JOIN Team_Attributes AS t4 ON t3.team_api_id = t4.team_api_id WHERE t4.buildUpPlayDribblingClass = 'Normal' AND t4.chanceCreationPassing < ( SELECT CAST(SUM(t2.chanceCreationPassing) AS REAL) / COUNT(t1.id) FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.buildUpPlayDribblingClass = 'Normal' AND SUBSTR(t2.`date`, 1, 4) = '2014') ORDER BY t4.chanceCreationPassing DESC

For the teams with normal build - up play dribbling class in 2014 , List the names of the teams with less than average chance creation passing , in descending order of chance creation passing .

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


Question: What's the publisher of the book "Silicon Valley Gastronomic Treats"? Give the publisher's name.

SELECT T2.pub_name FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id WHERE T1.title = 'Silicon Valley Gastronomic Treats'

What 's the publisher of the book " Silicon Valley Gastronomic Treats " ? Give the publisher 's name .

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


Question: How many award winners are from the USA?

SELECT COUNT(*) FROM Person AS T1 INNER JOIN Award AS T2 ON T1.name = T2.person WHERE T1.birth_country = 'USA' AND T2.result = 'Winner';

How many award winners are from the USA ?


Question: What are the distinct ids of customers who bought lemon flavored cake?

SELECT DISTINCT T3.CustomerId FROM goods AS T1 JOIN items AS T2 ON T1.Id  =  T2.Item JOIN receipts AS T3 ON T2.Receipt  =  T3.ReceiptNumber WHERE T1.Flavor  =  "Lemon" AND T1.Food  =  "Cake"

What are the distinct ids of customers who bought lemon flavored cake ?

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


Question: In the parts shipped by rail, how many are of medium priority?

SELECT COUNT(T2.l_partkey) FROM orders AS T1 INNER JOIN lineitem AS T2 ON T1.o_orderkey = T2.l_orderkey WHERE T2.l_shipmode = 'RAIL' AND T1.o_orderpriority = '3-MEDIUM'

In the parts shipped by rail , how many are of medium priority ?

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


Question: Among respondents who participated in the survey in 2016, what percentage had a mental health disorder in the past?

SELECT CAST(SUM(CASE  WHEN T1.AnswerText LIKE 'Yes' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.SurveyID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T1.QuestionID = 32 AND T1.SurveyID = 2016

Among respondents who participated in the survey in 2016 , what percentage had a mental health disorder in the past ?

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


Question: What are the different product colors?

SELECT DISTINCT product_color FROM Products


Question: Give the building that the instructor who teaches the greatest number of courses lives in.

SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor  =  T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 1

Give the building that the instructor who teaches the greatest number of courses lives in .

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


Question: Please list the names of all the neighborhoods in the community area with the most population.

SELECT T1.neighborhood_name FROM Neighborhood AS T1 INNER JOIN Community_Area AS T2 ON T2.community_area_no = T2.community_area_no ORDER BY T2.population DESC LIMIT 1

Please list the names of all the neighborhoods in the community area with the most population .

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


Question: Give the full name and customer id of the customer with the fewest accounts.

SELECT T2.customer_first_name ,  T2.customer_last_name ,  T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1

Give the full name and customer i d of the customer with the fewest accounts .

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


Question: Count the number of teachers who have taught students who have never won an achievement.

SELECT count(DISTINCT T1.teacher_id) FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id  =  T2.teacher_id WHERE T2.student_id NOT IN ( SELECT student_id FROM Achievements )

Count the number of teachers who have taught students who have never won an achievement .

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


Question: What are the advisors

SELECT advisor FROM Student GROUP BY advisor HAVING count(*)  >=  2


Question: Find the make of the team whose car owner is "Buddy Arrington".

SELECT Make FROM team WHERE Car_Owner  =  "Buddy Arrington"

Find the make of the team whose car owner is " Buddy Arrington " .

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


Question: What are the names and points of spokesmen who are younger than 40?

SELECT name ,  points FROM spokesman WHERE age  <  40

What are the names and points of spokesmen who are younger than 40 ?

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


Question: When did Roma host the Olympic Games?

SELECT T3.games_year FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T2.city_name = 'Roma'


Question: How many CSU campuses are there?


Question: What are the games that were released in 2006?

SELECT T3.game_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.release_year = 2006

What are the games that were released in 2006 ?


Question: How many authors does the paper "Equation Solving in Geometrical Theories" have?

SELECT COUNT(T1.AuthorId) FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T2.Title = 'Equation Solving in Geometrical Theories'

How many authors does the paper " Equation Solving in Geometrical Theories " have ?

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


Question: What is the review length of user 35026 to business with business ID 2?

SELECT review_length FROM Reviews WHERE user_id = 35026 AND business_id = 2

What is the review length of user 35026 to business with business ID 2 ?

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


Question: Find the number of all distinct contents in all the boxes.

SELECT count(DISTINCT CONTENTS) FROM boxes

Find the number of all distinct contents in all the boxes .


Question: Among the products that have a retail price greater than 1,000, how many products were shipped via ship?

SELECT COUNT(T1.ps_suppkey) FROM partsupp AS T1 INNER JOIN lineitem AS T2 ON T1.ps_suppkey = T2.l_suppkey INNER JOIN part AS T3 ON T1.ps_partkey = T3.p_partkey WHERE T3.p_retailprice > 1000 AND T2.l_shipmode = 'SHIP'

Among the products that have a retail price greater than 1,000 , how many products were shipped via ship ?

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


Question: What are the last names of students in room 111?

SELECT lastname FROM list WHERE classroom  =  111

What are the last names of students in room 111 ?

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


Question: What were the difference of the CHS team's winning rate between 1946 and 1947 in the post-season series games? Please provide your answer in percentages.

SELECT CAST(SUM(CASE WHEN year = 1947 AND tmIDWinner = 'CHS' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN year = 1947 THEN 1 ELSE 0 END) - CAST(SUM(CASE WHEN year = 1946 AND tmIDWinner = 'CHS' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN year = 1946 THEN 1 ELSE 0 END) FROM series_post

What were the difference of the CHS team 's winning rate between 1946 and 1947 in the post - season series games ? Please provide your answer in percentages .

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


Question: What is the average number of international passengers of all airports?

SELECT avg(International_Passengers) FROM airport

What is the average number of international passengers of all airports ?

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


Question: Which episode did the composer win for Outstanding Music Composition for a Series (Original Dramatic Score) with more than 200 votes?

SELECT DISTINCT T1.episode_id FROM Award AS T1 INNER JOIN Vote AS T2 ON T2.episode_id = T1.episode_id WHERE T1.role = 'composer' AND T1.award = 'Outstanding Music Composition for a Series (Original Dramatic Score)' AND T2.votes > 200;

Which episode did the composer win for Outstanding Music Composition for a Series ( Original Dramatic Score ) with more than 200 votes ?

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


Question: Please list the IDs of the universities with the top 3 female students percentage in 2011.

SELECT university_id FROM university_year WHERE year = 2011 ORDER BY pct_female_students DESC LIMIT 3

Please list the IDs of the universities with the top 3 female students percentage in 2011 .

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


Question: In west superstore, what is the name and the shipping mode of the product that was ordered with the shortest shipment time?

SELECT DISTINCT T2.`Product Name`, T1.`Ship Mode` FROM west_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T2.Region = 'West' ORDER BY T1.`Ship Date` - T1.`Order Date` LIMIT 1

In west superstore , what is the name and the shipping mode of the product that was ordered with the shortest shipment time ?

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


Question: display those employees who contain a letter z to their first name and also display their last name, city.

SELECT T1.first_name ,  T1.last_name ,  T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id  =  T2.department_id JOIN locations AS T3 ON T2.location_id  =  T3.location_id WHERE T1.first_name LIKE '%z%'

display those employees who contain a letter z to their first name and also display their last name , city .

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


Question: What is the percentage of 5 star ratings River City brand root beer get?

SELECT CAST(COUNT(CASE WHEN T2.StarRating = 5 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.StarRating) FROM rootbeerbrand AS T1 INNER JOIN rootbeerreview AS T2 ON T1.BrandID = T2.BrandID WHERE T1.BrandName = 'River City'

What is the percentage of 5 star ratings River City brand root beer get ?

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


Question: List all manufacturer names and ids ordered by their opening year.

SELECT name ,  manufacturer_id FROM manufacturer ORDER BY open_year

List all manufacturer names and ids ordered by their opening year .

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


Question: Provide the inspection ID of the establishment named "PIZZA RUSTICA, INC."

SELECT DISTINCT T2.inspection_id FROM establishment AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no WHERE T1.dba_name = 'PIZZA RUSTICA, INC'

Provide the inspection ID of the establishment named " PIZZA RUSTICA , INC . "

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


Question: Among author ID of under 1000, who published the paper in affiliation with Zurich, ETH, provide paper ID, year and keyword if any.

SELECT T2.Id, T2.Year, T2.Keyword FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.AuthorId < 1000 AND T1.Affiliation = 'Zurich, ETH'

Among author ID of under 1000 , who published the paper in affiliation with Zurich , ETH , provide paper ID , year and keyword if any .

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


Question: What is the team with at least 2 technicians?

SELECT Team FROM technician GROUP BY Team HAVING COUNT(*)  >=  2

What is the team with at least 2 technicians ?


Question: What is the distance between the cities where Linda Smith and Tracy Kim live?

SELECT distance 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" AND T3.Fname  =  "Tracy" AND T3.Lname  =  "Kim"

What is the distance between the cities where Linda Smith and Tracy Kim live ?

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


Question: Retrieve the average age of members of the club "Tennis Club".

SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Tennis Club"

Retrieve the average age of members of the club " Tennis Club " .

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


Question: For each type of food, what are the average, maximum and minimum price?

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

For each type of food , what are the average , maximum and minimum price ?

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


Question: List out the number of object samples in image no.41 which are in the class of "kitchen"?

SELECT SUM(CASE WHEN T2.OBJ_CLASS = 'kitchen' THEN 1 ELSE 0 END) FROM IMG_OBJ AS T1 INNER JOIN OBJ_CLASSES AS T2 ON T1.OBJ_CLASS_ID = T2.OBJ_CLASS_ID WHERE T1.IMG_ID = 41

List out the number of object samples in image no.41 which are in the class of " kitchen " ?

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


Question: What are the team and starting year of technicians?

SELECT Team ,  Starting_Year FROM technician

What are the team and starting year of technicians ?

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


Question: List names and colleges of all players in descending order of rank of the year.

SELECT Player_name ,  College FROM player ORDER BY Rank_of_the_year DESC

List names and colleges of all players in descending order of rank of the year .

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


Question: Show the ids and names for all documents by author Bianka Cummings.

SELECT document_id ,  document_name FROM Documents WHERE author_name  =  "Bianka Cummings"

Show the ids and names for all documents by author Bianka Cummings .

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


Question: What is the average age of the female users who uses a vivo device?

SELECT AVG(T1.age) FROM gender_age AS T1 INNER JOIN phone_brand_device_model2 AS T2 ON T1.device_id = T2.device_id WHERE T2.phone_brand = 'vivo' AND T1.gender = 'F'

What is the average age of the female users who uses a vivo device ?

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


Question: What is the discounted price of the part "burnished seashell gainsboro navajo chocolate" in order no.1?

SELECT T1.l_extendedprice * (1 - T1.l_discount) FROM lineitem AS T1 INNER JOIN part AS T2 ON T1.l_partkey = T2.p_partkey WHERE T2.p_name = 'burnished seashell gainsboro navajo chocolate' AND T1.l_orderkey = 1

What is the discounted price of the part " burnished seashell gainsboro navajo chocolate " in order no.1 ?

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


Question: List the dishes that appeared at the left upper corner of the CHAS.BRADLEY'S OYSTER & DINING ROOM"s sponsored menu.

SELECT T4.name FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T3.sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM' AND T1.xpos < 0.25 AND T1.ypos < 0.25

List the dishes that appeared at the left upper corner of the CHAS.BRADLEY 'S OYSTER & DINING ROOM"s sponsored menu .

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


Question: For the tweet which got the most likes, state the gender of the user who tweeted it.

SELECT T2.Gender FROM twitter AS T1 INNER JOIN user AS T2 ON T1.UserID = T2.UserID ORDER BY T1.Likes DESC LIMIT 1

For the tweet which got the most likes , state the gender of the user who tweeted it .

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


Question: List all the types of forms.

SELECT DISTINCT form_type_code FROM forms


Question: How many products sold by Adam Hernandez?

SELECT SUM(CASE WHEN T2.`Sales Team` = 'Adam Hernandez' THEN 1 ELSE 0 END) FROM `Sales Orders` AS T1 INNER JOIN `Sales Team` AS T2 ON T2.SalesTeamID = T1._SalesTeamID

How many products sold by Adam Hernandez ?


Question: What are all meeting types and other details?

SELECT meeting_type ,  other_details FROM meetings

What are all meeting types and other details ?

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


Question: What are all the agency ids and details?

SELECT agency_id ,  agency_details FROM Agencies

What are all the agency ids and details ?

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


Question: Which business had the most number of inspections? Give the Id number for that business.

SELECT business_id FROM inspections GROUP BY business_id ORDER BY COUNT(business_id) DESC LIMIT 1

Which business had the most number of inspections ? Give the I d number for that business .

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


Question: Among all the donors from New York, how many of them are teachers?

SELECT COUNT(donationid) FROM donations WHERE is_teacher_acct = 't' AND donor_city = 'New York'

Among all the donors from New York , how many of them are teachers ?

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


Question: Calculate the total average number of papers published from 2002 to 2010 under the conference "Information and Knowledge Engineering".

SELECT CAST(COUNT(T1.Id) AS REAL) / COUNT(DISTINCT T1.Year) FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T2.FullName = 'Information and Knowledge Engineering' AND T1.Year >= 2002 AND T1.Year <= 2010

Calculate the total average number of papers published from 2002 to 2010 under the conference " Information and Knowledge Engineering " .

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


Question: Among the cards in the set "Hauptset Zehnte Edition", how many of them are designed by Adam Rex?

SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T2.translation = 'Hauptset Zehnte Edition' AND T1.artist = 'Adam Rex'

Among the cards in the set " Hauptset Zehnte Edition " , how many of them are designed by Adam Rex ?

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


Question: List the grapes and appelations of all wines.

List the grapes and appelations of all wines .


Question: Which year did the "Internet, Multimedia Systems and Applications" conference publish the most papers?

SELECT T2.Year FROM Conference AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.ConferenceId WHERE T1.FullName = 'Internet, Multimedia Systems and Applications' GROUP BY T2.Year ORDER BY COUNT(T2.Id) DESC LIMIT 1

Which year did the " Internet , Multimedia Systems and Applications " conference publish the most papers ?

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


Question: What is the first name, last name, and phone of the customer with account name 162?

SELECT T2.customer_first_name ,  T2.customer_last_name ,  T2.customer_phone FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.account_name  =  "162"

What is the first name , last name , and phone of the customer with account name 162 ?

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


Question: How many drivers participated in the race Australian Grand Prix held in 2009?

SELECT count(*) FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid WHERE T2.name = "Australian Grand Prix" AND YEAR = 2009

How many drivers participated in the race Australian Grand Prix held in 2009 ?

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


Question: Count the number of captains younger than 50 of each rank.

SELECT count(*) ,  rank FROM captain WHERE age  <  50 GROUP BY rank

Count the number of captains younger than 50 of each rank .

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


Question: Calculate the percentage of businesses with the category name food that are open from 7AM to 8PM in the businesses with the same time.

SELECT CAST(SUM(CASE WHEN T3.category_name = 'Food' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T3.category_name) FROM Business_Categories AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id INNER JOIN Categories AS T3 ON T1.category_id = T3.category_id

Calculate the percentage of businesses with the category name food that are open from 7AM to 8PM in the businesses with the same time .

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


Question: Which country has the city of 114339 in population? Give the full name of the country.

SELECT T1.Name FROM country AS T1 INNER JOIN city AS T2 ON T1.Code = T2.Country WHERE T2.Population = 114339

Which country has the city of 114339 in population ? Give the full name of the country .

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


Question: Among the patients that started taking Ibuprofen 200mg Oral Tablet in 2016, how many Dominican patients stopped taking the medicine after exactly one month?

SELECT COUNT(DISTINCT T1.patient) FROM patients AS T1 INNER JOIN medications AS T2 ON T1.patient = T2.PATIENT WHERE T2.DESCRIPTION = 'Ibuprofen 200 MG Oral Tablet' AND T1.ethnicity = 'dominican' AND strftime('%Y', T2.START) = '2016' AND strftime('%m', T2.STOP) - strftime('%m', T2.START) = 1

Among the patients that started taking Ibuprofen 200 mg Oral Tablet in 2016 , how many Dominican patients stopped taking the medicine after exactly one month ?

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


Question: Which books were released by Orson Scott Card in 2001?

SELECT T1.title FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'Orson Scott Card' AND STRFTIME('%Y', T1.publication_date) = '2001'

Which books were released by Orson Scott Card in 2001 ?

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


Question: In which platform does the game titled 15 Days available?

SELECT T1.platform_name FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id INNER JOIN game AS T4 ON T3.game_id = T4.id WHERE T4.game_name = 'Counter Force'

In which platform does the game titled 15 Days available ?


Question: What are the full names of customers who bought apple flavored Tarts?

SELECT DISTINCT T4.FirstName ,  T4.LastName FROM goods AS T1 JOIN items AS T2 ON T1.id  =  T2.item JOIN receipts AS T3 ON T2.receipt  =  T3.ReceiptNumber JOIN customers AS T4 ON T3.CustomerId  =  T4.id WHERE T1.flavor  =  "Apple" AND T1.food  =  "Tart"

What are the full names of customers who bought apple flavored Tarts ?

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


Question: What are the ids and names of the medicine that can interact with two or more enzymes?

SELECT T1.id ,  T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id  =  T1.id GROUP BY T1.id HAVING count(*)  >=  2

What are the ids and names of the medicine that can interact with two or more enzymes ?

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


Question: Show the most common college of authors of submissions.

SELECT College FROM submission GROUP BY College ORDER BY COUNT(*) DESC LIMIT 1

Show the most common college of authors of submissions .


Question: Find the number of distinct amenities.


Question: What are the numbers of works for different medium type?

SELECT count(*) ,  medium FROM paintings GROUP BY medium

What are the numbers of works for different medium type ?


Question: What is the name of the person who is the oldest?

SELECT name FROM Person WHERE age  =  (SELECT max(age) FROM person)

What is the name of the person who is the oldest ?


Question: Which category has the highest number of users?

SELECT T.category FROM ( SELECT T2.category, COUNT(T1.app_id) AS num FROM app_labels AS T1 INNER JOIN label_categories AS T2 ON T2.label_id = T1.label_id GROUP BY T1.app_id, T2.category ) AS T ORDER BY T.num DESC LIMIT 1

Which category has the highest number of users ?


Question: Show the document type code with fewer than 3 documents.

SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING count(*)  <  3

Show the document type code with fewer than 3 documents .

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


Question: How many distinct claim outcome codes are there?

SELECT count(DISTINCT claim_outcome_code) FROM claims_processing

How many distinct claim outcome codes are there ?


Question: Find the number of dorms that have some amenity.

SELECT count(DISTINCT dormid) FROM has_amenity

Find the number of dorms that have some amenity .


Question: Find the title of course that is provided by both Statistics and Psychology departments.

SELECT title FROM course WHERE dept_name  =  'Statistics' INTERSECT SELECT title FROM course WHERE dept_name  =  'Psychology'

Find the title of course that is provided by both Statistics and Psychology departments .

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


Question: Which distinct state makes beer that has the least amount of bitterness?

SELECT DISTINCT T2.state, T1.ibu FROM beers AS T1 INNER JOIN breweries AS T2 ON T1.brewery_id = T2.id WHERE T1.ibu IS NOT NULL AND T1.ibu = ( SELECT MIN(ibu) FROM beers )

Which distinct state makes beer that has the least amount of bitterness ?


Question: Find the unique contents of all boxes whose value is higher than the average value of all boxes.

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

Find the unique contents of all boxes whose value is higher than the average value of all boxes .

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


Question: What is the surface area and GNP of the country where Namibe district belongs?

SELECT T2.SurfaceArea, T2.GNP FROM City AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.Code WHERE T1.District = 'Namibe'

What is the surface area and GNP of the country where Namibe district belongs ?

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


Question: How many streets with restaurants are there in the Northern California region?

SELECT COUNT(T1.city) FROM geographic AS T1 INNER JOIN location AS T2 ON T1.city = T2.city WHERE T1.region = 'northern california'

How many streets with restaurants are there in the Northern California region ?

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


Question: Please list the name and phone number of the customer whose order was cancelled.

SELECT T2.customerName, T2.phone FROM orders AS T1 INNER JOIN customers AS T2 ON T1.customerNumber = T2.customerNumber WHERE T1.status = 'Cancelled'

Please list the name and phone number of the customer whose order was cancelled .

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


Question: Write me the titles of the movies starring Jim Carrey.

SELECT T1.title FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T3.person_name = 'Jim Carrey'

Write me the titles of the movies starring Jim Carrey .

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


Question: How much longer in percentage is the screen time of the most important character in Batman than the least important one?

SELECT (MAX(CAST(SUBSTR(T2.screentime, 3, 2) AS REAL)) - MIN(CAST(SUBSTR(T2.screentime, 3, 2) AS REAL))) * 100 / MIN(CAST(SUBSTR(T2.screentime, 3, 2) AS REAL)) FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID WHERE T1.Title = 'Batman'

How much longer in percentage is the screen time of the most important character in Batman than the least important one ?

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


Question: Based on the data shown at Target, what percentage of countries are non-Christian?

SELECT 100 - (CAST(SUM(CASE WHEN Target = 'Christian' THEN 1 ELSE 0 END) AS REAL)) * 100 / COUNT(Country) FROM target

Based on the data shown at Target , what percentage of countries are non - Christian ?

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


Question: Who is the founder of Sony?

SELECT founder FROM manufacturers WHERE name  =  'Sony'