Question: SELECT T1.teacher_details ,  T1.teacher_id FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id  =  T2.teacher_id GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 1

SELECT T1.teacher_details , T1.teacher_id FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY count ( * ) DESC LIMIT 1

select t1 . teacher_details , t1 . teacher_id from teachers as t1 join classes as t2 on t1 . teacher_id = t2 . teacher_id group by t1 . teacher_id order by count ( * ) desc limit value

What are the detail and id of the teacher who teaches the largest number of courses?

What are the detail and id of the teacher who teaches the largest number of courses ?


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

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

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

Show agency ids and the number of clients for each agency.

Show agency ids and the number of clients for each agency .


Question: SELECT max(search_datetime) FROM User_Searches;

SELECT max ( search_datetime ) FROM User_Searches ;

select max ( search_datetime ) from user_searches

What was the time of the most recent search?

What was the time of the most recent search ?


Question: SELECT count(*) FROM Staff_in_processes WHERE document_id  =  0 AND process_id  =  9

SELECT count ( * ) FROM Staff_in_processes WHERE document_id = 0 AND process_id = 9

select count ( * ) from staff_in_processes where document_id = value and process_id = value

How many staff are the document with id 0 and process with id 9.

How many staff are the document with id 0 and process with id 9 .


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

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

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

Show different nationalities of customers, along with the number of customers of each nationality.

Show different nationalities of customers , along with the number of customers of each nationality .


Question: SELECT count(*) FROM Author


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

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

Find the name of the sailors who reserved boat with id 103.

Find the name of the sailors who reserved boat with id 103 .


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

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

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

Find all different contents stored in New York.

Find all different contents stored in New York .


Question: SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN Conference AS T3 ON T1.staff_id  =  T2.staff_id AND T2.conference_id  =  T3.conference_id WHERE T3.Conference_name  =  'ACL' INTERSECT SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN conference AS T3 ON T1.staff_id  =  T2.staff_id AND T2.conference_id  =  T3.conference_id WHERE T3.Conference_name  =  'Naccl'

What are the names of everbody who has participated in both the ACL and NACCL conferences?

What are the names of everbody who has participated in both the ACL and NACCL conferences ?


Question: SELECT T1.deathYear FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID GROUP BY T2.painterID HAVING count(*)  <=  3

SELECT T1.deathYear FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID GROUP BY T2.painterID HAVING count ( * ) < = 3

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

Find the death year of all artists who have at most 3 paintings?

Find the death year of all artists who have at most 3 paintings ?


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

What are the names of institutions, ordered descending by their number of championships?

What are the names of institutions , ordered descending by their number of championships ?


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

Count the number of collaborators that Mckeown , Kathleen has had .


Question: SELECT sum(capacity) ,  avg(capacity) ,  max(capacity) ,  LOCATION FROM warehouses GROUP BY LOCATION

SELECT sum ( capacity ) , avg ( capacity ) , max ( capacity ) , LOCATION FROM warehouses GROUP BY LOCATION

select sum ( capacity ) , avg ( capacity ) , max ( capacity ) , location from warehouses group by location

Find the total, average, and maximum capacity for different locations.

Find the total , average , and maximum capacity for different locations .


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

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

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

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

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


Question: SELECT T2.Name FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Recipient  =  T2.AccountNumber ORDER BY T1.Weight DESC LIMIT 1

select t2 . name from package as t1 join client as t2 on t1 . recipient = t2 . accountnumber order by t1 . weight desc limit value

What is the name of the client who received the heaviest package?

What is the name of the client who received the heaviest package ?


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 )

What are the titles of books with sale prices above the average sale price across all books?

What are the titles of books with sale prices above the average sale price across all books ?


Question: SELECT Affiliation FROM institution GROUP BY Affiliation ORDER BY COUNT(*) DESC LIMIT 1

SELECT Affiliation FROM institution GROUP BY Affiliation ORDER BY COUNT ( * ) DESC LIMIT 1

select affiliation from institution group by affiliation order by count ( * ) desc limit value

What is the most common type of affiliation for institutions?

What is the most common type of affiliation for institutions ?


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

SELECT Parent_Document_Object_ID FROM Document_Objects WHERE OWNER = 'Marlin '

select parent_document_object_id from document_objects where owner = value

What is the parent document of document owned by Marlin? List the document id.

What is the parent document of document owned by Marlin ? List the document id .


Question: SELECT T1.first_name FROM Users AS T1 JOIN Properties AS T2 ON T2.owner_user_id  =  T1.User_id GROUP BY T1.User_id ORDER BY count(*) DESC LIMIT 1;

SELECT T1.first_name FROM Users AS T1 JOIN Properties AS T2 ON T2.owner_user_id = T1.User_id GROUP BY T1.User_id ORDER BY count ( * ) DESC LIMIT 1 ;

select t1 . first_name from users as t1 join properties as t2 on t2 . owner_user_id = t1 . user_id group by t1 . user_id order by count ( * ) desc limit value

What is the first name of the user who owns the greatest number of properties?

What is the first name of the user who owns the greatest number of properties ?


Question: SELECT name ,  age FROM customers ORDER BY membership_credit DESC LIMIT 1

select name , age from customers order by membership_credit desc limit value

Show the name and age of the customer with maximum membership credit.

Show the name and age of the customer with maximum membership credit .


Question: SELECT T1.state FROM City AS T1 JOIN Student AS T2 ON T1.city_code  =  T2.city_code GROUP BY T1.state ORDER BY count(*) DESC LIMIT 1

SELECT T1.state FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code GROUP BY T1.state ORDER BY count ( * ) DESC LIMIT 1

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

Give the state that has the most students.

Give the state that has the most students .


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

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

Show the nations that have both customers with card credit smaller than 50 and customers with card credit bigger than 75.

Show the nations that have both customers with card credit smaller than 50 and customers with card credit bigger than 75 .


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

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

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

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

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


Question: SELECT DISTINCT T1.Developers FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID  =  T2.Game_ID JOIN player AS T3 ON T2.Player_ID  =  T3.Player_ID WHERE T3.College  =  "Auburn"

What are the different developers of games that are played by players that attend Auburn college?

What are the different developers of games that are played by players that attend Auburn college ?


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 LIKE "%Plato%"

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 LIKE `` % Plato % ''

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 like value

List titles of all books published by an author whose name contains the string 'Plato'?

List titles of all books published by an author whose name contains the string 'Plato ' ?


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

SELECT DISTINCT Entrant FROM driver WHERE Age > = 20

select distinct entrant from driver where age > = value

What are the distinct entrant types of drivers aged 20 or older?

What are the distinct entrant types of drivers aged 20 or older ?


