Question: SELECT T2.Document_Object_ID ,  count(*) FROM Document_Objects AS T1 JOIN Document_Objects AS T2 ON T1.Parent_Document_Object_ID = T2.Document_Object_ID GROUP BY T2.Document_Object_ID ORDER BY count(*) DESC LIMIT 1;

SELECT T2.Document_Object_ID , count ( * ) FROM Document_Objects AS T1 JOIN Document_Objects AS T2 ON T1.Parent_Document_Object_ID = T2.Document_Object_ID GROUP BY T2.Document_Object_ID ORDER BY count ( * ) DESC LIMIT 1 ;

select t2 . document_object_id , count ( * ) from document_objects as t1 join document_objects as t2 on t1 . parent_document_object_id = t2 . document_object_id group by t2 . document_object_id order by count ( * ) desc limit value

For each document object id, how many children do they have?

For each document object id , how many children do they have ?


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

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

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

List different constructors and the number of drivers that use each constructor.

List different constructors and the number of drivers that use each constructor .


Question: SELECT T2.width_mm FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T1.birthYear  <  1850

select t2 . width_mm from artists as t1 join paintings as t2 on t1 . artistid = t2 . painterid where t1 . birthyear < value

How wide were the paintings by the artist who was born prior to 1850?

How wide were the paintings by the artist who was born prior to 1850 ?


Question: SELECT StuID FROM City AS T1 JOIN Student AS T2 ON T1.city_code  =  T2.city_code WHERE T2.sex  =  'M' AND T1.country != "USA"

SELECT StuID FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code WHERE T2.sex = 'M ' AND T1.country ! = `` USA ''

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

What are the ids for male students not in the USA?

What are the ids for male students not in the USA ?


Question: SELECT T2.name FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code  =  T2.movie WHERE T1.rating  =  'G'

SELECT T2.name FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T1.rating = 'G '

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

What are the names of theaters playing 'G' rated movies?

What are the names of theaters playing 'G ' rated movies ?


Question: SELECT venue ,  YEAR FROM paper GROUP BY venue ,  YEAR ORDER BY count(*) DESC LIMIT 1

SELECT venue , YEAR FROM paper GROUP BY venue , YEAR ORDER BY count ( * ) DESC LIMIT 1

select venue , year from paper group by venue , year order by count ( * ) desc limit value

What was the venue and year with the most publications?

What was the venue and year with the most publications ?


Question: SELECT T1.Name ,  T2.Name FROM building AS T1 JOIN region AS T2 ON T1.Region_ID  =  T2.Region_ID

select t1 . name , t2 . name from building as t1 join region as t2 on t1 . region_id = t2 . region_id

Show the names of buildings and the names of regions they are in.

Show the names of buildings and the names of regions they are in .


Question: SELECT avg(purchaseprice) ,  avg(saleprice) FROM Book

SELECT avg ( purchaseprice ) , avg ( saleprice ) FROM Book

select avg ( purchaseprice ) , avg ( saleprice ) from book

What is the average purchase price and the average sale price?

What is the average purchase price and the average sale price ?


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

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

What are the staff names who participated in conferences between 2003 or 2004?

What are the staff names who participated in conferences between 2003 or 2004 ?


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

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

select plane_name from pilotskills group by plane_name order by count ( * ) limit value

What is the name of the plane that is flown the least often?

What is the name of the plane that is flown the least often ?


Question: SELECT DISTINCT LOCATION FROM paintings WHERE YEAR  <  1885 AND mediumOn != "canvas"

SELECT DISTINCT LOCATION FROM paintings WHERE YEAR < 1885 AND mediumOn ! = `` canvas ''

select distinct location from paintings where year < value and mediumon ! = value

Find the locations that have paintings before 1885 and no work with medium on canvas?

Find the locations that have paintings before 1885 and no work with medium on canvas ?


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

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

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


Question: SELECT Last_Name FROM Students WHERE Gender_MFU != "M"

SELECT Last_Name FROM Students WHERE Gender_MFU ! = `` M ''

select last_name from students where gender_mfu ! = value

List the last names of the students whose gender is not "M".

List the last names of the students whose gender is not `` M '' .


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

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

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

What are the product price and the product size of the products whose price is above average?

What are the product price and the product size of the products whose price is above average ?


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

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

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

Find the name of the oldest pilot for each type of plane, and order the results by plane name.

Find the name of the oldest pilot for each type of plane , and order the results by plane name .


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

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

How many courses does each student take? List the student id, the student biographical data and the course count.

How many courses does each student take ? List the student id , the student biographical data and the course count .


Question: SELECT name ,  address FROM Client

Show all Client names and their addresses.

Show all Client names and their addresses .


Question: SELECT Driver_Name FROM driver WHERE CONSTRUCTOR != "Bugatti"

SELECT Driver_Name FROM driver WHERE CONSTRUCTOR ! = `` Bugatti ''

select driver_name from driver where constructor ! = value

List the names of drivers whose constructor is not "Bugatti".

List the names of drivers whose constructor is not `` Bugatti '' .


Question: SELECT CONSTRUCTOR FROM driver WHERE Age  <  20 INTERSECT SELECT CONSTRUCTOR FROM driver WHERE Age  >  30

select constructor from driver where age < value intersect select constructor from driver where age > value

What are the constructors who are used by both drivers who are younger than 20 and drivers older than 30?

What are the constructors who are used by both drivers who are younger than 20 and drivers older than 30 ?


Question: SELECT DISTINCT Country FROM player WHERE Earnings  >  1200000

select distinct country from player where earnings > value

What are the distinct countries of players with earnings higher than 1200000?

What are the distinct countries of players with earnings higher than 1200000 ?


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

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

select count ( * ) from paper where venue = value and year = value

How many papers do we have in NAACL 2000?

How many papers do we have in NAACL 2000 ?


Question: SELECT count(*) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code  =  T2.movie

SELECT count ( * ) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie

select count ( * ) from movies as t1 join movietheaters as t2 on t1 . code = t2 . movie

How many movies are playing across all theaters?

How many movies are playing across all theaters ?


Question: SELECT paintingID ,  title ,  LOCATION FROM paintings WHERE medium  =  "oil" ORDER BY YEAR

SELECT paintingID , title , LOCATION FROM paintings WHERE medium = `` oil '' ORDER BY YEAR

select paintingid , title , location from paintings where medium = value order by year

List the painting id, location and title of the medium oil paintings ordered by year.

List the painting id , location and title of the medium oil paintings ordered by year .


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

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

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

Show all client names and the number of orders each has made.

Show all client names and the number of orders each has made .


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

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

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

What are the types of powertrains for which there are two or more vehicles, and what are their average annual fuel costs?

What are the types of powertrains for which there are two or more vehicles , and what are their average annual fuel costs ?


Question: SELECT T1.code ,  T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.Warehouse  =  T2.Code

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

Select the code of each box, along with the name of the city the box is located in.

Select the code of each box , along with the name of the city the box is located in .


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

What are the names of products that have not been ordered?

What are the names of products that have not been ordered ?


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

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

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

What are the names of cities with at least three students?

What are the names of cities with at least three students ?


Question: SELECT Manufacturer ,  COUNT(*) FROM club GROUP BY Manufacturer

SELECT Manufacturer , COUNT ( * ) FROM club GROUP BY Manufacturer

select manufacturer , count ( * ) from club group by manufacturer

Show different manufacturers and the number of clubs they are associated with.

Show different manufacturers and the number of clubs they are associated with .


Question: SELECT count(*) ,  food FROM goods GROUP BY food

SELECT count ( * ) , food FROM goods GROUP BY food

select count ( * ) , food from goods group by food

Count the number of goods for each food type.

Count the number of goods for each food type .


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

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

select home_conference , count ( * ) from university group by home_conference

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

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


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

select t2 . name , sum ( t1 . total_hours ) from renting_history as t1 join vehicles as t2 on t1 . vehicles_id = t2 . id group by t2 . id

What are the names and total rental hours for each vehicle?

What are the names and total rental hours for each vehicle ?


Question: SELECT max(enrollment) ,  avg(enrollment) ,  min(enrollment) FROM University

SELECT max ( enrollment ) , avg ( enrollment ) , min ( enrollment ) FROM University

select max ( enrollment ) , avg ( enrollment ) , min ( enrollment ) from university

What is the maximum, average, and minimum enrollment for all universities?

What is the maximum , average , and minimum enrollment for all universities ?


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

What is the agent id and details for the agency with most staff?

What is the agent id and details for the agency with most staff ?


Question: SELECT t1.name ,  t1.channel_id FROM channel AS t1 JOIN director_admin AS t2 ON t1.channel_id  =  t2.channel_id JOIN director AS t3 ON t2.director_id  =  t3.director_id WHERE t3.name != "Hank Baskett"

