interaction_utterance
sequencelengths 0
6
| interaction_query
sequencelengths 0
6
| final_utterance
stringlengths 19
224
| final_query
stringlengths 22
577
| db_id
stringclasses 140
values |
---|---|---|---|---|
[
"How many schools have a school bus?",
"How many school buses does each school type have?",
"Please also show the types."
] | [
"SELECT count(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id",
"SELECT count(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T2.type",
"SELECT T2.type , count(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T2.type"
] | Show the type of school and the number of buses for each type. | SELECT T2.type , count(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T2.type | school_bus |
[
"How many drivers are older than 40?",
"How about the number younger than 40?",
"Please add the number of drivers that are from Hartford."
] | [
"SELECT count(*) FROM driver WHERE age > 40",
"SELECT count(*) FROM driver WHERE age < 40",
"SELECT count(*) FROM driver WHERE home_city = 'Hartford' OR age < 40"
] | How many drivers are from Hartford city or younger than 40? | SELECT count(*) FROM driver WHERE home_city = 'Hartford' OR age < 40 | school_bus |
[
"How many drivers are from Hartford?",
"Among these drivers, how many of them are younger than 40?",
"Show their names."
] | [
"SELECT COUNT(*) FROM driver WHERE home_city = 'Hartford'",
"SELECT COUNT(*) FROM driver WHERE home_city = 'Hartford' AND age < 40",
"SELECT name FROM driver WHERE home_city = 'Hartford' AND age < 40"
] | List names for drivers from Hartford city and younger than 40. | SELECT name FROM driver WHERE home_city = 'Hartford' AND age < 40 | school_bus |
[
"Show information for all calendar items.",
"How many are there?"
] | [
"SELECT * FROM Ref_calendar",
"SELECT count(*) FROM Ref_calendar"
] | How many calendar items do we have? | SELECT count(*) FROM Ref_calendar | cre_Doc_Tracking_DB |
[
"Show all calendar items.",
"Only show the calendar dates and day numbers for them."
] | [
"SELECT * FROM Ref_calendar",
"SELECT calendar_date , day_Number FROM Ref_calendar"
] | Show all calendar dates and day Numbers. | SELECT calendar_date , day_Number FROM Ref_calendar | cre_Doc_Tracking_DB |
[
"Show all document types.",
"How many are there?"
] | [
"SELECT * FROM Ref_document_types",
"SELECT count(*) FROM Ref_document_types"
] | Show the number of document types. | SELECT count(*) FROM Ref_document_types | cre_Doc_Tracking_DB |
[
"Show all document type information.",
"What are their document type codes and names?"
] | [
"SELECT * FROM Ref_document_types",
"SELECT document_type_code , document_type_name FROM Ref_document_types"
] | List all document type codes and document type names. | SELECT document_type_code , document_type_name FROM Ref_document_types | cre_Doc_Tracking_DB |
[
"Show the name and description for all document types.",
"Filter the results for only those with code RV."
] | [
"SELECT document_type_name , document_type_description FROM Ref_document_types",
"SELECT document_type_name , document_type_description FROM Ref_document_types WHERE document_type_code = \"RV\""
] | What is the name and description for document type code RV? | SELECT document_type_name , document_type_description FROM Ref_document_types WHERE document_type_code = "RV" | cre_Doc_Tracking_DB |
[
"Show all the document type codes.",
"What is the code for the document type named \"Paper\"?"
] | [
"SELECT document_type_code FROM Ref_document_types",
"SELECT document_type_code FROM Ref_document_types WHERE document_type_name = \"Paper\""
] | What is the document type code for document type "Paper"? | SELECT document_type_code FROM Ref_document_types WHERE document_type_name = "Paper" | cre_Doc_Tracking_DB |
[
"How many documents are there in total?",
"How about the number for those with document type code CV?",
"How about CV or BK?"
] | [
"SELECT count(*) FROM All_documents",
"SELECT count(*) FROM All_documents WHERE document_type_code = \"CV\"",
"SELECT count(*) FROM All_documents WHERE document_type_code = \"CV\" OR document_type_code = \"BK\""
] | Show the number of documents with document type code CV or BK. | SELECT count(*) FROM All_documents WHERE document_type_code = "CV" OR document_type_code = "BK" | cre_Doc_Tracking_DB |
[
"Show the info for all documents.",
"How about those with name \"Marry CV\"?",
"Show its date stored."
] | [
"SELECT * FROM All_documents",
"SELECT * FROM All_documents WHERE Document_name = \"Marry CV\"",
"SELECT date_stored FROM All_documents WHERE Document_name = \"Marry CV\""
] | What is the date when the document "Marry CV" was stored? | SELECT date_stored FROM All_documents WHERE Document_name = "Marry CV" | cre_Doc_Tracking_DB |
[
"Show date stored for all the documents.",
"Also show their day numbers."
] | [
"SELECT Date_Stored FROM All_documents",
"SELECT T2.day_Number , T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date"
] | What is the day Number and date of all the documents? | SELECT T2.day_Number , T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date | cre_Doc_Tracking_DB |
[
"Show all document names.",
"For each of them, show the document type name.",
"What is the type name for the document named \"How to read a book\"?"
] | [
"select document_name FROM All_documents",
"SELECT T2.document_type_name, T1.document_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code",
"SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = \"How to read a book\""
] | What is the document type name for the document with name "How to read a book"? | SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = "How to read a book" | cre_Doc_Tracking_DB |
[
"Show all locations.",
"How many are there?"
] | [
"SELECT * FROM Ref_locations",
"SELECT count(*) FROM Ref_locations"
] | Show the number of locations. | SELECT count(*) FROM Ref_locations | cre_Doc_Tracking_DB |
[
"List the names of all locations.",
"Also show their location codes."
] | [
"SELECT location_name FROM Ref_locations",
"SELECT location_code , location_name FROM Ref_locations"
] | List all location codes and location names. | SELECT location_code , location_name FROM Ref_locations | cre_Doc_Tracking_DB |
[
"Show the names of all locations.",
"What is name for the one with code x?",
"Also show its description."
] | [
"SELECT location_name FROM Ref_locations",
"SELECT location_name FROM Ref_locations WHERE location_code = \"x\"",
"SELECT location_name , location_description FROM Ref_locations WHERE location_code = \"x\""
] | What are the name and description for location code x? | SELECT location_name , location_description FROM Ref_locations WHERE location_code = "x" | cre_Doc_Tracking_DB |
[
"Show the code for all locations.",
"How about the one named \"Canada\"?"
] | [
"SELECT location_code FROM Ref_locations",
"SELECT location_code FROM Ref_locations"
] | What is the location code for the country "Canada"? | SELECT location_code FROM Ref_locations WHERE location_name = "Canada" | cre_Doc_Tracking_DB |
[
"Show all roles.",
"How many are there?"
] | [
"SELECT * FROM ROLES",
"SELECT count(*) FROM ROLES"
] | How many roles are there? | SELECT count(*) FROM ROLES | cre_Doc_Tracking_DB |
[
"Show the names of all roles.",
"Also show their codes and descriptions."
] | [
"SELECT role_name FROM ROLES",
"SELECT role_code , role_name , role_description FROM ROLES"
] | List all role codes, role names, and role descriptions. | SELECT role_code , role_name , role_description FROM ROLES | cre_Doc_Tracking_DB |
[
"Show the name for all roles.",
"What about the role with code \"MG\"?",
"Also show its description."
] | [
"SELECT role_name FROM ROLES",
"SELECT role_name FROM ROLES WHERE role_code = \"MG\"",
"SELECT role_name , role_description FROM ROLES WHERE role_code = \"MG\""
] | What are the name and description for role code "MG"? | SELECT role_name , role_description FROM ROLES WHERE role_code = "MG" | cre_Doc_Tracking_DB |
[
"Show the descriptions of all roles.",
"What is the description for the one named \"Proof Reader\"?"
] | [
"SELECT role_description FROM ROLES",
"SELECT role_description FROM ROLES WHERE role_name = \"Proof Reader\""
] | Show the description for role name "Proof Reader". | SELECT role_description FROM ROLES WHERE role_name = "Proof Reader" | cre_Doc_Tracking_DB |
[
"Show information for all employees.",
"How many are there?"
] | [
"SELECT * FROM Employees",
"SELECT count(*) FROM Employees"
] | How many employees do we have? | SELECT count(*) FROM Employees | cre_Doc_Tracking_DB |
[
"Show the names of all employee.",
"Show the name, code, and date of birth for the employee named 'Armani'."
] | [
"SELECT employee_name FROM Employees",
"SELECT employee_name , role_code , date_of_birth FROM Employees WHERE employee_Name = 'Armani'"
] | Show the name, role code, and date of birth for the employee with name 'Armani'. | SELECT employee_name , role_code , date_of_birth FROM Employees WHERE employee_Name = 'Armani' | cre_Doc_Tracking_DB |
[
"Show the id and name for all employees.",
"What is the id for the employee called Ebba?"
] | [
"SELECT employee_ID, employee_name FROM Employees",
"SELECT employee_ID FROM Employees WHERE employee_name = \"Ebba\""
] | What is the id for the employee called Ebba? | SELECT employee_ID FROM Employees WHERE employee_name = "Ebba" | cre_Doc_Tracking_DB |
[
"Show the names and role code of all the employees.",
"Show names for those with \"HR\" as their role."
] | [
"SELECT employee_name , role_code FROM Employees",
"SELECT employee_name FROM Employees WHERE role_code = \"HR\""
] | Show the names of all the employees with role "HR". | SELECT employee_name FROM Employees WHERE role_code = "HR" | cre_Doc_Tracking_DB |
[
"Show the role code for all employees.",
"For each of them, also show the number of employees in each role."
] | [
"SELECT role_code FROM Employees",
"SELECT role_code , count(*) FROM Employees GROUP BY role_code"
] | Show all role codes and the number of employees in each role. | SELECT role_code , count(*) FROM Employees GROUP BY role_code | cre_Doc_Tracking_DB |
[
"Show the role code for all employees.",
"Count the number of employees with each role code.",
"Sort the codes by the count in descending order.",
"Which of them has the largest number of employees?"
] | [
"SELECT role_code FROM Employees",
"SELECT role_code, count(*) FROM Employees GROUP BY role_code",
"SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC",
"SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC LIMIT 1"
] | What is the role code with the largest number of employees? | SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC LIMIT 1 | cre_Doc_Tracking_DB |
[
"Show role codes for all employees.",
"Count the number of employees for each of them.",
"Which of them have at least 3?"
] | [
"SELECT role_code FROM Employees",
"SELECT role_code, count(*) FROM Employees GROUP BY role_code",
"SELECT role_code FROM Employees GROUP BY role_code HAVING count(*) >= 3"
] | Show all role codes with at least 3 employees. | SELECT role_code FROM Employees GROUP BY role_code HAVING count(*) >= 3 | cre_Doc_Tracking_DB |
[
"Show the role code for all employees.",
"For each of them, count the number of employees.",
"Sort the codes by this count.",
"Which code has the least?"
] | [
"SELECT role_code FROM Employees",
"SELECT role_code, count(*) FROM Employees GROUP BY role_code",
"SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC",
"SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1"
] | Show the role code with the least employees. | SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1 | cre_Doc_Tracking_DB |
[
"Show the names of all employees.",
"Also show their role name and role description.",
"What is the role name and role description for the employee named Ebba?"
] | [
"SELECT employee_name FROM Employees",
"SELECT T1.employee_name , T2.role_name , T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code",
"SELECT T2.role_name , T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = \"Ebba\""
] | What is the role name and role description for employee called Ebba? | SELECT T2.role_name , T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = "Ebba" | cre_Doc_Tracking_DB |
[
"Show the name for all employees.",
"Also show their role names.",
"Who has \"Editor\" as their role?"
] | [
"SELECT employee_name FROM Employees",
"SELECT T1.employee_name, T2.role_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code",
"SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Editor\""
] | Show the names of employees with role name Editor. | SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Editor" | cre_Doc_Tracking_DB |
[
"Show the ids for all employees.",
"Also show their role names.",
"Which employees have \"Human Resources\" as their role?",
"Also show the employee ids with the role \"Manager\"."
] | [
"SELECT employee_id FROM Employees",
"SELECT T1.employee_id , T2.role_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code",
"SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Human Resource\"",
"SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Human Resource\" OR T2.role_name = \"Manager\""
] | Show the employee ids for all employees with role name "Human Resource" or "Manager". | SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Human Resource" OR T2.role_name = "Manager" | cre_Doc_Tracking_DB |
[
"Show locations for all documents.",
"Show all distinct locations among them."
] | [
"SELECT location_code FROM Document_locations",
"SELECT DISTINCT location_code FROM Document_locations"
] | What are the different location codes for documents? | SELECT DISTINCT location_code FROM Document_locations | cre_Doc_Tracking_DB |
[
"Show all document names.",
"Also show their location name.",
"What is the location for the document titled \"Robin CV\"?"
] | [
"SELECT document_name FROM All_documents",
"SELECT T1.document_name, T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code",
"SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = \"Robin CV\""
] | Show the location name for document "Robin CV". | SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = "Robin CV" | cre_Doc_Tracking_DB |
[
"Show the location code for all the document locations.",
"Also show their their starting and ending dates."
] | [
"SELECT location_code FROM Document_locations",
"SELECT location_code , date_in_location_from , date_in_locaton_to FROM Document_locations"
] | Show the location code, the starting date and ending date in that location for all the documents. | SELECT location_code , date_in_location_from , date_in_locaton_to FROM Document_locations | cre_Doc_Tracking_DB |
[
"Show the document names.",
"Also show the to and from dates for them.",
"What are these values for the document named \"Robin CV\"?"
] | [
"SELECT document_name FROM All_documents",
"SELECT T2.document_name, T1.date_in_location_from , T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id",
"SELECT T1.date_in_location_from , T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Robin CV\""
] | What is "the date in location from" and "the date in location to" for the document with name "Robin CV"? | SELECT T1.date_in_location_from , T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = "Robin CV" | cre_Doc_Tracking_DB |
[
"Show the codes for all document locations.",
"For each code, show the corresponding count of documents."
] | [
"SELECT location_code FROM Document_locations",
"SELECT location_code , count(*) FROM Document_locations GROUP BY location_code"
] | Show the location codes and the number of documents in each location. | SELECT location_code , count(*) FROM Document_locations GROUP BY location_code | cre_Doc_Tracking_DB |
[
"Show the location codes.",
"For each of them, what is the count of associated documents?",
"Sort codes in descending order by these counts.",
"Which has the most?"
] | [
"SELECT location_code FROM Document_locations",
"SELECT location_code , count(*) FROM Document_locations GROUP BY location_code",
"SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC",
"SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC LIMIT 1"
] | What is the location code with the most documents? | SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC LIMIT 1 | cre_Doc_Tracking_DB |
[
"Show all location codes.",
"For each of them, count the number of corresponding documents.",
"Which of them have at least 3?"
] | [
"SELECT location_code FROM Document_locations",
"SELECT location_code, count(*) FROM Document_locations GROUP BY location_code",
"SELECT location_code FROM Document_locations GROUP BY location_code HAVING count(*) >= 3"
] | Show the location codes with at least 3 documents. | SELECT location_code FROM Document_locations GROUP BY location_code HAVING count(*) >= 3 | cre_Doc_Tracking_DB |
[
"Show the location codes for all documents.",
"Also show their locations.",
"How many documents come from each location?",
"Which location has the fewest?"
] | [
"SELECT location_code FROM Document_locations",
"SELECT T2.location_name , T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code",
"SELECT T2.location_name , T1.location_code, count(*) FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code",
"SELECT T2.location_name , T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY count(*) ASC LIMIT 1"
] | Show the location name and code with the least documents. | SELECT T2.location_name , T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY count(*) ASC LIMIT 1 | cre_Doc_Tracking_DB |
[
"Show all employee names.",
"What are the names of the employees who authorized document destruction.",
"Also show the names for those who destroyed the corresponding documents."
] | [
"SELECT employee_name from Employees",
"SELECT T2.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id",
"SELECT T2.employee_name , T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id"
] | What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents? | SELECT T2.employee_name , T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id | cre_Doc_Tracking_DB |
[
"Show the id of each employee who has authorized document destruction.",
"For each of them, count the number of destroyed documents they authorized."
] | [
"SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed",
"SELECT Destruction_Authorised_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID"
] | Show the id of each employee and the number of document destruction authorised by that employee. | SELECT Destruction_Authorised_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID | cre_Doc_Tracking_DB |
[
"Show the employee ids having destroyed some documents.",
"For each employee, how many documents did they destroy?"
] | [
"SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed",
"SELECT Destroyed_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID"
] | Show the employee ids and the number of documents destroyed by each employee. | SELECT Destroyed_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID | cre_Doc_Tracking_DB |
[
"Show the ids of the employees having authorized any document destruction.",
"How about those who didn't?"
] | [
"SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed",
"SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed"
] | Show the ids of the employees who don't authorize destruction for any document. | SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed | cre_Doc_Tracking_DB |
[
"Show the id of all authorizing employees for documents to be destroyed.",
"Show only distinct ids."
] | [
"SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed",
"SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed"
] | Show the ids of all employees who have authorized destruction. | SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed | cre_Doc_Tracking_DB |
[
"Show ids for employees who destroyed a document.",
"What are the distinct results?"
] | [
"SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed",
"SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed"
] | Show the ids of all employees who have destroyed a document. | SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed | cre_Doc_Tracking_DB |
[
"Show all employee ids.",
"Show all employee ids who have destroyed a document.",
"How about those who haven't?"
] | [
"SELECT employee_id FROM Employees",
"SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed",
"SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed"
] | Show the ids of all employees who don't destroy any document. | SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed | cre_Doc_Tracking_DB |
[
"I want to know the information of all the publications.",
"Just tell me publishers from the tables above.",
"Thanks. Could you tell me who is the richest?"
] | [
"SELECT * FROM publication",
"SELECT Publisher FROM publication",
"SELECT Publisher FROM publication ORDER BY Price DESC LIMIT 1"
] | List the publisher of the publication with the highest price. | SELECT Publisher FROM publication ORDER BY Price DESC LIMIT 1 | book_2 |
[
"What's the price of the publication published by Wiley?",
"How about Pearson's?",
"Okay. I want to know the publication dates of publications with 3 lowest prices now."
] | [
"SELECT Price FROM publication WHERE Publisher = \"Wiley\"",
"SELECT Price FROM publication WHERE Publisher = \"Pearson\"",
"SELECT Publication_Date FROM publication ORDER BY Price ASC LIMIT 3"
] | List the publication dates of publications with 3 lowest prices. | SELECT Publication_Date FROM publication ORDER BY Price ASC LIMIT 3 | book_2 |
[
"Could you tell me the book with published price more than 4000000?",
"Who were their writers?"
] | [
"SELECT T1.Title FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T2.Price > 4000000",
"SELECT T1.Writer FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T2.Price > 4000000"
] | Show writers who have published a book with price more than 4000000. | SELECT T1.Writer FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T2.Price > 4000000 | book_2 |
[
"I want to know the publication price of the book with title \"Cyberella\"?",
"Could you show me all the books' publication price?",
"Okay. I want all the books' titles in descending order of publication price."
] | [
"SELECT T2.Price FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T1.Title = \"Cyberella\"",
"SELECT T2.Price FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID",
"SELECT T1.Title FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID ORDER BY T2.Price DESC"
] | Show the titles of books in descending order of publication price. | SELECT T1.Title FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID ORDER BY T2.Price DESC | book_2 |
[
"Tell me the publisher of the book Bloody Mary : Lady Liberty.",
"How many publications does this publisher have?",
"Tell me the publishers that have more than one publication."
] | [
"SELECT T2.Publisher FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T1.Title = \"Bloody Mary : Lady Liberty\"",
"SELECT COUNT(*) FROM publication WHERE Publisher = (SELECT T2.Publisher FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T1.Title = \"Bloody Mary : Lady Liberty\")",
"SELECT Publisher FROM publication GROUP BY Publisher HAVING COUNT(*) > 1"
] | Show publishers that have more than one publication. | SELECT Publisher FROM publication GROUP BY Publisher HAVING COUNT(*) > 1 | book_2 |
[
"Tell me the publication date of the bookDead Corps.",
"How about the book Cyberella?",
"Okay, please show me the most common publication date."
] | [
"SELECT T2.Publication_Date FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T1.Title = \"Dead Corps\"",
"SELECT T2.Publication_Date FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T1.Title = \"Cyberella\"",
"SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1"
] | Please show the most common publication date. | SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1 | book_2 |
[
"Tell me the writer of Gemini Blood.",
"Tell me all the books he wrote.",
"Okay, show me the writers who have written more than one book."
] | [
"SELECT Writer FROM book WHERE Title = \"Gemini Blood\"",
"SELECT Title FROM book WHERE Writer = (SELECT Writer FROM book WHERE Title = \"Gemini Blood\")",
"SELECT Writer FROM book GROUP BY Writer HAVING COUNT(*) > 1"
] | List the writers who have written more than one book. | SELECT Writer FROM book GROUP BY Writer HAVING COUNT(*) > 1 | book_2 |
[
"Tell me the publisher of the book Bloody Mary : Lady Liberty.",
"How about the publisher of the book with title Gemini Blood?",
"Tell me the books that are not published."
] | [
"SELECT T2.Publisher FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T1.Title = \"Bloody Mary : Lady Liberty\"",
"SELECT T2.Publisher FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T1.Title = \"Gemini Blood\"",
"SELECT Title FROM book WHERE Book_ID NOT IN (SELECT Book_ID FROM publication)"
] | List the titles of books that are not published. | SELECT Title FROM book WHERE Book_ID NOT IN (SELECT Book_ID FROM publication) | book_2 |
[
"Tell me the publishers that have publications with price higher than 10000000.",
"Tell me the publishers that have publications with price lower than 5000000.",
"Okay. Show me the people in both lists."
] | [
"SELECT Publisher FROM publication WHERE Price > 10000000",
"SELECT Publisher FROM publication WHERE Price < 5000000",
"SELECT Publisher FROM publication WHERE Price > 10000000 INTERSECT SELECT Publisher FROM publication WHERE Price < 5000000"
] | Show the publishers that have publications with price higher than 10000000 and publications with price lower than 5000000. | SELECT Publisher FROM publication WHERE Price > 10000000 INTERSECT SELECT Publisher FROM publication WHERE Price < 5000000 | book_2 |
[
"What are the dates of the performances?",
"How about the locations?",
"How many performances are there?"
] | [
"SELECT Date FROM performance",
"SELECT Location FROM performance",
"SELECT count(*) FROM performance"
] | How many performances are there? | SELECT count(*) FROM performance | performance_attendance |
[
"Who are the members of the performances?",
"How about the hosts?",
"Order the result by ascending order of attendance."
] | [
"SELECT Name from member",
"SELECT Host FROM performance",
"SELECT HOST FROM performance ORDER BY Attendance ASC"
] | List the hosts of performances in ascending order of attendance. | SELECT HOST FROM performance ORDER BY Attendance ASC | performance_attendance |
[
"How many people attended the performances?",
"On what dates are they held?",
"Add the locations to the result."
] | [
"SELECT Attendance FROM performance",
"SELECT Date FROM performance",
"SELECT Date, Location FROM performance"
] | What are the dates and locations of performances? | SELECT Date , LOCATION FROM performance | performance_attendance |
[
"Show me the dates of the performances.",
"How about the attendances?",
"Among the results, which are performed at \"TD Garden\" or \"Bell Centre\"?"
] | [
"SELECT Date FROM performance",
"SELECT Attendance FROM performance",
"SELECT Attendance FROM performance WHERE LOCATION = \"TD Garden\" OR LOCATION = \"Bell Centre\""
] | Show the attendances of the performances at location "TD Garden" or "Bell Centre" | SELECT Attendance FROM performance WHERE LOCATION = "TD Garden" OR LOCATION = "Bell Centre" | performance_attendance |
[
"What is the maximum number of attendees for performances?",
"How about the total sum?",
"What is the average number of attendees for performances?"
] | [
"SELECT max(Attendance) FROM performance",
"SELECT sum(Attendance) FROM performance",
"SELECT avg(Attendance) FROM performance"
] | What is the average number of attendees for performances? | SELECT avg(Attendance) FROM performance | performance_attendance |
[
"Where are the performances?",
"On what date are they held?",
"Among the result, show me the one with the lowest number of attendees.",
"What about highest number of attendees?"
] | [
"SELECT Location FROM performance",
"SELECT Date FROM performance",
"SELECT Date FROM performance ORDER BY Attendance ASC LIMIT 1",
"SELECT Date FROM performance ORDER BY Attendance DESC LIMIT 1"
] | What is the date of the performance with the highest number of attendees? | SELECT Date FROM performance ORDER BY Attendance DESC LIMIT 1 | performance_attendance |
[
"How many attendees are there for the performances?",
"What are the distinct locations of each performance?",
"How many performances are there at each location?"
] | [
"SELECT Attendance FROM performance",
"SELECT LOCATION FROM performance GROUP BY LOCATION",
"SELECT LOCATION , COUNT(*) FROM performance GROUP BY LOCATION"
] | Show different locations and the number of performances at each location. | SELECT LOCATION , COUNT(*) FROM performance GROUP BY LOCATION | performance_attendance |
[
"Show different locations and the number of performances at each location.",
"Which is the least common location?",
"How about the most common one?"
] | [
"SELECT LOCATION , COUNT(*) FROM performance GROUP BY LOCATION",
"SELECT LOCATION FROM performance GROUP BY LOCATION ORDER BY COUNT(*) ASC LIMIT 1",
"SELECT LOCATION FROM performance GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1"
] | Show the most common location of performances. | SELECT LOCATION FROM performance GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1 | performance_attendance |
[
"What are the locations of the performances?",
"Show me the number of performances at each location.",
"Which locations have at least two performances?"
] | [
"SELECT LOCATION FROM performance",
"SELECT COUNT(*) FROM performance GROUP BY LOCATION",
"SELECT LOCATION FROM performance GROUP BY LOCATION HAVING COUNT(*) >= 2"
] | Show the locations that have at least two performances. | SELECT LOCATION FROM performance GROUP BY LOCATION HAVING COUNT(*) >= 2 | performance_attendance |
[
"What are the locations of performances?",
"How about locations of performances with less than 1000 attendees?",
"What about those with more than 2000 attendees?",
"Show the locations that have both performances with more than 2000 attendees and performances with less than 1000 attendees."
] | [
"SELECT LOCATION FROM performance",
"SELECT LOCATION FROM performance WHERE Attendance < 1000",
"SELECT LOCATION FROM performance WHERE Attendance > 2000",
"SELECT LOCATION FROM performance WHERE Attendance > 2000 INTERSECT SELECT LOCATION FROM performance WHERE Attendance < 1000"
] | Show the locations that have both performances with more than 2000 attendees and performances with less than 1000 attendees. | SELECT LOCATION FROM performance WHERE Attendance > 2000 INTERSECT SELECT LOCATION FROM performance WHERE Attendance < 1000 | performance_attendance |
[
"What is the role of each member?",
"How about their names?",
"Show me in addition the location of the performances they attended."
] | [
"SELECT Role FROM member",
"SELECT Name FROM member",
"SELECT T2.Name , T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID"
] | Show the names of members and the location of the performances they attended. | SELECT T2.Name , T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID | performance_attendance |
[
"Show me the names of the members.",
"Sort the result in ascending alphabetical order.",
"Also provide the locations of the performances they attended?"
] | [
"SELECT Name FROM member",
"SELECT Name FROM member ORDER BY Name ASC",
"SELECT T2.Name , T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID ORDER BY T2.Name ASC"
] | Show the names of members and the location of performances they attended in ascending alphabetical order of their names. | SELECT T2.Name , T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID ORDER BY T2.Name ASC | performance_attendance |
[
"Who are the attending members whose roles are \"Viola\"?",
"How about Violin?",
"Show me the dates of performances in which members in the result attended."
] | [
"SELECT Name from member WHERE Role = \"Viola\"",
"SELECT Name from member WHERE Role = \"Violin\"",
"SELECT T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID WHERE T2.Role = \"Violin\""
] | Show the dates of performances with attending members whose roles are "Violin". | SELECT T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID WHERE T2.Role = "Violin" | performance_attendance |
[
"Show me all about the members.",
"What are the dates of performances that each of them attended? Show name and date.",
"Sort the result in descending order of attendance of the performances."
] | [
"SELECT * FROM member",
"SELECT T2.Name , T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID",
"SELECT T2.Name , T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID ORDER BY T3.Attendance DESC"
] | Show the names of members and the dates of performances they attended in descending order of attendance of the performances. | SELECT T2.Name , T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID ORDER BY T3.Attendance DESC | performance_attendance |
[
"Show me all musicians with first name \"Solveig\".",
"Show me their stage positions."
] | [
"SELECT * FROM Band WHERE Firstname = \"Solveig\"",
"SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE Firstname = \"Solveig\""
] | Find all the stage positions of the musicians with first name "Solveig" | SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE Firstname = "Solveig" | music_2 |
[
"Show me all artists with last name \"Heilo\"",
"Find all the songs they have performed."
] | [
"SELECT * FROM Band WHERE Lastname = \"Heilo\"",
"SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.Lastname = \"Heilo\""
] | Find all the songs performed by artist with last name "Heilo" | SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.Lastname = "Heilo" | music_2 |
[
"Show me all the musicians who performed in the song \"Flash\".",
"How many are there?"
] | [
"SELECT * FROM performance AS T1 JOIN band as T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.Lastname = \"Flash\"",
"SELECT count(*) FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songId = T1.songId WHERE T3.Title = \"Flash\""
] | How many musicians performed in the song "Flash"? | SELECT count(*) FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songId = T1.songId WHERE T3.Title = "Flash" | music_2 |
[
"Show me all artists with first name \"Marianne\"",
"How many songs have they produced in total?",
"Show me the names of those songs."
] | [
"SELECT * FROM Band WHERE Firstname = \"Marianne\"",
"SELECT count(*) FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.Firstname = \"Marianne\"",
"SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.Firstname = \"Marianne\""
] | Find all the songs produced by artists with first name "Marianne". | SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.Firstname = "Marianne" | music_2 |
[
"Show me all songs containing the word \"Badlands\".",
"How about a song exactly named \"Badlands\"?",
"Who performed it? Show me the first and last names."
] | [
"SELECT * FROM Songs WHERE Title LIKE \"%Badlands%\"",
"SELECT * FROM Songs WHERE Title = \"Badlands\"",
"SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = \"Badlands\""
] | Who performed the song named "Badlands"? Show the first name and the last name. | SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Badlands" | music_2 |
[
"Show me all songs containing the word \"Badlands\".",
"How about a song exactly named \"Badlands\"?",
"Who performed it in the back stage position? Show me the first and last names."
] | [
"SELECT * FROM Songs WHERE Title LIKE \"%Badlands%\"",
"SELECT * FROM Songs WHERE Title = \"Badlands\"",
"SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = \"Badlands\" AND T1.StagePosition = \"back\""
] | Who is performing in the back stage position for the song "Badlands"? Show the first name and the last name. | SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Badlands" AND T1.StagePosition = "back" | music_2 |
[
"Show me all the labels of each album.",
"Among those, which one has the most albums?"
] | [
"SELECT label FROM albums",
"SELECT label FROM albums GROUP BY label ORDER BY count(*) DESC LIMIT 1"
] | What is the label that has the most albums? | SELECT label FROM albums GROUP BY label ORDER BY count(*) DESC LIMIT 1 | music_2 |
[
"What is the first name of the musician that have produced the least number of songs?",
"How about the musician who have produced the most number of songs?"
] | [
"SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY count(*) ASC LIMIT 1",
"SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1"
] | What is the last name of the musician that have produced the most number of songs? | SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1 | music_2 |
[
"Show me last names of all the musicians who have been at the back position.",
"Who has been at the back position the most?"
] | [
"SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE stageposition = \"back\"",
"SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE stageposition = \"back\" GROUP BY lastname ORDER BY count(*) DESC LIMIT 1"
] | What is the last name of the musician that has been at the back position the most? | SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE stageposition = "back" GROUP BY lastname ORDER BY count(*) DESC LIMIT 1 | music_2 |
[
"Find all the songs whose name starts with the word \"the\".",
"Find all songs that contains that word."
] | [
"SELECT title FROM songs WHERE title LIKE 'the %'",
"SELECT title FROM songs WHERE title LIKE '% the %'"
] | Find all the songs whose name contains the word "the". | SELECT title FROM songs WHERE title LIKE '% the %' | music_2 |
[
"Find me the id of the song called \"Le Pop\".",
"Which instruments were used in that song?",
"Which instrument did the musician with last name \"Heilo\" play?"
] | [
"SELECT SongId from Songs WHERE Title = \"Le Pop\"",
"SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T3.title = \"Le Pop\"",
"SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = \"Heilo\" AND T3.title = \"Le Pop\""
] | What instrument did the musician with last name "Heilo" use in the song "Le Pop"? | SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = "Heilo" AND T3.title = "Le Pop" | music_2 |
[
"How many times was each instrument used?",
"Which instrument was the most used?"
] | [
"SELECT instrument, count(*) FROM instruments GROUP BY instrument",
"SELECT instrument FROM instruments GROUP BY instrument ORDER BY count(*) DESC LIMIT 1"
] | What is the most used instrument? | SELECT instrument FROM instruments GROUP BY instrument ORDER BY count(*) DESC LIMIT 1 | music_2 |
[
"How many instruments does the song \"Le Pop\" use?",
"List them."
] | [
"SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Le Pop\"",
"SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Le Pop\""
] | What instruments does the song "Le Pop" use? | SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop" | music_2 |
[
"What instruments does the song \"Le Pop\" use?",
"How many are there?"
] | [
"SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Le Pop\"",
"SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Le Pop\""
] | How many instruments does the song "Le Pop" use? | SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop" | music_2 |
[
"What instruments does the musician with last name \"Heilo\" use?",
"How many instruments are used?"
] | [
"SELECT DISTINCT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = \"Heilo\"",
"SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = \"Heilo\""
] | How many instrument does the musician with last name "Heilo" use? | SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo" | music_2 |
[
"How many instruments have the musician with last name \"Heilo\" ever use?",
"List those instruments"
] | [
"SELECT count(instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = \"Heilo\"",
"SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = \"Heilo\""
] | Find all the instruments ever used by the musician with last name "Heilo"? | SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo" | music_2 |
[
"Show me how many vocals each song uses.",
"Which one has the most? Show me the song title."
] | [
"SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid GROUP BY T1.songid",
"SELECT title FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid GROUP BY T1.songid ORDER BY count(*) DESC LIMIT 1"
] | Which song has the most vocals? | SELECT title FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid GROUP BY T1.songid ORDER BY count(*) DESC LIMIT 1 | music_2 |
[
"Show me all vocal types.",
"Show me the 5 least frequently appearing types among those.",
"Show me the most frequently appearing type."
] | [
"SELECT TYPE FROM vocals GROUP BY TYPE",
"SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY count(*) ASC LIMIT 5",
"SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1"
] | Which vocal type is the most frequently appearing type? | SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1 | music_2 |
[
"Show me all vocal types played by the band mate with last name \"Heilo\".",
"Which one did they play the most?"
] | [
"SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE lastname = \"Heilo\" GROUP BY TYPE",
"SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE lastname = \"Heilo\" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1"
] | Which vocal type has the band mate with last name "Heilo" played the most? | SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE lastname = "Heilo" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1 | music_2 |
[
"Show me songs named \"Le Pop\".",
"Which vocal type is used in that song?"
] | [
"SELECT * FROM songs WHERE title = \"Le Pop\"",
"SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Le Pop\""
] | What are the vocal types used in song "Le Pop"? | SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop" | music_2 |
[
"What vocal types are used in song \"Demon Kitty Rag\"?",
"How many are there?"
] | [
"SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Demon Kitty Rag\"",
"SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Demon Kitty Rag\""
] | Find the number of vocal types used in song "Demon Kitty Rag"? | SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Demon Kitty Rag" | music_2 |
[
"How many songs are there?",
"Show me the ones with a lead vocal.",
"How many are there?"
] | [
"SELECT count(DISTINCT title) FROM songs",
"SELECT DISTINCT title FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = \"lead\"",
"SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = \"lead\""
] | How many songs have a lead vocal? | SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "lead" | music_2 |
[
"Which vocal type does the musician with first name \"Solveig\" play?",
"Which one did that musician play in a song called \"A Bar in Amsterdam\"?"
] | [
"SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.firstname = \"Solveig\"",
"SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.firstname = \"Solveig\" AND T2.title = \"A Bar In Amsterdam\""
] | Which vocal type did the musician with first name "Solveig" played in the song with title "A Bar in Amsterdam"? | SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.firstname = "Solveig" AND T2.title = "A Bar In Amsterdam" | music_2 |
[
"Find songs that have a lead vocal.",
"Find all other songs."
] | [
"SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = \"lead\"",
"SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = \"lead\""
] | Find all the songs that do not have a lead vocal. | SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = "lead" | music_2 |
[
"Find me id of the song named \"Le Pop\".",
"Who performed that song?"
] | [
"SELECT SongId FROM Songs WHERE Title = \"Le Pop\"",
"SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = \"Le Pop\""
] | Who performed the song named "Le Pop"? | SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Le Pop" | music_2 |
[
"What instrument is used in the song \"Badlands\"?",
"Which instrument did the musician with last name \"Heilo\" use in that song?"
] | [
"SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T3.title = \"Badlands\"",
"SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = \"Heilo\" AND T3.title = \"Badlands\""
] | What instrument did the musician with last name "Heilo" use in the song "Badlands"? | SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = "Heilo" AND T3.title = "Badlands" | music_2 |
[
"Show me all distinct instruments used in the song \"Badlands\".",
"How many are there?"
] | [
"SELECT DISTINCT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Badlands\"",
"SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Badlands\""
] | How many instruments does the song "Badlands" use? | SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands" | music_2 |
[
"Show me all the bandmates in song \"Badlands\"",
"Show me all vocal types used in song \"Badlands\"."
] | [
"SELECT Bandmate FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Badlands\"",
"SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Badlands\""
] | What are the vocal types used in song "Badlands"? | SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands" | music_2 |
[
"Show me all vocal types used in song \"Le Pop\".",
"How many are there?"
] | [
"SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Le Pop\"",
"SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Le Pop\""
] | Find the number of vocal types used in song "Le Pop" | SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop" | music_2 |
[
"Show me all songs with shared vocals.",
"How many are there?"
] | [
"SELECT DISTINCT title FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = \"shared\"",
"SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = \"shared\""
] | How many songs have a shared vocal? | SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "shared" | music_2 |