Question: SELECT count(*) FROM book


Question: SELECT sum(capacity) FROM warehouses

What is the total capacity of all warehouses?

What is the total capacity of all warehouses ?


Question: SELECT conference_name ,  YEAR ,  LOCATION FROM conference

select conference_name , year , location from conference

What are the names, years, and locations of all conferences?

What are the names , years , and locations of all conferences ?


Question: SELECT Franchise FROM game GROUP BY Franchise ORDER BY COUNT(*) DESC LIMIT 1

SELECT Franchise FROM game GROUP BY Franchise ORDER BY COUNT ( * ) DESC LIMIT 1

select franchise from game group by franchise order by count ( * ) desc limit value

List the name of franchise that have the most number of games.

List the name of franchise that have the most number of games .


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

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

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

Return the average age of pilots for each plane name.

Return the average age of pilots for each plane name .


Question: SELECT sum(T1.Weight) FROM PACKAGE AS T1 JOIN Shipment AS T2 ON T1.Shipment = T2.ShipmentID JOIN Planet AS T3 ON T2.Planet = T3.PlanetID WHERE T3.Name = "Mars";

SELECT sum ( T1.Weight ) FROM PACKAGE AS T1 JOIN Shipment AS T2 ON T1.Shipment = T2.ShipmentID JOIN Planet AS T3 ON T2.Planet = T3.PlanetID WHERE T3.Name = `` Mars '' ;

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

Calculate total weight of package shipped on Mars.

Calculate total weight of package shipped on Mars .


Question: SELECT T1.payment_id ,  T1.payment_details FROM Payments AS T1 JOIN Invoices AS T2 ON T1.invoice_id  =  T2.invoice_id WHERE T2.invoice_status  =  'Working'

SELECT T1.payment_id , T1.payment_details FROM Payments AS T1 JOIN Invoices AS T2 ON T1.invoice_id = T2.invoice_id WHERE T2.invoice_status = 'Working '

Show all payment ids and details for invoices whose status is 'Working'.

Show all payment ids and details for invoices whose status is 'Working ' .


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

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

What are the names of all parent collections of the collection named Nice?

What are the names of all parent collections of the collection named Nice ?


Question: SELECT name FROM spokesman WHERE Spokesman_ID NOT IN (SELECT Spokesman_ID FROM spokesman_district)

SELECT name FROM spokesman WHERE Spokesman_ID NOT IN ( SELECT Spokesman_ID FROM spokesman_district )

select name from spokesman where spokesman_id not in ( select spokesman_id from spokesman_district )

Find the name of spokesmen who do not speak for any district.

Find the name of spokesmen who do not speak for any district .


Question: SELECT count(*) FROM Citation WHERE cited_paper_id  =  "A00-1002"

SELECT count ( * ) FROM Citation WHERE cited_paper_id = `` A00-1002 ''

select count ( * ) from citation where cited_paper_id = value

How many papers cite paper with id A00-1002?

How many papers cite paper with id A00-1002 ?


Question: SELECT id ,  flavor ,  food FROM goods ORDER BY price

select id , flavor , food from goods order by price

List the id, flavor and type of food of goods ordered by price.

List the id , flavor and type of food of goods ordered by price .


Question: SELECT min(room_count) FROM Properties;

SELECT min ( room_count ) FROM Properties ;

select min ( room_count ) from properties

What is the lowest room count across all the properties?

What is the lowest room count across all the properties ?


Question: SELECT count(DISTINCT T1.paper_id) FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id  =  T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id  =  T3.affiliation_id WHERE T1.year  >=  2000 AND T1.year  <=  2009 AND T3.name LIKE "Stanford University"

SELECT count ( DISTINCT T1.paper_id ) FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id = T3.affiliation_id WHERE T1.year > = 2000 AND T1.year < = 2009 AND T3.name LIKE `` Stanford University ''

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

Count the number of papers Stanford University had between 2000 and 2009.

Count the number of papers Stanford University had between 2000 and 2009 .


Question: SELECT product_id ,  product_type_code ,  product_name FROM Products

What are the ids, type codes, and names for all products?

What are the ids , type codes , and names for all products ?


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

select top_speed , power from vehicle where build_year = value

Return the top speed and power of the vehicle that was built in the year 1996.

Return the top speed and power of the vehicle that was built in the year 1996 .


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

select city_name , city_code , state , country from city

What are the names, codes, states, and countries for all cities?

What are the names , codes , states , and countries for all cities ?


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

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

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

Give the title of the paper with the most authors.

Give the title of the paper with the most authors .


Question: SELECT model FROM headphone ORDER BY price DESC LIMIT 1

select model from headphone order by price desc limit value

Find the model of the most expensive headphone.

Find the model of the most expensive headphone .


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

SELECT OWNER FROM Document_Objects WHERE Description = 'Braeden Collection '

select owner from document_objects where description = value

What are the owners of the document objects described as the 'Braeden Collection'?

What are the owners of the document objects described as the 'Braeden Collection ' ?


Question: SELECT City ,  Province FROM institution

What are the cities and provinces of institutions?

What are the cities and provinces of institutions ?


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

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

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

Give the state that has the most cities.

Give the state that has the most cities .


Question: SELECT title FROM paintings WHERE YEAR BETWEEN 1900 AND 1950 UNION SELECT title FROM sculptures WHERE YEAR BETWEEN 1900 AND 1950

select title from paintings where year between value and value union select title from sculptures where year between value and value

What are the names of  paintings and scupltures created between 1900 and 1950?

What are the names of paintings and scupltures created between 1900 and 1950 ?


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

What are the names of vehicles, sorted descending by total hours of renting?

What are the names of vehicles , sorted descending by total hours of renting ?


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

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

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


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

SELECT name FROM driver WHERE citizenship = 'United States '

select name from driver where citizenship = value

What are the names of the drivers who are citizens of the 'United States'?

What are the names of the drivers who are citizens of the 'United States ' ?


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

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

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

What are different types of affiliations of institutions and the corresponding number of institutions?

What are different types of affiliations of institutions and the corresponding number of institutions ?


Question: SELECT name FROM driver ORDER BY name

What are the names of drivers, returned in alphbetical order?

What are the names of drivers , returned in alphbetical order ?


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

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

Give the names of pilots who have planes in Austin and Boston.

Give the names of pilots who have planes in Austin and Boston .


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

What is the name and number of citations of the author with the greatest number of citations among authors?

What is the name and number of citations of the author with the greatest number of citations among authors ?


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

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

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

What are largest height and width dimensions for paintings in each year?

What are largest height and width dimensions for paintings in each year ?


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

What is the full name of the customer who visited on the earliest date?

