Question: SELECT product_name FROM Products WHERE product_type_code  =  "Hardware" AND product_price  >  (SELECT avg(product_price) FROM Products WHERE product_type_code  =  "Hardware")

SELECT product_name FROM Products WHERE product_type_code = `` Hardware '' AND product_price > ( SELECT avg ( product_price ) FROM Products WHERE product_type_code = `` Hardware '' )

select product_name from products where product_type_code = value and product_price > ( select avg ( product_price ) from products where product_type_code = value )

Show all hardware product names with price higher than the average price of hardware type products.

Show all hardware product names with price higher than the average price of hardware type products .


Question: SELECT CLASS FROM headphone GROUP BY CLASS HAVING count(*)  >  2

SELECT CLASS FROM headphone GROUP BY CLASS HAVING count ( * ) > 2

select class from headphone group by class having count ( * ) > value

Which headphone class does have more than two headphones?

Which headphone class does have more than two headphones ?


Question: SELECT count(*) FROM Staff WHERE staff_id NOT IN ( SELECT staff_id FROM Staff_in_meetings )

SELECT count ( * ) FROM Staff WHERE staff_id NOT IN ( SELECT staff_id FROM Staff_in_meetings )

select count ( * ) from staff where staff_id not in ( select staff_id from staff_in_meetings )

Count the number of staff who did not attend any meeting.

Count the number of staff who did not attend any meeting .


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

select model , class , construction from headphone order by price limit value

What are the model, class, and construction of the cheapest headphone?

What are the model , class , and construction of the cheapest headphone ?


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

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

select t2 . name from shipment as t1 join planet as t2 on t1 . planet = t2 . planetid group by t1 . planet order by count ( * ) desc limit value

What is the name of the planet with the most shipments?

What is the name of the planet with the most shipments ?


Question: select student_id ,  sum(amount_of_loan) from student_loans group by student_id

select student_id , sum ( amount_of_loan ) from student_loans group by student_id

How much total loan does each student have ? List the student ids and the amounts .


Question: SELECT t1.name FROM author AS t1 JOIN book AS t2 ON t1.author_id  =  t2.author_id GROUP BY t2.author_id HAVING count(*)  >  1

SELECT t1.name FROM author AS t1 JOIN book AS t2 ON t1.author_id = t2.author_id GROUP BY t2.author_id HAVING count ( * ) > 1

select t1 . name from author as t1 join book as t2 on t1 . author_id = t2 . author_id group by t2 . author_id having count ( * ) > value

Find the names of authors who have more than one book in the database.

Find the names of authors who have more than one book in the database .


Question: SELECT process_status_code ,  process_status_description FROM Process_status

List the codes and descriptions for all process status.

List the codes and descriptions for all process status .


Question: SELECT earpads FROM headphone GROUP BY earpads ORDER BY count(*) DESC LIMIT 2

SELECT earpads FROM headphone GROUP BY earpads ORDER BY count ( * ) DESC LIMIT 2

select earpads from headphone group by earpads order by count ( * ) desc limit value

What are the top 2 earpads in terms of the number of headphones using them?

What are the top 2 earpads in terms of the number of headphones using them ?


Question: SELECT DISTINCT Entrant FROM driver WHERE Age  >=  20

SELECT DISTINCT Entrant FROM driver WHERE Age > = 20

select distinct entrant from driver where age > = value

Give the different entrant types for drivers at least 20 years old.

Give the different entrant types for drivers at least 20 years old .


Question: SELECT isbn ,  sum(amount) FROM Books_Order GROUP BY isbn

SELECT isbn , sum ( amount ) FROM Books_Order GROUP BY isbn

select isbn , sum ( amount ) from books_order group by isbn

Show all book isbns and the total amount ordered for each.

Show all book isbns and the total amount ordered for each .


Question: SELECT avg(age) ,  gender FROM author GROUP BY gender

SELECT avg ( age ) , gender FROM author GROUP BY gender

select avg ( age ) , gender from author group by gender

For each gender, return gender and the average age of authors.

For each gender , return gender and the average age of authors .


Question: SELECT name FROM driver WHERE citizenship  =  'United States'

SELECT name FROM driver WHERE citizenship = 'United States '

select name from driver where citizenship = value

Return the names of drivers with citizenship from the United States.

Return the names of drivers with citizenship from the United States .


Question: SELECT book_series FROM book WHERE sale_amount  >  1000 INTERSECT SELECT book_series FROM book WHERE sale_amount  <  500

select book_series from book where sale_amount > value intersect select book_series from book where sale_amount < value

Which book series contain both books with sale amount above 1000 and books with sale amount below 500?

Which book series contain both books with sale amount above 1000 and books with sale amount below 500 ?


Question: SELECT Make ,  COUNT(*) FROM driver GROUP BY Make

SELECT Make , COUNT ( * ) FROM driver GROUP BY Make

select make , count ( * ) from driver group by make

For each make, return the make and the count of drivers with that make.

For each make , return the make and the count of drivers with that make .


Question: SELECT count(*) FROM driver


Question: SELECT code ,  CONTENTS FROM boxes WHERE value  >  (SELECT max(value) FROM boxes WHERE CONTENTS  =  'Scissors')

SELECT code , CONTENTS FROM boxes WHERE value > ( SELECT max ( value ) FROM boxes WHERE CONTENTS = 'Scissors ' )

select code , contents from boxes where value > ( select max ( value ) from boxes where contents = value )

Find the code and content of all boxes whose value is higher than the value of all boxes with Scissors as content.

Find the code and content of all boxes whose value is higher than the value of all boxes with Scissors as content .


Question: SELECT Make FROM team WHERE Car_Owner  =  "Buddy Arrington"

SELECT Make FROM team WHERE Car_Owner = `` Buddy Arrington ''

select make from team where car_owner = value

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

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


Question: SELECT DISTINCT model FROM headphone ORDER BY model

select distinct model from headphone order by model

Return the list of distinct headphone models ordered alphabetically.

Return the list of distinct headphone models ordered alphabetically .


Question: SELECT id ,  flavor FROM goods WHERE food  =  "Cookie" ORDER BY price LIMIT 1

SELECT id , flavor FROM goods WHERE food = `` Cookie '' ORDER BY price LIMIT 1

select id , flavor from goods where food = value order by price limit value

What is the id and flavor of the cheapest cookie?

What is the id and flavor of the cheapest cookie ?


Question: SELECT T1.country ,  count(*) FROM City AS T1 JOIN Student AS T2 ON T1.city_code  =  T2.city_code GROUP BY T1.country

SELECT T1.country , count ( * ) FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code GROUP BY T1.country

select t1 . country , count ( * ) from city as t1 join student as t2 on t1 . city_code = t2 . city_code group by t1 . country

Show the number of students living in each country.

Show the number of students living in each country .


Question: SELECT T1.country FROM Addresses AS T1 JOIN Users AS T2 ON T1.address_id  =  T2.user_address_id WHERE T2.first_name  =  'Robbie';

SELECT T1.country FROM Addresses AS T1 JOIN Users AS T2 ON T1.address_id = T2.user_address_id WHERE T2.first_name = 'Robbie ' ;

In which country does the user with first name Robbie live?

In which country does the user with first name Robbie live ?


Question: SELECT name ,  population FROM district WHERE area_km  >  (SELECT avg(area_km) FROM district)

SELECT name , population FROM district WHERE area_km > ( SELECT avg ( area_km ) FROM district )

select name , population from district where area_km > ( select avg ( area_km ) from district )

Find the names and populations of the districts whose area is greater than the average area.

Find the names and populations of the districts whose area is greater than the average area .


Question: SELECT T1.owner_user_id ,  count(*) FROM Properties AS T1 JOIN Property_Photos AS T2 ON T1.property_id  =  T2.property_id GROUP BY T1.owner_user_id;

SELECT T1.owner_user_id , count ( * ) FROM Properties AS T1 JOIN Property_Photos AS T2 ON T1.property_id = T2.property_id GROUP BY T1.owner_user_id ;

How many photos does each owner has of his or her properties? List user id and number of photos.

How many photos does each owner has of his or her properties ? List user id and number of photos .


Question: SELECT DISTINCT CONTENTS FROM boxes ORDER BY CONTENTS

select distinct contents from boxes order by contents

List all different types of contents ordered by contents.

List all different types of contents ordered by contents .


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

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

select distinct contents from boxes where value > ( select avg ( value ) from boxes )

Find the unique contents of all boxes whose value is higher than the average value of all boxes.

Find the unique contents of all boxes whose value is higher than the average value of all boxes .


Question: SELECT DISTINCT sid FROM Sailors WHERE age  >  (SELECT min(age) FROM Sailors);

SELECT DISTINCT sid FROM Sailors WHERE age > ( SELECT min ( age ) FROM Sailors ) ;

select distinct sid from sailors where age > ( select min ( age ) from sailors )

What is the different id of every sailor who is not the youngest?

What is the different id of every sailor who is not the youngest ?


Question: SELECT sum(order_quantity) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id  =  T2.product_id WHERE T2.product_name  =  "Monitor"

SELECT sum ( order_quantity ) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = `` Monitor ''

How many products named Monitor have been ordered?

How many products named Monitor have been ordered ?


Question: SELECT T1.bio_data FROM Students AS T1 JOIN Student_Events AS T2 WHERE T1.student_id  =  T2.student_id EXCEPT SELECT T1.bio_data FROM Students AS T1 JOIN Student_Loans AS T2 WHERE T1.student_id  =  T2.student_id

For those students who have gone through an event, who do not have a student loan? List the students' biographical data

For those students who have gone through an event , who do not have a student loan ? List the students ' biographical data


Question: SELECT Nationality ,  Card_Credit FROM customer

select nationality , card_credit from customer

What are the nationalities and card credits of customers?

What are the nationalities and card credits of customers ?


Question: SELECT T2.name ,  COUNT(*) FROM official_languages AS T1 JOIN languages AS T2 ON T1.language_id  =  T2.id GROUP BY T2.name

