Sample data
Made-up data. If you have not loaded it yet, ask your assistant:
Load https://gotsimplified.com/samples/shop_tickets.csv into my data lake as samples.shop_tickets, replacing it if it already exists.
Download: shop_tickets.csv
Try this
Group the tickets in shop_tickets that are still open by age.
Your assistant may word its answers differently each time; the numbers come from your tables.
How long has it been waiting?
What is it?
Check the dates on the food in your fridge, oldest first.
How does it work?
It sorts items into age groups, such as under 30 days or over 90.
Good to know
Ask for only the open ones, or finished ones count too.
Before you start
Load the file below and save the shop_tickets model, shown on the 'Open items' page.
Make it yours
Your assistant needs the real names. Replace the table and column names in the prompt above with yours. If you are not sure of them, ask first: "Describe my table called orders."
Then ask
Each question builds on the last answer. Ask follow-ups in plain words.
"Show the oldest group."