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

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

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

Which official languages are spoken in two or more countries?

Which official languages are spoken in two or more countries ?


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

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

select id , price from goods where id like value

Which good has "70" in its id? And what is its price?

Which good has `` 70 '' in its id ? And what is its price ?


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

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

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

What is the venue and year with the most number of publications?

What is the venue and year with the most number of publications ?


Question: SELECT Type_of_Question_Code ,  COUNT(*) FROM Questions GROUP BY Type_of_Question_Code

SELECT Type_of_Question_Code , COUNT ( * ) FROM Questions GROUP BY Type_of_Question_Code

select type_of_question_code , count ( * ) from questions group by type_of_question_code

For each question type, return its type code and its count of occurrence.

For each question type , return its type code and its count of occurrence .


Question: SELECT datetime_detention_start FROM Detention

select datetime_detention_start from detention


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

What are the names of the staff members who have been both a speaker and a sponsor at some conference?

What are the names of the staff members who have been both a speaker and a sponsor at some conference ?


Question: SELECT process_status_description FROM Process_status WHERE process_status_code  =  "ct"

SELECT process_status_description FROM Process_status WHERE process_status_code = `` ct ''

What is the description for process status code ct?

What is the description for process status code ct ?


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

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

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

What is the most popular payment method?

What is the most popular payment method ?


Question: SELECT StuID FROM Student EXCEPT SELECT StuID FROM City AS T1 JOIN Student AS T2 ON T1.city_code  =  T2.city_code WHERE country  =  "USA"

SELECT StuID FROM Student EXCEPT SELECT StuID FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code WHERE country = `` USA ''

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

Show ids for all students who don't live in USA.

Show ids for all students who do n't live in USA .


Question: select medium from paintings where paintingid  =  80

select medium from paintings where paintingid = value

What mediums were used for the painting with id 80 ?


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

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

Find the first and last name of artists who have painting but no sculpture work.

Find the first and last name of artists who have painting but no sculpture work .


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

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

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

What are the average and total capacities across all warehouses?

What are the average and total capacities across all warehouses ?


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

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

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

How many pilots are older than the youngest pilot who has Piper Cub?

How many pilots are older than the youngest pilot who has Piper Cub ?


Question: SELECT count(*) FROM driver


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

For each order, return the customer name and the dish name.

For each order , return the customer name and the dish name .


Question: SELECT T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID  =  T2.sculptorID GROUP BY T2.sculptorID ORDER BY count(*) DESC LIMIT 1

SELECT T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID = T2.sculptorID GROUP BY T2.sculptorID ORDER BY count ( * ) DESC LIMIT 1

select t1 . fname from artists as t1 join sculptures as t2 on t1 . artistid = t2 . sculptorid group by t2 . sculptorid order by count ( * ) desc limit value

What is the first name of the artist who has the highest number of sculptures?

What is the first name of the artist who has the highest number of sculptures ?


Question: SELECT Manager ,  Sponsor FROM team ORDER BY Car_Owner

select manager , sponsor from team order by car_owner

Find the manager and sponsor for each team and order them by the car owner.

Find the manager and sponsor for each team and order them by the car owner .


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

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

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

List all states with at least two cities.

List all states with at least two cities .


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

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

select login_name , login_password from customers where phone_number like value

What are the usernames and passwords of all customers whose phone number starts with '+12'?

What are the usernames and passwords of all customers whose phone number starts with '+12 ' ?


Question: SELECT DISTINCT T1.Document_Subset_Name FROM Document_Subsets AS T1 JOIN Document_Subset_Members AS T2 ON T1.Document_Subset_ID =  T2.Document_Subset_ID JOIN Document_Objects AS T3 ON T2.Document_Object_ID  =  T3.Document_Object_ID WHERE T3.owner  =  'Braeden'

What are the different subset names of all documents owned by Braeden?

What are the different subset names of all documents owned by Braeden ?


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

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

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

List all product type codes and the number of products in each type.

List all product type codes and the number of products in each type .


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

What are sale prices of books written by Plato?

What are sale prices of books written by Plato ?


Question: SELECT T2.location FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name  =  T2.plane_name WHERE T1.age  =  (SELECT min(age) FROM pilotskills)

SELECT T2.location FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name WHERE T1.age = ( SELECT min ( age ) FROM pilotskills )

select t2 . location from pilotskills as t1 join hangar as t2 on t1 . plane_name = t2 . plane_name where t1 . age = ( select min ( age ) from pilotskills )

Find the location of the plane that is owned by the youngest pilot.

Find the location of the plane that is owned by the youngest pilot .


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

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

What are the names of drivers except for those who had the pole position James Hinchcliffe?

What are the names of drivers except for those who had the pole position James Hinchcliffe ?


Question: SELECT title FROM book WHERE saleprice  >  (SELECT avg(saleprice) FROM book)

SELECT title FROM book WHERE saleprice > ( SELECT avg ( saleprice ) FROM book )

select title from book where saleprice > ( select avg ( saleprice ) from book )

List all book titles which have sale prices higher than the average.

List all book titles which have sale prices higher than the average .


Question: SELECT code FROM boxes WHERE value  >  (SELECT min(value) FROM boxes WHERE CONTENTS  =  'Rocks')

SELECT code FROM boxes WHERE value > ( SELECT min ( value ) FROM boxes WHERE CONTENTS = 'Rocks ' )

select code from boxes where value > ( select min ( value ) from boxes where contents = value )

What are the codes of boxes for which the value is greater than the value of any box that contains Rocks?

What are the codes of boxes for which the value is greater than the value of any box that contains Rocks ?


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

How many movies have a rating that is not null?

How many movies have a rating that is not null ?


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

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

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

Show all invoice status codes and the number of invoices with each status.

Show all invoice status codes and the number of invoices with each status .


Question: SELECT DISTINCT T1.county_state_province FROM Addresses AS T1 JOIN Properties AS T2 ON T1.address_id  =  T2.property_address_id;

SELECT DISTINCT T1.county_state_province FROM Addresses AS T1 JOIN Properties AS T2 ON T1.address_id = T2.property_address_id ;

Give the states or provinces corresponding to each property.

Give the states or provinces corresponding to each property .


Question: SELECT distance FROM Direct_distance WHERE city1_code  =  "BAL" AND city2_code  =  "CHI"

SELECT distance FROM Direct_distance WHERE city1_code = `` BAL '' AND city2_code = `` CHI ''

select distance from direct_distance where city1_code = value and city2_code = value


Question: SELECT other_details FROM Authors WHERE author_name  =  "Addison Denesik"

SELECT other_details FROM Authors WHERE author_name = `` Addison Denesik ''

select other_details from authors where author_name = value

Show the other details for the author Addison Denesik.

Show the other details for the author Addison Denesik .


Question: SELECT City ,  Province FROM institution

Return the cities and provinces of institutions.

Return the cities and provinces of institutions .


