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

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

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

What are the city codes of cities with distance greater than average?

What are the city codes of cities with distance greater than average ?


Question: SELECT avg(price) FROM goods WHERE flavor  =  "Blackberry" OR flavor  =  "Blueberry"

SELECT avg ( price ) FROM goods WHERE flavor = `` Blackberry '' OR flavor = `` Blueberry ''

select avg ( price ) from goods where flavor = value or flavor = value

What is average price of goods whose flavor is blackberry or blueberry?

What is average price of goods whose flavor is blackberry or blueberry ?


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

What is the name of the city furthest to Boston?

What is the name of the city furthest to Boston ?


Question: SELECT count(*) FROM Customers WHERE customer_id NOT IN  ( SELECT customer_id FROM Customer_orders)

SELECT count ( * ) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_orders )

select count ( * ) from customers where customer_id not in ( select customer_id from customer_orders )

How many customers do not have an order?

How many customers do not have an order ?


Question: SELECT DISTINCT rating FROM movies


Question: SELECT Name FROM Employee WHERE Salary  >  5000 OR Salary  >  (SELECT avg(salary) FROM employee)

SELECT Name FROM Employee WHERE Salary > 5000 OR Salary > ( SELECT avg ( salary ) FROM employee )

select name from employee where salary > value or salary > ( select avg ( salary ) from employee )

What are the names of all employees who have a salary greater than average or more than 5000?

What are the names of all employees who have a salary greater than average or more than 5000 ?


Question: SELECT T2.Name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID WHERE T1.Manager  =  "Sam Allardyce"

SELECT T2.Name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T1.Manager = `` Sam Allardyce ''

select t2 . name from club as t1 join player as t2 on t1 . club_id = t2 . club_id where t1 . manager = value

Show names of players from the club with manager "Sam Allardyce".

Show names of players from the club with manager `` Sam Allardyce '' .


Question: SELECT T1.Title FROM game AS T1 JOIN platform AS T2 ON T1.Platform_ID  =  T2.Platform_ID WHERE T2.Market_district  =  "Asia" OR T2.Market_district  =  "USA"

SELECT T1.Title FROM game AS T1 JOIN platform AS T2 ON T1.Platform_ID = T2.Platform_ID WHERE T2.Market_district = `` Asia '' OR T2.Market_district = `` USA ''

Please list the title of games with platforms that have market district in Asia or USA.

Please list the title of games with platforms that have market district in Asia or USA .


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

Give the category description of the age category 'Over 60'.

Give the category description of the age category 'Over 60 ' .


Question: SELECT T1.voice_sound_quality FROM performance_score AS T1 JOIN songs AS T2 ON T1.songs_id  =  T2.id WHERE T2.name  =  ' The Balkan Girls ' AND T2.language  =  'English'

SELECT T1.voice_sound_quality FROM performance_score AS T1 JOIN songs AS T2 ON T1.songs_id = T2.id WHERE T2.name = ' The Balkan Girls ' AND T2.language = 'English '

select t1 . voice_sound_quality from performance_score as t1 join songs as t2 on t1 . songs_id = t2 . id where t2 . name = value and t2 . language = value

What are the voice sound quality scores received for the song named ' The Balkan Girls ' in English language ?


Question: SELECT count(DISTINCT Comments) FROM Student_Answers

SELECT count ( DISTINCT Comments ) FROM Student_Answers

select count ( distinct comments ) from student_answers

How many different comments are there for student answers?

How many different comments are there for student answers ?


Question: SELECT max(power) ,  avg(power) FROM vehicle WHERE builder  =  'Zhuzhou'

SELECT max ( power ) , avg ( power ) FROM vehicle WHERE builder = 'Zhuzhou '

select max ( power ) , avg ( power ) from vehicle where builder = value

Return the maximum and average power for the vehicles built by Zhuzhou.

Return the maximum and average power for the vehicles built by Zhuzhou .


Question: SELECT Name ,  Coordinates FROM Planet ORDER BY Name

select name , coordinates from planet order by name

What are the names and coordinates of all planets in alphabetical order by name?

What are the names and coordinates of all planets in alphabetical order by name ?


Question: SELECT COUNT (DISTINCT Country) FROM player

SELECT COUNT ( DISTINCT Country ) FROM player

select count ( distinct country ) from player

What is the number of distinct countries of all players?

What is the number of distinct countries of all players ?


Question: SELECT DISTINCT LOCATION FROM paintings WHERE YEAR  <  1885 INTERSECT SELECT DISTINCT LOCATION FROM paintings WHERE YEAR  >  1930

select distinct location from paintings where year < value intersect select distinct location from paintings where year > value

Find the locations that have paintings created before 1885 and after 1930?

Find the locations that have paintings created before 1885 and after 1930 ?


Question: SELECT count(*) FROM Products WHERE product_id NOT IN ( SELECT product_id FROM Order_items )

SELECT count ( * ) FROM Products WHERE product_id NOT IN ( SELECT product_id FROM Order_items )

select count ( * ) from products where product_id not in ( select product_id from order_items )

How many kinds of products have not been sold?

How many kinds of products have not been sold ?


Question: SELECT Completed_Year FROM building GROUP BY Completed_Year ORDER BY COUNT(*) DESC LIMIT 1

SELECT Completed_Year FROM building GROUP BY Completed_Year ORDER BY COUNT ( * ) DESC LIMIT 1

select completed_year from building group by completed_year order by count ( * ) desc limit value

In which year did the most building constructions complete?

In which year did the most building constructions complete ?


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

For ever collection named 'Best', what is the name and id of the one with the most documents, and how many documents does it have?

For ever collection named 'Best ' , what is the name and id of the one with the most documents , and how many documents does it have ?


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

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

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

Please show the age of the driver who participated in the most number of races.

Please show the age of the driver who participated in the most number of races .


Question: SELECT date_order_placed FROM Orders WHERE customer_id IN ( SELECT T1.customer_id FROM Customers AS T1 JOIN Customer_Payment_Methods AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >=  2 )

SELECT date_order_placed FROM Orders WHERE customer_id IN ( SELECT T1.customer_id FROM Customers AS T1 JOIN Customer_Payment_Methods AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count ( * ) > = 2 )

select date_order_placed from orders where customer_id in ( select t1 . customer_id from customers as t1 join customer_payment_methods as t2 on t1 . customer_id = t2 . customer_id group by t1 . customer_id having count ( * ) > = value )

What is the date of all orders that have been placed by customers with at least 2 payment methods?

What is the date of all orders that have been placed by customers with at least 2 payment methods ?


Question: SELECT saleprice FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn  =  T2.isbn JOIN Author AS T3 ON T2.Author  =  T3.idAuthor WHERE T3.name  =  "Plato"

SELECT saleprice FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn = T2.isbn JOIN Author AS T3 ON T2.Author = T3.idAuthor WHERE T3.name = `` Plato ''

select saleprice from book as t1 join author_book as t2 on t1 . isbn = t2 . isbn join author as t3 on t2 . author = t3 . idauthor where t3 . name = value

Return the sale prices of books authored by Plato.

Return the sale prices of books authored by Plato .


Question: SELECT title ,  LOCATION FROM paintings

What are the paintings called and where are they located?

What are the paintings called and where are they located ?


Question: select * from pilotskills where age  <  30

select * from pilotskills where age < value

What is all the information about pilots who are younger than 30 ?


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

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

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

What is the agency id and details with most number of clients?

What is the agency id and details with most number of clients ?