Find the id and name of the channel that is not directed by Hank Baskett.

Find the id and name of the channel that is not directed by Hank Baskett .


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

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

Which customers have total order quantity greater than 1? Give me the customer names.

Which customers have total order quantity greater than 1 ? Give me the customer names .


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

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

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

Give the ids of Cookies or Cakes that cost between 3 and 7 dollars.

Give the ids of Cookies or Cakes that cost between 3 and 7 dollars .


Question: SELECT T2.isbn FROM Orders AS T1 JOIN Books_Order AS T2 ON T1.idOrder  =  T2.idOrder JOIN Client AS T3 ON T1.idClient  =  T3.idClient WHERE T3.name  =  "Peter Doe" INTERSECT SELECT T2.isbn FROM Orders AS T1 JOIN Books_Order AS T2 ON T1.idOrder  =  T2.idOrder JOIN Client AS T3 ON T1.idClient  =  T3.idClient WHERE T3.name  =  "James Smith"

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

What are the isbns of books ordered by both clients named Peter Doe and James Smith?

What are the isbns of books ordered by both clients named Peter Doe and James Smith ?


Question: SELECT avg(height_mm) ,  medium FROM paintings GROUP BY medium

SELECT avg ( height_mm ) , medium FROM paintings GROUP BY medium

select avg ( height_mm ) , medium from paintings group by medium

What are the average height of paintings for different medium types?

What are the average height of paintings for different medium types ?


Question: SELECT DISTINCT Manager FROM branch

Who are the distinct managers of branches?

Who are the distinct managers of branches ?


Question: SELECT T3.Name FROM club_leader AS T1 JOIN club AS T2 ON T1.Club_ID  =  T2.Club_ID JOIN member AS T3 ON T1.Member_ID  =  T3.Member_ID WHERE T2.Club_Name  =  "Houston"

Show the name of the leader of the club named "Houston".

Show the name of the leader of the club named `` Houston '' .


Question: SELECT count(*) FROM paintings WHERE LOCATION  =  "Gallery 240"

SELECT count ( * ) FROM paintings WHERE LOCATION = `` Gallery 240 ''

select count ( * ) from paintings where location = value

What is the total number of paintings exhibited in gallery 240?

What is the total number of paintings exhibited in gallery 240 ?


Question: SELECT count(*) FROM Clients


Question: SELECT t2.name FROM program AS t1 JOIN director AS t2 ON t1.director_id  =  t2.director_id WHERE t1.title  =  'Dracula'

SELECT t2.name FROM program AS t1 JOIN director AS t2 ON t1.director_id = t2.director_id WHERE t1.title = 'Dracula '

select t2 . name from program as t1 join director as t2 on t1 . director_id = t2 . director_id where t1 . title = value

What is the name of the director who is in the "Dracula" program?

What is the name of the director who is in the `` Dracula '' program ?


Question: SELECT title FROM book ORDER BY release_date DESC

select title from book order by release_date desc

List all book titles in the order of their release date from the most recent to the past.

List all book titles in the order of their release date from the most recent to the past .


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

Find the headphone classes that contain both headphones using "Bowls" earpads and headphones using "Comfort Pads" earpads.

Find the headphone classes that contain both headphones using `` Bowls '' earpads and headphones using `` Comfort Pads '' earpads .


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

In which years were more than one institution founded?

In which years were more than one institution founded ?


Question: select t1.document_object_id from document_subset_members as t1 join document_objects as t2 on t1.document_object_id  =  t2.document_object_id where t2.owner  =  'ransom'

List all document which is related to document owned by Ransom . List the document id .


Question: SELECT count(*) FROM Customers


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

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

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

What are highest, lowest, and average prices of goods, grouped and ordered by flavor?

What are highest , lowest , and average prices of goods , grouped and ordered by flavor ?


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

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

select count ( * ) , rating from movies group by rating

Find the number of movies in each rating.

Find the number of movies in each rating .


Question: SELECT avg(height_mm) ,  avg(width_mm) ,  painterID FROM paintings GROUP BY painterID ORDER BY title

SELECT avg ( height_mm ) , avg ( width_mm ) , painterID FROM paintings GROUP BY painterID ORDER BY title

select avg ( height_mm ) , avg ( width_mm ) , painterid from paintings group by painterid order by title

Find the average height and width of paintings grouped by painters and ordered by name


Question: SELECT T1.name FROM Author AS T1 JOIN Author_list AS T2 ON T1.author_id  =  T2.author_id GROUP BY T1.author_id HAVING count(*)  >  50

SELECT T1.name FROM Author AS T1 JOIN Author_list AS T2 ON T1.author_id = T2.author_id GROUP BY T1.author_id HAVING count ( * ) > 50

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

What are the names of all authors who have more than 50 papers?

What are the names of all authors who have more than 50 papers ?


Question: SELECT count(*) FROM pilotskills WHERE age  >  40

SELECT count ( * ) FROM pilotskills WHERE age > 40

select count ( * ) from pilotskills where age > value


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

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

What are the titles of books that have never been ordered?

What are the titles of books that have never been ordered ?


Question: SELECT DISTINCT T4.FirstName ,  T4.LastName FROM goods AS T1 JOIN items AS T2 ON T1.id  =  T2.item JOIN receipts AS T3 ON T2.receipt  =  T3.ReceiptNumber JOIN customers AS T4 ON T3.CustomerId  =  T4.id WHERE T1.flavor  =  "Apple" AND T1.food  =  "Tart"

SELECT DISTINCT T4.FirstName , T4.LastName FROM goods AS T1 JOIN items AS T2 ON T1.id = T2.item JOIN receipts AS T3 ON T2.receipt = T3.ReceiptNumber JOIN customers AS T4 ON T3.CustomerId = T4.id WHERE T1.flavor = `` Apple '' AND T1.food = `` Tart ''

select distinct t4 . firstname , t4 . lastname from goods as t1 join items as t2 on t1 . id = t2 . item join receipts as t3 on t2 . receipt = t3 . receiptnumber join customers as t4 on t3 . customerid = t4 . id where t1 . flavor = value and t1 . food = value

Give me the first name and last name of customers who have bought apple flavor Tart.

Give me the first name and last name of customers who have bought apple flavor Tart .


Question: SELECT T1.teacher_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id  =  T2.teacher_id WHERE T2.class_details LIKE '%data%' EXCEPT SELECT T1.teacher_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id  =  T2.teacher_id WHERE T2.class_details LIKE 'net%'

SELECT T1.teacher_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.class_details LIKE ' % data % ' EXCEPT SELECT T1.teacher_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.class_details LIKE 'net % '

List the details of the teachers who teach some class whose detail has the substring 'data' but do not teach a class whose detail contains the prefix 'net'

List the details of the teachers who teach some class whose detail has the substring 'data ' but do not teach a class whose detail contains the prefix 'net '


Question: SELECT DISTINCT Country FROM player WHERE Earnings  >  1200000

select distinct country from player where earnings > value

From which countries are players who make more than 1200000 from?

From which countries are players who make more than 1200000 from ?


Question: SELECT count(*) FROM Documents WHERE author_name  =  "Era Kerluke"

SELECT count ( * ) FROM Documents WHERE author_name = `` Era Kerluke ''

select count ( * ) from documents where author_name = value

How many documents does has the author Era Kerluke written?

How many documents does has the author Era Kerluke written ?


Question: SELECT T1.invoice_status ,  T1.invoice_details ,  T2.client_id ,  T2.client_details ,  T3.agency_id ,  T3.agency_details FROM Invoices AS T1 JOIN Clients AS T2 ON T1.client_id  =  T2.client_id JOIN Agencies AS T3 ON T2.agency_id  =  T3.agency_id

What are the invoice status, invoice details, and corresponding client ids and details and agency id and details?

What are the invoice status , invoice details , and corresponding client ids and details and agency id and details ?


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

SELECT DISTINCT T1.contents FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE LOCATION = 'New York '

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

What are all the different contents stored in boxes in New York?

What are all the different contents stored in boxes in New York ?


Question: SELECT Card_Credit FROM customer ORDER BY Level_of_Membership DESC LIMIT 1

select card_credit from customer order by level_of_membership desc limit value

What is the card credit of the customer with the highest membership level?

What is the card credit of the customer with the highest membership level ?


Question: SELECT count(DISTINCT name) FROM movietheaters

SELECT count ( DISTINCT name ) FROM movietheaters

select count ( distinct name ) from movietheaters

How many distinct movie theaters are there?

How many distinct movie theaters are there ?


Question: SELECT T3.process_name FROM Documents_processes AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id JOIN Business_processes AS T3 ON T1.process_id  =  T3.process_id WHERE T2.document_name  =  "Travel to Brazil"

What is the process name for the document "Travel to Brazil"?

What is the process name for the document `` Travel to Brazil '' ?