What is the full name of the customer who visited on the earliest date ?


Question: SELECT count(DISTINCT Comments) FROM Student_Answers

SELECT count ( DISTINCT Comments ) FROM Student_Answers

select count ( distinct comments ) from student_answers

Count the number of different comments for student answers.

Count the number of different comments for student answers .


Question: SELECT date_of_transcript ,  transcript_details FROM Transcripts

select date_of_transcript , transcript_details from transcripts

List the date of the transcripts and the transcript details.

List the date of the transcripts and the transcript details .


Question: select title from book order by saleprice asc limit 1

select title from book order by saleprice asc limit value

What are the titles of books that have a sale price equal to the lowest sale price across all books ?


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

Count the number of references the paper with id D12-1027 has.

Count the number of references the paper with id D12-1027 has .


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

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

select id from goods where id like value

Give me the list of ids of all goods whose id has "APP".

Give me the list of ids of all goods whose id has `` APP '' .


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

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

select count ( * ) from goods where food = value

Count the number of types of cake this bakery sells.

Count the number of types of cake this bakery sells .


Question: SELECT T1.food ,  count(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 GROUP BY T1.food

SELECT T1.food , count ( 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 GROUP BY T1.food

select t1 . food , count ( 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 group by t1 . food

How many customers have bought each food?

How many customers have bought each food ?


Question: SELECT name FROM languages ORDER BY name ASC

select name from languages order by name asc

List the name of languages in ascending alphabetical order.

List the name of languages in ascending alphabetical order .


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

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

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

Give the average price for each food type.

Give the average price for each food type .


Question: SELECT Title FROM Movies WHERE Code NOT IN (SELECT Movie FROM MovieTheaters WHERE Movie != 'null')

SELECT Title FROM Movies WHERE Code NOT IN ( SELECT Movie FROM MovieTheaters WHERE Movie ! = 'null ' )

select title from movies where code not in ( select movie from movietheaters where movie ! = value )

What are the names of the movies not being shown in any theaters?

What are the names of the movies not being shown in any theaters ?


Question: SELECT Student_Answer_Text FROM Student_Answers WHERE Comments  =  "Normal" INTERSECT SELECT Student_Answer_Text FROM Student_Answers WHERE Comments  =  "Absent"

SELECT Student_Answer_Text FROM Student_Answers WHERE Comments = `` Normal '' INTERSECT SELECT Student_Answer_Text FROM Student_Answers WHERE Comments = `` Absent ''

select student_answer_text from student_answers where comments = value intersect select student_answer_text from student_answers where comments = value

Show the student answer texts that received both "Normal" and "Absent" as comments.

Show the student answer texts that received both `` Normal '' and `` Absent '' as comments .


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

Show the official languages spoken by at least two countries.

Show the official languages spoken by at least two countries .


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

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

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

What are all the different package numbers that Leo Wong sent or received?

What are all the different package numbers that Leo Wong sent or received ?


Question: SELECT count(*) ,  gender FROM author WHERE age  >  30 GROUP BY gender

SELECT count ( * ) , gender FROM author WHERE age > 30 GROUP BY gender

select count ( * ) , gender from author where age > value group by gender

find the number of authors who are older than 30 for each gender.

find the number of authors who are older than 30 for each gender .


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

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

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


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

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

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

Find the contents that are stored in both Chicago and New York.

Find the contents that are stored in both Chicago and New York .


Question: SELECT count(*) FROM member


Question: SELECT count(DISTINCT T1.paper_id) FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id  =  T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id  =  T3.affiliation_id WHERE T3.name LIKE "Columbia University" AND T1.year  =  2009

SELECT count ( DISTINCT T1.paper_id ) FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id = T3.affiliation_id WHERE T3.name LIKE `` Columbia University '' AND T1.year = 2009

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

Count the number of papers published by Columbia University in 2009.

Count the number of papers published by Columbia University in 2009 .


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

select t1 . title from book as t1 join review as t2 on t1 . book_id = t2 . book_id order by t2 . rating asc

List the titles of books in ascending order of the ratings in review?

List the titles of books in ascending order of the ratings in review ?


Question: select t1.institution_name ,  count(*) from institution as t1 join staff as t2 on t1.institution_id  =  t2.institution_id where t1.founded  >  1800 group by t2.institution_id

select t1.institution_name , count ( * ) from institution as t1 join staff as t2 on t1.institution_id = t2.institution_id where t1.founded > 1800 group by t2.institution_id

select t1 . institution_name , count ( * ) from institution as t1 join staff as t2 on t1 . institution_id = t2 . institution_id where t1 . founded > value group by t2 . institution_id

For each institution id , how many staff members does each institution have that was founded after 1800 ? return their names .


Question: SELECT Manufacturer FROM club GROUP BY Manufacturer HAVING COUNT(*)  >  1

SELECT Manufacturer FROM club GROUP BY Manufacturer HAVING COUNT ( * ) > 1

select manufacturer from club group by manufacturer having count ( * ) > value

Which manufacturers work for more than 1 club?

Which manufacturers work for more than 1 club ?


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

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

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

Which customers do not have any order? Give me the customer names.

Which customers do not have any order ? Give me the customer names .


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

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

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

Which artists have the most paintings in oil?

Which artists have the most paintings in oil ?


Question: SELECT avg(distance) FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code  =  T2.city_code WHERE T2.city_name  =  "Boston"

SELECT avg ( distance ) FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code = T2.city_code WHERE T2.city_name = `` Boston ''

select avg ( distance ) from direct_distance as t1 join city as t2 on t1 . city1_code = t2 . city_code where t2 . city_name = value

What is the average distance between Boston and all other cities.

What is the average distance between Boston and all other cities .


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

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

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

What are the codes and corresponding contents of boxes for which their value is higher than the values of all boxes containing Scissors?

What are the codes and corresponding contents of boxes for which their value is higher than the values of all boxes containing Scissors ?


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

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

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

How many orders has each gender of customers placed?

How many orders has each gender of customers placed ?


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

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

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

What are the ids of goods whose price is above twice the average price of all goods?

What are the ids of goods whose price is above twice the average price of all goods ?


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

What are the date stamps and property names for each item of property history, ordered by date stamp?

What are the date stamps and property names for each item of property history , ordered by date stamp ?


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

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

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

What are the sids for sailors who reserved red or blue boats?

What are the sids for sailors who reserved red or blue boats ?


Question: SELECT item FROM items GROUP BY item ORDER BY COUNT (*) DESC LIMIT 3

SELECT item FROM items GROUP BY item ORDER BY COUNT ( * ) DESC LIMIT 3

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

What is the three most popular goods in this bakery?

What is the three most popular goods in this bakery ?


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

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

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

What is the number of documents in the collection named 'Best'?

What is the number of documents in the collection named 'Best ' ?


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

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

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

What is the biographical information of the students who got the most common result for their behaviour monitoring details ?


Question: SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Employee AS T2 ON T1.Manager = T2.EmployeeID WHERE T2.Name = "Phillip J. Fry";

SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Employee AS T2 ON T1.Manager = T2.EmployeeID WHERE T2.Name = `` Phillip J. Fry '' ;

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

What are the shipment IDs of every delivery managed by Phillip J Fry?

What are the shipment IDs of every delivery managed by Phillip J Fry ?


Question: SELECT max(saleprice) ,  min(saleprice) FROM Book

SELECT max ( saleprice ) , min ( saleprice ) FROM Book

select max ( saleprice ) , min ( saleprice ) from book

What is the maximum and the minimum sale price?

What is the maximum and the minimum sale price ?


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

Return the name of the youngest pilot to fly Piper Cub.

Return the name of the youngest pilot to fly Piper Cub .


Question: SELECT * FROM PilotSkills WHERE age  <  30

select * from pilotskills where age < value

Find all information of on pilots whose age is less than 30.

Find all information of on pilots whose age is less than 30 .


Question: SELECT T2.Document_Object_ID FROM Collections AS T1 JOIN Documents_in_Collections AS T2 ON T1.Collection_ID = T2.Collection_ID WHERE T1.Collection_Name = "Best";

SELECT T2.Document_Object_ID FROM Collections AS T1 JOIN Documents_in_Collections AS T2 ON T1.Collection_ID = T2.Collection_ID WHERE T1.Collection_Name = `` Best '' ;

What is the number of document object ids in the collection named Best?

What is the number of document object ids in the collection named Best ?


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

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

Which 3 affiliations had the most papers in 2009?

Which 3 affiliations had the most papers in 2009 ?


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

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

How many different collections are related to the one named 'Best'?

How many different collections are related to the one named 'Best ' ?


Question: SELECT university_name FROM University EXCEPT SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 ON T1.university_id  =  T2.university_id WHERE T1.rank  =  1

What are the names of all universities without any majors ranked number 1?

What are the names of all universities without any majors ranked number 1 ?


Question: SELECT name FROM Author WHERE author_id 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" AND T2.year  =  2009 INTERSECT SELECT T1.author_id FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id  =  T2.paper_id WHERE T2.venue  =  "NAACL" AND T2.year  =  2009)

SELECT name FROM Author WHERE author_id 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 '' AND T2.year = 2009 INTERSECT SELECT T1.author_id FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id = T2.paper_id WHERE T2.venue = `` NAACL '' AND T2.year = 2009 )

select name from author where author_id 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 and t2 . year = value intersect select t1 . author_id from author_list as t1 join paper as t2 on t1 . paper_id = t2 . paper_id where t2 . venue = value and t2 . year = value )

Find the names of authors who published some paper on NAACL and ACL in the year 2009.

Find the names of authors who published some paper on NAACL and ACL in the year 2009 .


Question: SELECT count(*) FROM Agencies


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

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

select count ( * ) from document_objects where owner = value

What is the count of documents owned by Marlin?

What is the count of documents owned by Marlin ?


Question: SELECT count(*) FROM Staff


Question: SELECT * FROM discount

Show all information for all discounts .


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

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

What are the city name and average distances from each city?

What are the city name and average distances from each city ?


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

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

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

What is the most common type of engine ?


Question: SELECT count(*) FROM conference


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

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

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

Find the name and nationality of the people who did not participate in any ACL conference.

Find the name and nationality of the people who did not participate in any ACL conference .


Question: SELECT Name FROM customer ORDER BY Level_of_Membership ASC

select name from customer order by level_of_membership asc

Sort all the customers by the level of membership in ascending order, and return the customer names.

Sort all the customers by the level of membership in ascending order , and return the customer names .


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

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

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

What are the states that have more than 2 universities with an enrollment less than 3000?

What are the states that have more than 2 universities with an enrollment less than 3000 ?


Question: SELECT Completed_Year FROM building ORDER BY Number_of_Stories DESC

select completed_year from building order by number_of_stories desc

Sort buildings in descending order of the number of stories, and return their completion years.

Sort buildings in descending order of the number of stories , and return their completion years .


Question: SELECT T2.process_outcome_description ,  T3.process_status_description FROM Documents_processes AS T1 JOIN Process_outcomes AS T2 ON T1.process_outcome_code  =  T2.process_outcome_code JOIN Process_Status AS T3 ON T1.process_status_code  =  T3.process_status_code WHERE T1.document_id  =  0

What is the process outcome description and process status description for the document with id 0?

What is the process outcome description and process status description for the document with id 0 ?


Question: select t1.service_details from services as t1 join customers_and_services as t2 on t1.service_id  =  t2.service_id group by t1.service_details having count(*)  >  3

select t1.service_details from services as t1 join customers_and_services as t2 on t1.service_id = t2.service_id group by t1.service_details having count ( * ) > 3

Find the details of the services that have been used by more than 3 times .


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

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

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

Find the number of planes for each type.

Find the number of planes for each type .


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

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

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

How many reservations exist for each boat with an id greater than 50?

How many reservations exist for each boat with an id greater than 50 ?


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

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

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

How many movies are playing in theaters?

How many movies are playing in theaters ?


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

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

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

Find the title of the movie that is played in the Odeon theater.

Find the title of the movie that is played in the Odeon theater .


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

What search strings were entered by users who do not own any properties?

What search strings were entered by users who do not own any properties ?


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

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

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

What are the order ids for orders that include both Pride and Prejudice and The Little Prince?

What are the order ids for orders that include both Pride and Prejudice and The Little Prince ?


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

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

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

show all years and the number of conferences in each year.

show all years and the number of conferences in each year .


Question: SELECT count(*) FROM pilotskills WHERE age  <  35 AND plane_name  =  'B-52 Bomber'

SELECT count ( * ) FROM pilotskills WHERE age < 35 AND plane_name = 'B-52 Bomber '

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

Count the number of B-52 Bombers owned by pilots under 35.

Count the number of B-52 Bombers owned by pilots under 35 .


Question: SELECT staff_details FROM Staff WHERE staff_id  =  100

select staff_details from staff where staff_id = value

What are the details for the staff member with id 100.

What are the details for the staff member with id 100 .


Question: SELECT Assessment FROM Student_Assessments GROUP BY Assessment ORDER BY COUNT(*) ASC LIMIT 1

SELECT Assessment FROM Student_Assessments GROUP BY Assessment ORDER BY COUNT ( * ) ASC LIMIT 1

select assessment from student_assessments group by assessment order by count ( * ) asc limit value

Which assessment has the smallest frequency count?

Which assessment has the smallest frequency count ?


Question: SELECT count(DISTINCT country) FROM City

SELECT count ( DISTINCT country ) FROM City

select count ( distinct country ) from city


Question: SELECT T1.PackageNumber ,  max(T1.Weight) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender  =  T2.AccountNumber WHERE T2.Name LIKE "John";

SELECT T1.PackageNumber , max ( T1.Weight ) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name LIKE `` John '' ;

select t1 . packagenumber , max ( t1 . weight ) from package as t1 join client as t2 on t1 . sender = t2 . accountnumber where t2 . name like value

What is the package number and weight of the heaviest package that was sent by a client named John or something similar?

What is the package number and weight of the heaviest package that was sent by a client named John or something similar ?


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

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

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

Which plane does the pilot Jones with age 32 has?

Which plane does the pilot Jones with age 32 has ?


Question: SELECT model FROM headphone WHERE headphone_id NOT IN (SELECT headphone_id FROM stock)

SELECT model FROM headphone WHERE headphone_id NOT IN ( SELECT headphone_id FROM stock )

select model from headphone where headphone_id not in ( select headphone_id from stock )

Find the headphone models that are not in stock in any store.

Find the headphone models that are not in stock in any store .


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

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

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

List the names of countries that do not have any official language.

List the names of countries that do not have any official language .


Question: SELECT max(area_km) ,  avg(area_km) FROM district

SELECT max ( area_km ) , avg ( area_km ) FROM district

select max ( area_km ) , avg ( area_km ) from district

Give me the biggest and average areas of all districts.

Give me the biggest and average areas of all districts .


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

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

select coordinates from planet where name = value

What are the coordinates of the planet named Mars?

What are the coordinates of the planet named Mars ?


Question: SELECT T1.ReceiptNumber FROM receipts AS T1 JOIN items AS T2 ON T1.ReceiptNumber  =  T2.receipt JOIN goods AS T3 ON T2.item  =  T3.id JOIN customers AS T4 ON T4.Id  =  T1.CustomerId WHERE T3.food  =  "Croissant" AND T4.LastName  =  'LOGAN'

SELECT T1.ReceiptNumber FROM receipts AS T1 JOIN items AS T2 ON T1.ReceiptNumber = T2.receipt JOIN goods AS T3 ON T2.item = T3.id JOIN customers AS T4 ON T4.Id = T1.CustomerId WHERE T3.food = `` Croissant '' AND T4.LastName = 'LOGAN '

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

Find all the receipt numbers in which customer with last name LOGAN purchased Croissant.

Find all the receipt numbers in which customer with last name LOGAN purchased Croissant .


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

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

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

Show names for all cities where at least three students live.

Show names for all cities where at least three students live .


Question: SELECT product_id ,  product_type_code FROM Products ORDER BY product_name

select product_id , product_type_code from products order by product_name

Show the id and the product type for all products, order by product name.

Show the id and the product type for all products , order by product name .


Question: SELECT name FROM store WHERE store_id NOT IN (SELECT store_id FROM stock)

SELECT name FROM store WHERE store_id NOT IN ( SELECT store_id FROM stock )

select name from store where store_id not in ( select store_id from stock )

Find the name of stores which have no headphone in stock.

Find the name of stores which have no headphone in stock .


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

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

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

What are the locations that have paintings in the mediums of on panels and on canvas?

What are the locations that have paintings in the mediums of on panels and on canvas ?


Question: SELECT count(*) ,  CLASS FROM headphone WHERE price  >  200 GROUP BY CLASS

SELECT count ( * ) , CLASS FROM headphone WHERE price > 200 GROUP BY CLASS

select count ( * ) , class from headphone where price > value group by class

How many headphones cost more than 200 for each headphone class?

How many headphones cost more than 200 for each headphone class ?


Question: SELECT sum(distance) FROM Direct_distance WHERE city1_code  =  "BAL"

SELECT sum ( distance ) FROM Direct_distance WHERE city1_code = `` BAL ''

select sum ( distance ) from direct_distance where city1_code = value

What is the sum of distances between BAL and other cities?

What is the sum of distances between BAL and other cities ?


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

Show all meeting ids, meeting outcomes, meeting types and the details of the client atttending it.

Show all meeting ids , meeting outcomes , meeting types and the details of the client atttending it .


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

What is the rating of the movie what has a name including a word like 'Citizen'?

What is the rating of the movie what has a name including a word like 'Citizen ' ?


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

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

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

What are the names of all staff members who are older than average?

What are the names of all staff members who are older than average ?


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

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

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

Where do you have paintings that were created before 1885 that are not on canvas?

Where do you have paintings that were created before 1885 that are not on canvas ?


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

SELECT T1.order_id , T1.order_status_code , count ( * ) FROM Orders AS T1 JOIN Order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id

For every order, how many products does it contain, and what are the orders' statuses and ids?

For every order , how many products does it contain , and what are the orders ' statuses and ids ?


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

What is the most expensive cake and its flavor?

What is the most expensive cake and its flavor ?


Question: SELECT avg(T1.product_price) FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id  =  T2.product_id

What is the price of all products being ordered on average?

What is the price of all products being ordered on average ?


Question: SELECT DISTINCT CONSTRUCTOR FROM driver ORDER BY Age ASC

select distinct constructor from driver order by age asc

Who are the constructors of drivers sorted by drivers' age in ascending order?

Who are the constructors of drivers sorted by drivers ' age in ascending order ?


Question: SELECT DISTINCT T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID  =  T2.painterID WHERE T2.medium  =  "oil" AND LOCATION  =  "Gallery 241"

SELECT DISTINCT T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T2.medium = `` oil '' AND LOCATION = `` Gallery 241 ''

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

What are first names of the artists with oil paintings in gallery 241?

What are first names of the artists with oil paintings in gallery 241 ?


Question: SELECT avg(distance) FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code  =  T2.city_code WHERE T2.city_name  =  "Boston"

SELECT avg ( distance ) FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code = T2.city_code WHERE T2.city_name = `` Boston ''

select avg ( distance ) from direct_distance as t1 join city as t2 on t1 . city1_code = t2 . city_code where t2 . city_name = value

Give the average distance between Boston and other cities.

Give the average distance between Boston and other cities .


Question: SELECT T1.Contents FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender  =  T2.AccountNumber WHERE T2.Name  =  "John Zoidfarb";

SELECT T1.Contents FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = `` John Zoidfarb '' ;

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

What are the contents of package sent by John Zoidfarb?

What are the contents of package sent by John Zoidfarb ?


Question: SELECT Title FROM book WHERE TYPE != "Poet"

SELECT Title FROM book WHERE TYPE ! = `` Poet ''

select title from book where type ! = value

What are the titles of books that are not "Poet"?

What are the titles of books that are not `` Poet '' ?


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

How many reservations exist for each boat?

How many reservations exist for each boat ?


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

What is the subset id, name, and number of different documents for each subset?

What is the subset id , name , and number of different documents for each subset ?


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

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

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

What are the names and ages of pilots who have planes located in Austin?

What are the names and ages of pilots who have planes located in Austin ?


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

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

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

Show the title of games that are not played by any player who is in the Guard position.

Show the title of games that are not played by any player who is in the Guard position .


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 )

