aherntech/sparc huggingface dataset:
Database: cre_Doc_Tracking_DB
Question sequence:
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"?
SQL query sequence:
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"
Final question: What is the document type name for the document with name "How to read a book"?
Final SQL: 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"
Database: cre_Doc_Tracking_DB
Question sequence:
Show all locations.
How many are there?
SQL query sequence:
SELECT * FROM Ref_locations
SELECT count(*) FROM Ref_locations
Final question: Show the number of locations.
Final SQL: SELECT count(*) FROM Ref_locations
Database: cre_Doc_Tracking_DB
Question sequence:
List the names of all locations.
Also show their location codes.
SQL query sequence:
SELECT location_name FROM Ref_locations
SELECT location_code ,  location_name FROM Ref_locations
Final question: List all location codes and location names.
Final SQL: SELECT location_code ,  location_name FROM Ref_locations
Database: cre_Doc_Tracking_DB
Question sequence:
Show the names of all locations.
What is name for the one with code x?
Also show its description.
SQL query sequence:
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"
Final question: What are the name and description for location code x?
Final SQL: SELECT location_name ,  location_description FROM Ref_locations WHERE location_code  =  "x"
Database: cre_Doc_Tracking_DB
Question sequence:
Show the code for all locations.
How about the one named "Canada"?
SQL query sequence:
SELECT location_code FROM Ref_locations
SELECT location_code FROM Ref_locations
Final question: What is the location code for the country "Canada"?
Final SQL: SELECT location_code FROM Ref_locations WHERE location_name  =  "Canada"
Database: cre_Doc_Tracking_DB
Question sequence:
Show all roles.
How many are there?
SQL query sequence:
SELECT * FROM ROLES
SELECT count(*) FROM ROLES
Final question: How many roles are there?
Final SQL: SELECT count(*) FROM ROLES
Database: cre_Doc_Tracking_DB
Question sequence:
Show the names of all roles.
Also show their codes and descriptions.
SQL query sequence:
SELECT  role_name  FROM ROLES
SELECT role_code ,  role_name ,  role_description FROM ROLES
Final question: List all role codes, role names, and role descriptions.
Final SQL: SELECT role_code ,  role_name ,  role_description FROM ROLES
Database: cre_Doc_Tracking_DB
Question sequence:
Show the name for all roles.
What about the role with code "MG"?
Also show its description.
SQL query sequence:
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"
Final question: What are the name and description for role code "MG"?
Final SQL: SELECT role_name ,  role_description FROM ROLES WHERE role_code  =  "MG"
Database: cre_Doc_Tracking_DB
Question sequence:
Show the descriptions of all roles.
What is the description for the one named "Proof Reader"?
SQL query sequence:
SELECT role_description FROM ROLES
SELECT role_description FROM ROLES WHERE role_name  =  "Proof Reader"
Final question: Show the description for role name "Proof Reader".
Final SQL: SELECT role_description FROM ROLES WHERE role_name  =  "Proof Reader"
Database: cre_Doc_Tracking_DB
Question sequence:
Show information for all employees.
How many are there?
SQL query sequence:
SELECT * FROM Employees
SELECT count(*) FROM Employees
Final question: How many employees do we have?
Final SQL: SELECT count(*) FROM Employees
Database: cre_Doc_Tracking_DB
Question sequence:
Show the names of all employee.
Show the name, code, and date of birth for the employee named 'Armani'.
SQL query sequence:
SELECT employee_name FROM Employees
SELECT employee_name ,  role_code ,  date_of_birth FROM Employees WHERE employee_Name  =  'Armani'
Final question: Show the name, role code, and date of birth for the employee with name 'Armani'.
Final SQL: SELECT employee_name ,  role_code ,  date_of_birth FROM Employees WHERE employee_Name  =  'Armani'
Database: cre_Doc_Tracking_DB
Question sequence:
Show the id and name for all employees.
What is the id for the employee called Ebba?
SQL query sequence:
SELECT employee_ID, employee_name FROM Employees
SELECT employee_ID FROM Employees WHERE employee_name  =  "Ebba"
Final question: What is the id for the employee called Ebba?
Final SQL: SELECT employee_ID FROM Employees WHERE employee_name  =  "Ebba"
Database: cre_Doc_Tracking_DB
Question sequence:
Show the names and role code of all the employees.
Show names for those with "HR" as their role.
SQL query sequence:
SELECT employee_name , role_code FROM Employees
SELECT employee_name FROM Employees WHERE role_code  =  "HR"
Final question: Show the names of all the employees with role "HR".
Final SQL: SELECT employee_name FROM Employees WHERE role_code  =  "HR"
Database: cre_Doc_Tracking_DB
Question sequence:
Show the role code for all employees.
For each of them, also show the number of employees in each role.
SQL query sequence:
SELECT role_code FROM Employees
SELECT role_code ,  count(*) FROM Employees GROUP BY role_code
Final question: Show all role codes and the number of employees in each role.
Final SQL: SELECT role_code ,  count(*) FROM Employees GROUP BY role_code
Database: cre_Doc_Tracking_DB
Question sequence:
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?
SQL query sequence:
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
Final question: What is the role code with the largest number of employees?
Final SQL: SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC LIMIT 1
Database: cre_Doc_Tracking_DB
Question sequence:
Show role codes for all employees.
Count the number of employees for each of them.
Which of them have at least 3?
SQL query sequence:
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
Final question: Show all role codes with at least 3 employees.
Final SQL: SELECT role_code FROM Employees GROUP BY role_code HAVING count(*)  >=  3
Database: cre_Doc_Tracking_DB
Question sequence:
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?
SQL query sequence:
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
Final question: Show the role code with the least employees.
Final SQL: SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1
Database: cre_Doc_Tracking_DB
Question sequence:
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?
SQL query sequence:
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"
Final question: What is the role name and role description for employee called Ebba?
Final SQL: 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"
Database: cre_Doc_Tracking_DB
Question sequence:
Show the name for all employees.
Also show their role names.
Who has "Editor" as their role?
SQL query sequence:
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"
Final question: Show the names of employees with role name Editor.
Final SQL: SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T2.role_name  =  "Editor"
Database: cre_Doc_Tracking_DB
Question sequence:
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".
SQL query sequence:
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"
Final question: Show the employee ids for all employees with role name "Human Resource" or "Manager".
Final SQL: 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"
Database: cre_Doc_Tracking_DB
Question sequence:
Show locations for all documents.
Show all distinct locations among them.
SQL query sequence:
SELECT location_code FROM Document_locations
SELECT DISTINCT location_code FROM Document_locations
Final question: What are the different location codes for documents?
Final SQL: SELECT DISTINCT location_code FROM Document_locations
Database: cre_Doc_Tracking_DB
Question sequence:
Show all document names.
Also show their location name.
What is the location for the document titled "Robin CV"?
SQL query sequence:
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"
Final question: Show the location name for document "Robin CV".
Final SQL: 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"
Database: cre_Doc_Tracking_DB
Question sequence:
Show the location code for all the document locations.
Also show their their starting and ending dates.
SQL query sequence:
SELECT location_code FROM Document_locations
SELECT location_code ,  date_in_location_from ,  date_in_locaton_to FROM Document_locations
Final question: Show the location code, the starting date and ending date in that location for all the documents.
Final SQL: SELECT location_code ,  date_in_location_from ,  date_in_locaton_to FROM Document_locations
Database: cre_Doc_Tracking_DB
Question sequence:
Show the document names.
Also show the to and from dates for them.
What are these values for the document named "Robin CV"?
SQL query sequence:
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"
Final question: What is "the date in location from" and "the date in location to" for the document with name "Robin CV"?
Final SQL: 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"
Database: cre_Doc_Tracking_DB
Question sequence:
Show the codes for all document locations.
For each code, show the corresponding count of documents.
SQL query sequence:
SELECT location_code FROM Document_locations
SELECT location_code ,  count(*) FROM Document_locations GROUP BY location_code
Final question: Show the location codes and the number of documents in each location.
Final SQL: SELECT location_code ,  count(*) FROM Document_locations GROUP BY location_code
Database: cre_Doc_Tracking_DB
Question sequence:
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?
SQL query sequence:
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
Final question: What is the location code with the most documents?
Final SQL: SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC LIMIT 1
Database: cre_Doc_Tracking_DB
Question sequence:
Show all location codes.
For each of them, count the number of corresponding documents.
Which of them have at least 3?
SQL query sequence:
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
Final question: Show the location codes with at least 3 documents.
Final SQL: SELECT location_code FROM Document_locations GROUP BY location_code HAVING count(*)  >=  3
Database: cre_Doc_Tracking_DB
Question sequence:
Show the location codes for all documents.
Also show their locations.
How many documents come from each location?
Which location has the fewest?
SQL query sequence:
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
Final question: Show the location name and code with the least documents.
Final SQL: 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
Database: cre_Doc_Tracking_DB
Question sequence:
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.
SQL query sequence:
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
Final question: What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents?
Final SQL: 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
Database: cre_Doc_Tracking_DB
Question sequence:
Show the id of each employee who has authorized document destruction.
For each of them, count the number of destroyed documents they authorized.
SQL query sequence:
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
Final question: Show the id of each employee and the number of document destruction authorised by that employee.
Final SQL: SELECT Destruction_Authorised_by_Employee_ID ,  count(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID
Database: cre_Doc_Tracking_DB
Question sequence:
Show the employee ids having destroyed some documents.
For each employee, how many documents did they destroy?
SQL query sequence:
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
Final question: Show the employee ids and the number of documents destroyed by each employee.
Final SQL: SELECT Destroyed_by_Employee_ID ,  count(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID
Database: cre_Doc_Tracking_DB
Question sequence:
Show the ids of the employees having authorized any document destruction.
How about those who didn't?
SQL query sequence:
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
Final question: Show the ids of the employees who don't authorize destruction for any document.
Final SQL: SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed
Database: cre_Doc_Tracking_DB
Question sequence:
Show the id of all authorizing employees for documents to be destroyed.
Show only distinct ids.
SQL query sequence:
SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed
SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed
Final question: Show the ids of all employees who have authorized destruction.
Final SQL: SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed
Database: cre_Doc_Tracking_DB
Question sequence:
Show ids for employees who destroyed a document.
What are the distinct results?
SQL query sequence:
SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed
SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed
Final question: Show the ids of all employees who have destroyed a document.
Final SQL: SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed
Database: cre_Doc_Tracking_DB
Question sequence:
Show all employee ids.
Show all employee ids who have destroyed a document.
How about those who haven't?
SQL query sequence:
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
Final question: Show the ids of all employees who don't destroy any document.
Final SQL: SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed
Database: book_2
Question sequence:
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?
SQL query sequence:
SELECT * FROM publication
SELECT Publisher FROM publication
SELECT Publisher FROM publication ORDER BY Price DESC LIMIT 1
Final question: List the publisher of the publication with the highest price.
Final SQL: SELECT Publisher FROM publication ORDER BY Price DESC LIMIT 1
Database: book_2
Question sequence:
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.
SQL query sequence:
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
Final question: List the publication dates of publications with 3 lowest prices.
Final SQL: SELECT Publication_Date FROM publication ORDER BY Price ASC LIMIT 3
Database: book_2
Question sequence:
Could you tell me the book with published price more than 4000000?
Who were their writers?
SQL query sequence:
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
Final question: Show writers who have published a book with price more than 4000000.
Final SQL: SELECT T1.Writer FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID WHERE T2.Price  >  4000000
Database: book_2
Question sequence:
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.
SQL query sequence:
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
Final question: Show the titles of books in descending order of publication price.
Final SQL: SELECT T1.Title FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID  =  T2.Book_ID ORDER BY T2.Price DESC
Database: book_2
Question sequence:
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.
SQL query sequence:
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
Final question: Show publishers that have more than one publication.
Final SQL: SELECT Publisher FROM publication GROUP BY Publisher HAVING COUNT(*)  >  1
Database: book_2
Question sequence:
Tell me the publication date of the book﻿Dead Corps.
How about the book Cyberella?
Okay, please show me the most common publication date.
SQL query sequence:
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
Final question: Please show the most common publication date.
Final SQL: SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1
Database: book_2
Question sequence:
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.
SQL query sequence:
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
Final question: List the writers who have written more than one book.
Final SQL: SELECT Writer FROM book GROUP BY Writer HAVING COUNT(*)  >  1