SELECT T2.name , COUNT ( * ) FROM official_languages AS T1 JOIN languages AS T2 ON T1.language_id = T2.id GROUP BY T2.name

select t2 . name , count ( * ) from official_languages as t1 join languages as t2 on t1 . language_id = t2 . id group by t2 . name

What are the names of the different official languages, as well as the number of countries that speak each?

What are the names of the different official languages , as well as the number of countries that speak each ?


Question: SELECT DISTINCT conference_name FROM conference

select distinct conference_name from conference


Question: SELECT title FROM paintings WHERE width_mm  <  600 OR height_mm  >  800

select title from paintings where width_mm < value or height_mm > value

What are the names of paintings whose width is less than 600 or height is larger than 800?

What are the names of paintings whose width is less than 600 or height is larger than 800 ?


Question: SELECT Student_Answer_Text FROM Student_Answers GROUP BY Student_Answer_Text ORDER BY COUNT(*) DESC

SELECT Student_Answer_Text FROM Student_Answers GROUP BY Student_Answer_Text ORDER BY COUNT ( * ) DESC

select student_answer_text from student_answers group by student_answer_text order by count ( * ) desc

List all the student answer texts in descending order of count.

List all the student answer texts in descending order of count .


Question: SELECT city1_code ,  sum(distance) FROM Direct_distance GROUP BY city1_code

SELECT city1_code , sum ( distance ) FROM Direct_distance GROUP BY city1_code

select city1_code , sum ( distance ) from direct_distance group by city1_code

For each city, what is the the city code and sum of distances from each?

For each city , what is the the city code and sum of distances from each ?


Question: SELECT Franchise ,  COUNT(*) FROM game GROUP BY Franchise

SELECT Franchise , COUNT ( * ) FROM game GROUP BY Franchise

select franchise , count ( * ) from game group by franchise

List the name of each franchise and the number of games belonging to that franchise.

List the name of each franchise and the number of games belonging to that franchise .


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

What are the titles for papers with more than 50 citations?

What are the titles for papers with more than 50 citations ?


Question: SELECT Manufacturer FROM club GROUP BY Manufacturer ORDER BY COUNT(*) DESC LIMIT 1

SELECT Manufacturer FROM club GROUP BY Manufacturer ORDER BY COUNT ( * ) DESC LIMIT 1

select manufacturer from club group by manufacturer order by count ( * ) desc limit value

Which manufacturer is most common among clubs?

Which manufacturer is most common among clubs ?


Question: SELECT t1.service_details FROM services AS t1 JOIN customers_and_services AS t2 ON t1.service_id  =  t2.service_id GROUP BY t1.service_details HAVING count(*)  >  3

SELECT t1.service_details FROM services AS t1 JOIN customers_and_services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_details HAVING count ( * ) > 3

Which services were used by customers by more than 3 times? Give me the service details.

Which services were used by customers by more than 3 times ? Give me the service details .


Question: SELECT Document_Subset_Details FROM Document_Subsets WHERE Document_Subset_Name = "Best for 2000";

SELECT Document_Subset_Details FROM Document_Subsets WHERE Document_Subset_Name = `` Best for 2000 '' ;

What are the details on the document subsets that are named 'Best for 2000'?

What are the details on the document subsets that are named 'Best for 2000 ' ?


Question: SELECT Address FROM building ORDER BY Completed_Year DESC

select address from building order by completed_year desc

List the addresses of buildings in descending order of building completion year.

List the addresses of buildings in descending order of building completion year .


Question: SELECT T1.Level FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID WHERE T2.position  =  "Physician";

SELECT T1.Level FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID WHERE T2.position = `` Physician '' ;

select t1 . level from has_clearance as t1 join employee as t2 on t1 . employee = t2 . employeeid where t2 . position = value


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

select title from book order by purchaseprice desc limit value

What are the titles of books with the highest purchase price across all books ?


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 )

List the first names of the students who do not have any answers.

List the first names of the students who do not have any answers .


Question: SELECT T1.invoice_status_code ,  T1.invoice_date ,  T2.shipment_date FROM Invoices AS T1 JOIN Shipments AS T2 ON T1.invoice_number  =  T2.invoice_number

What are the statuses, dates, and shipment dates for all invoices?

What are the statuses , dates , and shipment dates for all invoices ?


Question: SELECT name ,  RESULT FROM cyclist WHERE nation != 'Russia'

SELECT name , RESULT FROM cyclist WHERE nation ! = 'Russia '

select name , result from cyclist where nation ! = value

What are the name and result of the cyclists not from 'Russia' ?

What are the name and result of the cyclists not from 'Russia ' ?


Question: SELECT T2.city_name ,  avg(distance) FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code  =  T2.city_code GROUP BY T1.city1_code

SELECT T2.city_name , avg ( distance ) FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code = T2.city_code GROUP BY T1.city1_code

Show all city names and the average distance to all other cities.

Show all city names and the average distance to all other cities .


Question: SELECT Payment_method_code FROM Customer_Payment_Methods GROUP BY Payment_method_code ORDER BY count(*) DESC LIMIT 1

SELECT Payment_method_code FROM Customer_Payment_Methods GROUP BY Payment_method_code ORDER BY count ( * ) DESC LIMIT 1

select payment_method_code from customer_payment_methods group by payment_method_code order by count ( * ) desc limit value

What is the payment method that most customers use?

What is the payment method that most customers use ?


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

Find the id of customers who shopped at the bakery at least 15 times.

Find the id of customers who shopped at the bakery at least 15 times .


Question: SELECT product_name FROM Products WHERE product_price  >  (SELECT avg(product_price) FROM Products)

SELECT product_name FROM Products WHERE product_price > ( SELECT avg ( product_price ) FROM Products )

select product_name from products where product_price > ( select avg ( product_price ) from products )

What are the names of products that have a price above the average for all products.

What are the names of products that have a price above the average for all products .


Question: SELECT Neighborhood FROM store EXCEPT SELECT t1.Neighborhood FROM store AS t1 JOIN stock AS t2 ON t1.store_id  =  t2.store_id

select neighborhood from store except select t1 . neighborhood from store as t1 join stock as t2 on t1 . store_id = t2 . store_id

Find the neighborhood where no headphones are in stock.

Find the neighborhood where no headphones are in stock .


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

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

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

List the most common type of engine used by drivers.

List the most common type of engine used by drivers .


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

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

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

Find the code of boxes that are stored at the warehouses located at Chicago or New York.

Find the code of boxes that are stored at the warehouses located at Chicago or New York .


Question: SELECT pilot_name FROM PilotSkills WHERE age  <  (SELECT avg(age) FROM PilotSkills) ORDER BY age

SELECT pilot_name FROM PilotSkills WHERE age < ( SELECT avg ( age ) FROM PilotSkills ) ORDER BY age

select pilot_name from pilotskills where age < ( select avg ( age ) from pilotskills ) order by age

What are the names of pilots whose age is below the average age, ordered by age?

What are the names of pilots whose age is below the average age , ordered by age ?


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

What distinct receipt numbers correspond to someone who bought a good that costs more than 13 dollars?

What distinct receipt numbers correspond to someone who bought a good that costs more than 13 dollars ?


Question: SELECT search_string FROM User_Searches EXCEPT SELECT T1.search_string FROM User_Searches AS T1 JOIN Properties AS T2 ON T1.user_id  =  T2.owner_user_id;

List the search content of the users who do not own a single property.

List the search content of the users who do not own a single property .


Question: SELECT DISTINCT Student_Answer_Text FROM Student_Answers WHERE Comments  =  "Normal"

SELECT DISTINCT Student_Answer_Text FROM Student_Answers WHERE Comments = `` Normal ''

select distinct student_answer_text from student_answers where comments = value

List all the distinct student answer texts to which comments "Normal" were given?

List all the distinct student answer texts to which comments `` Normal '' were given ?


Question: SELECT age_category_description FROM Ref_Age_Categories WHERE age_category_code  =  'Over 60';

What is the detailed description of the age category code 'Over 60'?

What is the detailed description of the age category code 'Over 60 ' ?


Question: SELECT bid ,  count(*) FROM Reserves GROUP BY bid HAVING count(*)  >  1

SELECT bid , count ( * ) FROM Reserves GROUP BY bid HAVING count ( * ) > 1

select bid , count ( * ) from reserves group by bid having count ( * ) > value

How many reservations exist for each boat that has more than 1 reservation already?

How many reservations exist for each boat that has more than 1 reservation already ?


Question: SELECT product_price FROM Products WHERE product_name  =  "Monitor"

SELECT product_price FROM Products WHERE product_name = `` Monitor ''

select product_price from products where product_name = value

What is the price for the product with name Monitor?

What is the price for the product with name Monitor ?


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

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

select country from country where country_id not in ( select country from driver )

Find the countries where no driver come from.

Find the countries where no driver come from .


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

List the winning drivers and winning teams of races in ascending alphabetical order of winning team.

List the winning drivers and winning teams of races in ascending alphabetical order of winning team .


Question: SELECT avg(justice_score) FROM countries

SELECT avg ( justice_score ) FROM countries

select avg ( justice_score ) from countries

Give the average justice scores across all countries.

Give the average justice scores across all countries .


Question: SELECT Completed_Year FROM building WHERE Number_of_Stories  >  20 INTERSECT SELECT Completed_Year FROM building WHERE Number_of_Stories  <  15

select completed_year from building where number_of_stories > value intersect select completed_year from building where number_of_stories < value

Show the completed years shared by buildings with more than 20 stories and buildings with less than 15 stories.

Show the completed years shared by buildings with more than 20 stories and buildings with less than 15 stories .


Question: SELECT staff_role_description FROM Ref_staff_roles WHERE staff_role_code  =  "HR"

SELECT staff_role_description FROM Ref_staff_roles WHERE staff_role_code = `` HR ''

What is the description for staff role code HR?

What is the description for staff role code HR ?


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

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