Question: SELECT T3.title ,  T1.name FROM Author AS T1 JOIN Author_Book AS T2 ON T2.Author  =  T1.idAuthor JOIN Book AS T3 ON T2.isbn  =  T3.isbn

select t3 . title , t1 . name from author as t1 join author_book as t2 on t2 . author = t1 . idauthor join book as t3 on t2 . isbn = t3 . isbn

What are the names of all books and their corresponding authors?

What are the names of all books and their corresponding authors ?


Question: SELECT DISTINCT T2.sid ,  T3.name FROM Boats AS T1 JOIN Reserves AS T2 ON  T1.bid  =  T2.bid JOIN Sailors AS T3 ON T2.sid  =  T3.sid WHERE T1.color  =  'red' OR T1.color  =  "blue"

SELECT DISTINCT T2.sid , T3.name FROM Boats AS T1 JOIN Reserves AS T2 ON T1.bid = T2.bid JOIN Sailors AS T3 ON T2.sid = T3.sid WHERE T1.color = 'red ' OR T1.color = `` blue ''

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

What are the names and ids of sailors who reserved red or blue boats?

What are the names and ids of sailors who reserved red or blue boats ?


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

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

select construction , avg ( price ) from headphone group by construction

Find the average price for each headphone construction.

Find the average price for each headphone construction .


Question: SELECT Collection_Name FROM Collections;

SELECT Collection_Name FROM Collections ;


Question: SELECT DISTINCT id ,  price FROM goods WHERE price  <  (SELECT avg(price) FROM goods)

SELECT DISTINCT id , price FROM goods WHERE price < ( SELECT avg ( price ) FROM goods )

select distinct id , price from goods where price < ( select avg ( price ) from goods )

What are the distinct ids and prices for goods that cost less than the average good?

What are the distinct ids and prices for goods that cost less than the average good ?


Question: SELECT T1.Collection_Name ,  T1.Collection_ID ,  count(*) FROM Collections AS T1 JOIN Documents_in_Collections AS T2 ON T1.Collection_ID = T2.Collection_ID WHERE T1.Collection_Name = "Best" GROUP BY T1.Collection_ID ORDER BY count(*) DESC LIMIT 1;

SELECT T1.Collection_Name , T1.Collection_ID , count ( * ) FROM Collections AS T1 JOIN Documents_in_Collections AS T2 ON T1.Collection_ID = T2.Collection_ID WHERE T1.Collection_Name = `` Best '' GROUP BY T1.Collection_ID ORDER BY count ( * ) DESC LIMIT 1 ;

select t1 . collection_name , t1 . collection_id , count ( * ) from collections as t1 join documents_in_collections as t2 on t1 . collection_id = t2 . collection_id where t1 . collection_name = value group by t1 . collection_id order by count ( * ) desc limit value

Which collection have most number of documents? List collection name, id and number of documents.

Which collection have most number of documents ? List collection name , id and number of documents .


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

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

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

How many courses do teachers teach at most? Also find the id of the teacher who teaches the most.

How many courses do teachers teach at most ? Also find the id of the teacher who teaches the most .


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

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

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

What is the average, minimum, maximum distance between two cities?

What is the average , minimum , maximum distance between two cities ?


Question: SELECT Nationality FROM member GROUP BY Nationality HAVING COUNT(*)  >=  2

SELECT Nationality FROM member GROUP BY Nationality HAVING COUNT ( * ) > = 2

select nationality from member group by nationality having count ( * ) > = value

Show the nations that have at least two members.

Show the nations that have at least two members .


Question: SELECT T1.conference_name FROM conference AS T1 JOIN conference_participation AS T2 ON T1.conference_id = T2.conference_id JOIN staff AS T3 ON T2.staff_id  =  T3.staff_id WHERE T3.nationality  =  "Canada"

What are the names of all the conferences that has staff from Canada attending?

What are the names of all the conferences that has staff from Canada attending ?


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 address, town and county of the customers who are of the least common gender?

What are the email address , town and county of the customers who are of the least common gender ?


Question: SELECT T3.name 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 GROUP BY T2.affiliation_id ORDER BY count(*) DESC LIMIT 3

select t3 . name 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 group by t2 . affiliation_id order by count ( * ) desc limit value

What are the names of the top 3 affiliations that have the most papers in year 2009?

What are the names of the top 3 affiliations that have the most papers in year 2009 ?


Question: SELECT Driver_Name FROM driver EXCEPT SELECT T1.Driver_Name FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID  =  T2.Driver_ID WHERE Pole_Position  =  "James Hinchcliffe"

SELECT Driver_Name FROM driver EXCEPT SELECT T1.Driver_Name FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID WHERE Pole_Position = `` James Hinchcliffe ''

find the name of drivers who were never in "James Hinchcliffe" pole position before.

find the name of drivers who were never in `` James Hinchcliffe '' pole position before .


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

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

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

Find the total values of boxes that are not in the warehouses located at Chicago.

Find the total values of boxes that are not in the warehouses located at Chicago .


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

select distinct venue , year from paper order by year

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

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


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

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

select t3 . fname , t3 . lname from direct_distance as t1 join student as t2 on t1 . city1_code = t2 . city_code join student as t3 on t1 . city2_code = t3 . city_code where t2 . fname = value and t2 . lname = value order by distance desc limit value

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

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


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

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

Find the press whose yearly profit is more than 15 billion or whose monthly profit is more than 1 billion. Return the press names.

Find the press whose yearly profit is more than 15 billion or whose monthly profit is more than 1 billion . Return the press names .


Question: SELECT flavor FROM goods WHERE food  =  "Cake" AND price  >  10

SELECT flavor FROM goods WHERE food = `` Cake '' AND price > 10

select flavor from goods where food = value and price > value

Find flavor of cakes that cost more than 10 dollars.

Find flavor of cakes that cost more than 10 dollars .


Question: SELECT T2.Driver ,  T1.Country FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID  =  T2.Country

select t2 . driver , t1 . country from country as t1 join driver as t2 on t1 . country_id = t2 . country

Please show the names of drivers, and countries they are from.

Please show the names of drivers , and countries they are from .


Question: SELECT avg(Units_sold_Millions) FROM game WHERE developers != 'Nintendo'

SELECT avg ( Units_sold_Millions ) FROM game WHERE developers ! = 'Nintendo '

select avg ( units_sold_millions ) from game where developers ! = value

What is the average units sold in millions of the games that are not developed by Nintendo?

What is the average units sold in millions of the games that are not developed by Nintendo ?


Question: SELECT id FROM goods WHERE flavor  =  "Apple"

SELECT id FROM goods WHERE flavor = `` Apple ''

select id from goods where flavor = value


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

SELECT document_id , document_name FROM Documents WHERE author_name = `` Bianka Cummings ''

select document_id , document_name from documents where author_name = value

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

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


Question: SELECT top_speed ,  power FROM vehicle WHERE build_year  =  1996

select top_speed , power from vehicle where build_year = value

What is the top speed and power of the vehicle manufactured in the year of 1996?

What is the top speed and power of the vehicle manufactured in the year of 1996 ?


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

Show the names of customers and names of dishes they order, in descending order of the quantity of dish.

Show the names of customers and names of dishes they order , in descending order of the quantity of dish .


Question: SELECT T1.user_category_code ,  T1.user_id FROM Users AS T1 JOIN User_Searches AS T2 ON T1.user_id  =  T2.user_id GROUP BY T1.user_id HAVING count(*)  =  1;

SELECT T1.user_category_code , T1.user_id FROM Users AS T1 JOIN User_Searches AS T2 ON T1.user_id = T2.user_id GROUP BY T1.user_id HAVING count ( * ) = 1 ;

What are the users making only one search? List both category and user id.

What are the users making only one search ? List both category and user id .


Question: SELECT count(*) FROM Customer_orders


Question: SELECT lname ,  fname FROM artists WHERE birthYear  >  1850

select lname , fname from artists where birthyear > value

What are the full names of artists born after 1850?

What are the full names of artists born after 1850 ?


Question: SELECT T2.Rank FROM book AS T1 JOIN review AS T2 ON T1.Book_ID  =  T2.Book_ID ORDER BY T1.Pages ASC LIMIT 1

select t2 . rank from book as t1 join review as t2 on t1 . book_id = t2 . book_id order by t1 . pages asc limit value

What is the rank of the book with the smallest number of pages?

What is the rank of the book with the smallest number of pages ?


Question: SELECT COUNT (DISTINCT Country) FROM player

SELECT COUNT ( DISTINCT Country ) FROM player

select count ( distinct country ) from player

How many different countries are players from?

How many different countries are players from ?