Question: SELECT count(*) FROM driver WHERE Points  <  150

SELECT count ( * ) FROM driver WHERE Points < 150

select count ( * ) from driver where points < value

How many drivers have points smaller than 150?

How many drivers have points smaller than 150 ?


Question: SELECT count(*) FROM building


Question: SELECT count(*) FROM Agencies


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

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

What are the ids of customers who spend more than 5 on average for each good?

What are the ids of customers who spend more than 5 on average for each good ?


Question: SELECT sum(T1.Number_of_Championships) FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID  =  T2.Institution_ID WHERE T2.Affiliation  =  "Public"

SELECT sum ( T1.Number_of_Championships ) FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID = T2.Institution_ID WHERE T2.Affiliation = `` Public ''

select sum ( t1 . number_of_championships ) from championship as t1 join institution as t2 on t1 . institution_id = t2 . institution_id where t2 . affiliation = value

What is the total number of championship of institution with public affiliation?

What is the total number of championship of institution with public affiliation ?


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

SELECT staff_id , count ( * ) FROM Staff_in_meetings GROUP BY staff_id ORDER BY count ( * ) ASC LIMIT 1 ;

select staff_id , count ( * ) from staff_in_meetings group by staff_id order by count ( * ) asc limit value

Show the staff id and the number of meetings attended by the staff who attended some meeting but had the lowest attendance.

Show the staff id and the number of meetings attended by the staff who attended some meeting but had the lowest attendance .


Question: SELECT count(*) FROM Boats


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

Find all the services that has been used by the customer with details "Hardy Kutch".

Find all the services that has been used by the customer with details `` Hardy Kutch '' .


Question: SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID WHERE T2.Name  =  "Mars";

SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID WHERE T2.Name = `` Mars '' ;

select t1 . shipmentid from shipment as t1 join planet as t2 on t1 . planet = t2 . planetid where t2 . name = value

List all shipment ids for the planet Mars.

List all shipment ids for the planet Mars .


Question: SELECT T2.title FROM Citation AS T1 JOIN Paper AS T2 ON T2.paper_id  =  T1.paper_id GROUP BY T1.paper_id ORDER BY count(*) DESC LIMIT 1

SELECT T2.title FROM Citation AS T1 JOIN Paper AS T2 ON T2.paper_id = T1.paper_id GROUP BY T1.paper_id ORDER BY count ( * ) DESC LIMIT 1

select t2 . title from citation as t1 join paper as t2 on t2 . paper_id = t1 . paper_id group by t1 . paper_id order by count ( * ) desc limit value

Give the title of the paper which cites most number of papers?

Give the title of the paper which cites most number of papers ?


Question: SELECT id ,  LANGUAGE ,  original_artist FROM songs WHERE name != 'Love'

SELECT id , LANGUAGE , original_artist FROM songs WHERE name ! = 'Love '

select id , language , original_artist from songs where name ! = value

What are the id, language and original artist of the songs whose name is not 'Love'?

What are the id , language and original artist of the songs whose name is not 'Love ' ?


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

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

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


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

select title from sculptures order by year desc limit value

What is the name of the scuplture that was created most recently ?


Question: SELECT T3.Name FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID JOIN Planet AS T3 ON T1.Planet = T3.PlanetID GROUP BY T1.Planet HAVING count(*)  =  1;

SELECT T3.Name FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID JOIN Planet AS T3 ON T1.Planet = T3.PlanetID GROUP BY T1.Planet HAVING count ( * ) = 1 ;

select t3 . name from has_clearance as t1 join employee as t2 on t1 . employee = t2 . employeeid join planet as t3 on t1 . planet = t3 . planetid group by t1 . planet having count ( * ) = value

What are the names of all planets with one employee that has clearance?

What are the names of all planets with one employee that has clearance ?


Question: SELECT T1.line_1_number_building ,  T1.line_2_number_street ,  T1.town_city FROM Addresses AS T1 JOIN Users AS T2 ON T1.address_id  =  T2.user_address_id WHERE T2.user_category_code  =  'Senior Citizen';

SELECT T1.line_1_number_building , T1.line_2_number_street , T1.town_city FROM Addresses AS T1 JOIN Users AS T2 ON T1.address_id = T2.user_address_id WHERE T2.user_category_code = 'Senior Citizen ' ;

Where do the Senior Citizens live? List building, street, and the city.

Where do the Senior Citizens live ? List building , street , and the city .


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

Show the conference name and year and the number of participants for each conference.

Show the conference name and year and the number of participants for each conference .


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

SELECT count ( * ) FROM goods WHERE food = `` Cake ''

select count ( * ) from goods where food = value

How many types of Cake does this bakery sell?

How many types of Cake does this bakery sell ?


Question: SELECT count(DISTINCT customer_id) FROM Customer_orders

SELECT count ( DISTINCT customer_id ) FROM Customer_orders

select count ( distinct customer_id ) from customer_orders

Count the number of differnt customers who have made an order.

Count the number of differnt customers who have made an order .


Question: SELECT pilot_name FROM pilotskills WHERE plane_name  =  'Piper Cub' OR plane_name  =  'F-14 Fighter'

SELECT pilot_name FROM pilotskills WHERE plane_name = 'Piper Cub ' OR plane_name = 'F-14 Fighter '

select pilot_name from pilotskills where plane_name = value or plane_name = value

Find the pilots who have either plane Piper Cub or plane F-14 Fighter.

Find the pilots who have either plane Piper Cub or plane F-14 Fighter .


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

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

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

Find the top 2 earpads that are mostly used.

Find the top 2 earpads that are mostly used .


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

SELECT count ( * ) , warehouse FROM boxes GROUP BY warehouse

select count ( * ) , warehouse from boxes group by warehouse

How many boxes are stored in each warehouse?

How many boxes are stored in each warehouse ?


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 )

Which customers used the least commonly-used service ? Give me the distinct customer details .


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

Find the names of all the services which both have been used by customer "Hardy Kutch" and have been rated "bad" in one of the customer interactions.

Find the names of all the services which both have been used by customer `` Hardy Kutch '' and have been rated `` bad '' in one of the customer interactions .


Question: SELECT avg(Salary) FROM Employee WHERE POSITION  =  "Intern";

SELECT avg ( Salary ) FROM Employee WHERE POSITION = `` Intern '' ;

select avg ( salary ) from employee where position = value

What is the average salary of an intern?

What is the average salary of an intern ?


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

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

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

Return the average age for customers who have membership above the average across all customers.

Return the average age for customers who have membership above the average across all customers .


Question: SELECT Name FROM Employee WHERE Salary BETWEEN 5000 AND 10000

select name from employee where salary between value and value

Which employees have salaries between 5000 and 10000? List employees' name.

Which employees have salaries between 5000 and 10000 ? List employees ' name .


Question: SELECT T2.title FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T1.artistID  =  222 UNION SELECT T4.title FROM artists AS T3 JOIN sculptures AS T4 ON T3.artistID  =  T4.sculptorID WHERE T3.artistID  =  222

select t2 . title from artists as t1 join paintings as t2 on t1 . artistid = t2 . painterid where t1 . artistid = value union select t4 . title from artists as t3 join sculptures as t4 on t3 . artistid = t4 . sculptorid where t3 . artistid = value

What are the titles of all paintings and sculpture works made by the artist whose id is 222?

What are the titles of all paintings and sculpture works made by the artist whose id is 222 ?


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'

What are the document object ids of the related to the document owned by Ransom ?


