aherntech/sparc huggingface dataset:
Database: film_rank
Question sequence:
Show me all film studios in record.
Which ones contain the word "Universal"?
Show me the titles of their films along with their name.
SQL query sequence:
SELECT distinct Studio FROM FILM
SELECT distinct Studio FROM FILM WHERE Studio LIKE "%Universal%"
SELECT title ,  Studio FROM film WHERE Studio LIKE "%Universal%"
Final question: Find the titles and studios of the films that are produced by some film studios that contained the word "Universal".
Final SQL: SELECT title ,  Studio FROM film WHERE Studio LIKE "%Universal%"
Database: film_rank
Question sequence:
Show me the name of all directors.
Which studios did Walter Hill work with?
Show me studios that are not among them.
SQL query sequence:
SELECT Director FROM film
SELECT Studio FROM film WHERE Director  =  "Walter Hill"
SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director  =  "Walter Hill"
Final question: Show the studios that have not produced films with director "Walter Hill".
Final SQL: SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director  =  "Walter Hill"
Database: film_rank
Question sequence:
Show me all film studios in record.
What are the maximum gross for their films?
What about the average?
Show me the name of studios that have average above 4500000.
SQL query sequence:
SELECT distinct Studio FROM FILM
SELECT Studio, max(Gross_in_dollar) FROM FILM GROUP BY studio
SELECT Studio, min(Gross_in_dollar) FROM FILM GROUP BY studio
SELECT Studio FROM film GROUP BY Studio HAVING avg(Gross_in_dollar)  >=  4500000
Final question: List the studios which average gross is above 4500000.
Final SQL: SELECT Studio FROM film GROUP BY Studio HAVING avg(Gross_in_dollar)  >=  4500000
Database: film_rank
Question sequence:
Show me the title of all films that have market estimation.
What are their high market estimations?
Show me the film that is the highest of them.
SQL query sequence:
SELECT distinct T1.title FROM film AS T1 JOIN film_market_estimation AS T2  ON T1.Film_ID  =  T2.Film_ID
SELECT t1.title, t2.high_estimate FROM film AS T1 JOIN film_market_estimation AS T2  ON T1.Film_ID  =  T2.Film_ID
SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2  ON T1.Film_ID  =  T2.Film_ID ORDER BY high_estimate DESC LIMIT 1
Final question: What is the title of the film that has the highest high market estimation.
Final SQL: SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2  ON T1.Film_ID  =  T2.Film_ID ORDER BY high_estimate DESC LIMIT 1
Database: party_host
Question sequence:
What are all the parties?
How many are there?
SQL query sequence:
SELECT * FROM party
SELECT count(*) FROM party
Final question: How many parties are there?
Final SQL: SELECT count(*) FROM party
Database: party_host
Question sequence:
What are all the parties?
Order them by the number of hosts.
Only show the Party_Theme in that order.
SQL query sequence:
SELECT * FROM party
SELECT * FROM party ORDER BY Number_of_hosts ASC
SELECT Party_Theme FROM party ORDER BY Number_of_hosts ASC
Final question: List the themes of parties in ascending order of number of hosts.
Final SQL: SELECT Party_Theme FROM party ORDER BY Number_of_hosts ASC
Database: party_host
Question sequence:
What are all the parties?
what are their themes and locations?
SQL query sequence:
SELECT * FROM party
SELECT Party_Theme , LOCATION FROM party
Final question: What are the themes and locations of parties?
Final SQL: SELECT Party_Theme , LOCATION FROM party
Database: party_host
Question sequence:
What are all the parties?
What about those with theme "Spring" or "Teqnology"?
Show their first year and last year.
SQL query sequence:
SELECT * FROM party
SELECT * FROM party WHERE Party_Theme  =  "Spring" OR Party_Theme  =  "Teqnology"
SELECT First_year ,  Last_year FROM party WHERE Party_Theme  =  "Spring" OR Party_Theme  =  "Teqnology"
Final question: Show the first year and last year of parties with theme "Spring" or "Teqnology".
Final SQL: SELECT First_year ,  Last_year FROM party WHERE Party_Theme  =  "Spring" OR Party_Theme  =  "Teqnology"
Database: party_host
Question sequence:
What are all the parties?
What are their number of hosts?
Show the average of them.
SQL query sequence:
SELECT * FROM party
SELECT Number_of_hosts FROM party
SELECT avg(Number_of_hosts) FROM party
Final question: What is the average number of hosts for parties?
Final SQL: SELECT avg(Number_of_hosts) FROM party
Database: party_host
Question sequence:
What are all the parties?
Order them by the number of hosts.
Show the location of the top one.
SQL query sequence:
SELECT * FROM party
SELECT * FROM party ORDER BY Number_of_hosts
SELECT LOCATION FROM party ORDER BY Number_of_hosts DESC LIMIT 1
Final question: What is the location of the party with the most hosts?
Final SQL: SELECT LOCATION FROM party ORDER BY Number_of_hosts DESC LIMIT 1
Database: party_host
Question sequence:
Who are all the hosts?
What are the different nationalities among them?
Please also show the number of hosts along with each nationality.
SQL query sequence:
SELECT * FROM HOST
SELECT Nationality FROM HOST GROUP BY Nationality
SELECT Nationality ,  COUNT(*) FROM HOST GROUP BY Nationality
Final question: Show different nationalities along with the number of hosts of each nationality.
Final SQL: SELECT Nationality ,  COUNT(*) FROM HOST GROUP BY Nationality
Database: party_host
Question sequence:
Who are all the hosts?
What are the different nationalities among them?
Order them by the number of host in each nationality.
Show the top one.
SQL query sequence:
SELECT * FROM HOST
SELECT Nationality FROM HOST GROUP BY Nationality
SELECT Nationality FROM HOST GROUP BY Nationality ORDER BY COUNT(*)
SELECT Nationality FROM HOST GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
Final question: Show the most common nationality of hosts.
Final SQL: SELECT Nationality FROM HOST GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
Database: party_host
Question sequence:
Who are all the hosts?
Show hosts who are older than 45.
Show hosts who are younger than 35.
Show the nations that have hosts from above two results at the same time.
SQL query sequence:
SELECT * FROM HOST
SELECT * FROM HOST WHERE Age  >  45
SELECT * FROM HOST WHERE Age  <  35
SELECT Nationality FROM HOST WHERE Age  >  45 INTERSECT SELECT Nationality FROM HOST WHERE Age  <  35
Final question: Show the nations that have both hosts older than 45 and hosts younger than 35.
Final SQL: SELECT Nationality FROM HOST WHERE Age  >  45 INTERSECT SELECT Nationality FROM HOST WHERE Age  <  35
Database: party_host
Question sequence:
Who are all the party hosts?
What are their names?
Show the themes of parties they host along with their name.
SQL query sequence:
SELECT * FROM party_host
SELECT T2.NAME FROM party_host as T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID
SELECT T3.Party_Theme ,  T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID
Final question: Show the themes of parties and the names of the party hosts.
Final SQL: SELECT T3.Party_Theme ,  T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID
Database: party_host
Question sequence:
Who are all the party hosts?
What are their names?
Show the locations of parties they host along with their names.
Order them by the age of the host.
SQL query sequence:
SELECT * FROM party_host
SELECT T2.NAME FROM party_host as T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID
SELECT T3.Location ,  T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID
SELECT T3.Location ,  T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID ORDER BY T2.Age
Final question: Show the locations of parties and the names of the party hosts in ascending order of the age of the host.
Final SQL: SELECT T3.Location ,  T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID ORDER BY T2.Age
Database: party_host
Question sequence:
Who are all the party hosts?
Show the name of those who are order than 50.
What about the locations of parties they host?
SQL query sequence:
SELECT * FROM party_host
SELECT T2.name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID WHERE T2.Age  >  50
SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID WHERE T2.Age  >  50
Final question: Show the locations of parties with hosts older than 50.
Final SQL: SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID WHERE T2.Age  >  50
Database: party_host
Question sequence:
Show me all parties.
Show those with more than 20 hosts.
What are the host names for those parties?
SQL query sequence:
SELECT * FROM party
SELECT * FROM party where Number_of_hosts > 20
SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID WHERE T3.Number_of_hosts  >  20
Final question: Show the host names for parties with number of hosts greater than 20.
Final SQL: SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID  =  T2.Host_ID JOIN party AS T3 ON T1.Party_ID  =  T3.Party_ID WHERE T3.Number_of_hosts  >  20
Database: party_host
Question sequence:
Who are all the hosts?
Who is the oldest one?
Show the name and the nationality of that host.
SQL query sequence:
SELECT * FROM HOST
SELECT * FROM HOST ORDER BY Age DESC LIMIT 1
SELECT Name ,  Nationality FROM HOST ORDER BY Age DESC LIMIT 1
Final question: Show the name and the nationality of the oldest host.
Final SQL: SELECT Name ,  Nationality FROM HOST ORDER BY Age DESC LIMIT 1
Database: ship_mission
Question sequence:
Show me the name of all the ships.
Which of them belong to United states?
Include those that belong to United Kingdom.
SQL query sequence:
SELECT name FROM ship
SELECT Name FROM ship WHERE Nationality  =  "United States"
SELECT Name FROM ship WHERE Nationality  =  "United States" OR Nationality  =  "United Kingdom"
Final question: Show the name of ships whose nationality is either United States or United Kingdom.
Final SQL: SELECT Name FROM ship WHERE Nationality  =  "United States" OR Nationality  =  "United Kingdom"
Database: ship_mission
Question sequence:
Show me the name of all the ships.
Which one has the largest tonnage?
SQL query sequence:
SELECT name FROM ship
SELECT Name FROM ship ORDER BY Tonnage DESC LIMIT 1
Final question: What is the name of the ship with the largest tonnage?
Final SQL: SELECT Name FROM ship ORDER BY Tonnage DESC LIMIT 1
Database: ship_mission
Question sequence:
What are the types of ships?
Which type is the most common?
SQL query sequence:
SELECT TYPE FROM ship
SELECT TYPE FROM ship GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
Final question: Please show the most common type of ships.
Final SQL: SELECT TYPE FROM ship GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
Database: ship_mission
Question sequence:
What nations are there?
How many ships are there?
How many ships does each nation have?
Show me nations that have more than two ships.
SQL query sequence:
SELECT Nationality FROM ship
SELECT count(*) FROM ship
SELECT Nationality, count(*) FROM ship group by Nationality
SELECT Nationality FROM ship GROUP BY Nationality HAVING COUNT(*)  >  2
Final question: List the nations that have more than two ships.
Final SQL: SELECT Nationality FROM ship GROUP BY Nationality HAVING COUNT(*)  >  2
Database: ship_mission
Question sequence:
What are the name of all the ships?
Give me missions that were launched after 1928.
Which ships were involved in any of those?
SQL query sequence:
SELECT NAME FROM ship
SELECT * FROM Mission where Launched_Year  >  1928
SELECT T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID  =  T2.Ship_ID WHERE T1.Launched_Year  >  1928
Final question: Show names of ships involved in a mission launched after 1928.
Final SQL: SELECT T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID  =  T2.Ship_ID WHERE T1.Launched_Year  >  1928
Database: ship_mission
Question sequence:
How many ships are there?
Which of them are from United States?
Show me the distinct fate of missions that involve any of those.
SQL query sequence:
SELECT COUNT(*) FROM ship
SELECT * FROM ship WHERE Nationality  =  "United States"
SELECT DISTINCT T1.Fate FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID  =  T2.Ship_ID WHERE T2.Nationality  =  "United States"
Final question: Show the distinct fate of missions that involve ships with nationality "United States"
Final SQL: SELECT DISTINCT T1.Fate FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID  =  T2.Ship_ID WHERE T2.Nationality  =  "United States"
Database: ship_mission
Question sequence:
What are all the missions?
Which ship is involved in any of them?
Give me the name of ships which are not among those.
SQL query sequence:
SELECT * FROM MISSION
SELECT Ship_ID FROM mission
SELECT Name FROM ship WHERE Ship_ID NOT IN (SELECT Ship_ID FROM mission)
Final question: List the name of ships that are not involved in any mission
Final SQL: SELECT Name FROM ship WHERE Ship_ID NOT IN (SELECT Ship_ID FROM mission)
Database: company_employee
Question sequence:
Tell me the industry of JPMorgan Chase.
How about its market value?
Tell me the names of companies in the banking or retailing industry.
SQL query sequence:
SELECT Industry FROM company WHERE Name = "JPMorgan Chase"
SELECT Market_Value_in_Billion FROM company WHERE Name = "JPMorgan Chase"
SELECT Name FROM company WHERE Industry  =  "Banking" OR Industry  =  "Retailing"
Final question: Show the names of companies in the banking or retailing industry?
Final SQL: SELECT Name FROM company WHERE Industry  =  "Banking" OR Industry  =  "Retailing"
Database: company_employee
Question sequence:
Tell me the headquarters of the company HSBC.
What is its market value?
What is the maximum and minimum market value of companies.
SQL query sequence:
SELECT Headquarters FROM company WHERE Name = "HSBC"
SELECT Market_Value_in_Billion FROM company WHERE Name = "HSBC"
SELECT max(Market_Value_in_Billion) ,  min(Market_Value_in_Billion) FROM company
Final question: What is the maximum and minimum market value of companies?
Final SQL: SELECT max(Market_Value_in_Billion) ,  min(Market_Value_in_Billion) FROM company
Database: company_employee
Question sequence:
Tell me the sales of HSBC.
How about that of PetroChina?
What is the headquarters of the company with the largest sales?
SQL query sequence:
SELECT Sales_in_Billion FROM company WHERE Name = "HSBC"
SELECT Sales_in_Billion FROM company WHERE Name = "PetroChina"
SELECT Headquarters FROM company ORDER BY Sales_in_Billion DESC LIMIT 1
Final question: What is the headquarter of the company with the largest sales?
Final SQL: SELECT Headquarters FROM company ORDER BY Sales_in_Billion DESC LIMIT 1
Database: company_employee
Question sequence:
Tell me the profits of the company BP.
How about its headquarters?
What is the most common headquarters for companies?
SQL query sequence:
SELECT Profits_in_Billion FROM company WHERE Name = "BP"
SELECT Headquarters FROM company WHERE Name = "BP"
SELECT Headquarters FROM company GROUP BY Headquarters ORDER BY COUNT(*) DESC LIMIT 1
Final question: Show the most common headquarter for companies.
Final SQL: SELECT Headquarters FROM company GROUP BY Headquarters ORDER BY COUNT(*) DESC LIMIT 1
Database: company_employee
Question sequence:
Tell me ExxonMobil's industry.
What is its headquarters?
Tell me the headquarters that have at least two companies.
SQL query sequence:
SELECT Industry FROM company WHERE Name = "ExxonMobil"
SELECT Headquarters FROM company WHERE Name = "ExxonMobil"
SELECT Headquarters FROM company GROUP BY Headquarters HAVING COUNT(*)  >=  2
Final question: Show the headquarters that have at least two companies.
Final SQL: SELECT Headquarters FROM company GROUP BY Headquarters HAVING COUNT(*)  >=  2
Database: company_employee
Question sequence:
Tell me the companies in the banking industry.
Where are their headquarters?
Tell me the headquarters that have both companies in the banking industry and companies in the oil and gas industry.
SQL query sequence:
SELECT Name FROM company WHERE Industry  =  "Banking"
SELECT Headquarters FROM company WHERE Industry  =  "Banking"
SELECT Headquarters FROM company WHERE Industry  =  "Banking" INTERSECT SELECT Headquarters FROM company WHERE Industry  =  "Oil and gas"
Final question: Show the headquarters that have both companies in banking industry and companies in oil and gas industry.
Final SQL: SELECT Headquarters FROM company WHERE Industry  =  "Banking" INTERSECT SELECT Headquarters FROM company WHERE Industry  =  "Oil and gas"
Database: company_employee
Question sequence:
Tell me Brad Lohaus's age.
Where does he work?
How about all the names of the companies and of the employees?
SQL query sequence:
SELECT Age FROM people WHERE Name = "Brad Lohaus"
SELECT T3.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID WHERE T2.Name = "Brad Lohaus"
SELECT T3.Name ,  T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID
Final question: Show the names of companies and of employees.
Final SQL: SELECT T3.Name ,  T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID
Database: company_employee
Question sequence:
Tell me the people working in HSBC.
How many are there?
What are the names of the companies and that of the employees in descending order of number of years working for that employee?
SQL query sequence:
SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID WHERE T3.Name = "HSBC"
SELECT COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID WHERE T3.Name = "HSBC"
SELECT T3.Name ,  T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID ORDER BY T1.Year_working
Final question: Show names of companies and that of employees in descending order of number of years working for that employee.
Final SQL: SELECT T3.Name ,  T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID ORDER BY T1.Year_working
Database: company_employee
Question sequence:
Tell me the company Tim Naegeli works in.
What are this company's sales numbers?
Tell me the names of the employees that work for the companies with sales bigger than 200.
SQL query sequence:
SELECT T3.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID WHERE T2.Name = "Tim Naegeli"
SELECT T3.Sales_in_Billion FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID WHERE T2.Name = "Tim Naegeli"
SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID WHERE T3.Sales_in_Billion  >  200
Final question: Show the names of employees that work for companies with sales bigger than 200.
Final SQL: SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID WHERE T3.Sales_in_Billion  >  200
Database: company_employee
Question sequence:
What are PetroChina's assets?
How many employees are there?
Tell me the names of the companies and the number of employees they have.
SQL query sequence:
SELECT Assets_in_Billion FROM company WHERE Name = "PetroChina"
SELECT COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID WHERE T3.Name = "PetroChina"
SELECT T3.Name ,  COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID GROUP BY T3.Name
Final question: Show the names of companies and the number of employees they have
Final SQL: SELECT T3.Name ,  COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID GROUP BY T3.Name
Database: company_employee
Question sequence:
How old is David Butler?
Where does he work?
Tell me the names of people that are not employed by any company.
SQL query sequence:
SELECT Age FROM people WHERE Name = "David Butler"
SELECT T3.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID WHERE T2.Name = "Brad Lohaus"
SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM employment)
Final question: List the names of people that are not employed by any company
Final SQL: SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM employment)
Database: tracking_share_transactions
Question sequence:
Show the amount of transactions whose type code is "PUR"
Show average amount of transactions whose type code is "PUR"
Show the minimum amount of transactions whose type code is "PUR" and whose share count is bigger than 50.
SQL query sequence:
SELECT amount_of_transaction FROM TRANSACTIONS WHERE transaction_type_code  =  "PUR"
SELECT avg(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code  =  "PUR"
SELECT min(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code  =  "PUR" AND share_count  >  50
Final question: Show the minimum amount of transactions whose type code is "PUR" and whose share count is bigger than 50.
Final SQL: SELECT min(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code  =  "PUR" AND share_count  >  50
Database: tracking_share_transactions
Question sequence:
Show the dates of transactions if the share count is bigger than 100.
Show the dates of transactions if the amount is bigger than 1000.
What are the dates of the transactions in these two groups?
SQL query sequence:
SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count  >  100
SELECT date_of_transaction FROM TRANSACTIONS WHERE amount_of_transaction  >  1000
SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count  >  100 OR amount_of_transaction  >  1000
Final question: Show the dates of transactions if the share count is bigger than 100 or the amount is bigger than 1000.
Final SQL: SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count  >  100 OR amount_of_transaction  >  1000
Database: tracking_share_transactions
Question sequence:
Show the transaction type description if the share count is smaller than 10.
Please also show their transaction dates.
SQL query sequence:
SELECT T1.transaction_type_description FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code  =  T2.transaction_type_code WHERE T2.share_count  <  10
SELECT T1.transaction_type_description ,  T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code  =  T2.transaction_type_code WHERE T2.share_count  <  10
Final question: Show the transaction type descriptions and dates if the share count is smaller than 10.
Final SQL: SELECT T1.transaction_type_description ,  T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code  =  T2.transaction_type_code WHERE T2.share_count  <  10