select count ( * ) from author where author_id not in ( select t2 . author_id from citation as t1 join author_list as t2 on t1 . cited_paper_id = t2 . paper_id group by t1 . cited_paper_id having count ( distinct t1 . paper_id ) > value )

How many authors have not published a paper with more than 50 citations?

How many authors have not published a paper with more than 50 citations ?


Question: SELECT T3.city_name FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code  =  T2.city_code JOIN City AS T3 ON T1.city2_code  =  T3.city_code WHERE T2.city_name  =  "Chicago" ORDER BY distance LIMIT 1

SELECT T3.city_name FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code = T2.city_code JOIN City AS T3 ON T1.city2_code = T3.city_code WHERE T2.city_name = `` Chicago '' ORDER BY distance LIMIT 1

Give the name of the nearest city to Chicago.

Give the name of the nearest city to Chicago .


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

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

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


Question: SELECT count(DISTINCT LOCATION) FROM warehouses

SELECT count ( DISTINCT LOCATION ) FROM warehouses

select count ( distinct location ) from warehouses

What are the different locations of warehouses?

What are the different locations of warehouses ?


Question: SELECT T2.LastName FROM receipts AS T1 JOIN customers AS T2 ON T1.CustomerId  =  T2.id GROUP BY T2.id HAVING count(*)  >  10

SELECT T2.LastName FROM receipts AS T1 JOIN customers AS T2 ON T1.CustomerId = T2.id GROUP BY T2.id HAVING count ( * ) > 10

select t2 . lastname from receipts as t1 join customers as t2 on t1 . customerid = t2 . id group by t2 . id having count ( * ) > value

Give the last names of customers who have been to the bakery more than 10 times?

Give the last names of customers who have been to the bakery more than 10 times ?


Question: SELECT DISTINCT T2.Description FROM Document_Objects AS T1 JOIN Document_Objects AS T2 ON T1.Parent_Document_Object_ID = T2.Document_Object_ID

What is the unique description of every parent document?

What is the unique description of every parent document ?


Question: SELECT count(*) ,  medium FROM paintings GROUP BY medium

SELECT count ( * ) , medium FROM paintings GROUP BY medium

select count ( * ) , medium from paintings group by medium

What are the numbers of works for different medium type?

What are the numbers of works for different medium type ?


Question: SELECT CLASS FROM headphone WHERE earpads  =  'Bowls' INTERSECT SELECT CLASS FROM headphone WHERE earpads  =  'Comfort Pads'

SELECT CLASS FROM headphone WHERE earpads = 'Bowls ' INTERSECT SELECT CLASS FROM headphone WHERE earpads = 'Comfort Pads '

select class from headphone where earpads = value intersect select class from headphone where earpads = value

Which headphone classes have both headphones with "Bowls" and headphones with "Comfort Pads" earpads?

Which headphone classes have both headphones with `` Bowls '' and headphones with `` Comfort Pads '' earpads ?


Question: SELECT T1.lname ,  T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID  =  T2.sculptorID WHERE T2.title LIKE "%female%"

SELECT T1.lname , T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID = T2.sculptorID WHERE T2.title LIKE `` % female % ''

select t1 . lname , t1 . fname from artists as t1 join sculptures as t2 on t1 . artistid = t2 . sculptorid where t2 . title like value

What are the first and last name of the artist who had a sculpture work whose title has the word “female” in it?

What are the first and last name of the artist who had a sculpture work whose title has the word “female” in it ?


Question: SELECT count(DISTINCT Payment_method_code) FROM Customer_Payment_Methods

SELECT count ( DISTINCT Payment_method_code ) FROM Customer_Payment_Methods

select count ( distinct payment_method_code ) from customer_payment_methods

How many different payment methods can customers choose from?

How many different payment methods can customers choose from ?


Question: SELECT count(*) FROM songs WHERE name LIKE "%Love%"

SELECT count ( * ) FROM songs WHERE name LIKE `` % Love % ''

select count ( * ) from songs where name like value

How many songs contain "Love" in their names?

How many songs contain `` Love '' in their names ?


Question: SELECT T1.code FROM boxes AS T1 JOIN Warehouses AS T2 ON T1.warehouse  =  T2.code WHERE T2.location  =  'Chicago'

SELECT T1.code FROM boxes AS T1 JOIN Warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location = 'Chicago '

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

What are the codes of boxes stored in warehouses in Chicago?

What are the codes of boxes stored in warehouses in Chicago ?


Question: SELECT T1.pilot_name ,  T1.age FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name  =  T2.plane_name WHERE T2.location  =  "Austin"

SELECT T1.pilot_name , T1.age FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name WHERE T2.location = `` Austin ''

select t1 . pilot_name , t1 . age from pilotskills as t1 join hangar as t2 on t1 . plane_name = t2 . plane_name where t2 . location = value

Find the name and age of pilots who have a plane in Austin.

Find the name and age of pilots who have a plane in Austin .


Question: SELECT Salary ,  POSITION FROM Employee WHERE Name  =  "Turanga Leela";

SELECT Salary , POSITION FROM Employee WHERE Name = `` Turanga Leela '' ;

select salary , position from employee where name = value

What is Turanga Leela's salary and position?

What is Turanga Leela 's salary and position ?


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

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

select count ( * ) from author where author_id not in ( select t2 . author_id from citation as t1 join author_list as t2 on t1 . cited_paper_id = t2 . paper_id group by t1 . cited_paper_id having count ( distinct t1 . paper_id ) > value )

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

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


Question: SELECT product_id ,  product_name ,  product_price ,  product_color FROM Products EXCEPT SELECT T1.product_id ,  T1.product_name ,  T1.product_price ,  T1.product_color FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id  =  T2.product_id JOIN Orders AS T3 ON T2.order_id  =  T3.order_id GROUP BY T1.product_id HAVING count(*)  >=  2

What are the id, name, price and color of the products which have not been ordered for at least twice?

What are the id , name , price and color of the products which have not been ordered for at least twice ?


Question: SELECT Make FROM driver GROUP BY Make HAVING COUNT(*)  >=  3

SELECT Make FROM driver GROUP BY Make HAVING COUNT ( * ) > = 3

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

Which make is associated with 3 or more drivers?

Which make is associated with 3 or more drivers ?


Question: SELECT Make FROM driver GROUP BY Make HAVING COUNT(*)  >=  3

SELECT Make FROM driver GROUP BY Make HAVING COUNT ( * ) > = 3

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

List the driver makes that are associated with at least three drivers.

List the driver makes that are associated with at least three drivers .


Question: SELECT name FROM press ORDER BY Month_Profits_billion DESC LIMIT 1

select name from press order by month_profits_billion desc limit value

Which press has the largest monthly profit? Give me the press name.

Which press has the largest monthly profit ? Give me the press name .


Question: SELECT analytical_layer_type_code ,  count(*) FROM analytical_layer GROUP BY analytical_layer_type_code

SELECT analytical_layer_type_code , count ( * ) FROM analytical_layer GROUP BY analytical_layer_type_code

select analytical_layer_type_code , count ( * ) from analytical_layer group by analytical_layer_type_code

Find all the layer type codes with their corresponding usage count.

Find all the layer type codes with their corresponding usage count .


Question: SELECT Gender_MFU ,  COUNT(*) FROM Students GROUP BY Gender_MFU

SELECT Gender_MFU , COUNT ( * ) FROM Students GROUP BY Gender_MFU

select gender_mfu , count ( * ) from students group by gender_mfu

List each gender and the corresponding number of students.

List each gender and the corresponding number of students .


Question: SELECT name FROM driver ORDER BY name

Show all driver names in the alphabetical order.

Show all driver names in the alphabetical order .


Question: SELECT T2.Collection_Name FROM Collections AS T1 JOIN Collections AS T2 ON T1.Parent_Collection_ID = T2.Collection_ID WHERE T1.Collection_Name = "Nice";

SELECT T2.Collection_Name FROM Collections AS T1 JOIN Collections AS T2 ON T1.Parent_Collection_ID = T2.Collection_ID WHERE T1.Collection_Name = `` Nice '' ;

What is the name of the parent collection of the collection named Nice?

What is the name of the parent collection of the collection named Nice ?


Question: SELECT count(*) FROM songs WHERE id NOT IN ( SELECT songs_id FROM performance_score );

SELECT count ( * ) FROM songs WHERE id NOT IN ( SELECT songs_id FROM performance_score ) ;

select count ( * ) from songs where id not in ( select songs_id from performance_score )

How many songs listed are not performed?

How many songs listed are not performed ?


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

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

select sum ( points ) , avg ( points ) from driver

Show total and average points of all drivers.

Show total and average points of all drivers .


Question: SELECT search_seq ,  user_id FROM User_Searches GROUP BY user_id HAVING count(*) >= 2;

SELECT search_seq , user_id FROM User_Searches GROUP BY user_id HAVING count ( * ) > = 2 ;

select search_seq , user_id from user_searches group by user_id having count ( * ) > = value

Return the ids of users who have performed two or more searches, as well as their search sequence.

Return the ids of users who have performed two or more searches , as well as their search sequence .


Question: SELECT T1.lname ,  T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID  =  T2.sculptorID WHERE T2.title LIKE "%female%"

SELECT T1.lname , T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID = T2.sculptorID WHERE T2.title LIKE `` % female % ''

select t1 . lname , t1 . fname from artists as t1 join sculptures as t2 on t1 . artistid = t2 . sculptorid where t2 . title like value

What is the full name of the artist with a sculpture whose title includes the word "female"?

What is the full name of the artist with a sculpture whose title includes the word `` female '' ?


Question: SELECT T1.Nickname FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID  =  T2.Institution_ID ORDER BY T2.Capacity DESC

select t1 . nickname from championship as t1 join institution as t2 on t1 . institution_id = t2 . institution_id order by t2 . capacity desc

List the nicknames of institutions in descending order of capacity.

List the nicknames of institutions in descending order of capacity .