Question: SELECT product_name ,  weight FROM bike ORDER BY price ASC

select product_name , weight from bike order by price asc

List the product names and weights of the bikes in ascending order of price.

List the product names and weights of the bikes in ascending order of price .


Question: SELECT avg(product_price) FROM Products

SELECT avg ( product_price ) FROM Products

select avg ( product_price ) from products


Question: SELECT order_id ,  order_date ,  order_status_code FROM Customer_orders AS T1 JOIN Customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.customer_name  =  "Jeromy"

Show the order ids, order dates, and order status codes for all orders by customer Jeromy.

Show the order ids , order dates , and order status codes for all orders by customer Jeromy .


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 )

List the order date of the orders who are placed by customers with at least 2 payment methods.

List the order date of the orders who are placed by customers with at least 2 payment methods .


Question: SELECT count(*) FROM Process_status


Question: SELECT T2.title ,   T2.year FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T1.fname  =  "Mary"

SELECT T2.title , T2.year FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T1.fname = `` Mary ''

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

Give me a list of names and years of paintings that were created by the artist whose first name is Mary.

Give me a list of names and years of paintings that were created by the artist whose first name is Mary .


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

How many vehicles has a driver driven at most, and what is the driver id of the driver who has driven this many vehicles?

How many vehicles has a driver driven at most , and what is the driver id of the driver who has driven this many vehicles ?


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

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

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


Question: SELECT LOCATION FROM conference GROUP BY LOCATION HAVING count(*)  >=  2

SELECT LOCATION FROM conference GROUP BY LOCATION HAVING count ( * ) > = 2

select location from conference group by location having count ( * ) > = value

Show all locations where at least two conferences are located.

Show all locations where at least two conferences are located .


Question: SELECT T1.university_name FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id  =  T2.university_id ORDER BY T2.research_point DESC LIMIT 1

What is the name of the university with the most research points?

What is the name of the university with the most research points ?


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 item states are there in the orders?

How many item states are there in the orders ?


Question: SELECT Document_Object_ID FROM Document_Objects EXCEPT SELECT Parent_Document_Object_ID FROM Document_Objects

What are the ids of the documents that are not parent documents?

What are the ids of the documents that are not parent documents ?


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

select paintingid from paintings where height_mm > value and height_mm < value

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

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


Question: SELECT max(health_score) ,  min(health_score) FROM countries WHERE name != "Norway"

SELECT max ( health_score ) , min ( health_score ) FROM countries WHERE name ! = `` Norway ''

select max ( health_score ) , min ( health_score ) from countries where name ! = value

Return the maximum and minimum health scores across all countries other than Norway.

Return the maximum and minimum health scores across all countries other than Norway .


Question: SELECT count(*) FROM driver WHERE Racing_Series  =  'NASCAR'

SELECT count ( * ) FROM driver WHERE Racing_Series = 'NASCAR '

select count ( * ) from driver where racing_series = value

How many drivers have raced in 'NASCAR'?

How many drivers have raced in 'NASCAR ' ?


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

For all products sold more than 3 times, what are their ids and descriptions?

For all products sold more than 3 times , what are their ids and descriptions ?


Question: SELECT T3.name FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id  =  T2.paper_id JOIN Author AS T3 ON T3.author_id  =  T2.author_id WHERE T1.year  =  2009 GROUP BY T2.author_id ORDER BY count(*) DESC LIMIT 1

select t3 . name from paper as t1 join author_list as t2 on t1 . paper_id = t2 . paper_id join author as t3 on t3 . author_id = t2 . author_id where t1 . year = value group by t2 . author_id order by count ( * ) desc limit value

Which author had the most papers in the year 2009?

Which author had the most papers in the year 2009 ?


Question: SELECT count(*) FROM Citation WHERE paper_id  =  "D12-1027"

SELECT count ( * ) FROM Citation WHERE paper_id = `` D12-1027 ''

select count ( * ) from citation where paper_id = value

How many reference papers does paper with id D12-1027 have?

How many reference papers does paper with id D12-1027 have ?


Question: SELECT id FROM goods WHERE food  =  "Cookie" AND price  <  (SELECT min(price) FROM goods WHERE food  =  'Croissant')

SELECT id FROM goods WHERE food = `` Cookie '' AND price < ( SELECT min ( price ) FROM goods WHERE food = 'Croissant ' )

select id from goods where food = value and price < ( select min ( price ) from goods where food = value )

Give the ids of cookes that are cheaper than any croissant.

Give the ids of cookes that are cheaper than any croissant .


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

What are the locations that have works painted before 1885 and after 1930?

What are the locations that have works painted before 1885 and after 1930 ?


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

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

select count ( distinct t1 . teacher_id ) from teachers as t1 join classes as t2 on t1 . teacher_id = t2 . teacher_id where t2 . student_id not in ( select student_id from achievements )

How many teachers have taught a student who has not won any achievements?

How many teachers have taught a student who has not won any achievements ?


Question: SELECT avg(top_speed) FROM vehicle

What is the average top speed of vehicles?

What is the average top speed of vehicles ?


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

List the customers' first name, middle initial, last name and payment methods.

List the customers ' first name , middle initial , last name and payment methods .


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

Which state does the student whose first name is Linda live in?

Which state does the student whose first name is Linda live in ?


Question: SELECT sid FROM Sailors EXCEPT SELECT sid FROM Reserves

select sid from sailors except select sid from reserves

What is the ids of sailors that haven’t reserved a boat?

What is the ids of sailors that haven’t reserved a boat ?


Question: SELECT name FROM languages WHERE name LIKE "%ish%"

SELECT name FROM languages WHERE name LIKE `` % ish % ''

select name from languages where name like value

What are the names of languages that contain the word "ish"?

What are the names of languages that contain the word `` ish '' ?