Question: SELECT DISTINCT title FROM paintings ORDER BY height_mm

select distinct title from paintings order by height_mm

List the names of all distinct paintings ordered by length.

List the names of all distinct paintings ordered by length .


Question: SELECT count(*) FROM driver WHERE driver_id NOT IN ( SELECT driver_id FROM vehicle_driver )

SELECT count ( * ) FROM driver WHERE driver_id NOT IN ( SELECT driver_id FROM vehicle_driver )

select count ( * ) from driver where driver_id not in ( select driver_id from vehicle_driver )

Count the number of drivers who have not driven any vehicles.

Count the number of drivers who have not driven any vehicles .


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

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

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


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

select code , contents from boxes order by value limit value

Find the code and contents of the box with the lowest value.

Find the code and contents of the box with the lowest value .


Question: SELECT name FROM vehicles ORDER BY model_year DESC

select name from vehicles order by model_year desc

What are the names of all vehicles, ordered by model year descending?

What are the names of all vehicles , ordered by model year descending ?


Question: SELECT Collecrtion_Subset_Details FROM Collection_Subsets WHERE Collection_Subset_Name = "Top collection";

SELECT Collecrtion_Subset_Details FROM Collection_Subsets WHERE Collection_Subset_Name = `` Top collection '' ;

What collection details are there on the subset named 'Top collection'?

What collection details are there on the subset named 'Top collection ' ?


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 is the most common one?

Which headphone class is the most common one ?


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

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

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

How many reservations for each boat did the sailors with an id greater than 1 make?

How many reservations for each boat did the sailors with an id greater than 1 make ?


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

select t1 . id , t1 . name from participants as t1 join performance_score as t2 on t2 . participant_id = t1 . id where t2 . voice_sound_quality = value or t2 . rhythm_tempo = value

What are the id and name of the participants who received score 5 for their sound quality or rhythm tempo?

What are the id and name of the participants who received score 5 for their sound quality or rhythm tempo ?


Question: select t2.original_artist from performance_score as t1 join songs as t2 on t2.id  =  t1.songs_id where t1.rhythm_tempo  >  5 order by t1.voice_sound_quality desc

Find the original artists who sing songs with rhythm tempo above 5 , and list results in descending order of voice sound quality .


Question: SELECT count(*) FROM driver WHERE Points  <  150

SELECT count ( * ) FROM driver WHERE Points < 150

select count ( * ) from driver where points < value

Count the number of drivers whose points are below 150.

Count the number of drivers whose points are below 150 .


Question: SELECT conference_name ,  YEAR ,  LOCATION FROM conference

select conference_name , year , location from conference

List all conference name, year, and location.

List all conference name , year , and location .


Question: SELECT product_color ,  product_description ,  product_size FROM Products WHERE product_price  <  ( SELECT max(product_price) FROM products )

SELECT product_color , product_description , product_size FROM Products WHERE product_price < ( SELECT max ( product_price ) FROM products )

select product_color , product_description , product_size from products where product_price < ( select max ( product_price ) from products )

What are the color, description and size of the products priced below the maximum price.

What are the color , description and size of the products priced below the maximum price .


Question: SELECT count(DISTINCT Payment_method_code) FROM Customer_Payment_Methods

SELECT count ( DISTINCT Payment_method_code ) FROM Customer_Payment_Methods

select count ( distinct payment_method_code ) from customer_payment_methods

How many different payment methods are there?

How many different payment methods are there ?


Question: SELECT max(search_datetime) FROM User_Searches;

SELECT max ( search_datetime ) FROM User_Searches ;

select max ( search_datetime ) from user_searches

When was the time of the latest search by a user?

When was the time of the latest search by a user ?


Question: SELECT count(DISTINCT staff_id) FROM Staff_in_meetings

SELECT count ( DISTINCT staff_id ) FROM Staff_in_meetings

select count ( distinct staff_id ) from staff_in_meetings

How many staff have attended a meeting ?


Question: SELECT max(Enrollment) ,  min(Enrollment) FROM institution

SELECT max ( Enrollment ) , min ( Enrollment ) FROM institution

select max ( enrollment ) , min ( enrollment ) from institution

Return the maximum and minimum enrollment across all institutions.

Return the maximum and minimum enrollment across all institutions .


Question: SELECT Document_Subset_Name FROM Document_Subsets;

List all documents's subset. List the subset's name.

List all documents 's subset . List the subset 's name .


Question: select t2.name ,  count(*) from package as t1 join client as t2 on t1.recipient  =  t2.accountnumber group by t1.recipient order by count(*) limit 1;

select t2.name , count ( * ) from package as t1 join client as t2 on t1.recipient = t2.accountnumber group by t1.recipient order by count ( * ) limit 1 ;

select t2 . name , count ( * ) from package as t1 join client as t2 on t1 . recipient = t2 . accountnumber group by t1 . recipient order by count ( * ) limit value

What is the smallest number of packages received and by whom ?


Question: SELECT club_name FROM club WHERE club_name LIKE '%state%'

SELECT club_name FROM club WHERE club_name LIKE ' % state % '

select club_name from club where club_name like value

Which club name contains the string 'state'?

Which club name contains the string 'state ' ?


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

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

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

What is the venue with the least number of publications?

What is the venue with the least number of publications ?


Question: SELECT plane_name FROM pilotskills WHERE pilot_name  =  'Smith' AND age  =  41

SELECT plane_name FROM pilotskills WHERE pilot_name = 'Smith ' AND age = 41

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

What are the planes owned by pilot Smith with age 41?

What are the planes owned by pilot Smith with age 41 ?


Question: SELECT invoice_id ,  invoice_status ,  invoice_details FROM Invoices

What are the ids, statuses, and details for all invoices?

What are the ids , statuses , and details for all invoices ?


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

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

What is the birth year of each distinct artists who created sculptures after 1920?

What is the birth year of each distinct artists who created sculptures after 1920 ?


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 )

Find the distinct titles of all the paintings that have a longer height than some painting on canvas?

Find the distinct titles of all the paintings that have a longer height than some painting on canvas ?


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

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

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

Find the name and age of the oldest sailor.

Find the name and age of the oldest sailor .


Question: SELECT count(*) ,  driver_id FROM vehicle_driver GROUP BY driver_id ORDER BY count(*) DESC LIMIT 1

SELECT count ( * ) , driver_id FROM vehicle_driver GROUP BY driver_id ORDER BY count ( * ) DESC LIMIT 1

select count ( * ) , driver_id from vehicle_driver group by driver_id order by count ( * ) desc limit value

What is the id of the driver who has driven the most vehicles, and how many vehicles is this?

What is the id of the driver who has driven the most vehicles , and how many vehicles is this ?


Question: SELECT T1.teacher_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id  =  T2.teacher_id JOIN Transcripts AS T3 ON T2.student_id  =  T3.student_id ORDER BY T3.date_of_transcript ASC LIMIT 1

Which teachers have taught the student with the earliest transcript issuance? List the teacher details.

Which teachers have taught the student with the earliest transcript issuance ? List the teacher details .


Question: SELECT DISTINCT payment_method_code FROM Customers

select distinct payment_method_code from customers

What are the distinct payment methods used by customers?

What are the distinct payment methods used by customers ?


Question: SELECT count(*) FROM Clients


Question: select bio_data from students where student_id not in (select t1.student_id from students as t1 join detention as t2 on t1.student_id  =  t2.student_id union select t1.student_id from students as t1 join student_loans as t2 on t1.student_id  =  t2.student_id)

