Question: SELECT author_name FROM Documents WHERE document_name  =  "Travel to Brazil"

SELECT author_name FROM Documents WHERE document_name = `` Travel to Brazil ''

select author_name from documents where document_name = value

Who is the author of the document "Travel to Brazil"?

Who is the author of the document `` Travel to Brazil '' ?


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

select model from vehicle where total_production > value or top_speed > value

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

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


Question: SELECT T2.code FROM boxes AS T1 JOIN Warehouses AS T2 ON T1.warehouse  =  T2.code GROUP BY T2.code HAVING count(*)  >  T2.capacity

SELECT T2.code FROM boxes AS T1 JOIN Warehouses AS T2 ON T1.warehouse = T2.code GROUP BY T2.code HAVING count ( * ) > T2.capacity

select t2 . code from boxes as t1 join warehouses as t2 on t1 . warehouse = t2 . code group by t2 . code having count ( * ) > t2 . capacity

Select the codes of all warehouses that are above capacity.

Select the codes of all warehouses that are above capacity .


Question: SELECT name ,  type_of_powertrain ,  annual_fuel_cost FROM vehicles WHERE model_year  =  2013 OR model_year  =  2014

select name , type_of_powertrain , annual_fuel_cost from vehicles where model_year = value or model_year = value

What are the names, types of powertrains, and yearly fuel costs for vehicles with model years in either 2013 2014?

What are the names , types of powertrains , and yearly fuel costs for vehicles with model years in either 2013 2014 ?


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

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

select t1 . rating , avg ( t1 . age ) from sailors as t1 join reserves as t2 on t1 . sid = t2 . sid join boats as t3 on t3 . bid = t2 . bid where t3 . color = value group by t1 . rating

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

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


Question: SELECT product_name FROM Products WHERE product_type_code  =  "Hardware" ORDER BY product_price ASC

SELECT product_name FROM Products WHERE product_type_code = `` Hardware '' ORDER BY product_price ASC

select product_name from products where product_type_code = value order by product_price asc

Show all hardware type products in ascending order of price.

Show all hardware type products in ascending order of price .


Question: SELECT type_of_powertrain ,  avg(annual_fuel_cost) FROM vehicles GROUP BY type_of_powertrain HAVING count(*)  >=  2

SELECT type_of_powertrain , avg ( annual_fuel_cost ) FROM vehicles GROUP BY type_of_powertrain HAVING count ( * ) > = 2

select type_of_powertrain , avg ( annual_fuel_cost ) from vehicles group by type_of_powertrain having count ( * ) > = value

Show the type of powertrain with at least two vehicles, and the average annual fuel cost for vehicles in each such type.

Show the type of powertrain with at least two vehicles , and the average annual fuel cost for vehicles in each such type .


Question: SELECT sid FROM Sailors EXCEPT SELECT sid FROM Reserves

select sid from sailors except select sid from reserves

What are the ids of sailors who have not reserved a boat?

What are the ids of sailors who have not reserved a boat ?


Question: SELECT T3.name FROM Orders AS T1 JOIN Books_Order AS T2 ON T1.idOrder  =  T2.idOrder JOIN Client AS T3 ON T1.idClient  =  T3.idClient JOIN Book AS T4 ON T4.isbn  =  T2.isbn WHERE T4.title  =  "Pride and Prejudice"

select t3 . name from orders as t1 join books_order as t2 on t1 . idorder = t2 . idorder join client as t3 on t1 . idclient = t3 . idclient join book as t4 on t4 . isbn = t2 . isbn where t4 . title = value

What are the names of clients who have ordered Pride and Prejudice?

What are the names of clients who have ordered Pride and Prejudice ?


Question: SELECT count(*) FROM Staff


Question: select t3.name ,  sum(t1.weight) from package as t1 join shipment as t2 on t1.shipment = t2.shipmentid join planet as t3 on t2.planet = t3.planetid group by t2.planet;

select t3.name , sum ( t1.weight ) from package as t1 join shipment as t2 on t1.shipment = t2.shipmentid join planet as t3 on t2.planet = t3.planetid group by t2.planet ;

select t3 . name , sum ( t1 . weight ) from package as t1 join shipment as t2 on t1 . shipment = t2 . shipmentid join planet as t3 on t2 . planet = t3 . planetid group by t2 . planet

what is the total package weight for each planet, list its name ?


Question: SELECT Manager ,  Sponsor FROM team ORDER BY Car_Owner

select manager , sponsor from team order by car_owner

What are the managers and sponsors of teams? Sort the results by Car Owners.

What are the managers and sponsors of teams ? Sort the results by Car Owners .


Question: SELECT count(*) FROM Document_Objects WHERE OWNER = "Marlin";

SELECT count ( * ) FROM Document_Objects WHERE OWNER = `` Marlin '' ;

select count ( * ) from document_objects where owner = value


Question: SELECT DISTINCT T1.name ,  T1.sid FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid  =  T2.sid WHERE  T1.rating  >  2

select distinct t1 . name , t1 . sid from sailors as t1 join reserves as t2 on t1 . sid = t2 . sid where t1 . rating > value

What are the names and ids of all sailors who have a rating of at least 3 and reserved a boat?

What are the names and ids of all sailors who have a rating of at least 3 and reserved a boat ?


Question: SELECT type_of_powertrain ,  count(*) FROM vehicles GROUP BY type_of_powertrain

SELECT type_of_powertrain , count ( * ) FROM vehicles GROUP BY type_of_powertrain

select type_of_powertrain , count ( * ) from vehicles group by type_of_powertrain

Show all types of powertrain and the number of vehicles in each type.

Show all types of powertrain and the number of vehicles in each type .


Question: SELECT count(DISTINCT language_id) FROM official_languages

SELECT count ( DISTINCT language_id ) FROM official_languages

select count ( distinct language_id ) from official_languages

Count the number of different official languages.

Count the number of different official languages .


Question: SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON  T1.Sender = T2.AccountNumber JOIN Shipment AS T3 ON T1.Shipment = T3.ShipmentID JOIN Planet AS T4 ON T3.Planet = T4.PlanetID WHERE T2.Name = "Zapp Brannigan" AND T4.Name = "Omicron Persei 8";

SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber JOIN Shipment AS T3 ON T1.Shipment = T3.ShipmentID JOIN Planet AS T4 ON T3.Planet = T4.PlanetID WHERE T2.Name = `` Zapp Brannigan '' AND T4.Name = `` Omicron Persei 8 '' ;

select t1 . packagenumber from package as t1 join client as t2 on t1 . sender = t2 . accountnumber join shipment as t3 on t1 . shipment = t3 . shipmentid join planet as t4 on t3 . planet = t4 . planetid where t2 . name = value and t4 . name = value

What are the number of packages sent by Zapp Brannigan and shipped on the Omicron Persei 8?

What are the number of packages sent by Zapp Brannigan and shipped on the Omicron Persei 8 ?


Question: SELECT invoice_id ,  invoice_status FROM Invoices EXCEPT SELECT T1.invoice_id ,  T1.invoice_status FROM Invoices AS T1 JOIN Payments AS T2 ON T1.invoice_id  =  T2.invoice_id

Show all invoice ids and statuses without a payment.

Show all invoice ids and statuses without a payment .


Question: SELECT sum(T1.value) FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse  =  T2.code WHERE T2.location  =  'Chicago' OR T2.location  =  'New York'

SELECT sum ( T1.value ) FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location = 'Chicago ' OR T2.location = 'New York '

select sum ( t1 . value ) from boxes as t1 join warehouses as t2 on t1 . warehouse = t2 . code where t2 . location = value or t2 . location = value

Find the total value of boxes in the warehouses located at Chicago or New York.

Find the total value of boxes in the warehouses located at Chicago or New York .


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

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

select count ( t1 . pilot_name ) , avg ( t1 . age ) , t2 . location from pilotskills as t1 join hangar as t2 on t1 . plane_name = t2 . plane_name group by t2 . location

For each city, find the number and average age of pilots who have a plane.

For each city , find the number and average age of pilots who have a plane .


Question: SELECT flavor FROM goods WHERE food  =  "Croissant"

SELECT flavor FROM goods WHERE food = `` Croissant ''

select flavor from goods where food = value

List all the flavors of Croissant available in this bakery.

List all the flavors of Croissant available in this bakery .


Question: SELECT count(*) FROM languages


Question: SELECT T2.Race_Name FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID  =  T2.Driver_ID WHERE T1.Age  >=  26

select t2 . race_name from driver as t1 join race as t2 on t1 . driver_id = t2 . driver_id where t1 . age > = value

What are the names of races in which drivers 26 or older took part?

What are the names of races in which drivers 26 or older took part ?


Question: SELECT pilot_name ,  age FROM pilotskills WHERE plane_name  =  'Piper Cub' AND age  >  35 UNION SELECT pilot_name ,  age FROM pilotskills WHERE plane_name  =  'F-14 Fighter' AND age  <  30

SELECT pilot_name , age FROM pilotskills WHERE plane_name = 'Piper Cub ' AND age > 35 UNION SELECT pilot_name , age FROM pilotskills WHERE plane_name = 'F-14 Fighter ' AND age < 30

select pilot_name , age from pilotskills where plane_name = value and age > value union select pilot_name , age from pilotskills where plane_name = value and age < value

Return the names and ages of pilors who have flown Piper Cub and are older than 35, or have flown the F-14 Fighter and are younger than 30.

Return the names and ages of pilors who have flown Piper Cub and are older than 35 , or have flown the F-14 Fighter and are younger than 30 .


Question: SELECT t2.country FROM driver AS t1 JOIN country AS t2 ON t1.country  =  t2.country_id WHERE t1.Make  =  "Dodge" INTERSECT SELECT t2.country FROM driver AS t1 JOIN country AS t2 ON t1.country  =  t2.country_id WHERE t1.Make  =  "Chevrolet"

SELECT t2.country FROM driver AS t1 JOIN country AS t2 ON t1.country = t2.country_id WHERE t1.Make = `` Dodge '' INTERSECT SELECT t2.country FROM driver AS t1 JOIN country AS t2 ON t1.country = t2.country_id WHERE t1.Make = `` Chevrolet ''

select t2 . country from driver as t1 join country as t2 on t1 . country = t2 . country_id where t1 . make = value intersect select t2 . country from driver as t1 join country as t2 on t1 . country = t2 . country_id where t1 . make = value

Which country has both drivers with make "Dodge" and drivers with make "Chevrolet"?

Which country has both drivers with make `` Dodge '' and drivers with make `` Chevrolet '' ?


Question: SELECT avg(age) FROM customers WHERE membership_credit  >  (SELECT avg(membership_credit) FROM customers)

SELECT avg ( age ) FROM customers WHERE membership_credit > ( SELECT avg ( membership_credit ) FROM customers )

select avg ( age ) from customers where membership_credit > ( select avg ( membership_credit ) from customers )

What is the average age for customers with a membership credit above the average?

What is the average age for customers with a membership credit above the average ?


Question: SELECT T2.Name ,  T1.Nickname FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID  =  T2.Institution_ID