Question: SELECT avg(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  =  "George Orwell"

SELECT avg ( 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 = `` George Orwell ''

select avg ( 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

What is the average sale price of books written by George Orwell?

What is the average sale price of books written by George Orwell ?


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

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

Please list the names of races with drivers aged 26 or older participating.

Please list the names of races with drivers aged 26 or older participating .


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

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

What are the user ids of property owners who have property photos, and how many do each of them have?

What are the user ids of property owners who have property photos , and how many do each of them have ?


Question: SELECT T1.customer_id ,  T1.customer_first_name ,  T1.customer_last_name FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >  2 INTERSECT SELECT T1.customer_id ,  T1.customer_first_name ,  T1.customer_last_name FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id  =  T2.customer_id JOIN Order_items AS T3 ON T2.order_id  =  T3.order_id GROUP BY T1.customer_id HAVING count(*)  >= 3

SELECT T1.customer_id , T1.customer_first_name , T1.customer_last_name FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count ( * ) > 2 INTERSECT SELECT T1.customer_id , T1.customer_first_name , T1.customer_last_name FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id JOIN Order_items AS T3 ON T2.order_id = T3.order_id GROUP BY T1.customer_id HAVING count ( * ) > = 3

What are the ids, first and last names of the customers who have ordered more than twice and have bought at least 3 items?

What are the ids , first and last names of the customers who have ordered more than twice and have bought at least 3 items ?


Question: SELECT city1_code ,  city2_code FROM Direct_distance WHERE distance  <  1000

select city1_code , city2_code from direct_distance where distance < value

Show me the city code of two cities with a distance less than 1000.

Show me the city code of two cities with a distance less than 1000 .


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

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

What is the name, rating, and age for every sailor? And order them by rating and age.

What is the name , rating , and age for every sailor ? And order them by rating and age .


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"

Find all papers with titles and paper IDs collaborated by Stanford University and Columbia University.

Find all papers with titles and paper IDs collaborated by Stanford University and Columbia University .


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

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


Question: SELECT AVG(age) FROM Sailors WHERE rating  =  7

SELECT AVG ( age ) FROM Sailors WHERE rating = 7

select avg ( age ) from sailors where rating = value

What is the average age of sailors whose rating is 7?

What is the average age of sailors whose rating is 7 ?


Question: SELECT Driver_Name FROM driver WHERE Driver_ID NOT IN (SELECT Driver_ID FROM race)

SELECT Driver_Name FROM driver WHERE Driver_ID NOT IN ( SELECT Driver_ID FROM race )

select driver_name from driver where driver_id not in ( select driver_id from race )

List the names of drivers that do not participate in any race.

List the names of drivers that do not participate in any race .


Question: SELECT T1.meeting_id ,  T1.meeting_outcome ,  T1.meeting_type ,  T2.client_details FROM meetings AS T1 JOIN clients AS T2 ON T1.client_id  =  T2.client_id

What are the meeting ids, meeting outcomes, meeting types, and client details for all meetings?

What are the meeting ids , meeting outcomes , meeting types , and client details for all meetings ?


Question: SELECT name ,  original_artist FROM songs WHERE english_translation  =  'All the streets of love'

SELECT name , original_artist FROM songs WHERE english_translation = 'All the streets of love '

select name , original_artist from songs where english_translation = value

What are the names and original artists of the song whose English translation is 'All the streets of love'?

What are the names and original artists of the song whose English translation is 'All the streets of love ' ?


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

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

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

What are the names of every movie that is not playing at the Odeon theater?

What are the names of every movie that is not playing at the Odeon theater ?


Question: SELECT max(Rank_of_the_year) ,  min(Rank_of_the_year) FROM player

SELECT max ( Rank_of_the_year ) , min ( Rank_of_the_year ) FROM player

select max ( rank_of_the_year ) , min ( rank_of_the_year ) from player

Give the maximum and minimum rank of the year across all players.

Give the maximum and minimum rank of the year across all players .


Question: SELECT min(date_order_placed) FROM Orders UNION SELECT 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(*)  >  1

SELECT min ( date_order_placed ) FROM Orders UNION SELECT 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 ( * ) > 1

select min ( date_order_placed ) from orders union select 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 ( * ) > value

List the dates of the orders which were placed at the earliest time or have more than 1 items.

List the dates of the orders which were placed at the earliest time or have more than 1 items .


Question: SELECT AVG(age) FROM Sailors WHERE rating  =  7

SELECT AVG ( age ) FROM Sailors WHERE rating = 7

select avg ( age ) from sailors where rating = value

What is average age of all sailors who have a rating of 7?

What is average age of all sailors who have a rating of 7 ?


Question: SELECT DISTINCT bid FROM Reserves

What are the ids of all boats that are reserved by someone?

What are the ids of all boats that are reserved by someone ?


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

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

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

How many stores are there in each neighborhood?

How many stores are there in each neighborhood ?


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

What are the personal details and the address type descriptions of each student?

What are the personal details and the address type descriptions of each student ?


Question: SELECT sum(t1.sale_amount) ,  t2.name FROM book AS t1 JOIN press AS t2 ON t1.press_id  =  t2.press_id GROUP BY t1.press_id

SELECT sum ( t1.sale_amount ) , t2.name FROM book AS t1 JOIN press AS t2 ON t1.press_id = t2.press_id GROUP BY t1.press_id

What are the name and total book sale amount of each press?

What are the name and total book sale amount of each press ?


Question: SELECT avg(Rating) FROM review


Question: SELECT date ,  COUNT (DISTINCT CustomerId) FROM receipts GROUP BY date

SELECT date , COUNT ( DISTINCT CustomerId ) FROM receipts GROUP BY date

select date , count ( distinct customerid ) from receipts group by date

For each date, return how many distinct customers visited on that day.

For each date , return how many distinct customers visited on that day .


Question: SELECT COUNT(*) FROM Sailors


Question: SELECT name FROM Author WHERE author_id NOT IN (SELECT T1.author_id FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id  =  T2.paper_id WHERE T2.venue  =  "ACL")

SELECT name FROM Author WHERE author_id NOT IN ( SELECT T1.author_id FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id = T2.paper_id WHERE T2.venue = `` ACL '' )

select name from author where author_id not in ( select t1 . author_id from author_list as t1 join paper as t2 on t1 . paper_id = t2 . paper_id where t2 . venue = value )

What are the names of authors who have not published a paper in ACL?

What are the names of authors who have not published a paper in ACL ?


Question: SELECT T1.fname ,  count(*) FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID GROUP BY T2.painterID HAVING count(*)  >=  2

SELECT T1.fname , count ( * ) FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID GROUP BY T2.painterID HAVING count ( * ) > = 2

select t1 . fname , count ( * ) from artists as t1 join paintings as t2 on t1 . artistid = t2 . painterid group by t2 . painterid having count ( * ) > = value

What are the first names of all artists who have at least two paintings, and how many works did each create?

What are the first names of all artists who have at least two paintings , and how many works did each create ?


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

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

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

Which region has the largest number of buildings? Show me the capital of the region.

Which region has the largest number of buildings ? Show me the capital of the region .


Question: SELECT distance 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" AND T3.city_name  =  "Newark"

SELECT distance 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 '' AND T3.city_name = `` Newark ''

Show me the distance between Boston and Newark.

Show me the distance between Boston and Newark .


Question: SELECT T3.product_name ,  T3.price FROM cyclist AS T1 JOIN cyclists_own_bikes AS T2 ON T1.id  =  T2.cyclist_id JOIN bike AS T3 ON T2.bike_id  =  T3.id WHERE T1.name  =  'Bradley Wiggins' INTERSECT SELECT T3.product_name ,  T3.price FROM cyclist AS T1 JOIN cyclists_own_bikes AS T2 ON T1.id  =  T2.cyclist_id JOIN bike AS T3 ON T2.bike_id  =  T3.id WHERE T1.name  =  'Antonio Tauler'

select t3 . product_name , t3 . price from cyclist as t1 join cyclists_own_bikes as t2 on t1 . id = t2 . cyclist_id join bike as t3 on t2 . bike_id = t3 . id where t1 . name = value intersect select t3 . product_name , t3 . price from cyclist as t1 join cyclists_own_bikes as t2 on t1 . id = t2 . cyclist_id join bike as t3 on t2 . bike_id = t3 . id where t1 . name = value

List the name and price of the bike that is owned by both the cyclists named 'Bradley Wiggins' and the cyclist named 'Antonio Tauler'.

List the name and price of the bike that is owned by both the cyclists named 'Bradley Wiggins ' and the cyclist named 'Antonio Tauler ' .


Question: SELECT Name FROM institution ORDER BY Founded ASC

select name from institution order by founded asc

What are the names of institutions, ordered by the years in which they were founded?

What are the names of institutions , ordered by the years in which they were founded ?


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

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

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

For each analytical layer, return the analytical layer type code and the number of times it was used.

For each analytical layer , return the analytical layer type code and the number of times it was used .


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

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

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

How many meetings are there for each client id?

How many meetings are there for each client id ?


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

Give the ids for goods that have Apricot flavor and have a price lower than 5 dollars.

Give the ids for goods that have Apricot flavor and have a price lower than 5 dollars .


Question: SELECT rating FROM movies WHERE title LIKE '%Citizen%'

SELECT rating FROM movies WHERE title LIKE ' % Citizen % '

select rating from movies where title like value

Find the rating of the movie whose name includes the word ‘Citizen’.

Find the rating of the movie whose name includes the word ‘Citizen’ .


Question: SELECT order_status_code FROM Orders GROUP BY order_status_code ORDER BY count(*) LIMIT 1

SELECT order_status_code FROM Orders GROUP BY order_status_code ORDER BY count ( * ) LIMIT 1

select order_status_code from orders group by order_status_code order by count ( * ) limit value

What is the most uncommon order status ?


Question: SELECT T1.vehicle_id ,  T1.model FROM vehicle AS T1 JOIN vehicle_driver AS T2 ON T1.vehicle_id  =  T2.vehicle_id GROUP BY T2.vehicle_id HAVING count(*)  =  2 OR T1.builder  =  'Ziyang'

SELECT T1.vehicle_id , T1.model FROM vehicle AS T1 JOIN vehicle_driver AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T2.vehicle_id HAVING count ( * ) = 2 OR T1.builder = 'Ziyang '

select t1 . vehicle_id , t1 . model from vehicle as t1 join vehicle_driver as t2 on t1 . vehicle_id = t2 . vehicle_id group by t2 . vehicle_id having count ( * ) = value or t1 . builder = value

Return the ids and models of vehicles that have been driven by exactly two drivers or built by Ziyang.

Return the ids and models of vehicles that have been driven by exactly two drivers or built by Ziyang .


Question: SELECT agency_id ,  count(*) FROM Staff GROUP BY agency_id

SELECT agency_id , count ( * ) FROM Staff GROUP BY agency_id

select agency_id , count ( * ) from staff group by agency_id

Return the agency ids and number of staff in each.

Return the agency ids and number of staff in each .


Question: SELECT count(*) ,  racing_series FROM driver GROUP BY racing_series

SELECT count ( * ) , racing_series FROM driver GROUP BY racing_series

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

How many drivers have been racing in each racing series?

How many drivers have been racing in each racing series ?


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

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

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

What are the maximum and minimum enrollment of all institutions?

What are the maximum and minimum enrollment of all institutions ?


Question: SELECT T1.university_name FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id  =  T2.university_id ORDER BY T2.research_point DESC LIMIT 1

What is the university name with highest research point?

What is the university name with highest research point ?


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

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

select title from sculptures where location = value

Find the names of all sculptures located in gallery 226.

Find the names of all sculptures located in gallery 226 .


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

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

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

Find the name and website link of the channels that have more than one program.

Find the name and website link of the channels that have more than one program .


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

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

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

What is the full name of the student who lives furthest from Linda Smith?

What is the full name of the student who lives furthest from Linda Smith ?


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

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

select count ( * ) from boats where color = value


Question: SELECT Franchise FROM game GROUP BY Franchise HAVING COUNT(*)  >=  2

SELECT Franchise FROM game GROUP BY Franchise HAVING COUNT ( * ) > = 2

select franchise from game group by franchise having count ( * ) > = value

List the names of franchises that have at least two games.

List the names of franchises that have at least two games .


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'

What are the ranks and names of all majors at Augustana College?

What are the ranks and names of all majors at Augustana College ?


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

Show all the different invoice ids and statuses of the payments


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

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

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

Show all sic codes and the number of clients with each code.

Show all sic codes and the number of clients with each code .


Question: SELECT Engine FROM driver GROUP BY Engine HAVING COUNT(*)  >=  2

SELECT Engine FROM driver GROUP BY Engine HAVING COUNT ( * ) > = 2

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

List the types of engines that are used by at least two drivers.

List the types of engines that are used by at least two drivers .


Question: SELECT count(*) FROM Client


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

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

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

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

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


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

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

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

Which nationality does the most customers have?

Which nationality does the most customers have ?


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

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

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

What is the product id and product name for the cheapest Hardware type product?

What is the product id and product name for the cheapest Hardware type product ?


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

Return the agency id and details for the agency with the greatest number of clients.

Return the agency id and details for the agency with the greatest number of clients .


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

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

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

Return the names of pilots who are older than any pilot who has flown Piper Cub, ordered alphabetically.

Return the names of pilots who are older than any pilot who has flown Piper Cub , ordered alphabetically .


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

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

What are the ids of all orders and the corresponding client names?

What are the ids of all orders and the corresponding client names ?


Question: SELECT count(*) ,  plane_name FROM pilotskills GROUP BY plane_name HAVING avg(age)  <  35

SELECT count ( * ) , plane_name FROM pilotskills GROUP BY plane_name HAVING avg ( age ) < 35

select count ( * ) , plane_name from pilotskills group by plane_name having avg ( age ) < value

What are the different plane names of planes with an average pilot age of below 35, and how many pilots have flown each of them?

What are the different plane names of planes with an average pilot age of below 35 , and how many pilots have flown each of them ?


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

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

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

What are the names of all employees who don't have clearance on Mars?

What are the names of all employees who do n't have clearance on Mars ?


Question: SELECT T1.FirstName ,  T1.LastName FROM customers AS T1 JOIN receipts AS T2 ON T1.id  =  T2.CustomerId ORDER BY T2.date LIMIT 1

select t1 . firstname , t1 . lastname from customers as t1 join receipts as t2 on t1 . id = t2 . customerid order by t2 . date limit value

Find the first name and last name of a customer who visited on the earliest date.

Find the first name and last name of a customer who visited on the earliest date .


Question: SELECT date_of_loan FROM Student_Loans ORDER BY date_of_loan ASC LIMIT 1

select date_of_loan from student_loans order by date_of_loan asc limit value


Question: SELECT T1.title FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn  =  T2.isbn JOIN Author AS T3 ON T2.Author  =  T3.idAuthor WHERE T3.name  =  "George Orwell" ORDER BY T1.saleprice LIMIT 1

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

What is the title of the book written by George Orwell that has the lowest sale price?

What is the title of the book written by George Orwell that has the lowest sale price ?


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 )

What are the names of players who do not play any games?

What are the names of players who do not play any games ?


Question: SELECT T3.name FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid  =  T2.sid JOIN Boats AS T3 ON T3.bid  =  T2.bid WHERE T1.age BETWEEN 20 AND 30

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

Find the names of boats booked by sailors whose age is between 20 and 30.

Find the names of boats booked by sailors whose age is between 20 and 30 .


Question: SELECT POSITION FROM Employee WHERE Name  =  "Amy Wong";

SELECT POSITION FROM Employee WHERE Name = `` Amy Wong '' ;

select position from employee where name = value


Question: SELECT DISTINCT title FROM paintings ORDER BY title

select distinct title from paintings order by title

What is the name of every distinct painting in alphabetical order?

What is the name of every distinct painting in alphabetical order ?


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

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

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

How many works are there in each medium?

How many works are there in each medium ?


Question: SELECT meeting_outcome ,  purpose_of_meeting FROM meetings

select meeting_outcome , purpose_of_meeting from meetings

Show all meeting outcomes and purposes .


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

Find the value of the most expensive boxes saved in each warehouse location.

Find the value of the most expensive boxes saved in each warehouse location .


Question: SELECT t1.model FROM headphone AS t1 JOIN stock AS t2 ON t1.headphone_id  =  t2.headphone_id GROUP BY t1.model ORDER BY sum(t2.quantity) DESC LIMIT 1

SELECT t1.model FROM headphone AS t1 JOIN stock AS t2 ON t1.headphone_id = t2.headphone_id GROUP BY t1.model ORDER BY sum ( t2.quantity ) DESC LIMIT 1

select t1 . model from headphone as t1 join stock as t2 on t1 . headphone_id = t2 . headphone_id group by t1 . model order by sum ( t2 . quantity ) desc limit value

Which headphone model has the largest quantity of stock across all the stores?

Which headphone model has the largest quantity of stock across all the stores ?


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

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

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

What are the names of authors who have exactly 1 paper?

What are the names of authors who have exactly 1 paper ?


Question: select t4.name from author_list as t1 join author_list as t2 on t1.paper_id  =  t2.paper_id and t1.author_id != t2.author_id join author as t3 on t1.author_id  =  t3.author_id join author as t4 on t2.author_id  =  t4.author_id where t3.name = "mckeown ,  kathleen" group by t2.author_id order by count(*) desc limit 1

Who has the most papers co-authored with Mckeown , Kathleen ?


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

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

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

What are the different plane names, and what are the names of the oldest pilot who has each, ordered by plane name?

What are the different plane names , and what are the names of the oldest pilot who has each , ordered by plane name ?


Question: SELECT count(*) FROM Customer_orders


Question: SELECT invoice_status FROM Invoices GROUP BY invoice_status ORDER BY count(*) DESC LIMIT 1

SELECT invoice_status FROM Invoices GROUP BY invoice_status ORDER BY count ( * ) DESC LIMIT 1

select invoice_status from invoices group by invoice_status order by count ( * ) desc limit value

What is the invoice status code with most number of invoices.

What is the invoice status code with most number of invoices .


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

Show all conference names which the staff from Canada attends.

Show all conference names which the staff from Canada attends .


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

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

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

What are the last names and ids of users who have searched two or fewer times, and own two or more properties?

What are the last names and ids of users who have searched two or fewer times , and own two or more properties ?


Question: SELECT payment_id ,  invoice_id ,  payment_details FROM Payments

List all payment ids and its corresponding invoice ids and details.

List all payment ids and its corresponding invoice ids and details .


Question: SELECT T2.Collection_Subset_ID ,  T1.Collection_Subset_Name ,  count(*) FROM Collection_Subsets AS T1 JOIN Collection_Subset_Members AS T2 ON T1.Collection_Subset_ID =  T2.Collection_Subset_ID GROUP BY T2.Collection_Subset_ID;

List collection subset id, name and number of collections in each subset.

List collection subset id , name and number of collections in each subset .


Question: SELECT count(DISTINCT room_size) FROM Rooms;

SELECT count ( DISTINCT room_size ) FROM Rooms ;

select count ( distinct room_size ) from rooms

Return the number of different room sizes.

Return the number of different room sizes .


Question: SELECT T1.bio_data ,  T1.student_id FROM Students AS T1 JOIN Classes AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING count(*)  >=  2 UNION SELECT T1.bio_data ,  T1.student_id FROM Students AS T1 JOIN Detention AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING count(*)  <  2

SELECT T1.bio_data , T1.student_id FROM Students AS T1 JOIN Classes AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count ( * ) > = 2 UNION SELECT T1.bio_data , T1.student_id FROM Students AS T1 JOIN Detention AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count ( * ) < 2

select t1 . bio_data , t1 . student_id from students as t1 join classes as t2 on t1 . student_id = t2 . student_id group by t1 . student_id having count ( * ) > = value union select t1 . bio_data , t1 . student_id from students as t1 join detention as t2 on t1 . student_id = t2 . student_id group by t1 . student_id having count ( * ) < value

What are the biographical data and student id of the students who either took two or more classes and or have less than two detentions?

What are the biographical data and student id of the students who either took two or more classes and or have less than two detentions ?


Question: SELECT count(*) FROM Payments


Question: SELECT name ,  points FROM spokesman WHERE age  <  40

select name , points from spokesman where age < value

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

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


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

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

Which locations have paintings created before 1885 or after 1930?

Which locations have paintings created before 1885 or after 1930 ?


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

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

What are the first and last names of the artists who did not sculpt but could paint.

What are the first and last names of the artists who did not sculpt but could paint .


Question: select t1.deathyear from artists as t1 join paintings as t2 on t1.artistid  =  t2.painterid group by t2.painterid having count(*)  <  4

select t1.deathyear from artists as t1 join paintings as t2 on t1.artistid = t2.painterid group by t2.painterid having count ( * ) < 4

select t1 . deathyear from artists as t1 join paintings as t2 on t1 . artistid = t2 . painterid group by t2 . painterid having count ( * ) < value

When did each artist who created less than 4 paintings die ?


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

What are the shipment ids for the planet Mars?

What are the shipment ids for the planet Mars ?


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 WHERE T2.Document_Subset_Name = "Best for 2000";

For the document subset named 'Best for 2000', what are the document ids in that subset?

For the document subset named 'Best for 2000 ' , what are the document ids in that subset ?


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

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

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

Give the id and flavor of the most expensive cake.

Give the id and flavor of the most expensive cake .


Question: SELECT Name FROM institution ORDER BY Founded ASC

select name from institution order by founded asc

List the names of institutions in ascending order of founded year.

List the names of institutions in ascending order of founded year .


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

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

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

List the distinct ids of all customers who bought a cake with lemon flavor?

List the distinct ids of all customers who bought a cake with lemon flavor ?


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

What are the different descriptions of all the parent documents?

What are the different descriptions of all the parent documents ?


Question: select service_details from services except select t2.service_details from customers_and_services as t1 join services as t2 on t1.service_id  =  t2.service_id

Which service ( s ) has never been used by any customer ? List their details .


Question: SELECT count(DISTINCT heat) FROM cyclist

SELECT count ( DISTINCT heat ) FROM cyclist

select count ( distinct heat ) from cyclist

How many different levels of heat are there for the cyclists?

How many different levels of heat are there for the cyclists ?


Question: SELECT T1.bio_data ,  T1.student_id FROM Students AS T1 JOIN Classes AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING count(*)  >=  2 UNION SELECT T1.bio_data ,  T1.student_id FROM Students AS T1 JOIN Detention AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING count(*)  <  2

SELECT T1.bio_data , T1.student_id FROM Students AS T1 JOIN Classes AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count ( * ) > = 2 UNION SELECT T1.bio_data , T1.student_id FROM Students AS T1 JOIN Detention AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count ( * ) < 2

select t1 . bio_data , t1 . student_id from students as t1 join classes as t2 on t1 . student_id = t2 . student_id group by t1 . student_id having count ( * ) > = value union select t1 . bio_data , t1 . student_id from students as t1 join detention as t2 on t1 . student_id = t2 . student_id group by t1 . student_id having count ( * ) < value

List the biographical data and student id for the students who take 2 or more classes and the students who have less than 2 detentions.

List the biographical data and student id for the students who take 2 or more classes and the students who have less than 2 detentions .


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

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

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

Which authors have published more than 1 book according to the database? Give me their names.

Which authors have published more than 1 book according to the database ? Give me their names .


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

SELECT T3.name , 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 GROUP BY T2.author_id ORDER BY count ( * ) DESC LIMIT 1

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

Find the name and number of citations of the author who has most citations among all authors?

Find the name and number of citations of the author who has most citations among all authors ?


Question: SELECT count(*) FROM author WHERE age  <  30

SELECT count ( * ) FROM author WHERE age < 30

select count ( * ) from author where age < value

Count the number of authors of age below 30.

Count the number of authors of age below 30 .


Question: SELECT 	count(DISTINCT T1.pilot_name) FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name  =  T2.plane_name WHERE T2.location  =  'Chicago'

SELECT count ( DISTINCT T1.pilot_name ) FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name WHERE T2.location = 'Chicago '

select count ( distinct t1 . pilot_name ) from pilotskills as t1 join hangar as t2 on t1 . plane_name = t2 . plane_name where t2 . location = value

Count the number of pilots who have planes in Chicago.

Count the number of pilots who have planes in Chicago .


Question: SELECT vehicle_id FROM vehicle_driver GROUP BY vehicle_id ORDER BY count(*) ASC LIMIT 1

SELECT vehicle_id FROM vehicle_driver GROUP BY vehicle_id ORDER BY count ( * ) ASC LIMIT 1

select vehicle_id from vehicle_driver group by vehicle_id order by count ( * ) asc limit value

What is the id of the vehicle driven for the least times for the vehicles ever used?

What is the id of the vehicle driven for the least times for the vehicles ever used ?


Question: SELECT avg(T2.age) FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID  =  T2.Country WHERE T1.Official_native_language  =  "English"

SELECT avg ( T2.age ) FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID = T2.Country WHERE T1.Official_native_language = `` English ''

select avg ( t2 . age ) from country as t1 join driver as t2 on t1 . country_id = t2 . country where t1 . official_native_language = value

Find the average age of the drivers from the countries that use "English" as official native language.

Find the average age of the drivers from the countries that use `` English '' as official native language .


Question: SELECT Last_Name FROM Students WHERE Gender_MFU  =  "F" OR Gender_MFU  =  "M"

SELECT Last_Name FROM Students WHERE Gender_MFU = `` F '' OR Gender_MFU = `` M ''

select last_name from students where gender_mfu = value or gender_mfu = value

Which students identify their gender as "F" or "M"? Give me their last names.

Which students identify their gender as `` F '' or `` M '' ? Give me their last names .


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

How many papers has each affiliation published?

How many papers has each affiliation published ?


Question: SELECT CONTENTS FROM boxes ORDER BY value DESC LIMIT 1

select contents from boxes order by value desc limit value

What is the content with the greatest value across all boxes?

What is the content with the greatest value across all boxes ?


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

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

What is the description of the most common property type? List the description and code.

What is the description of the most common property type ? List the description and code .


Question: SELECT paintingID FROM paintings WHERE YEAR  <   (SELECT min(YEAR) FROM paintings WHERE LOCATION  =  'Gallery 240')

SELECT paintingID FROM paintings WHERE YEAR < ( SELECT min ( YEAR ) FROM paintings WHERE LOCATION = 'Gallery 240 ' )

select paintingid from paintings where year < ( select min ( year ) from paintings where location = value )

What are the ids of the paintings created before all of the paintings in gallery 240?

What are the ids of the paintings created before all of the paintings in gallery 240 ?


Question: SELECT staff_id ,  staff_details FROM Staff

select staff_id , staff_details from staff

Show the ids and details for all staff .


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

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

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

For every home conference, how many universities attended that conference?

For every home conference , how many universities attended that conference ?


Question: SELECT T1.conference_name FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id  =  T2.conference_id GROUP BY T2.conference_id ORDER BY count(*) DESC LIMIT 2

SELECT T1.conference_name FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id = T2.conference_id GROUP BY T2.conference_id ORDER BY count ( * ) DESC LIMIT 2

select t1 . conference_name from conference as t1 join conference_participation as t2 on t1 . conference_id = t2 . conference_id group by t2 . conference_id order by count ( * ) desc limit value

Find the name of the conferences that have the top 2 most number of attendants.

Find the name of the conferences that have the top 2 most number of attendants .


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

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

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

How many cities are there in each country?

How many cities are there in each country ?


Question: SELECT T2.location FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name  =  T2.plane_name WHERE T1.age  =  (SELECT min(age) FROM pilotskills)

SELECT T2.location FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name WHERE T1.age = ( SELECT min ( age ) FROM pilotskills )

select t2 . location from pilotskills as t1 join hangar as t2 on t1 . plane_name = t2 . plane_name where t1 . age = ( select min ( age ) from pilotskills )

What is the location of the plane that was flown by the pilot with the lowest age?

What is the location of the plane that was flown by the pilot with the lowest age ?


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 colors , descriptions , and sizes for all products that are not at the maximum price ?


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'

What are the names of all universities that have both Accounting and Urban Education majors?

What are the names of all universities that have both Accounting and Urban Education majors ?


Question: SELECT DISTINCT rating FROM movies

Show all the distinct ratings in the database.

Show all the distinct ratings in the database .


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

SELECT bid , count ( * ) FROM Reserves GROUP BY bid

select bid , count ( * ) from reserves group by bid

Find the number of reservations for each boat.

Find the number of reservations for each boat .


Question: SELECT DISTINCT id FROM goods ORDER BY id

select distinct id from goods order by id

Return the ordered list of all good ids.

Return the ordered list of all good ids .


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

What are the names of all the clients, and the total amount of books ordered by each?

What are the names of all the clients , and the total amount of books ordered by each ?


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

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

select driver_name from driver where constructor ! = value

What are the names od drivers who did not have the constructor Bugatti?

What are the names od drivers who did not have the constructor Bugatti ?


Question: SELECT amount_of_loan ,  date_of_loan FROM Student_Loans WHERE student_id IN ( SELECT student_id FROM Achievements GROUP BY student_id HAVING count(*)  >=  2 )

SELECT amount_of_loan , date_of_loan FROM Student_Loans WHERE student_id IN ( SELECT student_id FROM Achievements GROUP BY student_id HAVING count ( * ) > = 2 )

select amount_of_loan , date_of_loan from student_loans where student_id in ( select student_id from achievements group by student_id having count ( * ) > = value )

List the amount and date of loan for the students who have two or more achievements.

List the amount and date of loan for the students who have two or more achievements .


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

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

select name from club where manufacturer ! = value

What are the names of clubs who do not have the manufacturer Nike?

What are the names of clubs who do not have the manufacturer Nike ?


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

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

List the names of institutions with at least one championship.

List the names of institutions with at least one championship .


Question: SELECT Country FROM player WHERE Wins_count  >  2 ORDER BY Earnings DESC LIMIT 1

select country from player where wins_count > value order by earnings desc limit value

What is the country of the player with the highest earnings among players that have more than 2 win counts?

What is the country of the player with the highest earnings among players that have more than 2 win counts ?


Question: SELECT DISTINCT name FROM Sailors WHERE age  >  (SELECT min(age) FROM Sailors WHERE rating  >  7);

SELECT DISTINCT name FROM Sailors WHERE age > ( SELECT min ( age ) FROM Sailors WHERE rating > 7 ) ;

select distinct name from sailors where age > ( select min ( age ) from sailors where rating > value )

Return the unique names of sailors who are older than any sailors whose rating is larger than 7.

Return the unique names of sailors who are older than any sailors whose rating is larger than 7 .


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

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

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

What are the states with more than 5 students?

What are the states with more than 5 students ?


Question: SELECT date_from ,  date_to FROM Students_Addresses WHERE student_id IN ( SELECT student_id FROM Transcripts GROUP BY student_id HAVING count(*)  =  2 )

SELECT date_from , date_to FROM Students_Addresses WHERE student_id IN ( SELECT student_id FROM Transcripts GROUP BY student_id HAVING count ( * ) = 2 )

select date_from , date_to from students_addresses where student_id in ( select student_id from transcripts group by student_id having count ( * ) = value )

List the start time and the end time of the students' addresses for the students who have 2 transcripts.

List the start time and the end time of the students ' addresses for the students who have 2 transcripts .


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

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

What are the name and popularity of participants who have sung a song both in 'Croatian' language and in 'English' language?

What are the name and popularity of participants who have sung a song both in 'Croatian ' language and in 'English ' language ?


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

What is the cheapest good with cheese flavor?

What is the cheapest good with cheese flavor ?


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

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

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

What is the height and id of the tallest painting created before 1900?

What is the height and id of the tallest painting created before 1900 ?


Question: select title ,  location from paintings order by year limit 1

select title , location from paintings order by year limit value

What is the title and location of the oldest painting ?


Question: select document_object_id , count(*) from document_subset_members group by document_object_id order by count(*) asc limit 1;

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

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

What is the document object id with the least number of documents ?


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

select platform_name , platform_id from platform where download_rank = value

Return the names and ids of all platforms with the download rank of 1.

Return the names and ids of all platforms with the download rank of 1 .


Question: SELECT Name FROM player ORDER BY Earnings DESC LIMIT 1

select name from player order by earnings desc limit value

Return the name of the player who earns the most money.

Return the name of the player who earns the most money .


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

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

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

Return the names of pilots who are younger than average, ordered by age ascending.

Return the names of pilots who are younger than average , ordered by age ascending .


Question: SELECT Manager ,  Captain FROM club

What are the managers and captains of clubs?

What are the managers and captains of clubs ?


Question: SELECT Name FROM club ORDER BY Name ASC

What are the names of clubs, ordered alphabetically?

What are the names of clubs , ordered alphabetically ?


Question: SELECT name FROM vehicles ORDER BY model_year DESC

select name from vehicles order by model_year desc

Show names for all vehicles in descending order of model year.

Show names for all vehicles in descending order of model year .


Question: SELECT home_conference FROM University GROUP BY home_conference HAVING avg(enrollment)  >  2000

SELECT home_conference FROM University GROUP BY home_conference HAVING avg ( enrollment ) > 2000

select home_conference from university group by home_conference having avg ( enrollment ) > value

What are the home conferences that have an average university enrollment above 2000?

What are the home conferences that have an average university enrollment above 2000 ?


Question: SELECT T1.name ,  T3.name FROM countries AS T1 JOIN official_languages AS T2 ON T1.id  =  T2.country_id JOIN languages AS T3 ON T2.language_id  =  T3.id

select t1 . name , t3 . name from countries as t1 join official_languages as t2 on t1 . id = t2 . country_id join languages as t3 on t2 . language_id = t3 . id

Show the names of countries and their official languages.

Show the names of countries and their official languages .


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

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

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

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

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


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

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

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


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

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

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

Show the vehicle name with a descending order of total hours of renting.

Show the vehicle name with a descending order of total hours of renting .


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

Return the ids and details of staff who have attended at least 1 meeting and have an s in their staff details?

Return the ids and details of staff who have attended at least 1 meeting and have an s in their staff details ?


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

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

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

What is the payment method code used by most number of customers?

What is the payment method code used by most number of customers ?


Question: SELECT Name FROM institution ORDER BY Name ASC

select name from institution order by name asc

List the names of institutions in ascending alphabetical order.

List the names of institutions in ascending alphabetical order .


Question: SELECT title ,  LOCATION FROM paintings

List the title and location of all paintings.

List the title and location of all paintings .


Question: SELECT t3.name FROM spokesman AS t1 JOIN spokesman_district AS t2 ON t1.Spokesman_ID  =  t2.Spokesman_ID JOIN district AS t3 ON t3.district_id  =  t2.district_id WHERE t1.rank_position  =  1 INTERSECT SELECT t3.name FROM spokesman AS t1 JOIN spokesman_district AS t2 ON t1.Spokesman_ID  =  t2.Spokesman_ID JOIN district AS t3 ON t3.district_id  =  t2.district_id WHERE t1.rank_position  =  2

Find the names of the districts which have had both spokesman with rank position 1 and 2.

Find the names of the districts which have had both spokesman with rank position 1 and 2 .


Question: SELECT T1.University_Name ,  T2.Citation_point FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id  =  T2.university_id ORDER BY T2.Reputation_point DESC LIMIT 3

Find the name and Citation point of the universities whose reputation points are top 3 and above.

Find the name and Citation point of the universities whose reputation points are top 3 and above .


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

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

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

Select the codes of all the boxes located in Chicago.

Select the codes of all the boxes located in Chicago .


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

What are the titles of games that have platforms in the market districts of Asia or the USA?

What are the titles of games that have platforms in the market districts of Asia or the USA ?


Question: SELECT T1.vehicle_id ,  T1.model FROM vehicle AS T1 JOIN vehicle_driver AS T2 ON T1.vehicle_id  =  T2.vehicle_id GROUP BY T2.vehicle_id HAVING count(*)  =  2 OR T1.builder  =  'Ziyang'

SELECT T1.vehicle_id , T1.model FROM vehicle AS T1 JOIN vehicle_driver AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T2.vehicle_id HAVING count ( * ) = 2 OR T1.builder = 'Ziyang '

select t1 . vehicle_id , t1 . model from vehicle as t1 join vehicle_driver as t2 on t1 . vehicle_id = t2 . vehicle_id group by t2 . vehicle_id having count ( * ) = value or t1 . builder = value

What are the vehicle ids and models of the vehicle which have been driven by two drivers or been manufactured by 'Ziyang'.

What are the vehicle ids and models of the vehicle which have been driven by two drivers or been manufactured by 'Ziyang ' .


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

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

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

Which employees do not have clearance in Mars? List employee's name.

Which employees do not have clearance in Mars ? List employee 's name .


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

select deathyear - birthyear from artists order by deathyear - birthyear limit value

How old is the artist who lived the shortest life?

How old is the artist who lived the shortest life ?


Question: SELECT Station_name FROM city_channel WHERE Affiliation != "ABC"

SELECT Station_name FROM city_channel WHERE Affiliation ! = `` ABC ''

select station_name from city_channel where affiliation ! = value

List the station names of city channels whose affiliation is not "ABC".

List the station names of city channels whose affiliation is not `` ABC '' .


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

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

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

Show names of clubs in descending order of average earnings of players belonging.

Show names of clubs in descending order of average earnings of players belonging .


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

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

select count ( distinct t1 . teacher_id ) from teachers as t1 join classes as t2 on t1 . teacher_id = t2 . teacher_id where t2 . student_id not in ( select student_id from achievements )

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

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


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

SELECT date_registered FROM Users WHERE login_name = 'ratione ' ;

select date_registered from users where login_name = value

When did the user with login name ratione register?

When did the user with login name ratione register ?


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

SELECT count ( plane_name ) FROM pilotskills WHERE age > 40

select count ( plane_name ) from pilotskills where age > value

How many planes are controlled by the pilots whose age is older than 40?

How many planes are controlled by the pilots whose age is older than 40 ?


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

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

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

How many games are there from each Franchise?

How many games are there from each Franchise ?


Question: SELECT name FROM press ORDER BY Year_Profits_billion DESC

select name from press order by year_profits_billion desc

Sorted all the press by year profits in descending order, and return press names.

Sorted all the press by year profits in descending order , and return press names .


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

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

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

What is the name of the most popular plane?

What is the name of the most popular plane ?


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

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

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

Find all receipts in which either apple flavor pie was bought or customer id 12 shopped.

Find all receipts in which either apple flavor pie was bought or customer id 12 shopped .


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

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

What is the title of the book with the highest rank in the review?

What is the title of the book with the highest rank in the review ?


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

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

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

What is the cheapest cookie and its flavor?

What is the cheapest cookie and its flavor ?


Question: SELECT next_process_id ,  process_name ,  process_description FROM Business_processes WHERE process_id  =  9

Show the next process id, process name, process description for process with id 9.

Show the next process id , process name , process description for process with id 9 .


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

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

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

Find the most common result in the behavioral monitoring details. What are the count and the details of this result?

Find the most common result in the behavioral monitoring details . What are the count and the details of this result ?


Question: SELECT count(*) FROM Paper


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

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

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

Find the number of drivers whose points are greater than 150 for each make.

Find the number of drivers whose points are greater than 150 for each make .


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 )

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

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


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

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

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

What is the birth year of the artist who created a painting in 1884 that is on canvas?

What is the birth year of the artist who created a painting in 1884 that is on canvas ?


Question: select t4.name from author_list as t1 join author_list as t2 on t1.paper_id  =  t2.paper_id and t1.author_id != t2.author_id join author as t3 on t1.author_id  =  t3.author_id join author as t4 on t2.author_id  =  t4.author_id where t3.name = "mckeown ,  kathleen" group by t2.author_id order by count(*) desc limit 1

What is the name of the author who has co-authored the most papers with Mckeown , Kathleen ?


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

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

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

Calculate total weight of package shipped in each planet . show the name of each planet .


Question: SELECT t2.name FROM program AS t1 JOIN director AS t2 ON t1.director_id  =  t2.director_id GROUP BY t1.director_id ORDER BY count(*) DESC LIMIT 1

SELECT t2.name FROM program AS t1 JOIN director AS t2 ON t1.director_id = t2.director_id GROUP BY t1.director_id ORDER BY count ( * ) DESC LIMIT 1

select t2 . name from program as t1 join director as t2 on t1 . director_id = t2 . director_id group by t1 . director_id order by count ( * ) desc limit value

Which director is in charge of the most programs?

Which director is in charge of the most programs ?


Question: SELECT name ,  nation ,  RESULT FROM cyclist EXCEPT SELECT T1.name ,  T1.nation ,  T1.result FROM cyclist AS T1 JOIN cyclists_own_bikes AS T2 ON T1.id  =  T2.cyclist_id

select name , nation , result from cyclist except select t1 . name , t1 . nation , t1 . result from cyclist as t1 join cyclists_own_bikes as t2 on t1 . id = t2 . cyclist_id

Show the name, nation and result for the cyclists who did not purchase any racing bike.

Show the name , nation and result for the cyclists who did not purchase any racing bike .


Question: SELECT pilot_name FROM pilotskills WHERE plane_name  =  'Piper Cub' ORDER BY age LIMIT 1

SELECT pilot_name FROM pilotskills WHERE plane_name = 'Piper Cub ' ORDER BY age LIMIT 1

select pilot_name from pilotskills where plane_name = value order by age limit value

Who is the youngest pilot to fly the plane Piper Cub?

Who is the youngest pilot to fly the plane Piper Cub ?


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

What are the names of players from the club managed by Sam Allardyce?

What are the names of players from the club managed by Sam Allardyce ?