select bio_data from students where student_id not in ( select t1.student_id from students as t1 join detention as t2 on t1.student_id = t2.student_id union select t1.student_id from students as t1 join student_loans as t2 on t1.student_id = t2.student_id )

List the biographical data of the students who never had a detention or student loan .


Question: SELECT count(*) FROM Paper


Question: SELECT max(rating) FROM Sailors

What is highest rating between sailors ?


Question: SELECT institution_name ,  LOCATION FROM institution ORDER BY founded DESC LIMIT 1

select institution_name , location from institution order by founded desc limit value

Show the institution name and location of institution that is most recently founded.

Show the institution name and location of institution that is most recently founded .


Question: SELECT T1.agency_id ,  T1.agency_details FROM Agencies AS T1 JOIN Clients AS T2 ON T1.agency_id  =  T2.agency_id

Show all agency ids and details for agencies with a client.

Show all agency ids and details for agencies with a client .


Question: SELECT count(DISTINCT order_item_status_code) FROM Order_items

SELECT count ( DISTINCT order_item_status_code ) FROM Order_items

select count ( distinct order_item_status_code ) from order_items

How many different item status codes are there listed in ordered items?

How many different item status codes are there listed in ordered items ?


Question: SELECT avg(amount_of_loan) FROM Student_Loans

SELECT avg ( amount_of_loan ) FROM Student_Loans

select avg ( amount_of_loan ) from student_loans

Compute the average amount of student loans.

Compute the average amount of student loans .


Question: SELECT Nationality FROM customer WHERE Card_Credit  <  50 INTERSECT SELECT Nationality FROM customer WHERE Card_Credit  >  75

select nationality from customer where card_credit < value intersect select nationality from customer where card_credit > value

Which nations have both customers with card credit above 50 and customers with card credit below 75.

Which nations have both customers with card credit above 50 and customers with card credit below 75 .


Question: SELECT T1.name FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid  =  T2.sid WHERE T2.bid  =  102

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

What is the name of the sailor who reserved boat 102?

What is the name of the sailor who reserved boat 102 ?


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

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

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

What is the average price for each food type?

What is the average price for each food type ?


Question: SELECT name FROM author EXCEPT SELECT t1.name FROM author AS t1 JOIN book AS t2 ON t1.author_id  =  t2.author_id JOIN press AS t3 ON t2.press_id  =  t3.press_id WHERE t3.name  =  'Accor'

SELECT name FROM author EXCEPT SELECT t1.name FROM author AS t1 JOIN book AS t2 ON t1.author_id = t2.author_id JOIN press AS t3 ON t2.press_id = t3.press_id WHERE t3.name = 'Accor '

select name from author except select t1 . name from author as t1 join book as t2 on t1 . author_id = t2 . author_id join press as t3 on t2 . press_id = t3 . press_id where t3 . name = value

Which authors have never published under the "Accor" press? Give me their names.

Which authors have never published under the `` Accor '' press ? Give me their names .


Question: SELECT T1.Receipt FROM items AS T1 JOIN goods AS T2 ON T1.item  =  T2.id WHERE T2.price  >  10 UNION SELECT ReceiptNumber FROM receipts WHERE date  =  (SELECT date FROM receipts ORDER BY date LIMIT 1)

SELECT T1.Receipt FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.price > 10 UNION SELECT ReceiptNumber FROM receipts WHERE date = ( SELECT date FROM receipts ORDER BY date LIMIT 1 )

select t1 . receipt from items as t1 join goods as t2 on t1 . item = t2 . id where t2 . price > value union select receiptnumber from receipts where date = ( select date from receipts order by date limit value )

What are all the receipt numbers that have a good with a price above 10 or have the earliest date?

What are all the receipt numbers that have a good with a price above 10 or have the earliest date ?


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

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

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

What are the ids for all shipments on the planet Mars that Turanga Leela manages?

What are the ids for all shipments on the planet Mars that Turanga Leela manages ?


Question: SELECT Stadium FROM institution ORDER BY Capacity DESC

select stadium from institution order by capacity desc

What are the stadiums of institutions in descending order of the capacity.

What are the stadiums of institutions in descending order of the capacity .


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

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

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

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

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


Question: SELECT address_line_1 ,  town_city ,  county FROM Customers WHERE Country  =  'USA'

SELECT address_line_1 , town_city , county FROM Customers WHERE Country = 'USA '

select address_line_1 , town_city , county from customers where country = value

List the address, town and county information of the customers who live in the USA.

List the address , town and county information of the customers who live in the USA .


Question: SELECT count(*) FROM institution WHERE founded BETWEEN 1850 AND 1900

SELECT count ( * ) FROM institution WHERE founded BETWEEN 1850 AND 1900

select count ( * ) from institution where founded between value and value

How many institutions were founded between 1850 and 1900?

How many institutions were founded between 1850 and 1900 ?


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


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 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 universities?

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


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

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

Return the country in which the user with first name Robbie lives.

Return the country in which the user with first name Robbie lives .


Question: SELECT customer_id ,  customer_name FROM Customers

select customer_id , customer_name from customers

Show all customer ids and customer names.

Show all customer ids and customer names .


Question: SELECT count(*) ,  rating FROM movies WHERE rating != 'null' GROUP BY rating

SELECT count ( * ) , rating FROM movies WHERE rating ! = 'null ' GROUP BY rating

select count ( * ) , rating from movies where rating ! = value group by rating

Find the number of movies whose rating is not null.

Find the number of movies whose rating is not null .


Question: SELECT t1.manager ,  t1.car_owner FROM team AS t1 JOIN team_driver AS t2 ON t1.team_id  =  t2.team_id GROUP BY t2.team_id HAVING count(*)  >=  2

SELECT t1.manager , t1.car_owner FROM team AS t1 JOIN team_driver AS t2 ON t1.team_id = t2.team_id GROUP BY t2.team_id HAVING count ( * ) > = 2

select t1 . manager , t1 . car_owner from team as t1 join team_driver as t2 on t1 . team_id = t2 . team_id group by t2 . team_id having count ( * ) > = value

What are the manager and car owner of the team that has at least 2 drivers?

What are the manager and car owner of the team that has at least 2 drivers ?


Question: SELECT Platform_name ,  Platform_ID FROM platform WHERE Download_rank  =  1

select platform_name , platform_id from platform where download_rank = value

What are the names and id of platforms whose download rank is 1?

What are the names and id of platforms whose download rank is 1 ?


Question: SELECT Transmitter FROM radio WHERE Radio_ID NOT IN (SELECT Radio_ID FROM city_channel_radio)

SELECT Transmitter FROM radio WHERE Radio_ID NOT IN ( SELECT Radio_ID FROM city_channel_radio )

select transmitter from radio where radio_id not in ( select radio_id from city_channel_radio )

Show the distinct transmitters of radios that are not associated with any city channel.

Show the distinct transmitters of radios that are not associated with any city channel .


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 )

Give me the distinct id and price for all goods whose price is below the average of all goods?

Give me the distinct id and price for all goods whose price is below the average of all goods ?


Question: SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payment_Methods )

SELECT count ( * ) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payment_Methods )

select count ( * ) from customers where customer_id not in ( select customer_id from customer_payment_methods )

How many customers do not have a listed payment method?

How many customers do not have a listed payment method ?


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

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

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


Question: SELECT title ,  LOCATION FROM sculptures

What are the sculptures called and where are they located?

What are the sculptures called and where are they located ?


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

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