select t2 . name , t1 . nickname from championship as t1 join institution as t2 on t1 . institution_id = t2 . institution_id

Return the names of institutions, as well as their nicknames.

Return the names of institutions , as well as their nicknames .


Question: SELECT name ,  age FROM Sailors ORDER BY rating DESC

select name , age from sailors order by rating desc

List the names and ages of all sailors sorted by rating in descending order.

List the names and ages of all sailors sorted by rating in descending order .


Question: SELECT payment_method_code ,  count(*) FROM Customers GROUP BY payment_method_code

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

select payment_method_code , count ( * ) from customers group by payment_method_code

How many customers use each payment method?

How many customers use each payment method ?


Question: SELECT sum(T1.value) FROM boxes AS T1 JOIN Warehouses AS T2 ON T1.warehouse  =  T2.code WHERE T2.location != 'Chicago'

SELECT sum ( T1.value ) FROM boxes AS T1 JOIN Warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location ! = 'Chicago '

select sum ( t1 . value ) from boxes as t1 join warehouses as t2 on t1 . warehouse = t2 . code where t2 . location ! = value

What is the total value of boxes contained in any location but Chicago?

What is the total value of boxes contained in any location but Chicago ?


Question: SELECT T1.detention_type_code ,  T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code  =  T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY count(*) ASC LIMIT 1

SELECT T1.detention_type_code , T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY count ( * ) ASC LIMIT 1

What is the least common detention type? Show the type code and the description.

What is the least common detention type ? Show the type code and the description .


Question: SELECT Name FROM institution ORDER BY Name ASC

select name from institution order by name asc

What are the names of institutions, ordered alphabetically?

What are the names of institutions , ordered alphabetically ?


Question: SELECT count(*) ,  teacher_id FROM Classes GROUP BY teacher_id ORDER BY count(*) DESC LIMIT 1

SELECT count ( * ) , teacher_id FROM Classes GROUP BY teacher_id ORDER BY count ( * ) DESC LIMIT 1

select count ( * ) , teacher_id from classes group by teacher_id order by count ( * ) desc limit value

Which teacher teaches the most courses? Give me the id of the teacher and the number of courses he or she teaches.

Which teacher teaches the most courses ? Give me the id of the teacher and the number of courses he or she teaches .


Question: SELECT T2.agency_details FROM Clients AS T1 JOIN Agencies AS T2 ON T1.agency_id  =  T2.agency_id WHERE T1.client_details  =  'Mac'

SELECT T2.agency_details FROM Clients AS T1 JOIN Agencies AS T2 ON T1.agency_id = T2.agency_id WHERE T1.client_details = 'Mac '

Show agency details for client with detail 'Mac'.

Show agency details for client with detail 'Mac ' .


Question: SELECT product_id ,  product_name FROM Products WHERE product_type_code  =  "Hardware" ORDER BY product_price ASC LIMIT 1

SELECT product_id , product_name FROM Products WHERE product_type_code = `` Hardware '' ORDER BY product_price ASC LIMIT 1

select product_id , product_name from products where product_type_code = value order by product_price asc limit value

Give the id and name of the cheapest Hardware product.

Give the id and name of the cheapest Hardware product .


Question: SELECT count(*) FROM bike WHERE weight  >  780

SELECT count ( * ) FROM bike WHERE weight > 780

select count ( * ) from bike where weight > value

How many bikes are heavier than 780 grams?

How many bikes are heavier than 780 grams ?


Question: select title from book order by purchaseprice  desc limit 1

select title from book order by purchaseprice desc limit value

List all book titles which have highest purchase prices .


Question: select t1.document_subset_id ,  t2.document_subset_name , count(distinct t1.document_object_id) from document_subset_members as t1 join document_subsets as t2 on t1.document_subset_id =  t2.document_subset_id group by t1.document_subset_id order by count(*) desc limit 1;

select t1.document_subset_id , t2.document_subset_name , count ( distinct t1.document_object_id ) from document_subset_members as t1 join document_subsets as t2 on t1.document_subset_id = t2.document_subset_id group by t1.document_subset_id order by count ( * ) desc limit 1 ;

For the document subset with the most number of different documents , what are the ids and names of the subset , as well as the number of documents ?


Question: SELECT avg(amount_of_loan) FROM Student_Loans

SELECT avg ( amount_of_loan ) FROM Student_Loans

select avg ( amount_of_loan ) from student_loans

What is the average amount of a student loan?

What is the average amount of a student loan ?


Question: SELECT name ,  age FROM Sailors ORDER BY rating DESC

select name , age from sailors order by rating desc

What are the names and ages of all sailors sorted by decreasing rating?

What are the names and ages of all sailors sorted by decreasing rating ?


Question: SELECT Name ,  Nationality FROM member

What are the names and nationalities of the members?

What are the names and nationalities of the members ?


Question: SELECT Exam_Date ,  Exam_Name FROM Exams WHERE Subject_Code != 'Database'

SELECT Exam_Date , Exam_Name FROM Exams WHERE Subject_Code ! = 'Database '

select exam_date , exam_name from exams where subject_code ! = value

What are the names and dates of the exams with subject code that is not "Database"?

What are the names and dates of the exams with subject code that is not `` Database '' ?


Question: SELECT T1.Name ,  T2.Dish_Name FROM customer AS T1 JOIN customer_order AS T2 ON T1.Customer_ID  =  T2.Customer_ID ORDER BY T2.Quantity DESC

For each order, find the customer name and the dish name. Sort the result in descending order of the quantity of dish.

For each order , find the customer name and the dish name . Sort the result in descending order of the quantity of dish .


Question: SELECT DISTINCT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN Conference AS T3 ON T1.staff_id  =  T2.staff_id AND T2.conference_id  =  T3.conference_id WHERE T3.year  =  2003 OR T3.year  =  2004

select distinct t1 . name from staff as t1 join conference_participation as t2 join conference as t3 on t1 . staff_id = t2 . staff_id and t2 . conference_id = t3 . conference_id where t3 . year = value or t3 . year = value

Show all staff names who attend a conference in 2003 or 2004.

Show all staff names who attend a conference in 2003 or 2004 .


Question: SELECT client_id FROM Invoices GROUP BY client_id HAVING count(*)  >=  2

SELECT client_id FROM Invoices GROUP BY client_id HAVING count ( * ) > = 2

select client_id from invoices group by client_id having count ( * ) > = value

Return the client ids for clients with two or more invoices?

Return the client ids for clients with two or more invoices ?


Question: SELECT T2.Fname ,  T2.Lname FROM City AS T1 JOIN Student AS T2 ON T1.city_code  =  T2.city_code WHERE T1.state  =  "MD"

SELECT T2.Fname , T2.Lname FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code WHERE T1.state = `` MD ''

select t2 . fname , t2 . lname from city as t1 join student as t2 on t1 . city_code = t2 . city_code where t1 . state = value

What are the full names of students living in MD?

What are the full names of students living in MD ?


Question: SELECT datetime_detention_start ,  datetime_detention_end FROM Detention

select datetime_detention_start , datetime_detention_end from detention

Show the detention start time and end time of the detentions.

Show the detention start time and end time of the detentions .


Question: SELECT count(DISTINCT customer_id) FROM Customer_orders

SELECT count ( DISTINCT customer_id ) FROM Customer_orders

select count ( distinct customer_id ) from customer_orders


Question: SELECT count(DISTINCT neighborhood) FROM store

SELECT count ( DISTINCT neighborhood ) FROM store

select count ( distinct neighborhood ) from store

How many different neighborhoods are there for all stores?

How many different neighborhoods are there for all stores ?


Question: SELECT T1.customer_id ,  T2.customer_name ,  T2.customer_phone ,  T2.customer_email FROM Customer_orders AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1

What is the customer id, name, phone, and email for the customer with most orders?

What is the customer id , name , phone , and email for the customer with most orders ?


Question: SELECT type_of_powertrain ,  count(*) FROM vehicles GROUP BY type_of_powertrain

SELECT type_of_powertrain , count ( * ) FROM vehicles GROUP BY type_of_powertrain

select type_of_powertrain , count ( * ) from vehicles group by type_of_powertrain

How many vehicles have each type of powertrain?

How many vehicles have each type of powertrain ?


Question: SELECT university_name ,  city ,  state FROM University ORDER BY university_name

select university_name , city , state from university order by university_name

Show name, city, and state for all universities in  alphabetical order of university name.

Show name , city , and state for all universities in alphabetical order of university name .


Question: SELECT First_Name FROM Students WHERE Student_ID NOT IN (SELECT Student_ID FROM Student_Answers)

SELECT First_Name FROM Students WHERE Student_ID NOT IN ( SELECT Student_ID FROM Student_Answers )

select first_name from students where student_id not in ( select student_id from student_answers )

Which students do not have any answers? Find their first names.

Which students do not have any answers ? Find their first names .


Question: SELECT T1.product_name ,  T1.product_color FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id  =  T2.product_id JOIN Shipment_Items AS T3 ON T2.order_item_id  =  T3.order_item_id JOIN Shipments AS T4 ON T3.shipment_id  =  T4.shipment_id

What is the product name and the color of the ordered items which have been shipped?

What is the product name and the color of the ordered items which have been shipped ?


Question: SELECT t1.name FROM district AS t1 JOIN spokesman_district AS t2 ON t1.District_ID  =  t2.District_ID GROUP BY t2.District_ID ORDER BY count(*) DESC LIMIT 1

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

select t1 . name from district as t1 join spokesman_district as t2 on t1 . district_id = t2 . district_id group by t2 . district_id order by count ( * ) desc limit value

Find the name of the district which has greatest number of spokesmen.

Find the name of the district which has greatest number of spokesmen .


Question: SELECT Earnings FROM player WHERE Country  =  "Australia" OR Country  =  "Zimbabwe"

SELECT Earnings FROM player WHERE Country = `` Australia '' OR Country = `` Zimbabwe ''

select earnings from player where country = value or country = value

Show the earnings of players from country "Australia" or "Zimbabwe".

Show the earnings of players from country `` Australia '' or `` Zimbabwe '' .


Question: SELECT t1.name ,  t1.gender FROM author AS t1 JOIN book AS t2 ON t1.author_id  =  t2.author_id GROUP BY t2.author_id ORDER BY count(*) DESC LIMIT 1

SELECT t1.name , t1.gender FROM author AS t1 JOIN book AS t2 ON t1.author_id = t2.author_id GROUP BY t2.author_id ORDER BY count ( * ) DESC LIMIT 1

select t1 . name , t1 . gender from author as t1 join book as t2 on t1 . author_id = t2 . author_id group by t2 . author_id order by count ( * ) desc limit value

find the name and gender of the author who published the most books.

find the name and gender of the author who published the most books .


Question: SELECT DISTINCT T1.item FROM items AS T1 JOIN goods AS T2 ON T1.item  =  T2.id WHERE T2.flavor  =  "Chocolate" GROUP BY item HAVING count(*)  <=  10

SELECT DISTINCT T1.item FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.flavor = `` Chocolate '' GROUP BY item HAVING count ( * ) < = 10