Question: SELECT T3.name FROM countries AS T1 JOIN official_languages AS T2 ON T1.id  =  T2.country_id JOIN languages AS T3 ON T2.language_id  =  T3.id WHERE T1.overall_score  >  95 INTERSECT SELECT T3.name FROM countries AS T1 JOIN official_languages AS T2 ON T1.id  =  T2.country_id JOIN languages AS T3 ON T2.language_id  =  T3.id WHERE T1.overall_score  <  90

Show the names of languages that are the official language for both countries with overall score greater than 95 and countries with overall score less than than 90.

Show the names of languages that are the official language for both countries with overall score greater than 95 and countries with overall score less than than 90 .


Question: SELECT Driver FROM driver ORDER BY Points DESC

select driver from driver order by points desc

What is the list of drivers ordered by points in descending order?

What is the list of drivers ordered by points in descending order ?


Question: SELECT distance FROM Direct_distance AS T1 JOIN Student AS T2 ON T1.city1_code  =  T2.city_code JOIN Student AS T3 ON T1.city2_code  =  T3.city_code WHERE T2.Fname  =  "Linda" AND T2.Lname  =  "Smith" AND T3.Fname  =  "Tracy" AND T3.Lname  =  "Kim"

SELECT distance FROM Direct_distance AS T1 JOIN Student AS T2 ON T1.city1_code = T2.city_code JOIN Student AS T3 ON T1.city2_code = T3.city_code WHERE T2.Fname = `` Linda '' AND T2.Lname = `` Smith '' AND T3.Fname = `` Tracy '' AND T3.Lname = `` Kim ''

select distance from direct_distance as t1 join student as t2 on t1 . city1_code = t2 . city_code join student as t3 on t1 . city2_code = t3 . city_code where t2 . fname = value and t2 . lname = value and t3 . fname = value and t3 . lname = value

How far do Linda (first name) Smith (last name) and Tracy (first name) Kim (last name) live?

How far do Linda ( first name ) Smith ( last name ) and Tracy ( first name ) Kim ( last name ) live ?


Question: SELECT T1.conference_name ,  T1.year ,  count(*) FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id  =  T2.conference_id GROUP BY T2.conference_id

SELECT T1.conference_name , T1.year , count ( * ) FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id = T2.conference_id GROUP BY T2.conference_id

For each conference id, what are their names, year, and number of participants?

For each conference id , what are their names , year , and number of participants ?


Question: select distinct t1.customer_details from customers as t1 join customers_and_services as t2 on t1.customer_id  =  t2.customer_id where t2.service_id  =  (select service_id from services group by service_id order by count(*) asc limit 1)

select distinct t1.customer_details from customers as t1 join customers_and_services as t2 on t1.customer_id = t2.customer_id where t2.service_id = ( select service_id from services group by service_id order by count ( * ) asc limit 1 )

select distinct t1 . customer_details from customers as t1 join customers_and_services as t2 on t1 . customer_id = t2 . customer_id where t2 . service_id = ( select service_id from services group by service_id order by count ( * ) asc limit value )

Find the details of the customers who have used the least-used service .


Question: SELECT Winning_team FROM race GROUP BY Winning_team HAVING count(*)  >  1

SELECT Winning_team FROM race GROUP BY Winning_team HAVING count ( * ) > 1

select winning_team from race group by winning_team having count ( * ) > value

Find the teams that won more than once .


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

select capital from region order by population desc limit value

List the capital of the region with the largest population.

List the capital of the region with the largest population .


Question: SELECT shipment_tracking_number ,  shipment_date FROM Shipments

select shipment_tracking_number , shipment_date from shipments

what are all shipment tracking numbers and shipment dates?

what are all shipment tracking numbers and shipment dates ?


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


Question: SELECT avg(T2.rhythm_tempo) ,  T1.language FROM songs AS T1 JOIN performance_score AS T2 ON T2.songs_id  =  T1.id GROUP BY T1.language

select avg ( t2 . rhythm_tempo ) , t1 . language from songs as t1 join performance_score as t2 on t2 . songs_id = t1 . id group by t1 . language

What are the average rhythm scores for the songs in each different language?

What are the average rhythm scores for the songs in each different language ?


Question: SELECT avg(value) FROM boxes


Question: SELECT LOCATION FROM hangar WHERE plane_name  =  'F-14 Fighter'

SELECT LOCATION FROM hangar WHERE plane_name = 'F-14 Fighter '

select location from hangar where plane_name = value

Return the location of the hangar in which F-14 Fighter is located.

Return the location of the hangar in which F-14 Fighter is located .


Question: SELECT count(*) FROM Staff


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

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

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

Show the name of vehicles with no renting history.

Show the name of vehicles with no renting history .


Question: SELECT process_outcome_code ,  process_outcome_description FROM Process_outcomes

List the codes and descriptions for all process outcomes.

List the codes and descriptions for all process outcomes .


Question: SELECT count(*) ,  LOCATION FROM paintings WHERE YEAR  <  1900 GROUP BY LOCATION

SELECT count ( * ) , LOCATION FROM paintings WHERE YEAR < 1900 GROUP BY LOCATION

select count ( * ) , location from paintings where year < value group by location

What are the numbers of paintings created before 1900 in different places?

What are the numbers of paintings created before 1900 in different places ?


Question: SELECT address_id ,  address_details FROM Addresses

select address_id , address_details from addresses

What are all the address ids and address details?

What are all the address ids and address details ?


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

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

Give the total max price corresponding to any properties owned by single mothers or students.

Give the total max price corresponding to any properties owned by single mothers or students .


Question: SELECT customer_first_name ,  customer_middle_initial ,  customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name ,  T1.customer_middle_initial ,  T1.customer_last_name FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id  =  T2.customer_id

Which customers did not make any orders? List the first name, middle initial and last name.

Which customers did not make any orders ? List the first name , middle initial and last name .


Question: SELECT item FROM items GROUP BY item ORDER BY count(*) LIMIT 1

SELECT item FROM items GROUP BY item ORDER BY count ( * ) LIMIT 1

select item from items group by item order by count ( * ) limit value

Which item was bought the fewest times ?


Question: SELECT date FROM receipts GROUP BY date ORDER BY count(*) DESC LIMIT 3

SELECT date FROM receipts GROUP BY date ORDER BY count ( * ) DESC LIMIT 3

select date from receipts group by date order by count ( * ) desc limit value

What are the three dates for which the most receipts were given?

What are the three dates for which the most receipts were given ?


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

select university_name , city , state from university order by university_name

What are the names, cities, and states of all universities in alphabetical order (by name of the university).

What are the names , cities , and states of all universities in alphabetical order ( by name of the university ) .


Question: SELECT DISTINCT T1.name FROM participants AS T1 JOIN performance_score AS T2 ON T2.participant_id  =  T1.id JOIN songs AS T3 ON T3.id  =  T2.songs_id WHERE T3.language  =  'English'

select distinct t1 . name from participants as t1 join performance_score as t2 on t2 . participant_id = t1 . id join songs as t3 on t3 . id = t2 . songs_id where t3 . language = value

What are the distinct names of the participants who have sung a song in 'English'?

What are the distinct names of the participants who have sung a song in 'English ' ?


Question: SELECT product_type_code FROM Products GROUP BY product_type_code ORDER BY count(*) ASC LIMIT 1

SELECT product_type_code FROM Products GROUP BY product_type_code ORDER BY count ( * ) ASC LIMIT 1

select product_type_code from products group by product_type_code order by count ( * ) asc limit value

What is the product type with least number of products?

What is the product type with least number of products ?


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  =  "Boston" ORDER BY distance DESC 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 = `` Boston '' ORDER BY distance DESC LIMIT 1

Give the city name of the city with greatest distance from Boston.

Give the city name of the city with greatest distance from Boston .


Question: SELECT T3.Name ,  T2.Club_Name FROM club_leader AS T1 JOIN club AS T2 ON T1.Club_ID  =  T2.Club_ID JOIN member AS T3 ON T1.Member_ID  =  T3.Member_ID WHERE T1.Year_Join  <  2018

Show the names of club leaders that joined their club before 2018.

Show the names of club leaders that joined their club before 2018 .


Question: SELECT StuID FROM City AS T1 JOIN Student AS T2 ON T1.city_code  =  T2.city_code WHERE T2.sex  =  'M' AND T1.country != "USA"

SELECT StuID FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code WHERE T2.sex = 'M ' AND T1.country ! = `` USA ''

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

Show ids for all male students living outside of USA.

Show ids for all male students living outside of USA .


Question: SELECT DISTINCT T1.lname ,  T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID  =  T2.sculptorID WHERE T2.year  <  1900

select distinct t1 . lname , t1 . fname from artists as t1 join sculptures as t2 on t1 . artistid = t2 . sculptorid where t2 . year < value

What are the first and last names of all distinct artists who made sculptures before 1900?

What are the first and last names of all distinct artists who made sculptures before 1900 ?


Question: SELECT DISTINCT CONSTRUCTOR FROM driver ORDER BY Age ASC