What is the name of the author of best selling book?

What is the name of the author of best selling book ?


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

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

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

Give the state that the student with first name Linda lives in.

Give the state that the student with first name Linda lives in .


Question: SELECT paper_id FROM Paper WHERE title LIKE "%translation%"

SELECT paper_id FROM Paper WHERE title LIKE `` % translation % ''

select paper_id from paper where title like value

What are the ids for papers with titles containing 'translation'?

What are the ids for papers with titles containing 'translation ' ?


Question: select bio_data from students where student_id not in (select t1.student_id from students as t1 join detention as t2 on t1.student_id  =  t2.student_id union select t1.student_id from students as t1 join student_loans as t2 on t1.student_id  =  t2.student_id)

select bio_data from students where student_id not in ( select t1.student_id from students as t1 join detention as t2 on t1.student_id = t2.student_id union select t1.student_id from students as t1 join student_loans as t2 on t1.student_id = t2.student_id )

Which students never had a detention or student loan ? Find their biographical data .


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

What types of contents cannot be found in warehouses in New York?

What types of contents can not be found in warehouses in New York ?


Question: SELECT count(*) FROM languages


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

SELECT title FROM movies WHERE rating = 'G ' OR rating = 'PG '

select title from movies where rating = value or rating = value

What are the names of the movie theaters that are playing 'G' or 'PG' rated movies?

What are the names of the movie theaters that are playing 'G ' or 'PG ' rated movies ?


Question: SELECT order_status_code ,  count(*) FROM Customer_orders GROUP BY order_status_code

SELECT order_status_code , count ( * ) FROM Customer_orders GROUP BY order_status_code

select order_status_code , count ( * ) from customer_orders group by order_status_code

How many orders have each order status code?

How many orders have each order status code ?


Question: SELECT Driver FROM driver ORDER BY Points DESC

select driver from driver order by points desc

List all the driver names in descending order of points.

List all the driver names in descending order of points .


Question: SELECT count(*) FROM driver WHERE driver_id NOT IN ( SELECT driver_id FROM vehicle_driver )

SELECT count ( * ) FROM driver WHERE driver_id NOT IN ( SELECT driver_id FROM vehicle_driver )

select count ( * ) from driver where driver_id not in ( select driver_id from vehicle_driver )

How many drivers have not driven any cars?

How many drivers have not driven any cars ?


Question: SELECT T1.Document_Subset_ID ,  T2.Document_Subset_Name , count(DISTINCT T1.Document_Object_ID) FROM Document_Subset_Members AS T1 JOIN Document_Subsets AS T2 ON T1.Document_Subset_ID =  T2.Document_Subset_ID GROUP BY T1.Document_Subset_ID;

List subset id, name and number of different documents in each subset.

List subset id , name and number of different documents in each subset .


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

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

Find the first and last names of the artists who have both works of paintings and sculptures?

Find the first and last names of the artists who have both works of paintings and sculptures ?


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

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

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

What are the names of oldest pilots for each type of plane?

What are the names of oldest pilots for each type of plane ?


Question: SELECT T1.bio_data ,  T2.event_date FROM Students AS T1 JOIN Student_Events AS T2 ON T1.student_id  =  T2.student_id

Which students have gone through any event? List the students' biographical data and event date.

Which students have gone through any event ? List the students ' biographical data and event date .


Question: SELECT id FROM goods WHERE flavor  =  "Apricot" AND price  <  5

SELECT id FROM goods WHERE flavor = `` Apricot '' AND price < 5

select id from goods where flavor = value and price < value

What are ids of the goods that have Apricot flavor and are cheaper than 5 dollars?

What are ids of the goods that have Apricot flavor and are cheaper than 5 dollars ?


Question: SELECT avg(room_count) FROM Properties;

SELECT avg ( room_count ) FROM Properties ;

select avg ( room_count ) from properties

What is the average number of rooms in a property?

What is the average number of rooms in a property ?


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

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

Show the titles of books that have been ordered.

Show the titles of books that have been ordered .


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

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

select player_name from player where player_id not in ( select player_id from game_player )

List the name of players that do not play any game.

List the name of players that do not play any game .


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

Show all majors and major ranks for the university with name Augustana College.

Show all majors and major ranks for the university with name Augustana College .


Question: SELECT author_name ,  other_details FROM Authors

select author_name , other_details from authors

Show the names and other details for all authors.

Show the names and other details for all authors .


Question: SELECT sum(T1.value) FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse  =  T2.code ORDER BY T2.capacity DESC LIMIT 1

SELECT sum ( T1.value ) FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code ORDER BY T2.capacity DESC LIMIT 1

select sum ( t1 . value ) from boxes as t1 join warehouses as t2 on t1 . warehouse = t2 . code order by t2 . capacity desc limit value

What is the total value of boxes kept in the warehouse with the greatest capacity?

What is the total value of boxes kept in the warehouse with the greatest capacity ?


Question: SELECT plane_name FROM pilotskills WHERE pilot_name  =  'Jones'  AND age  =  32

SELECT plane_name FROM pilotskills WHERE pilot_name = 'Jones ' AND age = 32

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

What are the names of planes that the pilot Jones who is 32 has?

What are the names of planes that the pilot Jones who is 32 has ?


Question: SELECT count(*) FROM Exams


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

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

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

Find the number of reservations by sailors with id greater than 1 for each boat.

Find the number of reservations by sailors with id greater than 1 for each boat .


Question: SELECT t2.name ,  t2.Year_Profits_billion FROM book AS t1 JOIN press AS t2 ON t1.press_id  =  t2.press_id GROUP BY t2.press_id HAVING count(*)  >  2

SELECT t2.name , t2.Year_Profits_billion FROM book AS t1 JOIN press AS t2 ON t1.press_id = t2.press_id GROUP BY t2.press_id HAVING count ( * ) > 2

select t2 . name , t2 . year_profits_billion from book as t1 join press as t2 on t1 . press_id = t2 . press_id group by t2 . press_id having count ( * ) > value

Find the press that published more than two books, and return its name and yearly profit in billion.

Find the press that published more than two books , and return its name and yearly profit in billion .


Question: SELECT Name FROM member ORDER BY Age DESC LIMIT 1

select name from member order by age desc limit value


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

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

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


Question: SELECT client_id ,  client_details FROM Clients WHERE sic_code  =  "Bad";

SELECT client_id , client_details FROM Clients WHERE sic_code = `` Bad '' ;

select client_id , client_details from clients where sic_code = value

Show all client ids and details with sic code "Bad".

Show all client ids and details with sic code `` Bad '' .


Question: SELECT Parent_Document_Object_ID FROM Document_Objects WHERE OWNER  =  'Marlin'

SELECT Parent_Document_Object_ID FROM Document_Objects WHERE OWNER = 'Marlin '

select parent_document_object_id from document_objects where owner = value

What are the document object ids of the objects owned by Marlin?

What are the document object ids of the objects owned by Marlin ?


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

Which services are used by the customer "Hardy Kutch" or are rated as "good" in a customer interaction? Give me the service details.

Which services are used by the customer `` Hardy Kutch '' or are rated as `` good '' in a customer interaction ? Give me the service details .


Question: SELECT name FROM Sailors WHERE name LIKE '%e%'

SELECT name FROM Sailors WHERE name LIKE ' % e % '

select name from sailors where name like value

What is the name of sailors whose names contain letter e?

What is the name of sailors whose names contain letter e ?