select distinct t1 . item from items as t1 join goods as t2 on t1 . item = t2 . id where t2 . flavor = value group by item having count ( * ) < = value

What are the items with chocolate flavor that were purchased at most 10 times.

What are the items with chocolate flavor that were purchased at most 10 times .


Question: SELECT t1.name FROM author AS t1 JOIN book AS t2 ON t1.author_id  =  t2.author_id WHERE t2.book_series  =  'MM' INTERSECT SELECT t1.name FROM author AS t1 JOIN book AS t2 ON t1.author_id  =  t2.author_id WHERE t2.book_series  =  'LT'

SELECT t1.name FROM author AS t1 JOIN book AS t2 ON t1.author_id = t2.author_id WHERE t2.book_series = 'MM ' INTERSECT SELECT t1.name FROM author AS t1 JOIN book AS t2 ON t1.author_id = t2.author_id WHERE t2.book_series = 'LT '

Find the name of authors who publish their books in both "MM" and "LT" series.

Find the name of authors who publish their books in both `` MM '' and `` LT '' series .


Question: SELECT DISTINCT name ,  address FROM Affiliation

select distinct name , address from affiliation

List names and addresses for all affiliations.

List names and addresses for all affiliations .


Question: SELECT sic_code ,  count(*) FROM Clients GROUP BY sic_code

SELECT sic_code , count ( * ) FROM Clients GROUP BY sic_code

select sic_code , count ( * ) from clients group by sic_code

How many clients are there for each sic code?

How many clients are there for each sic code ?


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

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

select t1 . packagenumber from package as t1 join client as t2 on t1 . sender = t2 . accountnumber where t2 . name = value intersect select t1 . packagenumber from package as t1 join client as t2 on t1 . recipient = t2 . accountnumber where t2 . name = value

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

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


Question: SELECT city_name FROM City WHERE country  =  "USA" ORDER BY latitude

SELECT city_name FROM City WHERE country = `` USA '' ORDER BY latitude

select city_name from city where country = value order by latitude

Show names for all USA city ordered by latitude.

Show names for all USA city ordered by latitude .


Question: SELECT T1.bio_data ,  T2.date_of_transcript FROM Students AS T1 JOIN Transcripts AS T2 ON T1.student_id  =  T2.student_id

What are the biographical data and the date of transcript issuance of each student?

What are the biographical data and the date of transcript issuance of each student ?


Question: SELECT DISTINCT warehouse FROM boxes WHERE CONTENTS  =  'Rocks' OR CONTENTS  =  'Scissors'

SELECT DISTINCT warehouse FROM boxes WHERE CONTENTS = 'Rocks ' OR CONTENTS = 'Scissors '

select distinct warehouse from boxes where contents = value or contents = value

Find the warehouses which store contents Rocks or Scissors.

Find the warehouses which store contents Rocks or Scissors .


Question: SELECT model FROM vehicle EXCEPT SELECT T1.model FROM vehicle AS T1 JOIN vehicle_driver AS T2 ON T1.vehicle_id  =  T2.vehicle_id

select model from vehicle except select t1 . model from vehicle as t1 join vehicle_driver as t2 on t1 . vehicle_id = t2 . vehicle_id

What are the models which have not been driven by any drivers?

What are the models which have not been driven by any drivers ?


Question: SELECT max(saleprice - purchaseprice) FROM Book

SELECT max ( saleprice - purchaseprice ) FROM Book

select max ( saleprice - purchaseprice ) from book

What is the maximum difference between the sale price and purchase price?

What is the maximum difference between the sale price and purchase price ?


Question: SELECT Name FROM club ORDER BY Name ASC

List the name of clubs in ascending alphabetical order.

List the name of clubs in ascending alphabetical order .


Question: SELECT cyclist_id ,  count(*) FROM cyclists_own_bikes GROUP BY cyclist_id ORDER BY cyclist_id

SELECT cyclist_id , count ( * ) FROM cyclists_own_bikes GROUP BY cyclist_id ORDER BY cyclist_id

select cyclist_id , count ( * ) from cyclists_own_bikes group by cyclist_id order by cyclist_id

How many bikes does each cyclist own? Order by cyclist id.

How many bikes does each cyclist own ? Order by cyclist id .


Question: SELECT max(Points) ,  min(Points) FROM driver

SELECT max ( Points ) , min ( Points ) FROM driver

select max ( points ) , min ( points ) from driver

Find the highest and lowest points of drivers.

Find the highest and lowest points of drivers .


Question: SELECT count(*) ,  book_series FROM book GROUP BY book_series

SELECT count ( * ) , book_series FROM book GROUP BY book_series

select count ( * ) , book_series from book group by book_series

Find the number of books for each series.

Find the number of books for each series .


Question: SELECT T1.address_type_code ,  T2.address_type_description FROM Students_Addresses AS T1 JOIN Ref_Address_Types AS T2 WHERE T1.address_type_code  =  T2.address_type_code GROUP BY T1.address_type_code ORDER BY count(*) DESC LIMIT 1

What is the code and description of the most common student address type?

What is the code and description of the most common student address type ?


Question: SELECT Nationality ,  Card_Credit FROM customer

select nationality , card_credit from customer

Find the nationality and card credit of each customer.

Find the nationality and card credit of each customer .


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

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

select t1 . packagenumber from package as t1 join client as t2 on t1 . sender = t2 . accountnumber where t2 . name = value intersect select t1 . packagenumber from package as t1 join client as t2 on t1 . recipient = t2 . accountnumber where t2 . name = value

How many packages sent by Ogden Wernstrom and received by Leo Wong?

How many packages sent by Ogden Wernstrom and received by Leo Wong ?


Question: SELECT id FROM goods WHERE price  <  3

select id from goods where price < value

What are the ids of goods that cost less than 3 dollars?

What are the ids of goods that cost less than 3 dollars ?


Question: SELECT avg(age) ,  Make FROM driver GROUP BY make

SELECT avg ( age ) , Make FROM driver GROUP BY make

select avg ( age ) , make from driver group by make

Find the average age of drivers for each make.

Find the average age of drivers for each make .


Question: SELECT customer_details FROM customers WHERE customer_details LIKE "%Kutch%"

SELECT customer_details FROM customers WHERE customer_details LIKE `` % Kutch % ''

select customer_details from customers where customer_details like value

What are the details of the customers who have "Kutch" in part of their details?

What are the details of the customers who have `` Kutch '' in part of their details ?


Question: SELECT T1.bio_data FROM Students AS T1 JOIN Behaviour_Monitoring AS T2 ON T1.student_id  =  T2.student_id WHERE T2.behaviour_monitoring_details IN ( SELECT behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count(*) DESC LIMIT 1 ) EXCEPT SELECT T1.bio_data FROM Students AS T1 JOIN Behaviour_Monitoring AS T2 ON T1.student_id  =  T2.student_id WHERE T2.behaviour_monitoring_details NOT IN ( SELECT behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count(*) DESC LIMIT 1 )

SELECT T1.bio_data FROM Students AS T1 JOIN Behaviour_Monitoring AS T2 ON T1.student_id = T2.student_id WHERE T2.behaviour_monitoring_details IN ( SELECT behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count ( * ) DESC LIMIT 1 ) EXCEPT SELECT T1.bio_data FROM Students AS T1 JOIN Behaviour_Monitoring AS T2 ON T1.student_id = T2.student_id WHERE T2.behaviour_monitoring_details NOT IN ( SELECT behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count ( * ) DESC LIMIT 1 )

select t1 . bio_data from students as t1 join behaviour_monitoring as t2 on t1 . student_id = t2 . student_id where t2 . behaviour_monitoring_details in ( select behaviour_monitoring_details from behaviour_monitoring group by behaviour_monitoring_details order by count ( * ) desc limit value ) except select t1 . bio_data from students as t1 join behaviour_monitoring as t2 on t1 . student_id = t2 . student_id where t2 . behaviour_monitoring_details not in ( select behaviour_monitoring_details from behaviour_monitoring group by behaviour_monitoring_details order by count ( * ) desc limit value )

Which students only got the most common result for his or her all behaviour monitoring details? List the students' biographical information.

Which students only got the most common result for his or her all behaviour monitoring details ? List the students ' biographical information .


Question: SELECT state ,  count(*) FROM City GROUP BY state

SELECT state , count ( * ) FROM City GROUP BY state

select state , count ( * ) from city group by state

Show all states and number of cities in each state.

Show all states and number of cities in each state .


Question: SELECT T1.Name FROM customer AS T1 JOIN customer_order AS T2 ON T1.Customer_ID  =  T2.Customer_ID GROUP BY T1.Name HAVING sum(T2.Quantity)  >  1

select t1 . name from customer as t1 join customer_order as t2 on t1 . customer_id = t2 . customer_id group by t1 . name having sum ( t2 . quantity ) > value

Show the customers with total quantity of order bigger than 1.

Show the customers with total quantity of order bigger than 1 .


Question: SELECT max(height_mm) ,  paintingID FROM paintings WHERE YEAR  <  1900

SELECT max ( height_mm ) , paintingID FROM paintings WHERE YEAR < 1900

select max ( height_mm ) , paintingid from paintings where year < value

What are the maximum height and id of paintings painted before 1900?

What are the maximum height and id of paintings painted before 1900 ?


Question: SELECT max(age) ,  min(age) FROM staff

SELECT max ( age ) , min ( age ) FROM staff

select max ( age ) , min ( age ) from staff

What are the maximum and minimum ages for all staff?

What are the maximum and minimum ages for all staff ?


Question: SELECT isbn ,  count(*) FROM Books_Order GROUP BY isbn

SELECT isbn , count ( * ) FROM Books_Order GROUP BY isbn

select isbn , count ( * ) from books_order group by isbn

What are all isbns for each book, and how many times has each been ordered?

What are all isbns for each book , and how many times has each been ordered ?


Question: SELECT T3.Player_name ,  T3.rank_of_the_year FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID  =  T2.Game_ID JOIN player AS T3 ON T2.Player_ID  =  T3.Player_ID WHERE T1.Title  =  "Super Mario World"

What are the names and ranks of players who have played the game with the title "Super Mario World"?

What are the names and ranks of players who have played the game with the title `` Super Mario World '' ?


Question: SELECT area_km ,  Government_website FROM district ORDER BY Population LIMIT 1

select area_km , government_website from district order by population limit value

Select the area and government website of the district with the smallest population.

Select the area and government website of the district with the smallest population .


Question: SELECT DISTINCT LOCATION FROM paintings WHERE mediumOn  =  "panel" INTERSECT SELECT DISTINCT LOCATION FROM paintings WHERE mediumOn  =  "canvas"

SELECT DISTINCT LOCATION FROM paintings WHERE mediumOn = `` panel '' INTERSECT SELECT DISTINCT LOCATION FROM paintings WHERE mediumOn = `` canvas ''

select distinct location from paintings where mediumon = value intersect select distinct location from paintings where mediumon = value

Which locations have paintings in the mediums of on panel and on canvas?

Which locations have paintings in the mediums of on panel and on canvas ?