Question: SELECT T2.university_name ,  T2.city ,  T2.state FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id  =  T2.university_id AND T1.major_id  =  T3.major_id WHERE T1.rank  =  1 AND T3.major_name  =  'Accounting'

What is the name, city, and state of the university with number 1 ranked Accounting major?

What is the name , city , and state of the university with number 1 ranked Accounting major ?


Question: SELECT Capital FROM region WHERE Area  >  10000

select capital from region where area > value

Give me the capitals of the regions whose area is larger than 10000.

Give me the capitals of the regions whose area is larger than 10000 .


Question: SELECT datetime_detention_start ,  datetime_detention_end FROM Detention

select datetime_detention_start , datetime_detention_end from detention

What are the starting time and ending time of each detention record?

What are the starting time and ending time of each detention record ?


Question: SELECT T1.Capital FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID  =  T2.Country ORDER BY T2.Points DESC LIMIT 1

select t1 . capital from country as t1 join driver as t2 on t1 . country_id = t2 . country order by t2 . points desc limit value

Which country is the driver with the highest points from? Give me the capital of the country.

Which country is the driver with the highest points from ? Give me the capital of the country .


Question: SELECT analytical_layer_type_code FROM analytical_layer GROUP BY analytical_layer_type_code ORDER BY count(*) DESC LIMIT 1

SELECT analytical_layer_type_code FROM analytical_layer GROUP BY analytical_layer_type_code ORDER BY count ( * ) DESC LIMIT 1

select analytical_layer_type_code from analytical_layer group by analytical_layer_type_code order by count ( * ) desc limit value

What is the most common analytical layer type code?

What is the most common analytical layer type code ?


Question: SELECT Founded ,  COUNT(*) FROM institution GROUP BY Founded HAVING COUNT(*)  >  1

SELECT Founded , COUNT ( * ) FROM institution GROUP BY Founded HAVING COUNT ( * ) > 1

select founded , count ( * ) from institution group by founded having count ( * ) > value

Return the years in which more than 1 institution was founded, as well as the number of institutions founded in each of those.

Return the years in which more than 1 institution was founded , as well as the number of institutions founded in each of those .


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

SELECT T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T1.contents = 'Rocks ' INTERSECT SELECT T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T1.contents = 'Scissors '

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

Find the location of the warehouses which store contents Rocks and Scissors.

Find the location of the warehouses which store contents Rocks and Scissors .


Question: SELECT T2.title FROM Books_Order AS T1 JOIN Book AS T2 ON T1.isbn  =  T2.isbn GROUP BY T1.isbn ORDER BY count(*) DESC LIMIT 1

SELECT T2.title FROM Books_Order AS T1 JOIN Book AS T2 ON T1.isbn = T2.isbn GROUP BY T1.isbn ORDER BY count ( * ) DESC LIMIT 1

select t2 . title from books_order as t1 join book as t2 on t1 . isbn = t2 . isbn group by t1 . isbn order by count ( * ) desc limit value

Show the book title corresponding to the book with the most number of orders.

Show the book title corresponding to the book with the most number of orders .


Question: SELECT count(DISTINCT earpads) FROM headphone

SELECT count ( DISTINCT earpads ) FROM headphone

select count ( distinct earpads ) from headphone


Question: SELECT T2.location ,   T2.medium FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T1.fname  =  "Pablo"

SELECT T2.location , T2.medium FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T1.fname = `` Pablo ''

select t2 . location , t2 . medium from artists as t1 join paintings as t2 on t1 . artistid = t2 . painterid where t1 . fname = value

What are the location and medium type of paintings that are created by the artist whose first name is Pablo?

What are the location and medium type of paintings that are created by the artist whose first name is Pablo ?


Question: SELECT title FROM movies


Question: SELECT DISTINCT id FROM goods WHERE price  <  (SELECT max(price) FROM goods WHERE food  =  "Tart")

SELECT DISTINCT id FROM goods WHERE price < ( SELECT max ( price ) FROM goods WHERE food = `` Tart '' )

select distinct id from goods where price < ( select max ( price ) from goods where food = value )

Give the distinct ids for goods that cost less than any Tart.

Give the distinct ids for goods that cost less than any Tart .


Question: SELECT max(age) ,  pilot_name FROM pilotskills GROUP BY pilot_name

SELECT max ( age ) , pilot_name FROM pilotskills GROUP BY pilot_name

select max ( age ) , pilot_name from pilotskills group by pilot_name

What are the different pilot names, and what are the maximum ages of pilots for each?

What are the different pilot names , and what are the maximum ages of pilots for each ?


Question: SELECT room_size ,  count(*) FROM Rooms GROUP BY room_size

SELECT room_size , count ( * ) FROM Rooms GROUP BY room_size

select room_size , count ( * ) from rooms group by room_size

What are the different room sizes, and how many of each are there?

What are the different room sizes , and how many of each are there ?


Question: SELECT t1.name ,  t2.title ,  t3.name FROM author AS t1 JOIN book AS t2 ON t1.author_id  =  t2.author_id JOIN press AS t3 ON t2.press_id  =  t3.press_id ORDER BY t2.sale_amount DESC LIMIT 3

select t1 . name , t2 . title , t3 . name from author as t1 join book as t2 on t1 . author_id = t2 . author_id join press as t3 on t2 . press_id = t3 . press_id order by t2 . sale_amount desc limit value

What are the 3 best selling books? Show their titles, author names, and press names.

What are the 3 best selling books ? Show their titles , author names , and press names .


Question: SELECT name ,  Government_website ,  district_id FROM district ORDER BY Population

select name , government_website , district_id from district order by population

List the ids, names, and government websites of all districts sorted by population.

List the ids , names , and government websites of all districts sorted by population .


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

Show ids for all female (sex is F) students living in state PA.

Show ids for all female ( sex is F ) students living in state PA .


Question: SELECT t1.customer_details FROM customers AS t1 JOIN customers_and_services AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_details ORDER BY count(*) DESC LIMIT 1

SELECT t1.customer_details FROM customers AS t1 JOIN customers_and_services AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_details ORDER BY count ( * ) DESC LIMIT 1

select t1 . customer_details from customers as t1 join customers_and_services as t2 on t1 . customer_id = t2 . customer_id group by t1 . customer_details order by count ( * ) desc limit value

Find the details of the customer who has used services the most times.

Find the details of the customer who has used services the most times .


Question: SELECT T1.Level FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID WHERE T2.position  =  "Physician";

SELECT T1.Level FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID WHERE T2.position = `` Physician '' ;

select t1 . level from has_clearance as t1 join employee as t2 on t1 . employee = t2 . employeeid where t2 . position = value

What is the clearance level of a physician?

What is the clearance level of a physician ?


Question: SELECT avg(age) ,  plane_name FROM pilotskills GROUP BY plane_name

SELECT avg ( age ) , plane_name FROM pilotskills GROUP BY plane_name

select avg ( age ) , plane_name from pilotskills group by plane_name

What is the average age of pilots for different types of planes?

What is the average age of pilots for different types of planes ?


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

Show name, type of powertrain, and annual fuel cost for all vehicles with model year 2013 or 2014.

Show name , type of powertrain , and annual fuel cost for all vehicles with model year 2013 or 2014 .


Question: SELECT name ,  age FROM Sailors WHERE age  =  ( SELECT max(age) FROM Sailors )

SELECT name , age FROM Sailors WHERE age = ( SELECT max ( age ) FROM Sailors )

select name , age from sailors where age = ( select max ( age ) from sailors )

What is the name and age of the sailor with maximum age?

What is the name and age of the sailor with maximum age ?


Question: SELECT DISTINCT conference_name FROM conference

select distinct conference_name from conference

What are the different conference names?

What are the different conference names ?


Question: SELECT count(*) ,  plane_name FROM pilotskills GROUP BY plane_name

SELECT count ( * ) , plane_name FROM pilotskills GROUP BY plane_name

select count ( * ) , plane_name from pilotskills group by plane_name

Count the number of entries for each plane name.

Count the number of entries for each plane name .


Question: SELECT pilot_name FROM pilotskills ORDER BY age DESC

select pilot_name from pilotskills order by age desc

List all pilot names sorted by their ages in the descending order.

List all pilot names sorted by their ages in the descending order .


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

Return the models of vehicles that have never been driven.

Return the models of vehicles that have never been driven .


Question: SELECT count(*) FROM vehicles


Question: SELECT sid FROM Sailors EXCEPT SELECT T1.sid FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid  =  T2.sid

select sid from sailors except select t1 . sid from sailors as t1 join reserves as t2 on t1 . sid = t2 . sid

Find id for the sailors who do not have a reservation of a boat?

Find id for the sailors who do not have a reservation of a boat ?


Question: select distinct t1.customer_details from customers as t1 join customer_interactions as t2 on t1.customer_id  =  t2.customer_id join integration_platform as t3 where t3.integration_platform_details  =  "fail"

List the details of all the customers who are associated with a failed integration platform .


Question: SELECT bio_data FROM Students WHERE student_details LIKE '%Suite%'

SELECT bio_data FROM Students WHERE student_details LIKE ' % Suite % '

select bio_data from students where student_details like value

Which students have 'Suite' as a substring in their details? Give me their biographical information.

Which students have 'Suite ' as a substring in their details ? Give me their biographical information .


Question: SELECT count(*) FROM Users AS T1 JOIN User_Searches AS T2 ON T1.user_id  =  T2.user_id WHERE T1.is_buyer  =  1;

SELECT count ( * ) FROM Users AS T1 JOIN User_Searches AS T2 ON T1.user_id = T2.user_id WHERE T1.is_buyer = 1 ;

select count ( * ) from users as t1 join user_searches as t2 on t1 . user_id = t2 . user_id where t1 . is_buyer = value

How many searches do buyers make in total?

How many searches do buyers make in total ?


Question: SELECT city1_code ,  sum(distance) FROM Direct_distance GROUP BY city1_code

SELECT city1_code , sum ( distance ) FROM Direct_distance GROUP BY city1_code