select distinct constructor from driver order by age asc

Return the different constructors of drivers, ordered by age ascending.

Return the different constructors of drivers , ordered by age ascending .


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

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

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

What are the maximum and minimum age of driver?

What are the maximum and minimum age of driver ?


Question: SELECT customer_address ,  customer_phone ,  customer_email FROM Customers WHERE customer_name  =  "Jeromy"

SELECT customer_address , customer_phone , customer_email FROM Customers WHERE customer_name = `` Jeromy ''

select customer_address , customer_phone , customer_email from customers where customer_name = value

What is the customer address, customer phone, and customer email for Jeromy?

What is the customer address , customer phone , and customer email for Jeromy ?


Question: SELECT count(*) FROM Book AS T1 JOIN Books_Order AS T2 ON T1.isbn  =  T2.isbn WHERE T1.title  =  "Pride and Prejudice"

SELECT count ( * ) FROM Book AS T1 JOIN Books_Order AS T2 ON T1.isbn = T2.isbn WHERE T1.title = `` Pride and Prejudice ''

select count ( * ) from book as t1 join books_order as t2 on t1 . isbn = t2 . isbn where t1 . title = value

Return the number of orders received for Pride and Prejudice.

Return the number of orders received for Pride and Prejudice .


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 )

What are the names of Hardware product with prices above the average price of Hardware products.

What are the names of Hardware product with prices above the average price of Hardware products .


Question: SELECT latitude ,  longitude FROM City WHERE city_name  =  "Baltimore"

SELECT latitude , longitude FROM City WHERE city_name = `` Baltimore ''

select latitude , longitude from city where city_name = value

What latitude and longitude correspond to Baltimore?

What latitude and longitude correspond to Baltimore ?


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 )

Find the number of pilots whose age is younger than all pilots whose plane is F-14 Fighter.

Find the number of pilots whose age is younger than all pilots whose plane is F-14 Fighter .


Question: SELECT avg(Card_Credit) FROM customer WHERE Level_of_Membership  >  1

SELECT avg ( Card_Credit ) FROM customer WHERE Level_of_Membership > 1

select avg ( card_credit ) from customer where level_of_membership > value

What is the average card credit of customers with membership level higher than 1?

What is the average card credit of customers with membership level higher than 1 ?


Question: select channel_details from channels order by channel_details

List details of all the channel in alphabetical order .


Question: SELECT date_registered FROM Users WHERE login_name  =  'ratione';

SELECT date_registered FROM Users WHERE login_name = 'ratione ' ;

select date_registered from users where login_name = value

What was the registration date for the user whose login name is ratione?

What was the registration date for the user whose login name is ratione ?


Question: SELECT CLASS FROM headphone GROUP BY CLASS ORDER BY count(*) DESC LIMIT 1

SELECT CLASS FROM headphone GROUP BY CLASS ORDER BY count ( * ) DESC LIMIT 1

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

Which headphone class contains the most headphones?

Which headphone class contains the most headphones ?


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

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

select plane_name from pilotskills group by plane_name order by count ( * ) limit value

What is the name of the least popular plane?

What is the name of the least popular plane ?


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

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

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

Return the average and minimum ages across all pilots.

Return the average and minimum ages across all pilots .


Question: SELECT T1.start_date_time ,  T1.end_date_time ,  T2.client_details ,  T4.staff_details FROM meetings AS T1 JOIN clients AS T2 ON T1.client_id  =  T2.client_id JOIN staff_in_meetings AS T3 ON T1.meeting_id  =  T3.meeting_id JOIN staff AS T4 ON T3.staff_id  =  T4.staff_id

List the start time, end time of each meeting, and the corresponding client detail and staff detail.

List the start time , end time of each meeting , and the corresponding client detail and staff detail .


Question: select count(*) from artists as t1 join paintings as t2 on t1.artistid  =  t2.painterid group by t2.painterid order by t1.deathyear - t1.birthyear desc limit 1

select count ( * ) from artists as t1 join paintings as t2 on t1.artistid = t2.painterid group by t2.painterid order by t1.deathyear - t1.birthyear desc limit 1

select count ( * ) from artists as t1 join paintings as t2 on t1 . artistid = t2 . painterid group by t2 . painterid order by t1 . deathyear - t1 . birthyear desc limit value

What is the painting count of the artist with the longest life ?


Question: SELECT T4.title FROM Orders AS T1 JOIN Books_Order AS T2 ON T1.idOrder  =  T2.idOrder JOIN Client AS T3 ON T1.idClient  =  T3.idClient JOIN book AS T4 ON T2.ISBN  =  T4.isbn WHERE T3.name  =  "Peter Doe" EXCEPT SELECT T4.title FROM Orders AS T1 JOIN Books_Order AS T2 ON T1.idOrder  =  T2.idOrder JOIN Client AS T3 ON T1.idClient  =  T3.idClient JOIN book AS T4 ON T2.ISBN  =  T4.isbn WHERE T3.name  =  "James Smith"

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

What are the titles of books that the client Peter Doe ordered, but the client James Smith did not?

What are the titles of books that the client Peter Doe ordered , but the client James Smith did not ?


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

What are the titles and paper ids for papers written by Mckeown?

What are the titles and paper ids for papers written by Mckeown ?


Question: SELECT count(DISTINCT LOCATION) FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse  =  T2.code WHERE T1.contents  =  'Rocks'

SELECT count ( DISTINCT LOCATION ) FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T1.contents = 'Rocks '

select count ( distinct location ) from boxes as t1 join warehouses as t2 on t1 . warehouse = t2 . code where t1 . contents = value

In how many different warehouses are Rocks stored within boxes?

In how many different warehouses are Rocks stored within boxes ?


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

Which employees have clearance in Omega III? List employees' name.

Which employees have clearance in Omega III ? List employees ' name .


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

Find the analytical layer type code that appears most often.

Find the analytical layer type code that appears most often .


Question: SELECT count(*) FROM Process_outcomes

SELECT count ( * ) FROM Process_outcomes

select count ( * ) from process_outcomes


Question: SELECT name FROM movietheaters GROUP BY name ORDER BY count(*) DESC LIMIT 1

SELECT name FROM movietheaters GROUP BY name ORDER BY count ( * ) DESC LIMIT 1

select name from movietheaters group by name order by count ( * ) desc limit value

What is the name of the theater playing the most movies?

What is the name of the theater playing the most movies ?


Question: SELECT T1.Driver_Name ,  T2.Race_Name FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID  =  T2.Driver_ID

Please show the names of drivers and the names of races they participate in.

Please show the names of drivers and the names of races they participate in .


Question: SELECT T1.lname ,  T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T2.medium  =  "oil" GROUP BY T2.painterID ORDER BY count(*) DESC LIMIT 3

SELECT T1.lname , T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T2.medium = `` oil '' GROUP BY T2.painterID ORDER BY count ( * ) DESC LIMIT 3

select t1 . lname , t1 . fname from artists as t1 join paintings as t2 on t1 . artistid = t2 . painterid where t2 . medium = value group by t2 . painterid order by count ( * ) desc limit value

Find the top 3 artists who have the biggest number of painting works whose medium is oil?

Find the top 3 artists who have the biggest number of painting works whose medium is oil ?


Question: SELECT Document_Object_ID , count(*) FROM Document_Subset_Members GROUP BY Document_Object_ID ORDER BY count(*) ASC LIMIT 1;

SELECT Document_Object_ID , count ( * ) FROM Document_Subset_Members GROUP BY Document_Object_ID ORDER BY count ( * ) ASC LIMIT 1 ;

select document_object_id , count ( * ) from document_subset_members group by document_object_id order by count ( * ) asc limit value

Which document has least number of related documents? List the document id and the number of related documents.

Which document has least number of related documents ? List the document id and the number of related documents .


Question: SELECT avg(T2.Readers_in_Million) FROM book AS T1 JOIN review AS T2 ON T1.Book_ID  =  T2.Book_ID WHERE T1.Type  =  "Novel"

SELECT avg ( T2.Readers_in_Million ) FROM book AS T1 JOIN review AS T2 ON T1.Book_ID = T2.Book_ID WHERE T1.Type = `` Novel ''

select avg ( t2 . readers_in_million ) from book as t1 join review as t2 on t1 . book_id = t2 . book_id where t1 . type = value

What is the average number of readers for books of type "Novel"?

What is the average number of readers for books of type `` Novel '' ?


Question: SELECT DISTINCT title FROM paintings WHERE height_mm  >  (SELECT min(height_mm) FROM paintings WHERE mediumOn  =  "canvas")

SELECT DISTINCT title FROM paintings WHERE height_mm > ( SELECT min ( height_mm ) FROM paintings WHERE mediumOn = `` canvas '' )