Question: SELECT T2.name FROM Orders AS T1 JOIN Client AS T2 ON T1.idClient  =  T2.idClient GROUP BY T1.idClient ORDER BY count(*) DESC LIMIT 1

SELECT T2.name FROM Orders AS T1 JOIN Client AS T2 ON T1.idClient = T2.idClient GROUP BY T1.idClient ORDER BY count ( * ) DESC LIMIT 1

select t2 . name from orders as t1 join client as t2 on t1 . idclient = t2 . idclient group by t1 . idclient order by count ( * ) desc limit value

Give the name of the client who has made the most orders.

Give the name of the client who has made the most orders .


Question: SELECT T1.property_type_description ,  T1.property_type_code FROM Ref_Property_Types AS T1 JOIN Properties AS T2 ON T1.property_type_code  =  T2.property_type_code GROUP BY T1.property_type_code ORDER BY count(*) DESC LIMIT 1;

SELECT T1.property_type_description , T1.property_type_code FROM Ref_Property_Types AS T1 JOIN Properties AS T2 ON T1.property_type_code = T2.property_type_code GROUP BY T1.property_type_code ORDER BY count ( * ) DESC LIMIT 1 ;

What is the most common property type, and what is its description.

What is the most common property type , and what is its description .


Question: SELECT Name FROM member WHERE Age  =  19 OR Age  =  20

select name from member where age = value or age = value

Show the names of members whose age is either 19 or 20.

Show the names of members whose age is either 19 or 20 .


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

What is the name and overall ranking of universities in Wisconsin state?

What is the name and overall ranking of universities in Wisconsin state ?


Question: SELECT T1.order_date ,  T1.order_id FROM Customer_Orders AS T1 JOIN Order_items AS T2 ON T1.order_id  =  T2.order_id WHERE T2.order_quantity  >  6 UNION SELECT T1.order_date ,  T1.order_id FROM Customer_Orders AS T1 JOIN Order_items AS T2 ON T1.order_id  =  T2.order_id GROUP BY T1.order_id HAVING count(*)  >  3;

What are the order ids and corresponding order dates for orders with a quantity greater than 6 or consisting of more than 3 products?

What are the order ids and corresponding order dates for orders with a quantity greater than 6 or consisting of more than 3 products ?


Question: SELECT build_year ,  model ,  builder FROM vehicle

select build_year , model , builder from vehicle

What are the build year, model name and builder of the vehicles?

What are the build year , model name and builder of the vehicles ?


Question: SELECT T2.Rating FROM book AS T1 JOIN review AS T2 ON T1.Book_ID  =  T2.Book_ID ORDER BY T1.Chapters DESC LIMIT 1

select t2 . rating from book as t1 join review as t2 on t1 . book_id = t2 . book_id order by t1 . chapters desc limit value

What is the rating of the book with the largest number of chapters?

What is the rating of the book with the largest number of chapters ?


Question: SELECT T1.Title ,  T2.Rating FROM book AS T1 JOIN review AS T2 ON T1.Book_ID  =  T2.Book_ID

select t1 . title , t2 . rating from book as t1 join review as t2 on t1 . book_id = t2 . book_id

What are the titles and ratings of books?

What are the titles and ratings of books ?


Question: SELECT T2.town_city FROM Properties AS T1 JOIN Addresses AS T2 ON T1.property_address_id  =  T2.address_id JOIN Property_Features AS T3 ON T1.property_id  =  T3.property_id JOIN Features AS T4 ON T4.feature_id  =  T3.feature_id WHERE T4.feature_name  =  'swimming pool';

In which cities are there any properties equipped with a swimming pool?

In which cities are there any properties equipped with a swimming pool ?


Question: SELECT PackageNumber ,  Weight FROM PACKAGE ORDER BY Weight ASC LIMIT 3;

SELECT PackageNumber , Weight FROM PACKAGE ORDER BY Weight ASC LIMIT 3 ;

select packagenumber , weight from package order by weight asc limit value

List package number and weight of top 3 lightest packages.

List package number and weight of top 3 lightest packages .


Question: SELECT T1.bio_data FROM Students AS T1 JOIN Student_Loans AS T2 ON T1.student_id  =  T2.student_id ORDER BY T2.amount_of_loan ASC LIMIT 1

Which student has the loan with the minimum value? List the student's biographical information.

Which student has the loan with the minimum value ? List the student 's biographical information .


Question: SELECT count(*) ,  property_id FROM Property_Photos GROUP BY property_id;

SELECT count ( * ) , property_id FROM Property_Photos GROUP BY property_id ;

select count ( * ) , property_id from property_photos group by property_id

How many photos does each property have?

How many photos does each property have ?


Question: SELECT t1.name ,  count(*) FROM channel AS t1 JOIN program AS t2 ON t1.channel_id  =  t2.channel_id GROUP BY t1.channel_id

SELECT t1.name , count ( * ) FROM channel AS t1 JOIN program AS t2 ON t1.channel_id = t2.channel_id GROUP BY t1.channel_id

select t1 . name , count ( * ) from channel as t1 join program as t2 on t1 . channel_id = t2 . channel_id group by t1 . channel_id

Find the number of programs for each channel. Return the name of each channel as well.

Find the number of programs for each channel . Return the name of each channel as well .


Question: SELECT Winning_driver FROM race WHERE Pole_Position != 'Junior Strous'

SELECT Winning_driver FROM race WHERE Pole_Position ! = 'Junior Strous '

select winning_driver from race where pole_position ! = value

Return the winning drivers of races who did not have the pole position of Junior Strous.

Return the winning drivers of races who did not have the pole position of Junior Strous .


Question: SELECT T2.title FROM Citation AS T1 JOIN Paper AS T2 ON T1.cited_paper_id  =  T2.paper_id GROUP BY T1.cited_paper_id HAVING count(*)  >  50

SELECT T2.title FROM Citation AS T1 JOIN Paper AS T2 ON T1.cited_paper_id = T2.paper_id GROUP BY T1.cited_paper_id HAVING count ( * ) > 50

select t2 . title from citation as t1 join paper as t2 on t1 . cited_paper_id = t2 . paper_id group by t1 . cited_paper_id having count ( * ) > value

Find the titles of papers that have more than 50 citations.

Find the titles of papers that have more than 50 citations .


Question: SELECT Name FROM member WHERE Member_ID NOT IN (SELECT Member_ID FROM club_leader)

SELECT Name FROM member WHERE Member_ID NOT IN ( SELECT Member_ID FROM club_leader )

select name from member where member_id not in ( select member_id from club_leader )

List the names of members that are not club leaders.

List the names of members that are not club leaders .


Question: SELECT T2.name ,  T2.model_year FROM renting_history AS T1 JOIN vehicles AS T2 ON T1.vehicles_id  =  T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1

SELECT T2.name , T2.model_year FROM renting_history AS T1 JOIN vehicles AS T2 ON T1.vehicles_id = T2.id GROUP BY T2.id ORDER BY count ( * ) DESC LIMIT 1

select t2 . name , t2 . model_year from renting_history as t1 join vehicles as t2 on t1 . vehicles_id = t2 . id group by t2 . id order by count ( * ) desc limit value

Show the name and model year of the vehicle with most number of renting history records.

Show the name and model year of the vehicle with most number of renting history records .


Question: SELECT DISTINCT T3.Document_Subset_Name ,  T1.Document_Object_ID FROM Document_Subset_Members AS T1 JOIN Document_Subset_Members  AS T2 ON T1.Related_Document_Object_ID = T2.Document_Object_ID JOIN Document_Subsets AS T3 ON T2.Document_Subset_ID =  T3.Document_Subset_ID

List all document subsets of documents that related to each document id. List the name of document subset and the document id.

List all document subsets of documents that related to each document id . List the name of document subset and the document id .


Question: SELECT T2.name ,  count(*) FROM Orders AS T1 JOIN Client AS T2 ON T1.idClient  =  T2.idClient GROUP BY T1.idClient

SELECT T2.name , count ( * ) FROM Orders AS T1 JOIN Client AS T2 ON T1.idClient = T2.idClient GROUP BY T1.idClient

select t2 . name , count ( * ) from orders as t1 join client as t2 on t1 . idclient = t2 . idclient group by t1 . idclient

What are the names of all the clients, and how many times has each of them ordered?

What are the names of all the clients , and how many times has each of them ordered ?


Question: SELECT DISTINCT bid FROM Reserves WHERE sid = 1

select distinct bid from reserves where sid = value

What are the different boat ids reserved by the sailor whose id is 1?

What are the different boat ids reserved by the sailor whose id is 1 ?


Question: SELECT Winning_driver ,  Winning_team FROM race ORDER BY Winning_team ASC

select winning_driver , winning_team from race order by winning_team asc

What are the winning drivers and teams of races, ordered alphabetically by team?

What are the winning drivers and teams of races , ordered alphabetically by team ?


Question: SELECT model FROM headphone WHERE price  <  (SELECT avg(price) FROM headphone)

SELECT model FROM headphone WHERE price < ( SELECT avg ( price ) FROM headphone )

select model from headphone where price < ( select avg ( price ) from headphone )

What are the headphone models that cost less than the average price?

What are the headphone models that cost less than the average price ?


Question: SELECT avg(height_mm) ,  avg(width_mm) FROM paintings WHERE medium  =  "oil" AND LOCATION  =  "Gallery 241"

SELECT avg ( height_mm ) , avg ( width_mm ) FROM paintings WHERE medium = `` oil '' AND LOCATION = `` Gallery 241 ''

select avg ( height_mm ) , avg ( width_mm ) from paintings where medium = value and location = value

What are the average height and width of paintings that are oil medium in the place of gallery 241?

What are the average height and width of paintings that are oil medium in the place of gallery 241 ?


Question: SELECT major_name ,  major_code FROM Major ORDER BY major_code

select major_name , major_code from major order by major_code

What are the names and codes for all majors ordered by their code?

What are the names and codes for all majors ordered by their code ?


Question: SELECT t3.service_details FROM customers AS t1 JOIN customers_and_services AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id WHERE t1.customer_details  =  "Hardy Kutch"

Which services were used by the customer with details "Hardy Kutch"? Give me the service details.

Which services were used by the customer with details `` Hardy Kutch '' ? Give me the service details .


Question: SELECT avg(City_fuel_economy_rate) ,  avg(Highway_fuel_economy_rate) , Type_of_powertrain FROM vehicles GROUP BY Type_of_powertrain

SELECT avg ( City_fuel_economy_rate ) , avg ( Highway_fuel_economy_rate ) , Type_of_powertrain FROM vehicles GROUP BY Type_of_powertrain

select avg ( city_fuel_economy_rate ) , avg ( highway_fuel_economy_rate ) , type_of_powertrain from vehicles group by type_of_powertrain

What are the average city fuel economy rate, average highway fuel economy rate for different types of powertrains?

What are the average city fuel economy rate , average highway fuel economy rate for different types of powertrains ?


Question: SELECT TYPE ,  Release FROM book

What are the types and release dates of books?

What are the types and release dates of books ?


Question: SELECT count(*) FROM Book


Question: SELECT name FROM countries WHERE id NOT IN (SELECT country_id FROM official_languages)