Question: SELECT Title FROM game EXCEPT SELECT T1.Title FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID  =  T2.Game_ID JOIN player AS T3 ON T2.Player_ID  =  T3.Player_ID WHERE T3.Position  =  "Guard"

SELECT Title FROM game EXCEPT SELECT T1.Title FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID = T2.Game_ID JOIN player AS T3 ON T2.Player_ID = T3.Player_ID WHERE T3.Position = `` Guard ''

select title from game except select t1 . title from game as t1 join game_player as t2 on t1 . game_id = t2 . game_id join player as t3 on t2 . player_id = t3 . player_id where t3 . position = value

What are the titles of games not played by any players who play the Guard position?

What are the titles of games not played by any players who play the Guard position ?


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 code of the product type that is least common?

What is the code of the product type that is least common ?


Question: SELECT DISTINCT T1.Name FROM driver AS T1 JOIN vehicle_driver AS T2 ON T1.driver_id  =  T2.driver_id JOIN vehicle AS T3 ON T2.vehicle_id  =  T3.vehicle_id WHERE T3.power  >  5000

Return the names of drivers who have driven vehicles with power over 5000.

Return the names of drivers who have driven vehicles with power over 5000 .


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

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

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

For each gender, return the gender code and the number of students who identify as that gender.

For each gender , return the gender code and the number of students who identify as that gender .


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

What are the names of the three official languages spoken in the most countries?

What are the names of the three official languages spoken in the most countries ?


Question: SELECT T2.title FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id  =  T2.paper_id GROUP BY T2.paper_id ORDER BY count(*) DESC LIMIT 1

SELECT T2.title FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id = T2.paper_id GROUP BY T2.paper_id ORDER BY count ( * ) DESC LIMIT 1

select t2 . title from author_list as t1 join paper as t2 on t1 . paper_id = t2 . paper_id group by t2 . paper_id order by count ( * ) desc limit value

What is the title of the paper that has most number of authors?

What is the title of the paper that has most number of authors ?


Question: SELECT name FROM movietheaters GROUP BY name HAVING count(*)  >=  1

SELECT name FROM movietheaters GROUP BY name HAVING count ( * ) > = 1

select name from movietheaters group by name having count ( * ) > = value

What are the names of every theater with at least one movie playing?

What are the names of every theater with at least one movie playing ?


Question: select customer_details from customers where customer_id not in (select customer_id from customers_and_services)

select customer_details from customers where customer_id not in ( select customer_id from customers_and_services )

Find the details of the customer who has never used any services .


Question: SELECT name ,  age FROM Sailors WHERE age  <  30

select name , age from sailors where age < value

What is the name and age of every sailor who is younger than age 30?

What is the name and age of every sailor who is younger than age 30 ?


Question: SELECT id FROM goods WHERE price  <  3

select id from goods where price < value

Give the ids of goods that cost less than 3 dollars.

Give the ids of goods that cost less than 3 dollars .


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

For each student answer, find the first name of the student and the date of the answer.

For each student answer , find the first name of the student and the date of the answer .


Question: SELECT T2.author_name ,  T2.other_details FROM Documents AS T1 JOIN Authors AS T2 ON T1.author_name  =  T2.author_name WHERE document_name  =  "Travel to China"

SELECT T2.author_name , T2.other_details FROM Documents AS T1 JOIN Authors AS T2 ON T1.author_name = T2.author_name WHERE document_name = `` Travel to China ''

Show the author name and details for the document "Travel to China".

Show the author name and details for the document `` Travel to China '' .


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

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

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

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


Question: SELECT count(*) FROM Ref_staff_roles


Question: SELECT count(DISTINCT CONTENTS) FROM boxes

SELECT count ( DISTINCT CONTENTS ) FROM boxes

select count ( distinct contents ) from boxes

How many different contents are stored in boxes?

How many different contents are stored in boxes ?


Question: SELECT min(product_price) ,  avg(product_price) ,  max(product_price) FROM Products

SELECT min ( product_price ) , avg ( product_price ) , max ( product_price ) FROM Products

select min ( product_price ) , avg ( product_price ) , max ( product_price ) from products

Show the minimum, average, maximum price for all products.

Show the minimum , average , maximum price for all products .


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 is the name of all sailors whose rating is higher than any sailor named Luis?

What is the name of all sailors whose rating is higher than any sailor named Luis ?


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

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

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

Count the number of citations Mckeown , Kathleen has .


Question: SELECT T3.name FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn  =  T2.isbn JOIN Author AS T3 ON T2.Author  =  T3.idAuthor WHERE T1.title  =  "Pride and Prejudice"

SELECT T3.name FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn = T2.isbn JOIN Author AS T3 ON T2.Author = T3.idAuthor WHERE T1.title = `` Pride and Prejudice ''

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

Who is the author of the book "Pride and Prejudice"?

Who is the author of the book `` Pride and Prejudice '' ?


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

Give the full name of the artist who lived the longest.

Give the full name of the artist who lived the longest .


Question: SELECT country FROM City GROUP BY country ORDER BY count(*) ASC LIMIT 1

SELECT country FROM City GROUP BY country ORDER BY count ( * ) ASC LIMIT 1

select country from city group by country order by count ( * ) asc limit value

Give the country with the fewest number of cities.

Give the country with the fewest number of cities .


Question: SELECT T1.name ,  count(*) FROM Author AS T1 JOIN Author_Book AS T2 ON T1.idAuthor  =  T2.Author GROUP BY T1.idAuthor

SELECT T1.name , count ( * ) FROM Author AS T1 JOIN Author_Book AS T2 ON T1.idAuthor = T2.Author GROUP BY T1.idAuthor

select t1 . name , count ( * ) from author as t1 join author_book as t2 on t1 . idauthor = t2 . author group by t1 . idauthor

Show all author names and the numbers of books each has written.

Show all author names and the numbers of books each has written .


Question: SELECT T1.invoice_date ,  T1.invoice_number FROM Invoices AS T1 JOIN Shipments AS T2 ON T1.invoice_number  =  T2.invoice_number GROUP BY T1.invoice_number HAVING count(*)  >=  2

SELECT T1.invoice_date , T1.invoice_number FROM Invoices AS T1 JOIN Shipments AS T2 ON T1.invoice_number = T2.invoice_number GROUP BY T1.invoice_number HAVING count ( * ) > = 2

select t1 . invoice_date , t1 . invoice_number from invoices as t1 join shipments as t2 on t1 . invoice_number = t2 . invoice_number group by t1 . invoice_number having count ( * ) > = value

List the invoice dates and ids of the invoices causing at least 2 shipments.

List the invoice dates and ids of the invoices causing at least 2 shipments .


Question: SELECT DISTINCT T1.product_name ,  T1.product_price ,  T1.product_description FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id  =  T2.product_id JOIN Orders AS T3 ON T2.order_id  =  T3.order_id JOIN Customers AS T4 ON T3.customer_id  =  T4.customer_id WHERE T4.gender_code  =  'Female'

List all the distinct product names, price and descriptions which are bought by female customers.

List all the distinct product names , price and descriptions which are bought by female customers .


Question: SELECT T2.Name ,  count(*) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender  =  T2.AccountNumber GROUP BY T1.Sender HAVING count(*)  >  1;

SELECT T2.Name , count ( * ) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber GROUP BY T1.Sender HAVING count ( * ) > 1 ;

select t2 . name , count ( * ) from package as t1 join client as t2 on t1 . sender = t2 . accountnumber group by t1 . sender having count ( * ) > value