select city1_code , sum ( distance ) from direct_distance group by city1_code

Show all city codes and the total distance to all other cities.

Show all city codes and the total distance to all other cities .


Question: SELECT DISTINCT T1.birthYear FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID  =  T2.sculptorID WHERE T2.year  >  1920

select distinct t1 . birthyear from artists as t1 join sculptures as t2 on t1 . artistid = t2 . sculptorid where t2 . year > value

Find the birth years of all distinct artists who made sculptures after 1920?

Find the birth years of all distinct artists who made sculptures after 1920 ?


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"

What are the different document object ids that are in the collection named Best but not in the subset named 'Best for 2000'?

What are the different document object ids that are in the collection named Best but not in the subset named 'Best for 2000 ' ?


Question: SELECT T3.city_name FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code  =  T2.city_code JOIN City AS T3 ON T1.city2_code  =  T3.city_code WHERE T2.city_name  =  "Chicago" ORDER BY distance LIMIT 1

SELECT T3.city_name FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code = T2.city_code JOIN City AS T3 ON T1.city2_code = T3.city_code WHERE T2.city_name = `` Chicago '' ORDER BY distance LIMIT 1

What is the name of the city closest to Chicago?

What is the name of the city closest to Chicago ?


Question: SELECT count(*) ,  T2.event_type_code ,  T3.event_type_description FROM Students AS T1 JOIN Student_Events AS T2 ON T1.student_id  =  T2.student_id JOIN Ref_Event_Types AS T3 ON T2.event_type_code  =  T3.event_type_code GROUP BY T2.event_type_code ORDER BY count(*) DESC LIMIT 1

SELECT count ( * ) , T2.event_type_code , T3.event_type_description FROM Students AS T1 JOIN Student_Events AS T2 ON T1.student_id = T2.student_id JOIN Ref_Event_Types AS T3 ON T2.event_type_code = T3.event_type_code GROUP BY T2.event_type_code ORDER BY count ( * ) DESC LIMIT 1

What is the type of event the most students joined? Give me the number of students, and the event type code and description.

What is the type of event the most students joined ? Give me the number of students , and the event type code and description .


Question: SELECT T2.Name FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID JOIN Planet AS T3 ON T1.Planet = T3.PlanetID WHERE T3.Name  =  "Omega III";

SELECT T2.Name FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID JOIN Planet AS T3 ON T1.Planet = T3.PlanetID WHERE T3.Name = `` Omega III '' ;

select t2 . name from has_clearance as t1 join employee as t2 on t1 . employee = t2 . employeeid join planet as t3 on t1 . planet = t3 . planetid where t3 . name = value

What are the names of all employees with clearance on Omega III?

What are the names of all employees with clearance on Omega III ?


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

List the the address details and the biographical information of the students.

List the the address details and the biographical information of the students .


Question: SELECT count(*) FROM pilotskills WHERE age  <  (SELECT min(age) FROM pilotskills WHERE plane_name  =  'F-14 Fighter')

SELECT count ( * ) FROM pilotskills WHERE age < ( SELECT min ( age ) FROM pilotskills WHERE plane_name = 'F-14 Fighter ' )

select count ( * ) from pilotskills where age < ( select min ( age ) from pilotskills where plane_name = value )

How many pilots are younger than all pilots who own the F-14 Fighter?

How many pilots are younger than all pilots who own the F-14 Fighter ?


Question: SELECT count(plane_name) FROM pilotskills WHERE pilot_name  =  'Smith'

SELECT count ( plane_name ) FROM pilotskills WHERE pilot_name = 'Smith '

select count ( plane_name ) from pilotskills where pilot_name = value


Question: SELECT T1.country ,  count(*) FROM City AS T1 JOIN Student AS T2 ON T1.city_code  =  T2.city_code GROUP BY T1.country

SELECT T1.country , count ( * ) FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code GROUP BY T1.country

select t1 . country , count ( * ) from city as t1 join student as t2 on t1 . city_code = t2 . city_code group by t1 . country

How many students live in each country ?


Question: SELECT count(*) FROM Author


Question: SELECT staff_role_code ,  count(*) FROM Staff_in_processes GROUP BY staff_role_code

SELECT staff_role_code , count ( * ) FROM Staff_in_processes GROUP BY staff_role_code

select staff_role_code , count ( * ) from staff_in_processes group by staff_role_code

Show all staff role codes and the number of document processes for each role.

Show all staff role codes and the number of document processes for each role .


Question: SELECT T1.agency_id ,  T1.agency_details FROM Agencies AS T1 JOIN Clients AS T2 ON T1.agency_id  =  T2.agency_id GROUP BY T1.agency_id HAVING count(*)  >=  2

SELECT T1.agency_id , T1.agency_details FROM Agencies AS T1 JOIN Clients AS T2 ON T1.agency_id = T2.agency_id GROUP BY T1.agency_id HAVING count ( * ) > = 2

select t1 . agency_id , t1 . agency_details from agencies as t1 join clients as t2 on t1 . agency_id = t2 . agency_id group by t1 . agency_id having count ( * ) > = value

What are the agency ids and details agencies with at least 2 clients?

What are the agency ids and details agencies with at least 2 clients ?


Question: SELECT name FROM spokesman ORDER BY age DESC LIMIT 1

select name from spokesman order by age desc limit value


Question: SELECT count(DISTINCT TYPE) FROM book

SELECT count ( DISTINCT TYPE ) FROM book

select count ( distinct type ) from book

How many distinct types of book are there?

How many distinct types of book are there ?


Question: SELECT DISTINCT T1.name FROM Client AS T1 JOIN Orders AS T2 ON T1.idClient  =  T2.idClient

select distinct t1 . name from client as t1 join orders as t2 on t1 . idclient = t2 . idclient

Show the names of clients who have ordered at least once.

Show the names of clients who have ordered at least once .


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

SELECT title FROM movies WHERE rating = 'G '

select title from movies where rating = value

What are names of movies that have a 'G' ratings?

What are names of movies that have a 'G ' ratings ?


Question: SELECT process_outcome_description FROM Process_outcomes WHERE process_outcome_code  =  "working"

SELECT process_outcome_description FROM Process_outcomes WHERE process_outcome_code = `` working ''

What is the description for the process outcome code working?

What is the description for the process outcome code working ?


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

select t1 . receiptnumber , t1 . date from receipts as t1 join items as t2 on t1 . receiptnumber = t2 . receipt join goods as t3 on t2 . item = t3 . id order by t3 . price desc limit value

What is the receipt number and date of the receipt in which the most expensive item was bought?

What is the receipt number and date of the receipt in which the most expensive item was bought ?


Question: SELECT payment_method_code FROM Customers GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1

SELECT payment_method_code FROM Customers GROUP BY payment_method_code ORDER BY count ( * ) DESC LIMIT 1

select payment_method_code from customers group by payment_method_code order by count ( * ) desc limit value

Give the code of the payment method that is most commonly used.

Give the code of the payment method that is most commonly used .


Question: SELECT first_name ,  middle_name ,  last_name FROM Properties AS T1 JOIN Users AS T2 ON T1.owner_user_id  =  T2.user_id WHERE T1.property_address_id  =  T2.user_address_id;

What are the first, middle and last names of users who own the property they live in?

What are the first , middle and last names of users who own the property they live in ?


Question: SELECT id ,  price FROM goods WHERE id LIKE "%70%"

SELECT id , price FROM goods WHERE id LIKE `` % 70 % ''

select id , price from goods where id like value

What are the id and price for the good with "70" in its id?

What are the id and price for the good with `` 70 '' in its id ?


Question: SELECT count(DISTINCT T1.driver_id) FROM vehicle_driver AS T1 JOIN vehicle AS T2 ON T1.vehicle_id  =  T2.vehicle_id WHERE T2.build_year  =  2012

Count the number of different drivers who have driven vehicles built in 2012.

Count the number of different drivers who have driven vehicles built in 2012 .


Question: SELECT email_address ,  town_city ,  county FROM Customers WHERE gender_code  =  ( SELECT gender_code FROM Customers GROUP BY gender_code ORDER BY count(*) ASC LIMIT 1 )

SELECT email_address , town_city , county FROM Customers WHERE gender_code = ( SELECT gender_code FROM Customers GROUP BY gender_code ORDER BY count ( * ) ASC LIMIT 1 )

select email_address , town_city , county from customers where gender_code = ( select gender_code from customers group by gender_code order by count ( * ) asc limit value )

What are the email addresses, cities, and counties listed for all cusomters who are from the gender that orders less often?

What are the email addresses , cities , and counties listed for all cusomters who are from the gender that orders less often ?


Question: SELECT agency_id ,  agency_details FROM Agencies

select agency_id , agency_details from agencies


Question: SELECT T1.Nickname FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID  =  T2.Institution_ID ORDER BY T2.Enrollment ASC LIMIT 1

select t1 . nickname from championship as t1 join institution as t2 on t1 . institution_id = t2 . institution_id order by t2 . enrollment asc limit value

Return the nickname of the institution with the lowest enrollment.

Return the nickname of the institution with the lowest enrollment .


Question: SELECT name ,  parking FROM store WHERE neighborhood  =  'Tarzana'

SELECT name , parking FROM store WHERE neighborhood = 'Tarzana '

select name , parking from store where neighborhood = value

Which stores are located in the "Tarzana" neighborhood? Return their names and parking information.

Which stores are located in the `` Tarzana '' neighborhood ? Return their names and parking information .


Question: SELECT Capital FROM region ORDER BY Population DESC LIMIT 1

select capital from region order by population desc limit value

Which region has the largest population? Give me the capital of the region.

Which region has the largest population ? Give me the capital of the region .


Question: SELECT DISTINCT CONTENTS FROM boxes ORDER BY CONTENTS

select distinct contents from boxes order by contents

What are the different contents of boxes, ordered alphabetically?

What are the different contents of boxes , ordered alphabetically ?


Question: SELECT avg(capacity) ,  sum(capacity) FROM warehouses