What are names of drivers who did not take part in a race?

What are names of drivers who did not take part in a race ?


Question: SELECT sum(population) ,  avg(population) FROM district WHERE district_id IN (SELECT district_id FROM spokesman_district)

SELECT sum ( population ) , avg ( population ) FROM district WHERE district_id IN ( SELECT district_id FROM spokesman_district )

select sum ( population ) , avg ( population ) from district where district_id in ( select district_id from spokesman_district )

Find the total and average population of the districts which have some spokesman.

Find the total and average population of the districts which have some spokesman .


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

For each student answer, find the email address of the student and the date of the answer. Sort them in descending order of dates.

For each student answer , find the email address of the student and the date of the answer . Sort them in descending order of dates .


Question: SELECT T1.gender_code ,  count(*) 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.gender_code

SELECT T1.gender_code , count ( * ) 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.gender_code

How many products does each gender buy ?


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

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

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

Order all of the oil paintings by date of creation and list their ids, locations, and titles.

Order all of the oil paintings by date of creation and list their ids , locations , and titles .


Question: SELECT t1.customer_details FROM customers AS t1 JOIN customer_interactions AS t2 ON t1.customer_id  =  t2.customer_id WHERE t2.status_code  =  "Stuck" AND services_and_channels_details  =  "bad"

