aherntech/sparc huggingface dataset:
Database: cre_Drama_Workshop_Groups
Question sequence:
What are all the invoices?
Show all kinds of payment method codes among them.
Which one is used by most orders?
SQL query sequence:
SELECT * FROM INVOICES
SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code
SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1
Final question: What is the payment method code used by the most orders?
Final SQL: SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1
Database: cre_Drama_Workshop_Groups
Question sequence:
Show me information about the store named "FJA Filming".
Which city is that store located in?
SQL query sequence:
SELECT * FROM Stores WHERE Store_Name  =  "FJA Filming"
SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T2.Store_Name  =  "FJA Filming"
Final question: Which city is the address of the store named "FJA Filming" located in?
Final SQL: SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T2.Store_Name  =  "FJA Filming"
Database: cre_Drama_Workshop_Groups
Question sequence:
What are the stores with marketing region code "CA"?
What are their addresses?
What are the states or counties those addresses belong to?
SQL query sequence:
SELECT * FROM Stores where Marketing_Region_Code  =  "CA"
SELECT line_1, line_2 FROM Stores AS T1 JOIN addresses AS T2 on T1.address_ID = T2.address_ID where Marketing_Region_Code  =  "CA"
SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T2.Marketing_Region_Code  =  "CA"
Final question: What are the states or counties of the address of the stores with marketing region code "CA"?
Final SQL: SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T2.Marketing_Region_Code  =  "CA"
Database: cre_Drama_Workshop_Groups
Question sequence:
Show me information about the store named Rob Dinning?
What is the name of its marketing region?
SQL query sequence:
SELECT * FROM Stores WHERE Store_Name  =  "Rob Dinning"
SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code  =  T2.Marketing_Region_Code WHERE T2.Store_Name  =  "Rob Dinning"
Final question: What is the name of the marketing region that the store Rob Dinning belongs to?
Final SQL: SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code  =  T2.Marketing_Region_Code WHERE T2.Store_Name  =  "Rob Dinning"
Database: cre_Drama_Workshop_Groups
Question sequence:
What are the services with product price above 100?
What are the descriptions of the service types of them?
SQL query sequence:
SELECT * FROM Services WHERE Product_Price  >  100
SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code WHERE T2.Product_Price  >  100
Final question: What are the descriptions of the service types with product price above 100?
Final SQL: SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code WHERE T2.Product_Price  >  100
Database: cre_Drama_Workshop_Groups
Question sequence:
What are all the service types?
For each of them, what is the description, code and the corresponding count of service?
SQL query sequence:
SELECT * FROM Ref_Service_Types
SELECT T1.Service_Type_Description ,  T2.Service_Type_Code ,  COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T2.Service_Type_Code
Final question: What is the description, code and the corresponding count of each service type?
Final SQL: SELECT T1.Service_Type_Description ,  T2.Service_Type_Code ,  COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T2.Service_Type_Code
Database: cre_Drama_Workshop_Groups
Question sequence:
What are all the service types?
How many times has each of them being performed?
Show the description and code of the one that is performed the most often.
SQL query sequence:
SELECT * FROM Ref_Service_Types
SELECT T1.Service_Type_Description , T1.Service_Type_Code, count(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T1.Service_Type_Code
SELECT T1.Service_Type_Description , T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1
Final question: What is the description and code of the type of service that is performed the most often?
Final SQL: SELECT T1.Service_Type_Description , T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code  =  T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1
Database: cre_Drama_Workshop_Groups
Question sequence:
What are all the workshop groups?
What about those that services are performed?
Show their phones and emails.
SQL query sequence:
SELECT * FROM Drama_Workshop_Groups
SELECT * FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID
SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID
Final question: What are the phones and emails of workshop groups in which services are performed?
Final SQL: SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID
Database: cre_Drama_Workshop_Groups
Question sequence:
What are all the services with product name "film"?
What are the names of workshop groups in which they are performed?
SQL query sequence:
SELECT * FROM Services WHERE Product_Name = "film"
SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID WHERE T2.Product_Name  =  "film"
Final question: What are the names of workshop groups in which services with product name "film" are performed?
Final SQL: SELECT T1.Store_Phone ,  T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID WHERE T2.Product_Name  =  "film"
Database: cre_Drama_Workshop_Groups
Question sequence:
What are all the products?
Show all product names.
Show the average price for each name.
SQL query sequence:
SELECT * FROM PRODUCTS
SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name
SELECT Product_Name ,  avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name
Final question: What are the different product names? What is the average product price for each of them?
Final SQL: SELECT Product_Name ,  avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name
Database: cre_Drama_Workshop_Groups
Question sequence:
What are the names for all products?
Show the one that has average price smaller than 1000000.
SQL query sequence:
SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name
SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price)  <  1000000
Final question: What are the product names with average product price smaller than 1000000?
Final SQL: SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price)  <  1000000
Database: cre_Drama_Workshop_Groups
Question sequence:
What are all the photo products?
What are the total order quantities of them?
SQL query sequence:
SELECT * FROM Products where Product_Name = "photo"
SELECT sum(T1.Order_Quantity) FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID  =  T2.Product_ID WHERE T2.Product_Name  =  "photo"
Final question: What are the total order quantities of photo products?
Final SQL: SELECT sum(T1.Order_Quantity) FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID  =  T2.Product_ID WHERE T2.Product_Name  =  "photo"
Database: cre_Drama_Workshop_Groups
Question sequence:
What are all the products with price higher than 2000?
What are the order details of them?
SQL query sequence:
SELECT * FROM Products where Product_price  >  2000
SELECT T1.Other_Item_Details FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID  =  T2.Product_ID WHERE T2.Product_price  >  2000
Final question: What are the order details of the products with price higher than 2000?
Final SQL: SELECT T1.Other_Item_Details FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID  =  T2.Product_ID WHERE T2.Product_price  >  2000
Database: cre_Drama_Workshop_Groups
Question sequence:
What are the orders with quantity 1?
Show the actual delivery dates of them.
SQL query sequence:
SELECT * FROM ORDER_ITEMS WHERE Order_Quantity  =  1
SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID  =  T2.Order_ID WHERE T2.Order_Quantity  =  1
Final question: What are the actual delivery dates of orders with quantity 1?
Final SQL: SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID  =  T2.Order_ID WHERE T2.Order_Quantity  =  1
Database: cre_Drama_Workshop_Groups
Question sequence:
What are the products with price higher than 1000?
What are their order dates?
SQL query sequence:
SELECT * FROM Products where Product_price  >  1000
SELECT T1.Order_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID  =  T2.Order_ID JOIN Products AS T3 ON T2.Product_ID  =  T3.Product_ID WHERE T3.Product_price  >  1000
Final question: What are the order dates of orders with price higher than 1000?
Final SQL: SELECT T1.Order_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID  =  T2.Order_ID JOIN Products AS T3 ON T2.Product_ID  =  T3.Product_ID WHERE T3.Product_price  >  1000
Database: cre_Drama_Workshop_Groups
Question sequence:
What are the currency codes for all drama workshop groups?
Only show the distinct ones.
How many are there?
SQL query sequence:
SELECT Currency_Code FROM Drama_Workshop_Groups
SELECT DISTINCT Currency_Code FROM Drama_Workshop_Groups
SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups
Final question: How many distinct currency codes are there for all drama workshop groups?
Final SQL: SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups
Database: cre_Drama_Workshop_Groups
Question sequence:
What are the addresses in Feliciaberg city?
Show the drama workshop groups that are in those addresses.
SQL query sequence:
SELECT * FROM Addresses where City_Town = "Feliciaberg"
SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T1.City_Town  =  "Feliciaberg"
Final question: What are the names of the drama workshop groups with address in Feliciaberg city?
Final SQL: SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T1.City_Town  =  "Feliciaberg"
Database: cre_Drama_Workshop_Groups
Question sequence:
What are the addresses in Alaska state?
Show the names of drama workshop groups that are using those addresses?
SQL query sequence:
SELECT * FROM Addresses where State_County = "Alaska"
SELECT T2.Store_Email_Address FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T1.State_County  =  "Alaska"
Final question: What are the email addresses of the drama workshop groups with address in Alaska state?
Final SQL: SELECT T2.Store_Email_Address FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID  =  T2.Address_ID WHERE T1.State_County  =  "Alaska"
Database: cre_Drama_Workshop_Groups
Question sequence:
What are all the cities?
How many drama workshop groups are in each of them?
SQL query sequence:
SELECT City_Town FROM Addresses GROUP BY City_Town
SELECT T1.City_Town ,  count(*) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID  =  T2.Address_ID GROUP BY T1.City_Town
Final question: Show all cities along with the number of drama workshop groups in each city.
Final SQL: SELECT T1.City_Town ,  count(*) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID  =  T2.Address_ID GROUP BY T1.City_Town
Database: cre_Drama_Workshop_Groups
Question sequence:
What are the market region codes of all the drama workshop groups?
Which one of them has the most drama workshop groups?
SQL query sequence:
SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code
SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1
Final question: What is the marketing region code that has the most drama workshop groups?
Final SQL: SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1
Database: cre_Drama_Workshop_Groups
Question sequence:
Show me all the cities.
Which ones of them has at least one customer?
Among those cities, show ones that has no performer.
SQL query sequence:
SELECT City_Town FROM Addresses
SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID  =  T2.Address_ID
SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID  =  T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID  =  T2.Address_ID
Final question: Show all cities where at least one customer lives in but no performer lives in.
Final SQL: SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID  =  T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID  =  T2.Address_ID
Database: cre_Drama_Workshop_Groups
Question sequence:
What are the status of all the bookings?
Which one of them is the most frequent one?
SQL query sequence:
SELECT distinct Status_Code FROM BOOKINGS
SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY count(*) DESC LIMIT 1
Final question: What is the most frequent status of bookings?
Final SQL: SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY count(*) DESC LIMIT 1
Database: cre_Drama_Workshop_Groups
Question sequence:
Which bookings have status code "stop"?
Show the names of the workshop groups that have those bookings.
SQL query sequence:
SELECT * FROM BOOKINGS WHERE Status_Code  =  "stop"
SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID WHERE T1.Status_Code  =  "stop"
Final question: What are the names of the workshop groups that have bookings with status code "stop"?
Final SQL: SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID  =  T2.Workshop_Group_ID WHERE T1.Status_Code  =  "stop"
Database: cre_Drama_Workshop_Groups
Question sequence:
What are the names of all the clients?
How about those who have no booking?
SQL query sequence:
SELECT Customer_Name FROM Clients
SELECT Customer_Name FROM Clients EXCEPT SELECT T2.Customer_Name FROM Bookings AS T1 JOIN Clients AS T2 ON T1.Customer_ID  =  T2.Client_ID
Final question: Show the names of all the clients with no booking.
Final SQL: SELECT Customer_Name FROM Clients EXCEPT SELECT T2.Customer_Name FROM Bookings AS T1 JOIN Clients AS T2 ON T1.Customer_ID  =  T2.Client_ID
Database: cre_Drama_Workshop_Groups
Question sequence:
What are all the invoices using "MasterCard"?
Show the average quantities of them.
SQL query sequence:
SELECT * FROM Invoices WHERE payment_method_code  =  "MasterCard"
SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code  =  "MasterCard"
Final question: What is the average quantities ordered with payment method code "MasterCard" on invoices?
Final SQL: SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code  =  "MasterCard"
Database: cre_Drama_Workshop_Groups
Question sequence:
What are the product IDs of all the invoices?
Show the one that has been ordered the most.
SQL query sequence:
SELECT Product_ID FROM INVOICES
SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1
Final question: What is the product ID of the most frequently ordered item on invoices?
Final SQL: SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1
Database: cre_Theme_park
Question sequence:
How many hotels have 5 star ratings?
Among the results, how many are hotels that allow pets?
What one has the highest price range?
Please show the average price range of these hotels.
SQL query sequence:
SELECT COUNT(*) FROM HOTELS WHERE star_rating_code  =  "5"
SELECT COUNT(*) FROM HOTELS  WHERE star_rating_code  =  "5" AND pets_allowed_yn  =  1
SELECT hotel_id FROM HOTELS  WHERE star_rating_code  =  "5" AND pets_allowed_yn  =  1 ORDER BY price_range DESC LIMIT 1
SELECT avg(price_range) FROM HOTELS WHERE star_rating_code  =  "5" AND pets_allowed_yn  =  1
Final question: Show the average price range of hotels that have 5 star ratings and allow pets.
Final SQL: SELECT avg(price_range) FROM HOTELS WHERE star_rating_code  =  "5" AND pets_allowed_yn  =  1
Database: cre_Theme_park
Question sequence:
Please show the location names.
Which one contains the word "UK"?
Then, which one contains the word "film"?
SQL query sequence:
SELECT Location_Name FROM LOCATIONS
SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE "%UK%"
SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE "%film%"
Final question: Which location names contain the word "film"?
Final SQL: SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE "%film%"
Database: cre_Theme_park
Question sequence:
How many tourist attractions are there?
How many of them could be accessed by bus or walking?
Please show their names and opening hours.
SQL query sequence:
SELECT COUNT(*) FROM TOURIST_ATTRACTIONS
SELECT COUNT(*) FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There  =  "bus" OR How_to_Get_There  =  "walk"
SELECT Name ,  Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There  =  "bus" OR How_to_Get_There  =  "walk"
Final question: What are the names and opening hours of the tourist attractions that can be accessed by bus or walk?
Final SQL: SELECT Name ,  Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There  =  "bus" OR How_to_Get_There  =  "walk"
Database: cre_Theme_park
Question sequence:
How many hotels are there?
What is the average price range of these hotels?
How many of hotels have a price above 10000?
Please show the star rating descriptions of these hotels.
SQL query sequence:
SELECT COUNT(*) FROM HOTELS
SELECT AVG(price_range) FROM HOTELS
SELECT COUNT(*) FROM HOTELS WHERE price_range  >  10000
SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code  =  T2.star_rating_code WHERE T1.price_range  >  10000
Final question: What are the star rating descriptions of the hotels with price above 10000?
Final SQL: SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code  =  T2.star_rating_code WHERE T1.price_range  >  10000
Database: cre_Theme_park
Question sequence:
How many tourist attractions are there?
How many of them are associated with the photo "fun1"?
How about the photo "game1"?
Please show the name of these tourist attractions?
SQL query sequence:
SELECT COUNT(*) FROM TOURIST_ATTRACTIONS
SELECT COUNT(*) FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T1.Name  =  "fun1"
SELECT COUNT(*) FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T1.Name  =  "game1"
SELECT T2.Name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T1.Name  =  "game1"
Final question: What is the name of the tourist attraction that is associated with the photo "game1"?
Final SQL: SELECT T2.Name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T1.Name  =  "game1"
Database: cre_Theme_park
Question sequence:
How can I get to the tourist attraction "film festival"?
How many photos have been taken at this tourist attraction?
Please show its name and descriptions.
SQL query sequence:
SELECT How_to_Get_There FROM TOURIST_ATTRACTIONS WHERE Name  =  "film festival"
SELECT COUNT(*) FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T2.Name  =  "film festival"
SELECT T1.Name ,  T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T2.Name  =  "film festival"
Final question: What are the names and descriptions of the photos taken at the tourist attraction "film festival"?
Final SQL: SELECT T1.Name ,  T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T2.Name  =  "film festival"
Database: cre_Theme_park
Question sequence:
How many shops are there?
How many of them could be accessed by bus?
How about the number of those that could be accessed by walking?
Please show the details of these shops.
SQL query sequence:
SELECT COUNT(*) FROM SHOPS
SELECT COUNT(*) FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  "bus"
SELECT COUNT(*) FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  "walk"
SELECT T1.Shop_Details FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  "walk"
Final question: What are the details of the shops that can be accessed by walk?
Final SQL: SELECT T1.Shop_Details FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  "walk"
Database: cre_Theme_park
Question sequence:
Please show the description of the the attraction named "US museum".
How can I get to this place?
Who is in charge of it?
SQL query sequence:
SELECT Description FROM TOURIST_ATTRACTIONS WHERE Name  =  "US museum"
SELECT How_to_Get_There FROM TOURIST_ATTRACTIONS WHERE Name  =  "US museum"
SELECT T1.Name FROM STAFF AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T2.Name  =  "US museum"
Final question: What is the name of the staff that is in charge of the attraction named "US museum"?
Final SQL: SELECT T1.Name FROM STAFF AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID  =  T2.Tourist_Attraction_ID WHERE T2.Name  =  "US museum"
Database: cre_Theme_park
Question sequence:
How many markets are there?
How many of them could be accessed by shuttle?
How about the number of those that could be accessed by walking or bus?
Please show the details of these markets.
SQL query sequence:
SELECT COUNT(*) FROM Street_Markets
SELECT COUNT(*) FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  "shuttle"
SELECT COUNT(*) FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  "walk" OR  T2.How_to_Get_There  =  "bus"
SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  "walk" OR  T2.How_to_Get_There  =  "bus"
Final question: What are the details of the markets that can be accessed by walk or bus?
Final SQL: SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID  =  T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There  =  "walk" OR  T2.How_to_Get_There  =  "bus"