SELECT avg ( capacity ) , sum ( capacity ) FROM warehouses

select avg ( capacity ) , sum ( capacity ) from warehouses

Find the average and total capacity of all warehouses.

Find the average and total capacity of all warehouses .


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

SELECT product_name FROM bike WHERE material LIKE `` % fiber % ''

select product_name from bike where material like value

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

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


Question: SELECT T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse  =  T2.code WHERE T1.contents  =  'Rocks' EXCEPT SELECT T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse  =  T2.code WHERE T1.contents  =  'Scissors'

SELECT T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T1.contents = 'Rocks ' EXCEPT SELECT T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T1.contents = 'Scissors '

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

What are the locations of warehouses that have boxes containing Rocks but not Scissors?

What are the locations of warehouses that have boxes containing Rocks but not Scissors ?


Question: SELECT count(*) FROM services


Question: SELECT DISTINCT payment_method_code FROM Customers

select distinct payment_method_code from customers

Give the different payment method codes that customers use.

Give the different payment method codes that customers use .


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

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

select t2 . name , count ( * ) from shipment as t1 join employee as t2 on t1 . manager = t2 . employeeid group by t1 . manager

List the manger's name and number of shipments under his management.

List the manger 's name and number of shipments under his management .


Question: SELECT 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 JOIN Documents_in_Collections AS T3 ON T1.Document_Object_ID  =  T3.Document_Object_ID JOIN Collections AS T4 ON T3.Collection_ID  =  T4.Collection_ID WHERE T2.Document_Subset_Name = "Best for 2000" OR T4.Collection_Name = "Best";

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

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


Question: SELECT T1.teacher_details ,  T3.student_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id  =  T2.teacher_id JOIN Students AS T3 ON T2.student_id  =  T3.student_id

What are the pairs of teachers and students who are in the same class? Give me the pairs of their details.

What are the pairs of teachers and students who are in the same class ? Give me the pairs of their details .


Question: SELECT T2.name ,  T2.Type_of_powertrain FROM renting_history AS T1 JOIN vehicles AS T2 ON T1.vehicles_id  =  T2.id GROUP BY T1.vehicles_id HAVING sum(T1.total_hours)  >  30

What are the names and powertrain types of cars that have more than 30 total rental hours?

What are the names and powertrain types of cars that have more than 30 total rental hours ?


Question: SELECT T2.name FROM renting_history AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.id GROUP BY T2.id HAVING count(*)  >=  2

SELECT T2.name FROM renting_history AS T1 JOIN customers AS T2 ON T1.customer_id = T2.id GROUP BY T2.id HAVING count ( * ) > = 2

select t2 . name from renting_history as t1 join customers as t2 on t1 . customer_id = t2 . id group by t2 . id having count ( * ) > = value

What are the names of customers who have two or more records of rental history?

What are the names of customers who have two or more records of rental history ?


Question: SELECT achievement_type_code ,  achievement_details ,  date_achievement FROM Achievements

List the achievement type code, achievement details and the date of the achievements.

List the achievement type code , achievement details and the date of the achievements .


Question: SELECT agency_id FROM Agencies EXCEPT SELECT agency_id FROM Clients

select agency_id from agencies except select agency_id from clients

What are ids of agencies that do not have any clients?

What are ids of agencies that do not have any clients ?


Question: SELECT client_id ,  client_details FROM Clients

select client_id , client_details from clients

What are all the client ids and details?

What are all the client ids and details ?


Question: SELECT home_conference FROM University GROUP BY home_conference ORDER BY sum(enrollment) LIMIT 1

SELECT home_conference FROM University GROUP BY home_conference ORDER BY sum ( enrollment ) LIMIT 1

select home_conference from university group by home_conference order by sum ( enrollment ) limit value

What are the home conferences with the fewest number of people enrolled?

What are the home conferences with the fewest number of people enrolled ?


Question: SELECT Nationality ,  COUNT(*) FROM member GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1

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

select nationality , count ( * ) from member group by nationality order by count ( * ) desc limit value

Please show the most common nationality of members.

Please show the most common nationality of members .


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

Count the number of property photos each property has by id.

Count the number of property photos each property has by id .


Question: SELECT count(*) FROM radio


Question: SELECT DISTINCT Address FROM building

Give me a list of distinct building addresses.

Give me a list of distinct building addresses .


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

Find all the customers whose name contains "Kutch".

Find all the customers whose name contains `` Kutch '' .


Question: SELECT count(*) ,  neighborhood FROM store GROUP BY neighborhood

SELECT count ( * ) , neighborhood FROM store GROUP BY neighborhood

select count ( * ) , neighborhood from store group by neighborhood

find the number of stores in each neighborhood.

find the number of stores in each neighborhood .


Question: SELECT sid ,  name FROM Sailors EXCEPT SELECT T1.sid ,  T1.name FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid  =  T2.sid

select sid , name from sailors except select t1 . sid , t1 . name from sailors as t1 join reserves as t2 on t1 . sid = t2 . sid

What are the names and ids of all sailors who do not have boat reservations?

What are the names and ids of all sailors who do not have boat reservations ?


Question: SELECT YEAR FROM conference GROUP BY YEAR ORDER BY count(*) LIMIT 1

SELECT YEAR FROM conference GROUP BY YEAR ORDER BY count ( * ) LIMIT 1

select year from conference group by year order by count ( * ) limit value

which year has least number of conferences?

which year has least number of conferences ?


Question: SELECT count(*) FROM Documents


Question: SELECT TYPE ,  title FROM book EXCEPT SELECT T1.type ,  T1.title FROM book AS T1 JOIN review AS T2 ON T1.Book_ID  =  T2.Book_ID;

SELECT TYPE , title FROM book EXCEPT SELECT T1.type , T1.title FROM book AS T1 JOIN review AS T2 ON T1.Book_ID = T2.Book_ID ;

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

What are the type and title of the books that are not rated?

What are the type and title of the books that are not rated ?


Question: SELECT T1.agency_id ,  T2.agency_details FROM Staff AS T1 JOIN Agencies AS T2 ON T1.agency_id  =  T2.agency_id GROUP BY T1.agency_id ORDER BY count(*) DESC LIMIT 1

SELECT T1.agency_id , T2.agency_details FROM Staff AS T1 JOIN Agencies AS T2 ON T1.agency_id = T2.agency_id GROUP BY T1.agency_id ORDER BY count ( * ) DESC LIMIT 1

select t1 . agency_id , t2 . agency_details from staff as t1 join agencies as t2 on t1 . agency_id = t2 . agency_id group by t1 . agency_id order by count ( * ) desc limit value

Return the id and detail for the agency with the most staff.

Return the id and detail for the agency with the most staff .


Question: SELECT agency_id ,  agency_details FROM Agencies

select agency_id , agency_details from agencies

What are all the agency ids and details?

What are all the agency ids and details ?


Question: SELECT Name FROM region WHERE Region_ID NOT IN (SELECT Region_ID FROM building)

SELECT Name FROM region WHERE Region_ID NOT IN ( SELECT Region_ID FROM building )

select name from region where region_id not in ( select region_id from building )

What are the names of regions in which there are no buildings?

What are the names of regions in which there are no buildings ?


Question: SELECT DISTINCT type_of_powertrain FROM vehicles

select distinct type_of_powertrain from vehicles

What are the different types of powertrains?

What are the different types of powertrains ?


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

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

select name from club where club_id not in ( select club_id from player )

List the name of clubs that do not have players.

List the name of clubs that do not have players .


Question: SELECT T3.Name 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 HAVING sum(T1.Weight)  >  30;

SELECT T3.Name 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 HAVING sum ( T1.Weight ) > 30 ;

select t3 . name 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 having sum ( t1 . weight ) > value

Which planet has total weight of shipment greater than 30? List planet name.

Which planet has total weight of shipment greater than 30 ? List planet name .


Question: SELECT count(DISTINCT earpads) FROM headphone

SELECT count ( DISTINCT earpads ) FROM headphone

select count ( distinct earpads ) from headphone


Question: SELECT * FROM Students


Question: SELECT DISTINCT venue ,  YEAR FROM paper ORDER BY YEAR

select distinct venue , year from paper order by year

List all venues and years for papers ordered by year.

List all venues and years for papers ordered by year .


Question: SELECT count(*) FROM game


Question: SELECT T1.client_id ,  T1.client_details FROM Clients AS T1 JOIN meetings AS T2 ON T1.client_id  =  T2.client_id UNION SELECT T1.client_id ,  T1.client_details FROM Clients AS T1 JOIN invoices AS T2 ON T1.client_id  =  T2.client_id

What are the ids and details of the clients who have attended any meeting or have any invoice?

What are the ids and details of the clients who have attended any meeting or have any invoice ?


Question: SELECT avg(price) FROM bike WHERE material  =  'Carbon CC'

SELECT avg ( price ) FROM bike WHERE material = 'Carbon CC '

select avg ( price ) from bike where material = value

What is the average price of the bikes made of material 'Carbon CC'?

What is the average price of the bikes made of material 'Carbon CC ' ?


Question: SELECT DISTINCT name FROM MovieTheaters WHERE Movie  =  'null'

SELECT DISTINCT name FROM MovieTheaters WHERE Movie = 'null '

select distinct name from movietheaters where movie = value

What are the names of all cinemas not showing any movies?

What are the names of all cinemas not showing any movies ?


Question: SELECT DISTINCT CONTENTS FROM boxes

Select all distinct contents in all the boxes.

Select all distinct contents in all the boxes .


Question: SELECT 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 WHERE T3.Name = "Mars";

SELECT 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 WHERE T3.Name = `` Mars '' ;

select 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 where t3 . name = value

what is the total weight of all packages shipped on Mars?

what is the total weight of all packages shipped on Mars ?


Question: SELECT T3.date 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.date HAVING sum(T1.price)  >  100

select t3 . date 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 . date having sum ( t1 . price ) > value