SELECT t1.customer_details FROM customers AS t1 JOIN customer_interactions AS t2 ON t1.customer_id = t2.customer_id WHERE t2.status_code = `` Stuck '' AND services_and_channels_details = `` bad ''

Which customers have experienced status "Stuck" and service and channel detail "bad" in  an interaction? Give me the customer details.

Which customers have experienced status `` Stuck '' and service and channel detail `` bad '' in an interaction ? Give me the customer details .


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

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

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

List package number of package shipped in planet Omicron Persei 8 and sent by Zapp Brannigan.

List package number of package shipped in planet Omicron Persei 8 and sent by Zapp Brannigan .


Question: SELECT DISTINCT name ,  address FROM Affiliation

select distinct name , address from affiliation

What are the names and addresses for all affiliations?

What are the names and addresses for all affiliations ?


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

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

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

What is the maximum points of the drivers from a country whose capital is "Dublin"?

What is the maximum points of the drivers from a country whose capital is `` Dublin '' ?


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 )

Find the code of all boxes whose value is higher than the value of any boxes with Rocks as content.

Find the code of all boxes whose value is higher than the value of any boxes with Rocks as content .


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

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

Which date corresponds to when a customer purchased a good costing over 15 dollars?

Which date corresponds to when a customer purchased a good costing over 15 dollars ?