select distinct title from paintings where height_mm > ( select min ( height_mm ) from paintings where mediumon = value )

What are the distinct titles of every painting that has a greater height than some painting on canvas?

What are the distinct titles of every painting that has a greater height than some painting on canvas ?


Question: SELECT count(DISTINCT student_id) FROM Detention

SELECT count ( DISTINCT student_id ) FROM Detention

select count ( distinct student_id ) from detention

Count the number of students who have a detention record.

Count the number of students who have a detention record .


Question: SELECT warehouse ,  avg(value) FROM boxes GROUP BY warehouse HAVING avg(value)  >  150

SELECT warehouse , avg ( value ) FROM boxes GROUP BY warehouse HAVING avg ( value ) > 150

select warehouse , avg ( value ) from boxes group by warehouse having avg ( value ) > value

Select the warehouse code and the average value of the boxes only for those warehouses where the average value of the boxes is greater than 150.

Select the warehouse code and the average value of the boxes only for those warehouses where the average value of the boxes is greater than 150 .


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

SELECT title FROM movies WHERE rating = 'null '

select title from movies where rating = value

Find the titles of movies that don’t have any rating.

Find the titles of movies that don’t have any rating .


Question: SELECT DISTINCT OWNER FROM Document_Subset_Members AS T1 JOIN Document_Objects AS T2 ON T1.Related_Document_Object_ID  =  T2.Document_Object_ID WHERE T2.Owner  =  'Braeden';

SELECT DISTINCT OWNER FROM Document_Subset_Members AS T1 JOIN Document_Objects AS T2 ON T1.Related_Document_Object_ID = T2.Document_Object_ID WHERE T2.Owner = 'Braeden ' ;

List all owner of documents that is related to documents owned by Braeden.

List all owner of documents that is related to documents owned by Braeden .


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

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

What is the name and id of every sailor who reserved one or more boats?

What is the name and id of every sailor who reserved one or more boats ?


Question: SELECT DISTINCT OWNER FROM Document_Subset_Members AS T1 JOIN Document_Objects AS T2 ON T1.Related_Document_Object_ID  =  T2.Document_Object_ID WHERE T2.Owner  =  'Braeden';

SELECT DISTINCT OWNER FROM Document_Subset_Members AS T1 JOIN Document_Objects AS T2 ON T1.Related_Document_Object_ID = T2.Document_Object_ID WHERE T2.Owner = 'Braeden ' ;

What are the different owners of documents that are related to ones owned by Braeden?

What are the different owners of documents that are related to ones owned by Braeden ?


Question: SELECT customer_address ,  customer_phone ,  customer_email FROM Customers WHERE customer_name  =  "Jeromy"

SELECT customer_address , customer_phone , customer_email FROM Customers WHERE customer_name = `` Jeromy ''

select customer_address , customer_phone , customer_email from customers where customer_name = value

Give the address, phone, and email for customers with the name Jeromy.

Give the address , phone , and email for customers with the name Jeromy .


Question: SELECT id FROM goods WHERE flavor  =  "Apple"

SELECT id FROM goods WHERE flavor = `` Apple ''

select id from goods where flavor = value

Find the ids of goods that have apple flavor.

Find the ids of goods that have apple flavor .


Question: SELECT min(room_count) FROM Properties;

SELECT min ( room_count ) FROM Properties ;

select min ( room_count ) from properties

What is the minimum number of rooms in a property?

What is the minimum number of rooms in a property ?


Question: SELECT Name FROM club WHERE Manufacturer != "Nike"

SELECT Name FROM club WHERE Manufacturer ! = `` Nike ''

select name from club where manufacturer ! = value

List the name of clubs whose manufacturer is not "Nike"

List the name of clubs whose manufacturer is not `` Nike ''


Question: SELECT pilot_name FROM pilotskills WHERE age BETWEEN 30 AND 40 ORDER BY age

select pilot_name from pilotskills where age between value and value order by age

What are the names of pilots between the ages of 30 and 40, ordered by age ascending?

What are the names of pilots between the ages of 30 and 40 , ordered by age ascending ?


Question: SELECT T1.Name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID WHERE T2.Wins_count  >  2

What are the names of clubs that have players who have won more than twice?

What are the names of clubs that have players who have won more than twice ?


Question: SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Properties AS T2 ON T1.address_id  =  T2.property_address_id WHERE T2.owner_user_id NOT IN ( SELECT owner_user_id FROM Properties GROUP BY owner_user_id HAVING count(*)  <=  2 );

SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Properties AS T2 ON T1.address_id = T2.property_address_id WHERE T2.owner_user_id NOT IN ( SELECT owner_user_id FROM Properties GROUP BY owner_user_id HAVING count ( * ) < = 2 ) ;

select t1 . zip_postcode from addresses as t1 join properties as t2 on t1 . address_id = t2 . property_address_id where t2 . owner_user_id not in ( select owner_user_id from properties group by owner_user_id having count ( * ) < = value )

Return the zip codes for properties not belonging to users who own two or fewer properties.

Return the zip codes for properties not belonging to users who own two or fewer properties .


Question: SELECT Name FROM region ORDER BY Area DESC LIMIT 5

select name from region order by area desc limit value

What are the names of the 5 largest regions in terms of area?

What are the names of the 5 largest regions in terms of area ?


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

Show meeting outcome codes and the number of meeting in each outcome.

Show meeting outcome codes and the number of meeting in each outcome .


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

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

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

List in alphabetic order the names of pilots whose age is greater than some pilots having plane Piper Cub.

List in alphabetic order the names of pilots whose age is greater than some pilots having plane Piper Cub .


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 3

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 3

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 three official languages that are most commonly spoken.

Show the three official languages that are most commonly spoken .


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

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

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

What is the maximum and minimum age of all staff from the United States?

What is the maximum and minimum age of all staff from the United States ?


Question: SELECT name FROM Sailors WHERE rating  >  (SELECT min(rating) FROM Sailors WHERE name  =  'Luis')

SELECT name FROM Sailors WHERE rating > ( SELECT min ( rating ) FROM Sailors WHERE name = 'Luis ' )

select name from sailors where rating > ( select min ( rating ) from sailors where name = value )

What are the sailors' names, the ones whose rating is higher than any sailor named Luis?

What are the sailors ' names , the ones whose rating is higher than any sailor named Luis ?


Question: SELECT Exam_Date FROM Exams WHERE Subject_Code LIKE '%data%' ORDER BY Exam_Date DESC

SELECT Exam_Date FROM Exams WHERE Subject_Code LIKE ' % data % ' ORDER BY Exam_Date DESC

select exam_date from exams where subject_code like value order by exam_date desc

List the dates of the exams with subject code containing the word "data", in descending order of dates.

List the dates of the exams with subject code containing the word `` data '' , in descending order of dates .


Question: SELECT product_id ,  product_type_code FROM Products ORDER BY product_name

select product_id , product_type_code from products order by product_name

What are the ids and product types for all products, sorted alphabetically by product name?

What are the ids and product types for all products , sorted alphabetically by product name ?


Question: SELECT count(DISTINCT customers_and_services_details) FROM customers_and_services

SELECT count ( DISTINCT customers_and_services_details ) FROM customers_and_services

select count ( distinct customers_and_services_details ) from customers_and_services

Count the total number of available customers and services details.

Count the total number of available customers and services details .


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

select title , developers from game order by units_sold_millions desc

List the Title and Developers of all games ordered by units sold from large to small.

List the Title and Developers of all games ordered by units sold from large to small .


Question: SELECT product_name FROM Products WHERE product_type_code  =  "Clothes" ORDER BY product_price DESC LIMIT 1

SELECT product_name FROM Products WHERE product_type_code = `` Clothes '' ORDER BY product_price DESC LIMIT 1

select product_name from products where product_type_code = value order by product_price desc limit value

Give the name of the most expensive Clothes product.

Give the name of the most expensive Clothes product .


Question: SELECT name FROM Author


Question: SELECT count(*) FROM integration_platform WHERE integration_platform_details  =  "Success"

SELECT count ( * ) FROM integration_platform WHERE integration_platform_details = `` Success ''

select count ( * ) from integration_platform where integration_platform_details = value

How many integration platforms are successful?

How many integration platforms are successful ?


Question: SELECT T1.name FROM Affiliation AS T1 JOIN Author_list AS T2 ON T1.affiliation_id  =  T2.affiliation_id GROUP BY T1.affiliation_id ORDER BY count(*) DESC

SELECT T1.name FROM Affiliation AS T1 JOIN Author_list AS T2 ON T1.affiliation_id = T2.affiliation_id GROUP BY T1.affiliation_id ORDER BY count ( * ) DESC

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

What are the names of all affiliations, ordered by number of papers?

What are the names of all affiliations , ordered by number of papers ?


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

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

select exam_date , exam_name from exams where subject_code ! = value