On what dates did the bakery sell more than 100 dollars worth of goods in total?

On what dates did the bakery sell more than 100 dollars worth of goods in total ?


Question: SELECT City ,  Station_name FROM city_channel ORDER BY Station_name ASC

select city , station_name from city_channel order by station_name asc

Show the cities and station names of city channels in ascending alphabetical order of station name.

Show the cities and station names of city channels in ascending alphabetical order of station name .


Question: SELECT title FROM movies


Question: SELECT code ,  CONTENTS FROM boxes ORDER BY value

select code , contents from boxes order by value

List the code and contents of all boxes sorted by their values.

List the code and contents of all boxes sorted by their values .


Question: SELECT Manufacturer FROM club GROUP BY Manufacturer ORDER BY COUNT(*) DESC LIMIT 1

SELECT Manufacturer FROM club GROUP BY Manufacturer ORDER BY COUNT ( * ) DESC LIMIT 1

select manufacturer from club group by manufacturer order by count ( * ) desc limit value

Please show the most common manufacturer of clubs.

Please show the most common manufacturer of clubs .


Question: SELECT name ,  age ,  membership_credit FROM customers

select name , age , membership_credit from customers

Show the name, age, membership credit for all customers?

Show the name , age , membership credit for all customers ?


Question: SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code  =  T2.movie WHERE T2.name  =  'Odeon' OR T2.name  =  'Imperial'

SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon ' OR T2.name = 'Imperial '

select t1 . title from movies as t1 join movietheaters as t2 on t1 . code = t2 . movie where t2 . name = value or t2 . name = value

What are the titles of all the movies that played at the Odeon or Imperial theater?

What are the titles of all the movies that played at the Odeon or Imperial theater ?


Question: SELECT count(DISTINCT T3.customer_id) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id  =  T2.product_id JOIN Customer_orders AS T3 ON T3.order_id  =  T1.order_id WHERE T2.product_name  =  "Monitor"

How many customers have ordered the product named Monitor?

How many customers have ordered the product named Monitor ?


Question: SELECT max(height_mm) ,  max(width_mm) ,  YEAR FROM paintings GROUP BY YEAR ORDER BY YEAR

SELECT max ( height_mm ) , max ( width_mm ) , YEAR FROM paintings GROUP BY YEAR ORDER BY YEAR

select max ( height_mm ) , max ( width_mm ) , year from paintings group by year order by year

What are the maximum height and width of paintings for each year?

What are the maximum height and width of paintings for each year ?


Question: SELECT meeting_id ,  count(*) FROM Staff_in_meetings GROUP BY meeting_id

SELECT meeting_id , count ( * ) FROM Staff_in_meetings GROUP BY meeting_id

select meeting_id , count ( * ) from staff_in_meetings group by meeting_id

Count the number of staff in each meeting by meeting id.

Count the number of staff in each meeting by meeting id .


Question: SELECT T1.name FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid  =  T2.sid JOIN Boats AS T3 ON T3.bid  =  T2.bid WHERE T3.name  =  'Melon'

SELECT T1.name FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid JOIN Boats AS T3 ON T3.bid = T2.bid WHERE T3.name = 'Melon '

select t1 . name from sailors as t1 join reserves as t2 on t1 . sid = t2 . sid join boats as t3 on t3 . bid = t2 . bid where t3 . name = value

What are the names of sailors who reserved a boat with the name Melon?

What are the names of sailors who reserved a boat with the name Melon ?


Question: SELECT T1.city_name ,  count(*) FROM City AS T1 JOIN Student AS T2 ON T1.city_code  =  T2.city_code GROUP BY T1.city_code

SELECT T1.city_name , count ( * ) FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code GROUP BY T1.city_code

select t1 . city_name , count ( * ) from city as t1 join student as t2 on t1 . city_code = t2 . city_code group by t1 . city_code


Question: SELECT Title FROM book ORDER BY Pages DESC

select title from book order by pages desc

List the titles of books in descending order of pages.

List the titles of books in descending order of pages .


Question: SELECT OWNER FROM Document_Objects WHERE Description  =  'Braeden Collection'

SELECT OWNER FROM Document_Objects WHERE Description = 'Braeden Collection '

select owner from document_objects where description = value

What is the owner of document with the Description 'Braeden Collection'?

What is the owner of document with the Description 'Braeden Collection ' ?


Question: SELECT LOCATION FROM hangar ORDER BY plane_name

select location from hangar order by plane_name

What are the locations of the different planes, ordered by plane name?

What are the locations of the different planes , ordered by plane name ?


Question: SELECT count(*) FROM institution


Question: SELECT T2.name FROM official_languages AS T1 JOIN languages AS T2 ON T1.language_id  =  T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1

SELECT T2.name FROM official_languages AS T1 JOIN languages AS T2 ON T1.language_id = T2.id GROUP BY T2.id ORDER BY COUNT ( * ) DESC LIMIT 1

select t2 . name from official_languages as t1 join languages as t2 on t1 . language_id = t2 . id group by t2 . id order by count ( * ) desc limit value

Show the official language spoken by the most number of countries.

Show the official language spoken by the most number of countries .


Question: SELECT title ,  YEAR FROM sculptures WHERE LOCATION != "Gallery 226"

SELECT title , YEAR FROM sculptures WHERE LOCATION ! = `` Gallery 226 ''

select title , year from sculptures where location ! = value

Find the names and years of all sculptures that are not located in gallery 226.

Find the names and years of all sculptures that are not located in gallery 226 .


Question: SELECT meeting_outcome ,  count(*) FROM Meetings GROUP BY meeting_outcome

SELECT meeting_outcome , count ( * ) FROM Meetings GROUP BY meeting_outcome

select meeting_outcome , count ( * ) from meetings group by meeting_outcome

How many meetings had each meeting outcome?

How many meetings had each meeting outcome ?


Question: SELECT DISTINCT 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 T2.author_id  =  T3.author_id WHERE  T3.name LIKE "%Mckeown ,  Kathleen%" OR T3.name LIKE "%Rambow ,  Owen%"

SELECT DISTINCT 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 T2.author_id = T3.author_id WHERE T3.name LIKE `` % Mckeown , Kathleen % '' OR T3.name LIKE `` % Rambow , Owen % ''

Find the titles and paper IDs for papers which have Mckeown, Kathleen or Rambow, Owen in author list.

Find the titles and paper IDs for papers which have Mckeown , Kathleen or Rambow , Owen in author list .


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

What are the manager and sponsor of the team that has the most drivers?

What are the manager and sponsor of the team that has the most drivers ?


Question: SELECT count(DISTINCT Engine) FROM driver WHERE Age  >  30 OR Age  <  20

SELECT count ( DISTINCT Engine ) FROM driver WHERE Age > 30 OR Age < 20

select count ( distinct engine ) from driver where age > value or age < value

How many different engines are used by drivers with age older than 30 or younger than 20?

How many different engines are used by drivers with age older than 30 or younger than 20 ?


Question: SELECT name FROM customer WHERE Customer_ID NOT IN (SELECT Customer_ID FROM customer_order)

SELECT name FROM customer WHERE Customer_ID NOT IN ( SELECT Customer_ID FROM customer_order )

select name from customer where customer_id not in ( select customer_id from customer_order )

List the names of customers that do not have any order.

List the names of customers that do not have any order .


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

What are the ids of customers who have spent over 150 dollars in total?

What are the ids of customers who have spent over 150 dollars in total ?


Question: SELECT DISTINCT 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 T2.author_id  =  T3.author_id WHERE  T3.name LIKE "%Mckeown ,  Kathleen%" OR T3.name LIKE "%Rambow ,  Owen%"

SELECT DISTINCT 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 T2.author_id = T3.author_id WHERE T3.name LIKE `` % Mckeown , Kathleen % '' OR T3.name LIKE `` % Rambow , Owen % ''

What are the titles and paper ids for papers that have Mckeown, Kathleen or Rambow, Owen in their author list?

What are the titles and paper ids for papers that have Mckeown , Kathleen or Rambow , Owen in their author list ?


Question: select count(distinct t1.paper_id) from paper as t1 join author_list as t2 on t1.paper_id  =  t2.paper_id join affiliation as t3 on t2.affiliation_id  =  t3.affiliation_id where t1.year  <=  2009 and t3.name = "columbia university"

select count ( distinct t1 . paper_id ) from paper as t1 join author_list as t2 on t1 . paper_id = t2 . paper_id join affiliation as t3 on t2 . affiliation_id = t3 . affiliation_id where t1 . year < = value and t3 . name = value

How many papers does Columbia University have in or before 2009 ?


Question: SELECT T1.invoice_status_code ,  T1.invoice_date ,  T2.shipment_date FROM Invoices AS T1 JOIN Shipments AS T2 ON T1.invoice_number  =  T2.invoice_number

List the invoices' status, date and the date of shipment.

List the invoices ' status , date and the date of shipment .


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 )

How many vehicles have maximum top speed?

How many vehicles have maximum top speed ?


Question: SELECT T1.Name FROM countries AS T1 JOIN official_languages AS T2 ON T1.id  =  T2.country_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1

SELECT T1.Name FROM countries AS T1 JOIN official_languages AS T2 ON T1.id = T2.country_id GROUP BY T1.id ORDER BY COUNT ( * ) DESC LIMIT 1

select t1 . name from countries as t1 join official_languages as t2 on t1 . id = t2 . country_id group by t1 . id order by count ( * ) desc limit value

Show the name of the country that has the greatest number of official languages.

Show the name of the country that has the greatest number of official languages .


Question: SELECT model ,  build_year FROM vehicle WHERE model LIKE '%DJ%'

SELECT model , build_year FROM vehicle WHERE model LIKE ' % DJ % '

select model , build_year from vehicle where model like value

What are the model names and build year of the cars with 'DJ' in its model name?

What are the model names and build year of the cars with 'DJ ' in its model name ?


Question: SELECT T1.Nickname FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID  =  T2.Institution_ID ORDER BY T2.Enrollment ASC LIMIT 1