Question: SELECT DISTINCT title FROM paintings ORDER BY title

select distinct title from paintings order by title

List the names of all distinct paintings in alphabetical order.

List the names of all distinct paintings in alphabetical order .


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

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

What are the nicknames of institutions, ordered descending by their capacities?

What are the nicknames of institutions , ordered descending by their capacities ?


Question: SELECT title FROM movies ORDER BY rating

select title from movies order by rating

What are the movie names sorted by rating?

What are the movie names sorted by rating ?


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

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

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

Which country has fewest number of cities?

Which country has fewest number of cities ?


Question: SELECT title FROM movies ORDER BY title

What are the movie names in alphabetical order?

What are the movie names in alphabetical order ?


Question: SELECT Driver FROM driver ORDER BY Age ASC

select driver from driver order by age asc

Sort the driver names by age in ascending order.

Sort the driver names by age in ascending order .


Question: SELECT Title FROM book ORDER BY Title ASC

select title from book order by title asc

List the titles of books in ascending alphabetical order.

List the titles of books in ascending alphabetical order .


Question: SELECT sum(t2.quantity) FROM store AS t1 JOIN stock AS t2 ON t1.store_id  =  t2.store_id WHERE t1.name  =  'Woodman'

SELECT sum ( t2.quantity ) FROM store AS t1 JOIN stock AS t2 ON t1.store_id = t2.store_id WHERE t1.name = 'Woodman '

select sum ( t2 . quantity ) from store as t1 join stock as t2 on t1 . store_id = t2 . store_id where t1 . name = value

Find the total quantity of headphones stored in the Woodman store.

Find the total quantity of headphones stored in the Woodman store .


Question: SELECT * FROM Sailors WHERE age  >  30

What can you tell me about sailors who are older than age 30?

What can you tell me about sailors who are older than age 30 ?


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

Give the title of book by George Orwell that has the lowest saleprice.

Give the title of book by George Orwell that has the lowest saleprice .


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

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

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

Give the id and the number of citations of the most cited paper.

Give the id and the number of citations of the most cited paper .


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

List package number of packages shipped in Omicron Persei 8 planet or sent by Zapp Brannigan.

List package number of packages shipped in Omicron Persei 8 planet or sent by Zapp Brannigan .


Question: SELECT T1.Title FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID  =  T2.Game_ID JOIN player AS T3 ON T2.Player_ID  =  T3.Player_ID WHERE T3.College  =  "Oklahoma" INTERSECT SELECT T1.Title FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID  =  T2.Game_ID JOIN player AS T3 ON T2.Player_ID  =  T3.Player_ID WHERE T3.College  =  "Auburn"

What are the titles of games that are played by players from Oklahoma college or Auburn college?

What are the titles of games that are played by players from Oklahoma college or Auburn college ?


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

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

select count ( * ) from paintings where location = value

How many paintings are exhibited at gallery 240?

How many paintings are exhibited at gallery 240 ?


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

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

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

Show all conference names and the number of times each conference has.

Show all conference names and the number of times each conference has .


Question: SELECT sum(distance) FROM Direct_distance WHERE city1_code  =  "BAL"

SELECT sum ( distance ) FROM Direct_distance WHERE city1_code = `` BAL ''

select sum ( distance ) from direct_distance where city1_code = value