What is the name of all clients who sent more than one package?

What is the name of all clients who sent more than one package ?


Question: SELECT avg(price) FROM goods WHERE flavor  =  "Blackberry" OR flavor  =  "Blueberry"

SELECT avg ( price ) FROM goods WHERE flavor = `` Blackberry '' OR flavor = `` Blueberry ''

select avg ( price ) from goods where flavor = value or flavor = value

What are the average prices of goods with blackberry or blueberry flavor?

What are the average prices of goods with blackberry or blueberry flavor ?


Question: SELECT Player_name ,  College FROM player ORDER BY Rank_of_the_year DESC

select player_name , college from player order by rank_of_the_year desc

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

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


Question: SELECT product_name FROM Products ORDER BY product_price DESC

select product_name from products order by product_price desc

List all product names in descending order of price.

List all product names in descending order of price .


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

What are the average height and width of paintings grouped by painters and ordered by name?

What are the average height and width of paintings grouped by painters and ordered by name ?


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

Please show the email addresses of students and the dates of their answers in descending order of dates.

Please show the email addresses of students and the dates of their answers in descending order of dates .


Question: SELECT Nationality ,  COUNT(*) FROM customer GROUP BY Nationality

SELECT Nationality , COUNT ( * ) FROM customer GROUP BY Nationality

select nationality , count ( * ) from customer group by nationality

How many customers are associated with each nationality? List the nationality and the number of customers.

How many customers are associated with each nationality ? List the nationality and the number of customers .


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

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


Question: SELECT T1.bio_data ,  T2.event_date FROM Students AS T1 JOIN Student_Events AS T2 ON T1.student_id  =  T2.student_id

Find the biographical data and event date for students who participated in any events.

Find the biographical data and event date for students who participated in any events .


Question: SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id  =  T2.university_id AND T1.major_id  =  T3.major_id WHERE T3.major_name  =  'Accounting' INTERSECT SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id  =  T2.university_id AND T1.major_id  =  T3.major_id WHERE T3.major_name  =  'Urban Education'

Show all university names with both major Accounting and major Urban Education.

Show all university names with both major Accounting and major Urban Education .


Question: SELECT major_name ,  major_code FROM Major ORDER BY major_code

select major_name , major_code from major order by major_code

List all major name and major code in the order of their major code


Question: SELECT min(price) FROM goods WHERE flavor  =  "Cheese"

SELECT min ( price ) FROM goods WHERE flavor = `` Cheese ''

select min ( price ) from goods where flavor = value

Return the cheapest price for goods with cheese flavor.

Return the cheapest price for goods with cheese flavor .


Question: SELECT T1.title ,  T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id  =  T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id  =  T3.affiliation_id WHERE T3.name LIKE "Stanford University" INTERSECT SELECT T1.title ,  T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id  =  T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id  =  T3.affiliation_id WHERE T3.name LIKE "Columbia University"

What are the titles and paper ids for papers which were affiliated with both Stanford and Columbia University?

What are the titles and paper ids for papers which were affiliated with both Stanford and Columbia University ?


Question: SELECT count(*) FROM race


Question: SELECT count(*) FROM services


Question: SELECT count(*) FROM conference

What is the total number of conferences?

What is the total number of conferences ?


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

Find the name and location of the universities that did not have any staff participated in any conference in 2004.

Find the name and location of the universities that did not have any staff participated in any conference in 2004 .


Question: SELECT DISTINCT Address FROM building

Show the distinct addresses of buildings.

Show the distinct addresses of buildings .


Question: SELECT sum(enrollment) FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id  =  T2.university_id WHERE T2.rank  >=  5

SELECT sum ( enrollment ) FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id = T2.university_id WHERE T2.rank > = 5

select sum ( enrollment ) from university as t1 join overall_ranking as t2 on t1 . university_id = t2 . university_id where t2 . rank > = value

What is the total enrollment of universities with a overall rank 5 or below?

What is the total enrollment of universities with a overall rank 5 or below ?


Question: SELECT heat ,  name ,  nation FROM cyclist

select heat , name , nation from cyclist

List the heat, name, and nation for all the cyclists.

List the heat , name , and nation for all the cyclists .


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

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

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

For completion year, return the year and the number of buildings completed.

For completion year , return the year and the number of buildings completed .


Question: SELECT count(DISTINCT plane_name) FROM pilotskills

SELECT count ( DISTINCT plane_name ) FROM pilotskills

select count ( distinct plane_name ) from pilotskills

How many distinct planes are owned across all pilots?

How many distinct planes are owned across all pilots ?


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

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

select distinct student_answer_text from student_answers where comments = value

What are the distinct student answer texts that received comments "Normal"?

What are the distinct student answer texts that received comments `` Normal '' ?


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

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

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

Find the id and title of the papers that are never cited by others.

Find the id and title of the papers that are never cited by others .


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

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

Show all customer names, ids and the number of orders by each customer.

Show all customer names , ids and the number of orders by each customer .


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

Show all book titles and corresponding author names.

Show all book titles and corresponding author names .


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

SELECT * FROM movies WHERE rating = 'null '

select * from movies where rating = value

What is all the information about the unrated movies?

What is all the information about the unrated movies ?


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

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

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

Give the names of all oil paintings created after 1910.

Give the names of all oil paintings created after 1910 .


Question: SELECT idOrder FROM Book AS T1 JOIN Books_Order AS T2 ON T1.isbn  =  T2.isbn WHERE T1.title  =  "Pride and Prejudice" INTERSECT SELECT idOrder FROM Book AS T1 JOIN Books_Order AS T2 ON T1.isbn  =  T2.isbn WHERE T1.title  =  "The Little Prince"

SELECT idOrder FROM Book AS T1 JOIN Books_Order AS T2 ON T1.isbn = T2.isbn WHERE T1.title = `` Pride and Prejudice '' INTERSECT SELECT idOrder FROM Book AS T1 JOIN Books_Order AS T2 ON T1.isbn = T2.isbn WHERE T1.title = `` The Little Prince ''

select idorder from book as t1 join books_order as t2 on t1 . isbn = t2 . isbn where t1 . title = value intersect select idorder from book as t1 join books_order as t2 on t1 . isbn = t2 . isbn where t1 . title = value

Show ids for orders including both "Pride and Prejudice" and "The Little Prince".

Show ids for orders including both `` Pride and Prejudice '' and `` The Little Prince '' .


Question: SELECT avg(room_count) FROM Properties;

SELECT avg ( room_count ) FROM Properties ;

select avg ( room_count ) from properties

On average, how many rooms does a property have?

On average , how many rooms does a property have ?


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

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

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

return the details of the customer with largest count of used services.


Question: SELECT T1.order_id ,  T1.date_order_placed FROM Orders AS T1 JOIN Order_items AS T2 ON T1.order_id  =  T2.order_id GROUP BY T1.order_id HAVING count(*)  >=  2

SELECT T1.order_id , T1.date_order_placed FROM Orders AS T1 JOIN Order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id HAVING count ( * ) > = 2

Which orders have at least 2 products on it? List the order id and date.

Which orders have at least 2 products on it ? List the order id and date .


Question: SELECT address_line_1 ,  town_city ,  county FROM Customers WHERE Country  =  'USA'

SELECT address_line_1 , town_city , county FROM Customers WHERE Country = 'USA '

select address_line_1 , town_city , county from customers where country = value

What are the addresses, towns, and county information for all customers who live in the United States?