select t1 . nickname from championship as t1 join institution as t2 on t1 . institution_id = t2 . institution_id order by t2 . enrollment asc limit value

What is the nickname of the institution with the smallest enrollment?

What is the nickname of the institution with the smallest enrollment ?


Question: SELECT count(DISTINCT T1.Related_Collection_ID) FROM Collection_Subset_Members AS T1 JOIN Collections AS T2 ON T1.Collection_ID  =  T2.Collection_ID WHERE T2.Collection_Name = "Best";

SELECT count ( DISTINCT T1.Related_Collection_ID ) FROM Collection_Subset_Members AS T1 JOIN Collections AS T2 ON T1.Collection_ID = T2.Collection_ID WHERE T2.Collection_Name = `` Best '' ;

How many collections that are related to collection named Best?

How many collections that are related to collection named Best ?


Question: SELECT name ,  age ,  membership_credit FROM customers

select name , age , membership_credit from customers

What are the names, ages, and membership credits for all customers?

What are the names , ages , and membership credits for all customers ?


Question: SELECT state FROM university WHERE enrollment  <  3000 GROUP BY state HAVING count(*)  >  2

SELECT state FROM university WHERE enrollment < 3000 GROUP BY state HAVING count ( * ) > 2

select state from university where enrollment < value group by state having count ( * ) > value

which states do have more than two universities with enrollment smaller than 3000?

which states do have more than two universities with enrollment smaller than 3000 ?


Question: SELECT count(DISTINCT plane_name) FROM pilotskills

SELECT count ( DISTINCT plane_name ) FROM pilotskills

select count ( distinct plane_name ) from pilotskills

Count the number of different plane names across all pilots.

Count the number of different plane names across all pilots .


Question: SELECT AVG(rating) ,  MAX(age) FROM Sailors

SELECT AVG ( rating ) , MAX ( age ) FROM Sailors

select avg ( rating ) , max ( age ) from sailors

What are the average rating and max age of all sailors?

What are the average rating and max age of all sailors ?


Question: SELECT id FROM goods WHERE price  >  (SELECT avg(price) FROM goods)

SELECT id FROM goods WHERE price > ( SELECT avg ( price ) FROM goods )

select id from goods where price > ( select avg ( price ) from goods )

Give the ids of goods that are more than twice as expensive as the average good.

Give the ids of goods that are more than twice as expensive as the average good .


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 )

Find the headphone models whose price is below the average price.

Find the headphone models whose price is below the average price .


Question: SELECT Name ,  Coordinates FROM Planet ORDER BY Name

select name , coordinates from planet order by name

List all Planets' names and coordinates in alphabetical order of name.

List all Planets ' names and coordinates in alphabetical order of name .


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

Who wrote the largest number of books? Give me the author name and gender.

Who wrote the largest number of books ? Give me the author name and gender .


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

What are the distinct invoice ids and statuses for all payments?

What are the distinct invoice ids and statuses for all payments ?


Question: SELECT DISTINCT bid FROM Reserves WHERE sid = 1

select distinct bid from reserves where sid = value

Find boats reserved by Sailor with id 1.

Find boats reserved by Sailor with id 1 .


Question: SELECT T1.Driver_Name ,  T1.Age FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID  =  T2.Driver_ID GROUP BY T1.Driver_ID HAVING COUNT(*)  >=  2

SELECT T1.Driver_Name , T1.Age FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID GROUP BY T1.Driver_ID HAVING COUNT ( * ) > = 2

select t1 . driver_name , t1 . age from driver as t1 join race as t2 on t1 . driver_id = t2 . driver_id group by t1 . driver_id having count ( * ) > = value

Please show the names and ages of the drivers who participated in at least two races.

Please show the names and ages of the drivers who participated in at least two races .


Question: SELECT T1.birthYear FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T2.year  =  1884 AND mediumOn  =  "canvas"

SELECT T1.birthYear FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T2.year = 1884 AND mediumOn = `` canvas ''

select t1 . birthyear from artists as t1 join paintings as t2 on t1 . artistid = t2 . painterid where t2 . year = value and mediumon = value

In what year was the artist who created a painting in 1884 born?

In what year was the artist who created a painting in 1884 born ?


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

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

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

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

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


Question: SELECT DISTINCT T1.title ,  T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id  =  T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id  =  T3.affiliation_id WHERE T3.name  =  "Harvard University"

What are the titles and paper ids for papers written in affiliation with Harvard University?

What are the titles and paper ids for papers written in affiliation with Harvard University ?


Question: SELECT count(pilot_name) FROM pilotskills WHERE age  >  (SELECT min(age) FROM pilotskills WHERE plane_name  =  'Piper Cub')

SELECT count ( pilot_name ) FROM pilotskills WHERE age > ( SELECT min ( age ) FROM pilotskills WHERE plane_name = 'Piper Cub ' )

select count ( pilot_name ) from pilotskills where age > ( select min ( age ) from pilotskills where plane_name = value )

Find the number of all pilots whose age is older than some pilot who has plane Piper Cub.

Find the number of all pilots whose age is older than some pilot who has plane Piper Cub .


Question: SELECT book_series FROM book WHERE sale_amount  >  1000 INTERSECT SELECT book_series FROM book WHERE sale_amount  <  500

select book_series from book where sale_amount > value intersect select book_series from book where sale_amount < value

Find the book series that have some book selling more than 1000 and some book less 500.

Find the book series that have some book selling more than 1000 and some book less 500 .


Question: SELECT staff_id ,  count(*) FROM Staff_in_processes GROUP BY staff_id

SELECT staff_id , count ( * ) FROM Staff_in_processes GROUP BY staff_id

select staff_id , count ( * ) from staff_in_processes group by staff_id

Show all staff ids and the number of document processes for each staff.

Show all staff ids and the number of document processes for each staff .


Question: SELECT name ,  address FROM Client ORDER BY name

select name , address from client order by name

What are the names and addressed of all clients, ordered alphabetically by name?

What are the names and addressed of all clients , ordered alphabetically by name ?


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

SELECT Name FROM customer WHERE Nationality = `` England '' OR Nationality = `` Australia ''

select name from customer where nationality = value or nationality = value

Which customers have nationality "England" or "Australia"? Give me their names.

Which customers have nationality `` England '' or `` Australia '' ? Give me their names .


Question: SELECT DISTINCT Franchise FROM game


Question: SELECT avg(T2.age) FROM club_leader AS T1 JOIN member AS T2 ON T1.member_id  =  T2.member_id

What is the average age of all the club leaders?

What is the average age of all the club leaders ?


Question: SELECT DISTINCT T1.student_details ,  T3.address_type_description FROM Students AS T1 JOIN Students_Addresses AS T2 ON T1.student_id  =  T2.student_id JOIN Ref_Address_Types AS T3 ON T2.address_type_code  =  T3.address_type_code

List the personal details and the address type descriptions of all the students.

List the personal details and the address type descriptions of all the students .


Question: SELECT T1.lname ,  T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID  =  T2.sculptorID INTERSECT SELECT T3.lname ,  T3.fname FROM artists AS T3 JOIN paintings AS T4 ON T3.artistID  =  T4.painterID

select t1 . lname , t1 . fname from artists as t1 join sculptures as t2 on t1 . artistid = t2 . sculptorid intersect select t3 . lname , t3 . fname from artists as t3 join paintings as t4 on t3 . artistid = t4 . painterid

Give the full names of artists who have created paintings and sculptures.

Give the full names of artists who have created paintings and sculptures .


Question: SELECT country ,  town_city FROM Addresses;

SELECT country , town_city FROM Addresses ;

select country , town_city from addresses

What are the countries and cities for each address?

What are the countries and cities for each address ?


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

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

select flavor from goods where food = value


Question: SELECT T1.title FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn  =  T2.isbn JOIN Author AS T3 ON T2.Author  =  T3.idAuthor WHERE T3.name  =  "Plato" AND T1.saleprice  <  (SELECT avg(saleprice) FROM Book)

SELECT T1.title FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn = T2.isbn JOIN Author AS T3 ON T2.Author = T3.idAuthor WHERE T3.name = `` Plato '' AND T1.saleprice < ( SELECT avg ( saleprice ) FROM Book )

select t1 . title from book as t1 join author_book as t2 on t1 . isbn = t2 . isbn join author as t3 on t2 . author = t3 . idauthor where t3 . name = value and t1 . saleprice < ( select avg ( saleprice ) from book )

Give the titles of books authored by Plato that have a sale price lower than the average sale price across all books.

Give the titles of books authored by Plato that have a sale price lower than the average sale price across all books .


Question: SELECT T1.title FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn  =  T2.isbn JOIN Author AS T3 ON T2.Author  =  T3.idAuthor WHERE T3.name  =  "Plato" AND T1.saleprice  <  (SELECT avg(saleprice) FROM Book)

SELECT T1.title FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn = T2.isbn JOIN Author AS T3 ON T2.Author = T3.idAuthor WHERE T3.name = `` Plato '' AND T1.saleprice < ( SELECT avg ( saleprice ) FROM Book )

select t1 . title from book as t1 join author_book as t2 on t1 . isbn = t2 . isbn join author as t3 on t2 . author = t3 . idauthor where t3 . name = value and t1 . saleprice < ( select avg ( saleprice ) from book )

What is the title of the book written by Plato has price lower than the average sale price of all books?

What is the title of the book written by Plato has price lower than the average sale price of all books ?


Question: SELECT T1.Name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID GROUP BY T1.Club_ID ORDER BY avg(T2.Earnings) DESC

SELECT T1.Name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID GROUP BY T1.Club_ID ORDER BY avg ( T2.Earnings ) DESC

select t1 . name from club as t1 join player as t2 on t1 . club_id = t2 . club_id group by t1 . club_id order by avg ( t2 . earnings ) desc

What are the names of clubs, ordered descending by the average earnings of players within each?

What are the names of clubs , ordered descending by the average earnings of players within each ?