What is the total distance between city BAL and all other cities.

What is the total distance between city BAL and all other cities .


Question: SELECT DISTINCT title FROM paintings ORDER BY height_mm

select distinct title from paintings order by height_mm

List the names of all distinct paintings from shortest to longest in height.

List the names of all distinct paintings from shortest to longest in height .


Question: SELECT count(*) ,  t2.name FROM book AS t1 JOIN press AS t2 ON t1.press_id  =  t2.press_id WHERE sale_amount  >  1000 GROUP BY t2.name

SELECT count ( * ) , t2.name FROM book AS t1 JOIN press AS t2 ON t1.press_id = t2.press_id WHERE sale_amount > 1000 GROUP BY t2.name

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

Find the number of books that are sold more than 1000 for each publisher. List the press name as well.

Find the number of books that are sold more than 1000 for each publisher . List the press name as well .


Question: SELECT count(*) FROM City


Question: SELECT T1.title ,  T2.name FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code  =  T2.movie

select t1 . title , t2 . name from movies as t1 join movietheaters as t2 on t1 . code = t2 . movie

Find the names of movies that are played in any theater and the name of the corresponding theater.

Find the names of movies that are played in any theater and the name of the corresponding theater .


Question: SELECT T1.product_id ,  T1.product_name ,  T1.product_price FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id  =  T2.product_id GROUP BY T1.product_id ORDER BY count(*) DESC LIMIT 1

SELECT T1.product_id , T1.product_name , T1.product_price FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id ORDER BY count ( * ) DESC LIMIT 1

What are the ids, names, and prices of all products that are ordered most frequently?

What are the ids , names , and prices of all products that are ordered most frequently ?


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

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

What is the first name and age of the artist who lived the longest?

What is the first name and age of the artist who lived the longest ?


Question: SELECT count(DISTINCT language_id) FROM official_languages

SELECT count ( DISTINCT language_id ) FROM official_languages

select count ( distinct language_id ) from official_languages

How many different official languages are there?

How many different official languages are there ?


Question: SELECT DISTINCT Franchise FROM game


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

What is the average age of drivers from countries with official native language "English"

What is the average age of drivers from countries with official native language `` English ''


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

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

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

Which document has most of child? List the document id and the number of child.

Which document has most of child ? List the document id and the number of child .


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

SELECT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Author AS T3 ON T2.author_id = T3.author_id WHERE T3.name LIKE `` % Mckeown , Kathleen % '' INTERSECT SELECT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Author AS T3 ON T2.author_id = T3.author_id WHERE T3.name LIKE `` % Rambow , Owen % ''

What are the titles and paper ids co-authored by Mckeown, Kathleen and Rambow, Owen?

What are the titles and paper ids co-authored by Mckeown , Kathleen and Rambow , Owen ?


Question: SELECT T2.Name FROM building AS T1 JOIN region AS T2 ON T1.Region_ID  =  T2.Region_ID GROUP BY T1.Region_ID HAVING COUNT(*)  >  1

SELECT T2.Name FROM building AS T1 JOIN region AS T2 ON T1.Region_ID = T2.Region_ID GROUP BY T1.Region_ID HAVING COUNT ( * ) > 1

select t2 . name from building as t1 join region as t2 on t1 . region_id = t2 . region_id group by t1 . region_id having count ( * ) > value

Which regions have more than one building? Give me the names of the regions.

Which regions have more than one building ? Give me the names of the regions .


Question: SELECT t1.name FROM channel AS t1 JOIN director_admin AS t2 ON t1.channel_id  =  t2.channel_id JOIN director AS t3 ON t2.director_id  =  t3.director_id WHERE t3.age  <  40 INTERSECT SELECT t1.name FROM channel AS t1 JOIN director_admin AS t2 ON t1.channel_id  =  t2.channel_id JOIN director AS t3 ON t2.director_id  =  t3.director_id WHERE t3.age  >  60

give me the name of channels that have both a director younger than 40 and a director older than 60.

give me the name of channels that have both a director younger than 40 and a director older than 60 .


Question: SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 ON T1.university_id  =  T2.university_id WHERE T1.rank  =  1 GROUP BY T2.university_name ORDER BY count(*) DESC LIMIT 1

SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 ON T1.university_id = T2.university_id WHERE T1.rank = 1 GROUP BY T2.university_name ORDER BY count ( * ) DESC LIMIT 1

select t2 . university_name from major_ranking as t1 join university as t2 on t1 . university_id = t2 . university_id where t1 . rank = value group by t2 . university_name order by count ( * ) desc limit value

What is the name of the university with the most majors ranked number 1?

What is the name of the university with the most majors ranked number 1 ?


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

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

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

What are the dates and ids of the invoices that are related to at least 2 shipments?

What are the dates and ids of the invoices that are related to at least 2 shipments ?


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

What are the client details for each client and the corresponding details of their agencies?

What are the client details for each client and the corresponding details of their agencies ?


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

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

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

Return the names of the different planes, as well as the names of the oldest pilots who flew each.

Return the names of the different planes , as well as the names of the oldest pilots who flew each .


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

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

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

What is the number of child collections belonging to the collection named Best?

What is the number of child collections belonging to the collection named Best ?


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

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

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

Which country has the greatest number of official languages?

Which country has the greatest number of official languages ?


Question: SELECT name FROM languages ORDER BY name ASC

select name from languages order by name asc

What are the names of languages, in alphabetical order?

What are the names of languages , in alphabetical order ?


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

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

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

What are the package numbers and weights that are between 10 and 30?

What are the package numbers and weights that are between 10 and 30 ?


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

Count the number of different customers who have bought a Monitor Product.

Count the number of different customers who have bought a Monitor Product .


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

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

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

What are the earnings of players from either of the countries of Australia or Zimbabwe?

What are the earnings of players from either of the countries of Australia or Zimbabwe ?


Question: SELECT T2.Owner FROM Document_Objects AS T1 JOIN Document_Objects AS T2 ON T1.Parent_Document_Object_ID = T2.Document_Object_ID WHERE T1.Owner  =  'Marlin'

What is the owner of the parent document of document owned by 'Marlin'?

What is the owner of the parent document of document owned by 'Marlin ' ?


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 plane that is flown the most often?

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


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

List names of all authors who have only 1 paper.

List names of all authors who have only 1 paper .


Question: SELECT max(Number_of_Stories) FROM building WHERE Completed_Year != "1980"

SELECT max ( Number_of_Stories ) FROM building WHERE Completed_Year ! = `` 1980 ''

select max ( number_of_stories ) from building where completed_year ! = value

What is the maximum number of stories of buildings not completed in 1980?