Find the exams whose subject code is not "Database". What are the exam dates and exam names?

Find the exams whose subject code is not `` Database '' . What are the exam dates and exam names ?


Question: SELECT T1.receipt FROM items AS T1 JOIN goods AS T2 ON T1.item  =  T2.id WHERE T2.flavor  =  "Apple" AND T2.food  =  "Pie" UNION SELECT ReceiptNumber FROM receipts WHERE CustomerId  =  12

SELECT T1.receipt FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.flavor = `` Apple '' AND T2.food = `` Pie '' UNION SELECT ReceiptNumber FROM receipts WHERE CustomerId = 12

select t1 . receipt from items as t1 join goods as t2 on t1 . item = t2 . id where t2 . flavor = value and t2 . food = value union select receiptnumber from receipts where customerid = value

What are the receipt numbers for which either an apple flavor pie was purchased or the customer with id 12 shopped?

What are the receipt numbers for which either an apple flavor pie was purchased or the customer with id 12 shopped ?


Question: SELECT * FROM Students

What is al the available information of each student?

What is al the available information of each student ?


Question: SELECT DISTINCT CONTENTS FROM boxes

What are the different contents in boxes?

What are the different contents in boxes ?


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

Show the biographical information of the students whose details include the substring 'Suite'.

Show the biographical information of the students whose details include the substring 'Suite ' .


Question: SELECT count(DISTINCT student_id) ,  behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count(*) DESC LIMIT 1

SELECT count ( DISTINCT student_id ) , behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count ( * ) DESC LIMIT 1

select count ( distinct student_id ) , behaviour_monitoring_details from behaviour_monitoring group by behaviour_monitoring_details order by count ( * ) desc limit value

How many students got the most common result in the behavioral monitoring details? Also list the result details.

How many students got the most common result in the behavioral monitoring details ? Also list the result details .


Question: SELECT pilot_name FROM PilotSkills WHERE age  <  35 AND plane_name  =  'Piper Cub'

SELECT pilot_name FROM PilotSkills WHERE age < 35 AND plane_name = 'Piper Cub '

select pilot_name from pilotskills where age < value and plane_name = value

Find the names of all pilots who have a plane named Piper Cub and is under 35.

Find the names of all pilots who have a plane named Piper Cub and is under 35 .


Question: SELECT ReceiptNumber ,  date FROM receipts WHERE date  =  (SELECT date FROM receipts ORDER BY date DESC LIMIT 1)

SELECT ReceiptNumber , date FROM receipts WHERE date = ( SELECT date FROM receipts ORDER BY date DESC LIMIT 1 )

select receiptnumber , date from receipts where date = ( select date from receipts order by date desc limit value )

Find all receipts which has the latest date. Also tell me that date.

Find all receipts which has the latest date . Also tell me that date .


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

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

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

Find the type of contents that are not in the warehouses located at New York.

Find the type of contents that are not in the warehouses located at New York .


Question: select name , language from songs

List the names and languages of the songs .


Question: SELECT CustomerId ,  count(*) FROM receipts GROUP BY CustomerId ORDER BY count(*) DESC LIMIT 1

SELECT CustomerId , count ( * ) FROM receipts GROUP BY CustomerId ORDER BY count ( * ) DESC LIMIT 1

select customerid , count ( * ) from receipts group by customerid order by count ( * ) desc limit value

Give the customer id of the customer that made the most purchases, as well as the number of purchases made.

Give the customer id of the customer that made the most purchases , as well as the number of purchases made .


Question: SELECT count(*) FROM Book


Question: SELECT CONTENTS FROM boxes WHERE Value  >  150

select contents from boxes where value > value

Select contents of all boxes with a value larger than $150.

Select contents of all boxes with a value larger than $ 150 .


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

SELECT title FROM sculptures WHERE LOCATION = `` Gallery 226 ''

select title from sculptures where location = value

What are the names of all sculptures in gallery 226?

What are the names of all sculptures in gallery 226 ?


Question: SELECT YEAR ,  count(*) FROM conference GROUP BY YEAR

SELECT YEAR , count ( * ) FROM conference GROUP BY YEAR

select year , count ( * ) from conference group by year


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

Sort the student answer texts in descending order of their frequency of occurrence.

Sort the student answer texts in descending order of their frequency of occurrence .


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

Return the cities in which there exist properties that have swimming pools.

Return the cities in which there exist properties that have swimming pools .


Question: SELECT LOCATION FROM hangar WHERE plane_name  =  'F-14 Fighter'

SELECT LOCATION FROM hangar WHERE plane_name = 'F-14 Fighter '

select location from hangar where plane_name = value

Where is the plane F-14 Fighter located?

Where is the plane F-14 Fighter located ?


Question: SELECT T1.age_category_code FROM Users AS T1 JOIN User_Searches AS T2 ON T1.user_id  =  T2.user_id ORDER BY T2.search_datetime LIMIT 1;

Return the age category for the user who made the earliest search.

Return the age category for the user who made the earliest search .


Question: SELECT count(*) FROM game


Question: SELECT DISTINCT Subject_Code FROM Exams ORDER BY Subject_Code

select distinct subject_code from exams order by subject_code

Give me an alphabetically ordered list of the distinct subject code for exams.

Give me an alphabetically ordered list of the distinct subject code for exams .


Question: SELECT T1.client_id ,  T2.client_details FROM Invoices AS T1 JOIN Clients AS T2 ON T1.client_id  =  T2.client_id GROUP BY T1.client_id ORDER BY count(*) DESC LIMIT 1

SELECT T1.client_id , T2.client_details FROM Invoices AS T1 JOIN Clients AS T2 ON T1.client_id = T2.client_id GROUP BY T1.client_id ORDER BY count ( * ) DESC LIMIT 1

select t1 . client_id , t2 . client_details from invoices as t1 join clients as t2 on t1 . client_id = t2 . client_id group by t1 . client_id order by count ( * ) desc limit value

List the client id and detail with most number of invoices.

List the client id and detail with most number of invoices .


Question: SELECT count(*) ,  LOCATION FROM paintings WHERE YEAR  <  1900 GROUP BY LOCATION

SELECT count ( * ) , LOCATION FROM paintings WHERE YEAR < 1900 GROUP BY LOCATION

select count ( * ) , location from paintings where year < value group by location

How many paintings were created before 1900 in different locations?

How many paintings were created before 1900 in different locations ?


Question: SELECT name FROM countries ORDER BY politics_score DESC LIMIT 1

select name from countries order by politics_score desc limit value

What is the name of the country with the highest politics score?

What is the name of the country with the highest politics score ?


Question: SELECT pilot_name FROM PilotSkills ORDER BY age DESC LIMIT 1

select pilot_name from pilotskills order by age desc limit value


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

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

select count ( * ) from collections as t1 join collections as t2 on t1 . parent_collection_id = t2 . collection_id where t2 . collection_name = value

How many child collection does the collection named Best has?

How many child collection does the collection named Best has ?


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

Count the number of papers Columbia University had during or prior to 2009 .


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

SELECT T1.bio_data , T1.student_details FROM Students AS T1 JOIN Behaviour_Monitoring AS T2 ON T1.student_id = T2.student_id WHERE T2.behaviour_monitoring_details IN ( SELECT behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count ( * ) DESC LIMIT 1 ) INTERSECT SELECT T1.bio_data , T1.student_details FROM Students AS T1 JOIN Behaviour_Monitoring AS T2 ON T1.student_id = T2.student_id WHERE T2.behaviour_monitoring_details IN ( SELECT behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details HAVING count ( * ) = 3 )

Which students not only got the most common result but also got a result obtained by 3 students in behaviour monitoring? List the student's biographical data and details.

Which students not only got the most common result but also got a result obtained by 3 students in behaviour monitoring ? List the student 's biographical data and details .


Question: SELECT name FROM press WHERE Month_Profits_billion  =  (SELECT min(Month_Profits_billion) FROM press) OR Month_Profits_billion  =  (SELECT max(Month_Profits_billion) FROM press)

SELECT name FROM press WHERE Month_Profits_billion = ( SELECT min ( Month_Profits_billion ) FROM press ) OR Month_Profits_billion = ( SELECT max ( Month_Profits_billion ) FROM press )

select name from press where month_profits_billion = ( select min ( month_profits_billion ) from press ) or month_profits_billion = ( select max ( month_profits_billion ) from press )

Find the name of the publisher whose monthly profit is the highest or the lowest.

Find the name of the publisher whose monthly profit is the highest or the lowest .


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

How many collaborators has Mckeown , Kathleen had ?


Question: SELECT T1.invoice_id ,  T2.invoice_status ,  T2.invoice_details FROM Payments AS T1 JOIN Invoices AS T2 ON T1.invoice_id  =  T2.invoice_id GROUP BY T1.invoice_id ORDER BY count(*) DESC LIMIT 1