SELECT name FROM countries WHERE id NOT IN ( SELECT country_id FROM official_languages )

select name from countries where id not in ( select country_id from official_languages )

What are the names of countries that do not have an official language?

What are the names of countries that do not have an official language ?


Question: SELECT product_type_code ,  count(*) FROM Products GROUP BY product_type_code

SELECT product_type_code , count ( * ) FROM Products GROUP BY product_type_code

select product_type_code , count ( * ) from products group by product_type_code

How many products are there for each product type?

How many products are there for each product type ?


Question: SELECT count(*) FROM vehicle WHERE top_speed  =  (SELECT max(top_speed) FROM vehicle)

SELECT count ( * ) FROM vehicle WHERE top_speed = ( SELECT max ( top_speed ) FROM vehicle )

select count ( * ) from vehicle where top_speed = ( select max ( top_speed ) from vehicle )

Count the number of vehicles that have a top speed equal to the maximum across all vehicles.

Count the number of vehicles that have a top speed equal to the maximum across all vehicles .


Question: SELECT name FROM district ORDER BY Area_km DESC LIMIT 1

select name from district order by area_km desc limit value

Find the name of the district which has the largest area.

Find the name of the district which has the largest area .


Question: SELECT count(DISTINCT student_id) FROM Detention

SELECT count ( DISTINCT student_id ) FROM Detention

select count ( distinct student_id ) from detention

How many students have gone through a detention?

How many students have gone through a detention ?


Question: SELECT Name FROM building ORDER BY Number_of_Stories ASC

select name from building order by number_of_stories asc

List the names of buildings in ascending order of number of stories.

List the names of buildings in ascending order of number of stories .


Question: SELECT T1.contents FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse  =  T2.code WHERE T2.location  =  'Chicago' INTERSECT SELECT T1.contents FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse  =  T2.code WHERE T2.location  =  'New York'

SELECT T1.contents FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location = 'Chicago ' INTERSECT SELECT T1.contents FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location = 'New York '

select t1 . contents from boxes as t1 join warehouses as t2 on t1 . warehouse = t2 . code where t2 . location = value intersect select t1 . contents from boxes as t1 join warehouses as t2 on t1 . warehouse = t2 . code where t2 . location = value

Find all contents present in warehouses located in Chicago and those located in New York.

Find all contents present in warehouses located in Chicago and those located in New York .


Question: SELECT * FROM movies WHERE rating  =  'null'

SELECT * FROM movies WHERE rating = 'null '

select * from movies where rating = value

Show all information of all unrated movies.

Show all information of all unrated movies .


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

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

select product_type_code , avg ( product_price ) from products group by product_type_code

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

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


Question: SELECT max(T2.Points) FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID  =  T2.Country WHERE T1.Capital  =  "Dublin"

SELECT max ( T2.Points ) FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID = T2.Country WHERE T1.Capital = `` Dublin ''

select max ( t2 . points ) from country as t1 join driver as t2 on t1 . country_id = t2 . country where t1 . capital = value

Show the maximum points of the drivers from countries with capital "Dublin"

Show the maximum points of the drivers from countries with capital `` Dublin ''


Question: SELECT state FROM City GROUP BY state ORDER BY count(*) DESC LIMIT 1

SELECT state FROM City GROUP BY state ORDER BY count ( * ) DESC LIMIT 1

select state from city group by state order by count ( * ) desc limit value


Question: select document_object_id , count(*) from document_subset_members group by document_object_id having count(*) between 2 and 4;

select document_object_id , count ( * ) from document_subset_members group by document_object_id having count ( * ) between 2 and 4 ;

select document_object_id , count ( * ) from document_subset_members group by document_object_id having count ( * ) between value and value

Which document has between 2 and 4 number of documents ? List the document id and the number of related documents .


Question: SELECT T1.last_name ,  T1.user_id FROM Users AS T1 JOIN User_Searches AS T2 ON T1.user_id  =  T2.user_id GROUP BY T1.user_id HAVING count(*)  <=  2 INTERSECT SELECT T3.last_name ,  T3.user_id FROM Users AS T3 JOIN Properties AS T4 ON T3.user_id  =  T4.owner_user_id GROUP BY T3.user_id HAVING count(*)  >=  2;

SELECT T1.last_name , T1.user_id FROM Users AS T1 JOIN User_Searches AS T2 ON T1.user_id = T2.user_id GROUP BY T1.user_id HAVING count ( * ) < = 2 INTERSECT SELECT T3.last_name , T3.user_id FROM Users AS T3 JOIN Properties AS T4 ON T3.user_id = T4.owner_user_id GROUP BY T3.user_id HAVING count ( * ) > = 2 ;

select t1 . last_name , t1 . user_id from users as t1 join user_searches as t2 on t1 . user_id = t2 . user_id group by t1 . user_id having count ( * ) < = value intersect select t3 . last_name , t3 . user_id from users as t3 join properties as t4 on t3 . user_id = t4 . owner_user_id group by t3 . user_id having count ( * ) > = value

List the last names and ids of users who have at least 2 properties and searched at most twice.

List the last names and ids of users who have at least 2 properties and searched at most twice .


Question: SELECT count(*) FROM Boats


Question: SELECT client_id ,  client_details FROM Clients

select client_id , client_details from clients

List all client ids and client details .


Question: SELECT DISTINCT t1.service_details FROM services AS t1 JOIN customer_interactions AS t2 ON t1.service_id  =  t2.service_id JOIN channels AS t3 ON t2.channel_id  =  t3.channel_id WHERE t3.channel_details  =  "15 ij"

Give me the details of all the services that have interacted with the channel with detail "15 ij".

Give me the details of all the services that have interacted with the channel with detail `` 15 ij '' .


Question: SELECT medium FROM paintings WHERE paintingID  =  80

select medium from paintings where paintingid = value

What are the medium types of the painting with id = 80


Question: SELECT count(*) FROM Properties WHERE parking_lots  =  1 OR garage_yn  =  1;

SELECT count ( * ) FROM Properties WHERE parking_lots = 1 OR garage_yn = 1 ;

select count ( * ) from properties where parking_lots = value or garage_yn = value

Count the number of properties that have 1 parking lot or 1 garage.

Count the number of properties that have 1 parking lot or 1 garage .


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

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

select product_type_code , avg ( product_price ) from products group by product_type_code

Show all product type codes and the average price for each type.

Show all product type codes and the average price for each type .


Question: SELECT CustomerId FROM receipts GROUP BY CustomerId HAVING count(*)  >=  15

SELECT CustomerId FROM receipts GROUP BY CustomerId HAVING count ( * ) > = 15

select customerid from receipts group by customerid having count ( * ) > = value

What are the customer ids of customers who have at least 15 receipts?

What are the customer ids of customers who have at least 15 receipts ?


Question: SELECT count(*) FROM Affiliation


Question: SELECT title FROM movies ORDER BY rating

select title from movies order by rating

Find the titles of all movies sorted by their ratings.

Find the titles of all movies sorted by their ratings .


Question: SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID JOIN Employee AS T3 ON T3.EmployeeID = T1.Manager WHERE T2.Name = "Mars" AND T3.Name = "Turanga Leela";

SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID JOIN Employee AS T3 ON T3.EmployeeID = T1.Manager WHERE T2.Name = `` Mars '' AND T3.Name = `` Turanga Leela '' ;

select t1 . shipmentid from shipment as t1 join planet as t2 on t1 . planet = t2 . planetid join employee as t3 on t3 . employeeid = t1 . manager where t2 . name = value and t3 . name = value

What are the ids of all shipments on the planet Mars that are managed by Turanga Leela?

What are the ids of all shipments on the planet Mars that are managed by Turanga Leela ?


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

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

select paper_id , title from paper where paper_id not in ( select cited_paper_id from citation )

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

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


Question: SELECT id FROM goods WHERE food  =  "Cookie" OR food  =  "Cake" AND price BETWEEN 3 AND 7

SELECT id FROM goods WHERE food = `` Cookie '' OR food = `` Cake '' AND price BETWEEN 3 AND 7

select id from goods where food = value or food = value and price between value and value

What are the ids of Cookie and Cake that cost between 3 and 7 dollars.

What are the ids of Cookie and Cake that cost between 3 and 7 dollars .


Question: SELECT DISTINCT plane_name FROM pilotskills ORDER BY plane_name

select distinct plane_name from pilotskills order by plane_name

What are the different plane names, ordered alphabetically?

What are the different plane names , ordered alphabetically ?


Question: SELECT avg(product_price) FROM Products

SELECT avg ( product_price ) FROM Products

select avg ( product_price ) from products

How much do the products cost on average?

How much do the products cost on average ?


Question: SELECT meeting_type ,  other_details FROM meetings

select meeting_type , other_details from meetings

What are all meeting types and other details?

What are all meeting types and other details ?


Question: SELECT count(*) FROM Boats WHERE color  =  'red'

SELECT count ( * ) FROM Boats WHERE color = 'red '

select count ( * ) from boats where color = value


Question: SELECT count(*) FROM City


Question: SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code  =  T2.movie GROUP BY T1.title ORDER BY count(*) DESC LIMIT 1

SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie GROUP BY T1.title ORDER BY count ( * ) DESC LIMIT 1

select t1 . title from movies as t1 join movietheaters as t2 on t1 . code = t2 . movie group by t1 . title order by count ( * ) desc limit value

What is the name of the film playing at the most number of theaters?

What is the name of the film playing at the most number of theaters ?


Question: SELECT Affiliation ,  COUNT(*) FROM institution GROUP BY Affiliation

SELECT Affiliation , COUNT ( * ) FROM institution GROUP BY Affiliation

select affiliation , count ( * ) from institution group by affiliation

How many institutions are there for each type of affiliation?

How many institutions are there for each type of affiliation ?


Question: SELECT PackageNumber ,  Weight FROM PACKAGE ORDER BY Weight ASC LIMIT 3;

SELECT PackageNumber , Weight FROM PACKAGE ORDER BY Weight ASC LIMIT 3 ;

select packagenumber , weight from package order by weight asc limit value

What is the package number and weight of the 3 lightest packages?

What is the package number and weight of the 3 lightest packages ?


Question: SELECT make ,  count(*) FROM driver WHERE points  >  150 GROUP BY make

SELECT make , count ( * ) FROM driver WHERE points > 150 GROUP BY make

select make , count ( * ) from driver where points > value group by make

How many drivers receive points greater than 150 for each make? Show the make and the count.

How many drivers receive points greater than 150 for each make ? Show the make and the count .


Question: SELECT T1.state FROM City AS T1 JOIN Student AS T2 ON T1.city_code  =  T2.city_code GROUP BY T1.state HAVING count(*)  >  5

SELECT T1.state FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code GROUP BY T1.state HAVING count ( * ) > 5

select t1 . state from city as t1 join student as t2 on t1 . city_code = t2 . city_code group by t1 . state having count ( * ) > value

Show all states where more than 5 students live.

Show all states where more than 5 students live .


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

select name from press where year_profits_billion > value or month_profits_billion > value

What are the names of the publishers that made more than 15 billion profits each year or 1 billion each month?