What is the maximum number of stories of buildings not completed in 1980 ?


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

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

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

Which customer shopped most often? How many times?

Which customer shopped most often ? How many times ?


Question: SELECT count(*) FROM University WHERE state  =  'Illinois' OR state  =  'Ohio'

SELECT count ( * ) FROM University WHERE state = 'Illinois ' OR state = 'Ohio '

select count ( * ) from university where state = value or state = value

What is the total number of universities located in Illinois or Ohio?

What is the total number of universities located in Illinois or Ohio ?


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

What is the number of child documents for each parent document, and what are the ids of the parent documents?

What is the number of child documents for each parent document , and what are the ids of the parent documents ?


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

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

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

Show all staff name who are above the average age.

Show all staff name who are above the average age .


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

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

What is the capital of the country where the driver with the most points is from?

What is the capital of the country where the driver with the most points is from ?


Question: SELECT distinct(T1.detention_type_description) FROM Ref_Detention_Type AS T1 JOIN Detention AS T2 ON T1.detention_type_code  =  T2.detention_type_code

Return the distinct descriptions of all the detentions that have happened.

Return the distinct descriptions of all the detentions that have happened .


Question: SELECT DISTINCT home_conference FROM University

select distinct home_conference from university

What are the different home conferences from the university table?

What are the different home conferences from the university table ?


Question: SELECT type_of_powertrain FROM vehicles GROUP BY type_of_powertrain ORDER BY count(*) DESC LIMIT 1

SELECT type_of_powertrain FROM vehicles GROUP BY type_of_powertrain ORDER BY count ( * ) DESC LIMIT 1

select type_of_powertrain from vehicles group by type_of_powertrain order by count ( * ) desc limit value

What is the type of powertrain with most number of vehicles.

What is the type of powertrain with most number of vehicles .


Question: SELECT count(DISTINCT Digital_terrestrial_channel) FROM channel

SELECT count ( DISTINCT Digital_terrestrial_channel ) FROM channel

select count ( distinct digital_terrestrial_channel ) from channel

How many different digital terrestrial channels are there?

How many different digital terrestrial channels are there ?


Question: SELECT count(*) FROM pilotskills WHERE age  <  35 AND plane_name  =  'B-52 Bomber'

SELECT count ( * ) FROM pilotskills WHERE age < 35 AND plane_name = 'B-52 Bomber '

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

How many plane B-52 Bomber owned by the pilot who is under 35?

How many plane B-52 Bomber owned by the pilot who is under 35 ?


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

Return the names and citizenships of drivers who have driven the vehicle with the model 'DJ1'.

Return the names and citizenships of drivers who have driven the vehicle with the model 'DJ1 ' .


Question: SELECT customer_id FROM Customers EXCEPT SELECT customer_id FROM Customer_orders

select customer_id from customers except select customer_id from customer_orders

Show all customer ids without an order .


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

What are the maximum and minimum health scores among countries that are not "Norway".

What are the maximum and minimum health scores among countries that are not `` Norway '' .


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

What are the names of the products tht have been shipped, and on what days were they shipped?

What are the names of the products tht have been shipped , and on what days were they shipped ?


Question: SELECT Valid_Answer_Text FROM Valid_Answers GROUP BY Valid_Answer_Text ORDER BY COUNT(*) DESC LIMIT 1

SELECT Valid_Answer_Text FROM Valid_Answers GROUP BY Valid_Answer_Text ORDER BY COUNT ( * ) DESC LIMIT 1

select valid_answer_text from valid_answers group by valid_answer_text order by count ( * ) desc limit value

What is the most common valid answer text?

What is the most common valid answer text ?


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

SELECT warehouse , avg ( value ) FROM boxes GROUP BY warehouse

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

What is the average value of boxes for each warehouse?

What is the average value of boxes for each warehouse ?


Question: SELECT count(*) FROM building


Question: SELECT process_id FROM Business_processes EXCEPT SELECT process_id FROM Documents_processes


Question: SELECT count(*) FROM vehicles


Question: SELECT count(DISTINCT country) FROM City

SELECT count ( DISTINCT country ) FROM City

select count ( distinct country ) from city


Question: SELECT max(rating) FROM Sailors

What is the maximum rating for sailors ?


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

Find the titles and paper IDs for papers which have Mckeown but not Rambow in author list.

Find the titles and paper IDs for papers which have Mckeown but not Rambow in author list .


Question: SELECT name ,  speach_title FROM spokesman

select name , speach_title from spokesman

Find all spokesman's names and speech titles.

Find all spokesman 's names and speech titles .


Question: SELECT count(*) FROM channel WHERE channel_id NOT IN (SELECT channel_id FROM program)

SELECT count ( * ) FROM channel WHERE channel_id NOT IN ( SELECT channel_id FROM program )

select count ( * ) from channel where channel_id not in ( select channel_id from program )

Find the number of channels that do not run any program.

Find the number of channels that do not run any program .


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

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

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

Which types of questions have 3 or more questions? Return the questions type code.

Which types of questions have 3 or more questions ? Return the questions type code .


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

What are the vehicle ids and models which have been driven by more than 2 drivers or been driven by the driver named 'Jeff Gordon'?

What are the vehicle ids and models which have been driven by more than 2 drivers or been driven by the driver named 'Jeff Gordon ' ?


Question: SELECT DISTINCT flavor FROM goods WHERE food  =  "Cake" EXCEPT SELECT DISTINCT flavor FROM goods WHERE food  =  "Tart"

SELECT DISTINCT flavor FROM goods WHERE food = `` Cake '' EXCEPT SELECT DISTINCT flavor FROM goods WHERE food = `` Tart ''

select distinct flavor from goods where food = value except select distinct flavor from goods where food = value

Give the flavors of Cakes that are not available for Tart.

Give the flavors of Cakes that are not available for Tart .


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

Find the titles and paper IDs for papers written by Harvard University.

Find the titles and paper IDs for papers written by Harvard University .


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

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

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

Find the number of distinct types of contents in each warehouse.

Find the number of distinct types of contents in each warehouse .


Question: SELECT paintingID FROM paintings ORDER BY YEAR LIMIT 1

select paintingid from paintings order by year limit 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

What are all locations that have hosted at least two conferences?

What are all locations that have hosted at least two conferences ?


Question: SELECT model FROM vehicle WHERE power  >  6000 ORDER BY top_speed DESC LIMIT 1

select model from vehicle where power > value order by top_speed desc limit value

What is the model of the vehicle with maximum top speed whose power is higher than 6000?

What is the model of the vehicle with maximum top speed whose power is higher than 6000 ?


Question: SELECT DISTINCT state FROM City