SELECT T1.invoice_id , T2.invoice_status , T2.invoice_details FROM Payments AS T1 JOIN Invoices AS T2 ON T1.invoice_id = T2.invoice_id GROUP BY T1.invoice_id ORDER BY count ( * ) DESC LIMIT 1

select t1 . invoice_id , t2 . invoice_status , t2 . invoice_details from payments as t1 join invoices as t2 on t1 . invoice_id = t2 . invoice_id group by t1 . invoice_id order by count ( * ) desc limit value

Return the invoice ids, statuses, and details for invoices with the most payments?

Return the invoice ids , statuses , and details for invoices with the most payments ?


Question: SELECT code ,  CONTENTS FROM boxes ORDER BY value LIMIT 1

select code , contents from boxes order by value limit value

What is the code and contents for the box that has the smallest value?

What is the code and contents for the box that has the smallest value ?


Question: SELECT T1.datestamp ,  T2.property_name FROM User_Property_History AS T1 JOIN Properties AS T2 ON T1.property_id  =  T2.property_id ORDER BY datestamp;

Return the date stamp and property name for each property history event, sorted by date stamp.

Return the date stamp and property name for each property history event , sorted by date stamp .


Question: SELECT title ,  release_date FROM book ORDER BY sale_amount DESC LIMIT 5

select title , release_date from book order by sale_amount desc limit value

Find the titles and publish dates of the top 5 best sale books.

Find the titles and publish dates of the top 5 best sale books .


Question: SELECT 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";

SELECT 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 '' ;

List the document id of all documents in collection named Best.

List the document id of all documents in collection named Best .


Question: SELECT T2.First_Name ,  T1.Date_of_Answer FROM Student_Answers AS T1 JOIN Students AS T2 ON T1.Student_ID  =  T2.Student_ID

Please show the first names of students and the dates of their answers.

Please show the first names of students and the dates of their answers .


Question: SELECT T2.isbn FROM Orders AS T1 JOIN Books_Order AS T2 ON T1.idOrder  =  T2.idOrder JOIN Client AS T3 ON T1.idClient  =  T3.idClient WHERE T3.name  =  "Peter Doe" INTERSECT SELECT T2.isbn FROM Orders AS T1 JOIN Books_Order AS T2 ON T1.idOrder  =  T2.idOrder JOIN Client AS T3 ON T1.idClient  =  T3.idClient WHERE T3.name  =  "James Smith"

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

Show all book isbns which were ordered by both client Peter Doe and client James Smith.

Show all book isbns which were ordered by both client Peter Doe and client James Smith .


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

select lname , fname from artists order by deathyear - birthyear desc limit value

What are the first and last names of the artist who lived the longest?

What are the first and last names of the artist who lived the longest ?


Question: SELECT achievement_type_code ,  achievement_details ,  date_achievement FROM Achievements

What are the type code, details, and date of each achievement?

What are the type code , details , and date of each achievement ?


Question: SELECT T1.vehicle_id ,  T1.model FROM vehicle AS T1 JOIN vehicle_driver AS T2 ON T1.vehicle_id  =  T2.vehicle_id JOIN driver AS T3 ON T2.driver_id  =  T3.driver_id WHERE T3.name  =  'Jeff Gordon' UNION SELECT T1.vehicle_id ,  T1.model FROM vehicle AS T1 JOIN vehicle_driver AS T2 ON T1.vehicle_id  =  T2.vehicle_id GROUP BY T2.vehicle_id HAVING count(*)  >  2

Return the ids and models of vehicles that have been driven by more than 2 drivers or been driven by the Jeff Gordon.

Return the ids and models of vehicles that have been driven by more than 2 drivers or been driven by the Jeff Gordon .


Question: SELECT T1.invoice_status ,  T1.invoice_details ,  T2.client_id ,  T2.client_details ,  T3.agency_id ,  T3.agency_details FROM Invoices AS T1 JOIN Clients AS T2 ON T1.client_id  =  T2.client_id JOIN Agencies AS T3 ON T2.agency_id  =  T3.agency_id

Show all invoice status codes and details and the corresponding client id and details and agency id and details.

Show all invoice status codes and details and the corresponding client id and details and agency id and details .


Question: SELECT login_name ,  login_password FROM Customers WHERE phone_number LIKE '+12%'

SELECT login_name , login_password FROM Customers WHERE phone_number LIKE '+12 % '

select login_name , login_password from customers where phone_number like value

What are the login names and passwords of the customers whose phone number have the prefix '+12'?

What are the login names and passwords of the customers whose phone number have the prefix '+12 ' ?


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

Show all the order dates and ids of the orders with quantity of any product larger than 6 or with more than 3 products.

Show all the order dates and ids of the orders with quantity of any product larger than 6 or with more than 3 products .


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

Among the students who have an event record, who do not have a student loan? Return the students' biographical data.

Among the students who have an event record , who do not have a student loan ? Return the students ' biographical data .


Question: SELECT latitude ,  longitude FROM City WHERE city_name  =  "Baltimore"

SELECT latitude , longitude FROM City WHERE city_name = `` Baltimore ''

select latitude , longitude from city where city_name = value

What is the latitude and longitude for Baltimore?

What is the latitude and longitude for Baltimore ?


Question: SELECT Player_name FROM player ORDER BY Player_name ASC

select player_name from player order by player_name asc

What are the names of all players in alphabetical order?

What are the names of all players in alphabetical order ?


Question: SELECT invoice_status ,  count(*) FROM Invoices GROUP BY invoice_status

SELECT invoice_status , count ( * ) FROM Invoices GROUP BY invoice_status

select invoice_status , count ( * ) from invoices group by invoice_status

How many invoices are there for each status code?

How many invoices are there for each status code ?


Question: SELECT TYPE FROM book WHERE Chapters  >  75 INTERSECT SELECT TYPE FROM book WHERE Chapters  <  50

select type from book where chapters > value intersect select type from book where chapters < value

Show the types of books that have both books with more than 75 chapters and books with less than 50 chapters.

Show the types of books that have both books with more than 75 chapters and books with less than 50 chapters .


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

SELECT T1.bio_data , T1.student_details FROM Students AS T1 JOIN Behaviour_Monitoring AS T2 ON T1.student_id = T2.student_id WHERE T2.behaviour_monitoring_details IN ( SELECT behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count ( * ) DESC LIMIT 1 ) INTERSECT SELECT T1.bio_data , T1.student_details FROM Students AS T1 JOIN Behaviour_Monitoring AS T2 ON T1.student_id = T2.student_id WHERE T2.behaviour_monitoring_details IN ( SELECT behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details HAVING count ( * ) = 3 )

Find the biographical data and details of students who got not only the most common result but also a result that is obtained by 3 students in behaviour monitoring.

Find the biographical data and details of students who got not only the most common result but also a result that is obtained by 3 students in behaviour monitoring .


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

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

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

What is the rating and average age for sailors who have reserved red boat grouped by rating?

What is the rating and average age for sailors who have reserved red boat grouped by rating ?


Question: SELECT count(pilot_name) FROM pilotskills ORDER BY age  >  40 OR age  <  30

SELECT count ( pilot_name ) FROM pilotskills ORDER BY age > 40 OR age < 30

select count ( pilot_name ) from pilotskills order by age > value or age < value

Count the number of pilots with age greater than 40 or less than 30.

Count the number of pilots with age greater than 40 or less than 30 .


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

List the details for all the pairs of teachers and students who are in the same class.

List the details for all the pairs of teachers and students who are in the same class .


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

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

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

What are the first and last names of artists who have painted using both oil and lithographic mediums?

What are the first and last names of artists who have painted using both oil and lithographic mediums ?


Question: SELECT T2.capital FROM building AS T1 JOIN region AS T2 ON T1.Region_ID  =  T2.Region_ID GROUP BY T1.Region_ID ORDER BY COUNT(*) DESC LIMIT 1

SELECT T2.capital FROM building AS T1 JOIN region AS T2 ON T1.Region_ID = T2.Region_ID GROUP BY T1.Region_ID ORDER BY COUNT ( * ) DESC LIMIT 1

select t2 . capital from building as t1 join region as t2 on t1 . region_id = t2 . region_id group by t1 . region_id order by count ( * ) desc limit value

Show the capital of the region that has the most buildings.

Show the capital of the region that has the most buildings .


Question: SELECT login_name FROM Users WHERE user_category_code  =  'Senior Citizen' ORDER BY first_name

SELECT login_name FROM Users WHERE user_category_code = 'Senior Citizen ' ORDER BY first_name

select login_name from users where user_category_code = value order by first_name

What are the login names of all senior citizens, sorted by first name?

What are the login names of all senior citizens , sorted by first name ?


Question: SELECT DISTINCT process_id FROM Documents_processes