What are the names of the publishers that made more than 15 billion profits each year or 1 billion each month ?


Question: SELECT T2.Name ,  T1.Nickname FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID  =  T2.Institution_ID

select t2 . name , t1 . nickname from championship as t1 join institution as t2 on t1 . institution_id = t2 . institution_id

What are the names and nicknames of institutions?

What are the names and nicknames of institutions ?


Question: select distinct state from city


Question: SELECT avg(T3.room_count) FROM Property_Features AS T1 JOIN Features AS T2 ON T1.feature_id  =  T2.feature_id JOIN Properties AS T3 ON T1.property_id  =  T3.property_id WHERE T2.feature_name  =  'garden';

SELECT avg ( T3.room_count ) FROM Property_Features AS T1 JOIN Features AS T2 ON T1.feature_id = T2.feature_id JOIN Properties AS T3 ON T1.property_id = T3.property_id WHERE T2.feature_name = 'garden ' ;

List the average room count of the properties with gardens.

List the average room count of the properties with gardens .


Question: SELECT Name FROM region ORDER BY Name ASC

select name from region order by name asc

What are the names of regions in ascending alphabetical order?

What are the names of regions in ascending alphabetical order ?


Question: SELECT title FROM paintings WHERE YEAR  >  1910 AND medium  =  "oil"

SELECT title FROM paintings WHERE YEAR > 1910 AND medium = `` oil ''

select title from paintings where year > value and medium = value

What are the titles of paintings that are created after 1910 and whose medium is oil?

What are the titles of paintings that are created after 1910 and whose medium is oil ?


Question: SELECT count(*) FROM movies WHERE rating  =  'G'

SELECT count ( * ) FROM movies WHERE rating = 'G '

select count ( * ) from movies where rating = value


Question: SELECT DISTINCT T1.id ,  T1.product_name FROM bike AS T1 JOIN cyclists_own_bikes AS T2 ON T1.id  =  T2.bike_id WHERE T2.purchase_year  >  2015

What are the distinct ids and product names of the bikes that are purchased after year 2015?

What are the distinct ids and product names of the bikes that are purchased after year 2015 ?


Question: SELECT title ,  LOCATION ,  YEAR FROM paintings WHERE height_mm  >  1000 ORDER BY title

select title , location , year from paintings where height_mm > value order by title

List the year, location, and name of all paintings that are taller than 1000 in alphabetical order.

List the year , location , and name of all paintings that are taller than 1000 in alphabetical order .


Question: SELECT paintingID FROM paintings ORDER BY YEAR LIMIT 1

select paintingid from paintings order by year limit value


Question: SELECT count(*) FROM institution


Question: SELECT T1.lname ,  T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T2.medium  =  "oil" INTERSECT SELECT T3.lname ,  T3.fname FROM artists AS T3 JOIN paintings AS T4 ON T3.artistID  =  T4.painterID WHERE T4.medium  =  "lithograph"

SELECT T1.lname , T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T2.medium = `` oil '' INTERSECT SELECT T3.lname , T3.fname FROM artists AS T3 JOIN paintings AS T4 ON T3.artistID = T4.painterID WHERE T4.medium = `` lithograph ''

select t1 . lname , t1 . fname from artists as t1 join paintings as t2 on t1 . artistid = t2 . painterid where t2 . medium = value intersect select t3 . lname , t3 . fname from artists as t3 join paintings as t4 on t3 . artistid = t4 . painterid where t4 . medium = value

What are the first and last names of the artists who have not only medium oil paintings but also paintings with the lithographic medium?

What are the first and last names of the artists who have not only medium oil paintings but also paintings with the lithographic medium ?


Question: SELECT T1.address_details ,  T3.bio_data FROM Addresses AS T1 JOIN Students_Addresses AS T2 ON T1.address_id  =  T2.address_id JOIN Students AS T3 ON T2.student_id  =  T3.student_id

What are the address details and biographical information of each student?

What are the address details and biographical information of each student ?


Question: SELECT T1.voice_sound_quality ,  T1.rhythm_tempo ,  T1.stage_presence FROM performance_score AS T1 JOIN participants AS T2 ON T1.participant_id  =  T2.id WHERE T2.name  =  'Freeway'

What are the voice sound quality score, rhythm tempo score and stage presence score performed by the participant named 'Freeway'?

What are the voice sound quality score , rhythm tempo score and stage presence score performed by the participant named 'Freeway ' ?


Question: SELECT count(DISTINCT customer_id) FROM Orders

SELECT count ( DISTINCT customer_id ) FROM Orders

select count ( distinct customer_id ) from orders

How many customers have placed any order?

How many customers have placed any order ?


Question: SELECT name FROM vehicles WHERE id NOT IN (SELECT vehicles_id FROM renting_history)

SELECT name FROM vehicles WHERE id NOT IN ( SELECT vehicles_id FROM renting_history )

select name from vehicles where id not in ( select vehicles_id from renting_history )

What are the names of vehicles that have never been rented?

What are the names of vehicles that have never been rented ?


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

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

select name from director where age > ( select avg ( age ) from director )

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

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


Question: SELECT T1.customer_first_name ,  T4.product_name FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id  =  T2.customer_id JOIN Order_items AS T3 ON T2.order_id  =  T3.order_id JOIN Products AS T4 ON T3.product_id  =  T4.product_id

What are the first names of all buyers and what products did they buy? List them in pairs.

What are the first names of all buyers and what products did they buy ? List them in pairs .


Question: SELECT invoice_status_code FROM Invoices WHERE invoice_number NOT IN ( SELECT invoice_number FROM Shipments )

select invoice_status_code from invoices where invoice_number not in ( select invoice_number from shipments )

What are invoices status of all the orders which have not been shipped?

What are invoices status of all the orders which have not been shipped ?


Question: SELECT Name FROM member ORDER BY Age ASC

select name from member order by age asc

List the names of members in ascending order of age.

List the names of members in ascending order of age .


Question: select count(*) from citation as t1 join author_list as t2 on t1.paper_id  =  t2.paper_id join author as t3 on t2.author_id  =  t3.author_id where t3.name = "mckeown ,  kathleen"

select
count
(
*
)
from
citation
as
t1
join
author_list
as
t2
on
t1.paper_id
=
t2.paper_id
join
author
as
t3
on
t2.author_id
=
t3.author_id
where
t3.name
=
"mckeown ,  kathleen"

select count ( * ) from citation as t1 join author_list as t2 on t1 . paper_id = t2 . paper_id join author as t3 on t2 . author_id = t3 . author_id where t3 . name = value

How many papers does Mckeown , Kathleen cite ?


Question: SELECT avg(product_price) FROM Products WHERE product_type_code  =  "Clothes"

SELECT avg ( product_price ) FROM Products WHERE product_type_code = `` Clothes ''

select avg ( product_price ) from products where product_type_code = value

What is the average price for products with type Clothes?

What is the average price for products with type Clothes ?


Question: SELECT Collection_Description FROM Collections WHERE Collection_Name = "Best";

SELECT Collection_Description FROM Collections WHERE Collection_Name = `` Best '' ;

select collection_description from collections where collection_name = value

What are the collection descriptions that are named as 'Best'?

What are the collection descriptions that are named as 'Best ' ?


Question: SELECT DISTINCT plane_name FROM pilotskills WHERE plane_name LIKE '%Bomber%'

SELECT DISTINCT plane_name FROM pilotskills WHERE plane_name LIKE ' % Bomber % '

select distinct plane_name from pilotskills where plane_name like value

Find all different planes whose names contain substring 'Bomber'.

Find all different planes whose names contain substring 'Bomber ' .


Question: SELECT datetime_detention_start FROM Detention

select datetime_detention_start from detention

Give me the detention start date for all the detention records.

Give me the detention start date for all the detention records .


Question: SELECT name FROM store ORDER BY date_opened

select name from store order by date_opened

Give me a list of store names, sorted by store open date.

Give me a list of store names , sorted by store open date .


Question: SELECT T1.client_id ,  T1.sic_code ,  T1.agency_id FROM clients AS T1 JOIN meetings AS T2 ON T1.client_id  =  T2.client_id GROUP BY T1.client_id HAVING count(*)  =  1 INTERSECT SELECT T1.client_id ,  T1.sic_code ,  T1.agency_id FROM clients AS T1 JOIN invoices AS T2 ON T1.client_id  =  T2.client_id

Return the ids, sic codes, and agency ids of clients who have attended 1 meeting and had an invoice.

Return the ids , sic codes , and agency ids of clients who have attended 1 meeting and had an invoice .


Question: SELECT Transmitter FROM radio ORDER BY ERP_kW DESC LIMIT 1

select transmitter from radio order by erp_kw desc limit value

What is the transmitter of the radio with the largest ERP_kW?

What is the transmitter of the radio with the largest ERP_kW ?


Question: SELECT T1.receipt FROM items AS T1 JOIN goods AS T2 ON T1.item  =  T2.id WHERE T2.food  =  "Cake" INTERSECT SELECT T1.receipt FROM items AS T1 JOIN goods AS T2 ON T1.item  =  T2.id WHERE T2.food  =  "Cookie"

SELECT T1.receipt FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.food = `` Cake '' INTERSECT SELECT T1.receipt FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.food = `` Cookie ''

select t1 . receipt from items as t1 join goods as t2 on t1 . item = t2 . id where t2 . food = value intersect select t1 . receipt from items as t1 join goods as t2 on t1 . item = t2 . id where t2 . food = value

What are the receipt numbers for instances where both cakes and cookies were purchased?

What are the receipt numbers for instances where both cakes and cookies were purchased ?


Question: SELECT Coordinates FROM Planet WHERE Name  =  "Mars";

SELECT Coordinates FROM Planet WHERE Name = `` Mars '' ;

select coordinates from planet where name = value

What are the Coordinates of planet Mars?

What are the Coordinates of planet Mars ?


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

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

select t2 . name from renting_history as t1 join discount as t2 on t1 . discount_id = t2 . id group by t2 . id order by count ( * ) desc limit value

Return the name of the discount that corresponds to the most rental history records.

Return the name of the discount that corresponds to the most rental history records .


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

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

select t2 . name from renting_history as t1 join discount as t2 on t1 . discount_id = t2 . id group by t2 . id order by count ( * ) desc limit value

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

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


Question: SELECT T1.detention_type_code ,  T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code  =  T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY count(*) ASC LIMIT 1

SELECT T1.detention_type_code , T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY count ( * ) ASC LIMIT 1

Give me the type code and description of the least common detention type.

Give me the type code and description of the least common detention type .


Question: select title from sculptures order by year desc limit 1

select title from sculptures order by year desc limit value

What is the title of the sculpture that was created in the most recent year ?


Question: SELECT T2.Name ,  count(*) FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID GROUP BY T1.Planet;

SELECT T2.Name , count ( * ) FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID GROUP BY T1.Planet ;

select t2 . name , count ( * ) from shipment as t1 join planet as t2 on t1 . planet = t2 . planetid group by t1 . planet

What is the total shipments in each planet? List the planet name and total shipments.