What are the addresses , towns , and county information for all customers who live in the United States ?


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

select name , rating , age from sailors order by rating , age

Find the name, rating and age of all sailors ordered by rating and age.

Find the name , rating and age of all sailors ordered by rating and age .


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 )

What are the names of the press that makes the highest monthly profit or the lowest monthly profit?

What are the names of the press that makes the highest monthly profit or the lowest monthly profit ?


Question: SELECT author_name FROM Documents GROUP BY author_name ORDER BY count(*) DESC LIMIT 1

SELECT author_name FROM Documents GROUP BY author_name ORDER BY count ( * ) DESC LIMIT 1

select author_name from documents group by author_name order by count ( * ) desc limit value

What is the name of the author with most number of documents?

What is the name of the author with most number of documents ?


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

SELECT Collection_Name FROM Collections EXCEPT SELECT T2.Collection_Name FROM Collections AS T1 JOIN Collections AS T2 ON T1.Parent_Collection_ID = T2.Collection_ID ;

Which collection is not the parent of other collection? List the collection's name.

Which collection is not the parent of other collection ? List the collection 's name .


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

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

Find the ids of customers whose average spending for each good is above 5.

Find the ids of customers whose average spending for each good is above 5 .


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

Find the average card credit customers whose membership level is above 1.

Find the average card credit customers whose membership level is above 1 .


Question: SELECT DISTINCT bid FROM Reserves

Return the unique boat ids (bid) of all reserved boats.

Return the unique boat ids ( bid ) of all reserved boats .


Question: SELECT max(T1.value) ,  T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse  =  T2.code GROUP BY T2.location

SELECT max ( T1.value ) , T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code GROUP BY T2.location

select max ( t1 . value ) , t2 . location from boxes as t1 join warehouses as t2 on t1 . warehouse = t2 . code group by t2 . location

For each warehouse location, what is the value of the most expensive box?

For each warehouse location , what is the value of the most expensive box ?


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

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

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

Show the different affiliations of city channels and the number of city channels with each affiliation.

Show the different affiliations of city channels and the number of city channels with each affiliation .


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

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

select paper_id , count ( * ) from citation group by cited_paper_id order by count ( * ) desc limit value

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

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


Question: SELECT staff_role_code ,  staff_role_description FROM Ref_staff_roles

List the codes and descriptions for all staff roles.

List the codes and descriptions for all staff roles .


Question: select channel_details from channels order by channel_details

What is the list of channel details ordered alphabetically ?


Question: SELECT * FROM warehouses

What is all the information about the warehouses?

What is all the information about the warehouses ?


Question: select sum(enrollment) from institution where city  =  "vancouver" or city  =  "calgary"

select sum ( enrollment ) from institution where city = "vancouver" or city = "calgary"

select sum ( enrollment ) from institution where city = value or city = value

Return all the enrollments of institutions in either the city of Vancouver or the city of Calgary .


Question: SELECT count(*) FROM Shipment_Items


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

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

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

List the make that are associated with most drivers.

List the make that are associated with most drivers .


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

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

select title , year from sculptures where location ! = value

What are the names and dates created for all sculptures not located in gallery 226?

What are the names and dates created for all sculptures not located in gallery 226 ?


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

For each driver, return his or her name and country.

For each driver , return his or her name and country .


Question: SELECT DISTINCT id FROM goods ORDER BY id

select distinct id from goods order by id


Question: SELECT T2.Name ,  T1.Name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID  =  T2.Club_ID

select t2 . name , t1 . name from club as t1 join player as t2 on t1 . club_id = t2 . club_id

Show names of players and names of clubs they are in.

Show names of players and names of clubs they are in .


Question: SELECT avg(Laps) FROM driver WHERE age  <  20

SELECT avg ( Laps ) FROM driver WHERE age < 20

select avg ( laps ) from driver where age < value

What are the average laps of all the drivers who are younger than 20?

What are the average laps of all the drivers who are younger than 20 ?


Question: SELECT count(*) FROM institution WHERE founded BETWEEN 1850 AND 1900

SELECT count ( * ) FROM institution WHERE founded BETWEEN 1850 AND 1900

select count ( * ) from institution where founded between value and value

How many institution are founded between 1850 and 1900?

How many institution are founded between 1850 and 1900 ?


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

SELECT paintingID FROM paintings WHERE height_mm > ( SELECT max ( height_mm ) FROM paintings WHERE YEAR > 1900 )

select paintingid from paintings where height_mm > ( select max ( height_mm ) from paintings where year > value )

What are the ids of the paintings whose height is longer than the height of all paintings created after 1900?

What are the ids of the paintings whose height is longer than the height of all paintings created after 1900 ?


Question: SELECT product_type_code FROM Products GROUP BY product_type_code HAVING count(*)  >=  2

SELECT product_type_code FROM Products GROUP BY product_type_code HAVING count ( * ) > = 2

select product_type_code from products group by product_type_code having count ( * ) > = value

What are the product type code with at least two products?

What are the product type code with at least two products ?


Question: SELECT Driver_Name FROM driver ORDER BY Driver_Name DESC

select driver_name from driver order by driver_name desc

List all names of drivers in descending alphabetical order.

List all names of drivers in descending alphabetical order .


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  >=  2000 AND T1.year  <=  2009 AND T3.name LIKE "Stanford 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 > = 2000 AND T1.year < = 2009 AND T3.name LIKE `` Stanford 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 t1 . year < = value and t3 . name like value

How many papers does Stanford University have between 2000 and 2009?

How many papers does Stanford University have between 2000 and 2009 ?


Question: SELECT staff_id ,  staff_details FROM staff WHERE staff_details LIKE "%s%" GROUP BY staff_id HAVING count(*)  >=  1

SELECT staff_id , staff_details FROM staff WHERE staff_details LIKE `` % s % '' GROUP BY staff_id HAVING count ( * ) > = 1

select staff_id , staff_details from staff where staff_details like value group by staff_id having count ( * ) > = value

What are the ids and details of the staff who have attended at least 1 meetings and have the detail with letter 's'?

What are the ids and details of the staff who have attended at least 1 meetings and have the detail with letter 's ' ?


Question: SELECT build_year ,  model ,  builder FROM vehicle

select build_year , model , builder from vehicle

Give the build year, model, and builder of each vehicle.

Give the build year , model , and builder of each vehicle .


Question: SELECT Type_of_Question_Code FROM Questions GROUP BY Type_of_Question_Code HAVING count(*)  >=  3

SELECT Type_of_Question_Code FROM Questions GROUP BY Type_of_Question_Code HAVING count ( * ) > = 3

select type_of_question_code from questions group by type_of_question_code having count ( * ) > = value

Show the types of questions that have at least three questions.

Show the types of questions that have at least three questions .


Question: SELECT city_name ,  city_code ,  state ,  country FROM City

select city_name , city_code , state , country from city

Show names, codes, states, countries for all cities.

Show names , codes , states , countries for all cities .


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

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

Show the client names and their total amounts of books ordered.

Show the client names and their total amounts of books ordered .


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

For each student, find the student id, student biographical data, and the number of courses he or she takes.

For each student , find the student id , student biographical data , and the number of courses he or she takes .


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

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

On which date did some customer buy a good that costs more than 15 dollars?

On which date did some customer buy a good that costs more than 15 dollars ?


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

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

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

What is the name of the affiliation which publishes the greatest number of papers among those whose address contains 'China'.

What is the name of the affiliation which publishes the greatest number of papers among those whose address contains 'China ' .