What is the total shipments in each planet ? List the planet name and total shipments .


Question: SELECT T1.Title ,  T1.audio FROM book AS T1 JOIN review AS T2 ON T1.Book_ID  =  T2.Book_ID ORDER BY T2.Readers_in_Million DESC

select t1 . title , t1 . audio from book as t1 join review as t2 on t1 . book_id = t2 . book_id order by t2 . readers_in_million desc

List the title and audio length for all the books in descending order of the number of readers.

List the title and audio length for all the books in descending order of the number of readers .


Question: SELECT T1.Age FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID  =  T2.Driver_ID GROUP BY T1.Driver_ID ORDER BY COUNT(*) DESC LIMIT 1

SELECT T1.Age FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID GROUP BY T1.Driver_ID ORDER BY COUNT ( * ) DESC LIMIT 1

select t1 . age from driver as t1 join race as t2 on t1 . driver_id = t2 . driver_id group by t1 . driver_id order by count ( * ) desc limit value

What is the age of the driver who raced in the most races?

What is the age of the driver who raced in the most races ?


Question: SELECT count(*) FROM Invoices


Question: SELECT T1.title ,  T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id  =  T2.paper_id JOIN Author AS T3 ON T3.author_id  =  T2.author_id WHERE T3.name LIKE "%Mckeown%"

Find all papers with titles and paper IDs written by Mckeown.

Find all papers with titles and paper IDs written by Mckeown .


Question: SELECT T1.Institution_Name ,  T1.location FROM institution AS T1 JOIN staff AS T2 ON T1.institution_id  =  T2.institution_id WHERE T2.staff_id NOT IN (SELECT T4.staff_id FROM Conference AS T3 JOIN Conference_participation AS T4 ON T3.conference_id  =  T4.conference_id WHERE T3.year  =  2004)

What are the names and locations of the universities that did not have any staff participating in any conferences in 2004?

What are the names and locations of the universities that did not have any staff participating in any conferences in 2004 ?


Question: SELECT avg(age) ,  min(age) FROM pilotskills

SELECT avg ( age ) , min ( age ) FROM pilotskills

select avg ( age ) , min ( age ) from pilotskills

What are the average and smallest ages of all pilots?

What are the average and smallest ages of all pilots ?


Question: SELECT Make FROM driver GROUP BY Make ORDER BY COUNT(*) DESC LIMIT 1

SELECT Make FROM driver GROUP BY Make ORDER BY COUNT ( * ) DESC LIMIT 1

select make from driver group by make order by count ( * ) desc limit value


Question: SELECT sum(T1.Weight) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender  =  T2.AccountNumber WHERE T2.Name  =  "Leo Wong";

SELECT sum ( T1.Weight ) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = `` Leo Wong '' ;

select sum ( t1 . weight ) from package as t1 join client as t2 on t1 . sender = t2 . accountnumber where t2 . name = value

What is the total weight for all packages that Leo Wong sent?

What is the total weight for all packages that Leo Wong sent ?


Question: SELECT T2.name FROM Orders AS T1 JOIN Client AS T2 ON T1.idClient  =  T2.idClient JOIN Books_Order AS T3 ON T3.idOrder  =  T1.idOrder GROUP BY T1.idClient ORDER BY sum(T3.amount) DESC LIMIT 1

select t2 . name from orders as t1 join client as t2 on t1 . idclient = t2 . idclient join books_order as t3 on t3 . idorder = t1 . idorder group by t1 . idclient order by sum ( t3 . amount ) desc limit value

What is the name of the client who has ordered the greatest total amount of books?

What is the name of the client who has ordered the greatest total amount of books ?


Question: SELECT search_datetime ,  search_string FROM User_Searches ORDER BY search_string DESC;

Return the search strings and corresonding time stamps for all user searches, sorted by search string descending.

Return the search strings and corresonding time stamps for all user searches , sorted by search string descending .


Question: SELECT sum(T1.price_max) FROM Properties AS T1 JOIN Users AS T2 ON T1.owner_user_id  =  T2.user_id WHERE T2.user_category_code  =  'Single Mother' OR T2.user_category_code  =  'Student';

SELECT sum ( T1.price_max ) FROM Properties AS T1 JOIN Users AS T2 ON T1.owner_user_id = T2.user_id WHERE T2.user_category_code = 'Single Mother ' OR T2.user_category_code = 'Student ' ;

What is the total max price of the properties owned by single mothers or students?

What is the total max price of the properties owned by single mothers or students ?


Question: SELECT search_datetime ,  search_string FROM User_Searches ORDER BY search_string DESC;

What are all the user searches time and content? Sort the result descending by content.

What are all the user searches time and content ? Sort the result descending by content .


Question: SELECT payment_method_code ,  count(*) FROM Customers GROUP BY payment_method_code

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

select payment_method_code , count ( * ) from customers group by payment_method_code

Show all payment method codes and the number of customers in each code.

Show all payment method codes and the number of customers in each code .


Question: SELECT DISTINCT T2.Document_Object_ID FROM Collections AS T1 JOIN Documents_in_Collections AS T2 ON T1.Collection_ID = T2.Collection_ID WHERE T1.Collection_Name = "Best" EXCEPT SELECT DISTINCT T3.Document_Object_ID FROM Document_Subset_Members AS T3 JOIN Document_Subsets AS T4 ON T3.Document_Subset_ID =  T4.Document_Subset_ID WHERE T4.Document_Subset_Name = "Best for 2000"

List id of documents that in collection named Best but not in document subset Best for 2000.

List id of documents that in collection named Best but not in document subset Best for 2000 .


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

select country from player where earnings > value intersect select country from player where earnings < value

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

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


Question: SELECT DISTINCT T1.title FROM book AS T1 JOIN books_order AS T2 ON T1.isbn  =  T2.isbn

select distinct t1 . title from book as t1 join books_order as t2 on t1 . isbn = t2 . isbn

What are the different titles of books that have been ordered in the past?

What are the different titles of books that have been ordered in the past ?


Question: SELECT avg(value) ,  max(value) ,  CONTENTS FROM boxes GROUP BY CONTENTS

SELECT avg ( value ) , max ( value ) , CONTENTS FROM boxes GROUP BY CONTENTS

select avg ( value ) , max ( value ) , contents from boxes group by contents

Find the average and maximum value for each different content.

Find the average and maximum value for each different content .


Question: SELECT title FROM movies WHERE rating  =  'G'

SELECT title FROM movies WHERE rating = 'G '

select title from movies where rating = value

Find the names of movies whose rating is ‘G’.

Find the names of movies whose rating is ‘G’ .


Question: SELECT invoice_id ,  invoice_status ,  invoice_details FROM Invoices

Show ids, status codes, and details for all invoices for clients.

Show ids , status codes , and details for all invoices for clients .


Question: SELECT T2.Name FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID  =  T2.Institution_ID WHERE T1.Number_of_Championships  >=  1

select t2 . name from championship as t1 join institution as t2 on t1 . institution_id = t2 . institution_id where t1 . number_of_championships > = value

What are the names of institutions that have 1 or more championships?

What are the names of institutions that have 1 or more championships ?


Question: select country ,  count(*) from city group by country

select country , count ( * ) from city group by country

Show all countries and number of cities in each .


Question: SELECT count(DISTINCT CONTENTS) ,  warehouse FROM boxes GROUP BY warehouse

SELECT count ( DISTINCT CONTENTS ) , warehouse FROM boxes GROUP BY warehouse

select count ( distinct contents ) , warehouse from boxes group by warehouse

How many different types of contents are stored in each warehouse?

How many different types of contents are stored in each warehouse ?


Question: SELECT name FROM Sailors WHERE rating  >  (SELECT max(T1.rating) FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid  =  T2.sid JOIN Boats AS T3 ON T3.bid  =  T2.bid WHERE T3.color  =  'red')

SELECT name FROM Sailors WHERE rating > ( SELECT max ( T1.rating ) FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid JOIN Boats AS T3 ON T3.bid = T2.bid WHERE T3.color = 'red ' )

select name from sailors where rating > ( select max ( t1 . rating ) from sailors as t1 join reserves as t2 on t1 . sid = t2 . sid join boats as t3 on t3 . bid = t2 . bid where t3 . color = value )

Find the names of sailors whose rating is larger than the rating of all sailors who booked a red boat.

Find the names of sailors whose rating is larger than the rating of all sailors who booked a red boat .


Question: SELECT PackageNumber ,  Weight FROM PACKAGE WHERE Weight BETWEEN 10 AND 30;

SELECT PackageNumber , Weight FROM PACKAGE WHERE Weight BETWEEN 10 AND 30 ;

select packagenumber , weight from package where weight between value and value

Which packages have weight between 10 and 30? List the package number and weight.

Which packages have weight between 10 and 30 ? List the package number and weight .


Question: SELECT DISTINCT t3.service_details FROM customers AS t1 JOIN customers_and_services AS t2 ON t1.customer_id  =  t2.customer_id JOIN services AS t3 ON t2.service_id  =  t3.service_id JOIN customer_interactions AS t4 ON t3.service_id  =  t4.service_id WHERE t1.customer_details  =  "Hardy Kutch" OR t4.services_and_channels_details  =  "good"

Find the name of all the services which either have been used by customer "Hardy Kutch" or have been rated as "good" in one of the customer interactions.

Find the name of all the services which either have been used by customer `` Hardy Kutch '' or have been rated as `` good '' in one of the customer interactions .


Question: SELECT make FROM team GROUP BY team HAVING count(*)  >  1

SELECT make FROM team GROUP BY team HAVING count ( * ) > 1

select make from team group by team having count ( * ) > value


Question: SELECT count(*) FROM Affiliation


Question: SELECT T1.gender_code ,  count(*) FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.gender_code

SELECT T1.gender_code , count ( * ) FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.gender_code

select t1 . gender_code , count ( * ) from customers as t1 join orders as t2 on t1 . customer_id = t2 . customer_id group by t1 . gender_code

How many orders has each gender placed ?


Question: SELECT Completed_Year ,  COUNT(*) FROM building GROUP BY Completed_Year

SELECT Completed_Year , COUNT ( * ) FROM building GROUP BY Completed_Year

select completed_year , count ( * ) from building group by completed_year

Please show each completion year and the number of buildings completed in that year.

Please show each completion year and the number of buildings completed in that year .


Question: SELECT DISTINCT T1.Collection_Subset_Name FROM Collection_Subsets AS T1 JOIN Collection_Subset_Members AS T2 ON T1.Collection_Subset_ID =  T2.Collection_Subset_ID JOIN Collections AS T3 ON T2.Collection_ID =  T3.Collection_ID WHERE T3.Collection_Name = "Best";

Which collection subset does collection name Best in? List collection subset name.

Which collection subset does collection name Best in ? List collection subset name .


Question: SELECT StuID FROM City AS T1 JOIN Student AS T2 ON T1.city_code  =  T2.city_code WHERE T1.state  =  "PA"  AND T2.sex  =  'F'

SELECT StuID FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code WHERE T1.state = `` PA '' AND T2.sex = 'F '

select stuid from city as t1 join student as t2 on t1 . city_code = t2 . city_code where t1 . state = value and t2 . sex = value

What are the student ids for female students in the state of PA?

What are the student ids for female students in the state of PA ?


Question: SELECT state FROM City GROUP BY state HAVING count(*)  >=  2

SELECT state FROM City GROUP BY state HAVING count ( * ) > = 2

select state from city group by state having count ( * ) > = value


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

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


Question: SELECT count(DISTINCT customers_and_services_details) FROM customers_and_services

SELECT count ( DISTINCT customers_and_services_details ) FROM customers_and_services

select count ( distinct customers_and_services_details ) from customers_and_services

How many distinct customer and services details are there?

How many distinct customer and services details are there ?


Question: SELECT T1.order_id ,  T1.date_order_placed ,  sum(T3.product_price) FROM Orders AS T1 JOIN Order_items AS T2 ON T1.order_id  =  T2.order_id JOIN Products AS T3 ON T2.product_id  =  T3.product_id GROUP BY T1.order_id

For each order, what is its id, date, and total amount paid?

For each order , what is its id , date , and total amount paid ?


Question: SELECT sum(value) ,  count(*) ,  CONTENTS FROM boxes GROUP BY CONTENTS

SELECT sum ( value ) , count ( * ) , CONTENTS FROM boxes GROUP BY CONTENTS

select sum ( value ) , count ( * ) , contents from boxes group by contents

For each content, what is the total value and number of boxes?

For each content , what is the total value and number of boxes ?


Question: SELECT T1.pilot_name FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name  =  T2.plane_name WHERE T2.location  =  "Austin" INTERSECT SELECT T1.pilot_name FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name  =  T2.plane_name WHERE T2.LOCATION  =  "Boston"

SELECT T1.pilot_name FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name WHERE T2.location = `` Austin '' INTERSECT SELECT T1.pilot_name FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name WHERE T2.LOCATION = `` Boston ''

What are the names of pilots who have planes in both Austin and Boston?

What are the names of pilots who have planes in both Austin and Boston ?


Question: SELECT T3.CustomerId FROM goods AS T1 JOIN items AS T2 ON T1.id  =  T2.item JOIN receipts AS T3 ON T2.receipt  =  T3.ReceiptNumber GROUP BY T3.CustomerId HAVING sum(T1.price)  >  150

select t3 . customerid from goods as t1 join items as t2 on t1 . id = t2 . item join receipts as t3 on t2 . receipt = t3 . receiptnumber group by t3 . customerid having sum ( t1 . price ) > value

Find the ids of customers who have spent more than 150 dollars in total.

Find the ids of customers who have spent more than 150 dollars in total .


Question: SELECT T1.student_id ,  T1.student_details FROM Students AS T1 JOIN Classes AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING count(*)  =  2

SELECT T1.student_id , T1.student_details FROM Students AS T1 JOIN Classes AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count ( * ) = 2

select t1 . student_id , t1 . student_details from students as t1 join classes as t2 on t1 . student_id = t2 . student_id group by t1 . student_id having count ( * ) = value

What are the ids and details of the students who take 2 courses?

What are the ids and details of the students who take 2 courses ?


Question: select team_name from university where enrollment  >  (select avg(enrollment) from university)

select team_name from university where enrollment > ( select avg ( enrollment ) from university )

What are the names of all teams from universities that have more people enrolled than average ?


Question: SELECT max(Points) ,  min(Points) FROM driver

SELECT max ( Points ) , min ( Points ) FROM driver

select max ( points ) , min ( points ) from driver

What are the maximum and minimum points of drivers.

What are the maximum and minimum points of drivers .


Question: SELECT feature_description FROM Features WHERE feature_name  =  'rooftop';

SELECT feature_description FROM Features WHERE feature_name = 'rooftop ' ;

select feature_description from features where feature_name = value

Return the description of the feature 'rooftop'.

Return the description of the feature 'rooftop ' .


Question: SELECT Affiliation FROM institution WHERE City != "Vancouver"

SELECT Affiliation FROM institution WHERE City ! = `` Vancouver ''

select affiliation from institution where city ! = value

What are the affiliations of institutions that are not in city "Vancouver"?

What are the affiliations of institutions that are not in city `` Vancouver '' ?


Question: SELECT t1.name FROM author AS t1 JOIN book AS t2 ON t1.author_id  =  t2.author_id ORDER BY t2.sale_amount DESC LIMIT 1

select t1 . name from author as t1 join book as t2 on t1 . author_id = t2 . author_id order by t2 . sale_amount desc limit value

Who wrote the best selling book? Give me the author name.

Who wrote the best selling book ? Give me the author name .


Question: SELECT name ,  nationality FROM staff WHERE staff_id NOT IN (SELECT T2.staff_id FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id  =  T2.conference_id WHERE T1.Conference_Name  =  "ACL")

SELECT name , nationality FROM staff WHERE staff_id NOT IN ( SELECT T2.staff_id FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id = T2.conference_id WHERE T1.Conference_Name = `` ACL '' )

select name , nationality from staff where staff_id not in ( select t2 . staff_id from conference as t1 join conference_participation as t2 on t1 . conference_id = t2 . conference_id where t1 . conference_name = value )

What are the names and nationalities of the people who did not participate in any ACL conferences?

What are the names and nationalities of the people who did not participate in any ACL conferences ?


Question: SELECT count(*) FROM Addresses


Question: SELECT T1.receipt FROM items AS T1 JOIN goods AS T2 ON T1.item  =  T2.id WHERE T2.food  =  "Cake" INTERSECT SELECT T1.receipt FROM items AS T1 JOIN goods AS T2 ON T1.item  =  T2.id WHERE T2.food  =  "Cookie"

SELECT T1.receipt FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.food = `` Cake '' INTERSECT SELECT T1.receipt FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.food = `` Cookie ''

select t1 . receipt from items as t1 join goods as t2 on t1 . item = t2 . id where t2 . food = value intersect select t1 . receipt from items as t1 join goods as t2 on t1 . item = t2 . id where t2 . food = value

Find the receipt numbers where both Cake and Cookie were bought.

Find the receipt numbers where both Cake and Cookie were bought .


Question: SELECT product_price ,  product_size FROM Products WHERE product_price  >  ( SELECT avg(product_price) FROM Products )

SELECT product_price , product_size FROM Products WHERE product_price > ( SELECT avg ( product_price ) FROM Products )

select product_price , product_size from products where product_price > ( select avg ( product_price ) from products )

What are the prices and sizes of all products whose price is above the mean?

What are the prices and sizes of all products whose price is above the mean ?


Question: SELECT id FROM goods WHERE id LIKE "%APP%"

SELECT id FROM goods WHERE id LIKE `` % APP % ''

select id from goods where id like value

What are all the ids of goods with an id which contains "APP"?

What are all the ids of goods with an id which contains `` APP '' ?


Question: SELECT T1.product_id ,  T1.product_description FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id  =  T2.product_id GROUP BY T1.product_id HAVING count(*)  >  3

For all the products sold for more than 3 times, list their id and description.

For all the products sold for more than 3 times , list their id and description .


Question: SELECT count(DISTINCT T2.paper_id) ,  T1.name FROM Affiliation AS T1 JOIN Author_list AS T2 ON T1.affiliation_id  =  T2.affiliation_id GROUP BY T1.affiliation_id

Find the total number of papers for each affiliation.

Find the total number of papers for each affiliation .


Question: SELECT avg(distance) ,  min(distance) ,  max(distance) FROM Direct_distance

SELECT avg ( distance ) , min ( distance ) , max ( distance ) FROM Direct_distance

select avg ( distance ) , min ( distance ) , max ( distance ) from direct_distance

Give the average, minimum, and maximum distances between two cities.

Give the average , minimum , and maximum distances between two cities .


Question: SELECT city1_code ,  city2_code FROM Direct_distance WHERE distance  >  (SELECT avg(distance) FROM Direct_distance)

SELECT city1_code , city2_code FROM Direct_distance WHERE distance > ( SELECT avg ( distance ) FROM Direct_distance )

select city1_code , city2_code from direct_distance where distance > ( select avg ( distance ) from direct_distance )

Show me the city code of two cities with a distance greater than the average.

Show me the city code of two cities with a distance greater than the average .


Question: SELECT max(price) ,  min(price) ,  avg(price) ,  flavor FROM goods GROUP BY flavor ORDER BY flavor

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

select max ( price ) , min ( price ) , avg ( price ) , flavor from goods group by flavor order by flavor

What are the maximum, minimum, and average prices of goods of each flavor, ordered by flavor?

What are the maximum , minimum , and average prices of goods of each flavor , ordered by flavor ?


Question: SELECT T1.name FROM Affiliation AS T1 JOIN Author_list AS T2 ON T1.affiliation_id  =  T2.affiliation_id WHERE T1.address LIKE "%China%" GROUP BY T1.affiliation_id ORDER BY count(*) DESC LIMIT 1

SELECT T1.name FROM Affiliation AS T1 JOIN Author_list AS T2 ON T1.affiliation_id = T2.affiliation_id WHERE T1.address LIKE `` % China % '' GROUP BY T1.affiliation_id ORDER BY count ( * ) DESC LIMIT 1

select t1 . name from affiliation as t1 join author_list as t2 on t1 . affiliation_id = t2 . affiliation_id where t1 . address like value group by t1 . affiliation_id order by count ( * ) desc limit value

Find the name of the affiliation whose address contains 'China' and publishes the greatest number of papers.

Find the name of the affiliation whose address contains 'China ' and publishes the greatest number of papers .


Question: SELECT Title ,  Developers FROM game ORDER BY Units_sold_Millions DESC

select title , developers from game order by units_sold_millions desc

What are the titles and developers of all games, sorted by units sold descending?

What are the titles and developers of all games , sorted by units sold descending ?


Question: SELECT DISTINCT T1.ReceiptNumber FROM receipts AS T1 JOIN items AS T2 ON T1.ReceiptNumber  =  T2.receipt JOIN goods AS T3 ON T2.item  =  T3.id WHERE T3.price  >  13

select distinct t1 . receiptnumber from receipts as t1 join items as t2 on t1 . receiptnumber = t2 . receipt join goods as t3 on t2 . item = t3 . id where t3 . price > value

List distinct receipt numbers for which someone bought a good that costs more than 13 dollars.

List distinct receipt numbers for which someone bought a good that costs more than 13 dollars .


Question: SELECT t1.manager ,  t1.sponsor FROM team AS t1 JOIN team_driver AS t2 ON t1.team_id  =  t2.team_id GROUP BY t2.team_id ORDER BY count(*) DESC LIMIT 1

SELECT t1.manager , t1.sponsor FROM team AS t1 JOIN team_driver AS t2 ON t1.team_id = t2.team_id GROUP BY t2.team_id ORDER BY count ( * ) DESC LIMIT 1

select t1 . manager , t1 . sponsor from team as t1 join team_driver as t2 on t1 . team_id = t2 . team_id group by t2 . team_id order by count ( * ) desc limit value

Find the manager and sponsor of the team that has the most drivers.

Find the manager and sponsor of the team that has the most drivers .