{"id":"data2-orders-table-grain-faq-new-analyst","audience":"analysts","category":"data","track":"data","technique":"grounding","level":"intermediate","title":"Answer a new analyst's table questions using only the data guide","free":false,"task":"A new analyst asks which tables to use. Write a Q&A with exactly 3 questions and answers, each as 'Q:' then 'A:' on the next line, plain text, under 130 words. Each answer is at most 2 sentences, names the table, says what one row is, and uses only the data guide.","materialLabel":"Data guide and questions (attached to your prompt automatically)","material":"Data guide - Willowbrook Marketplace warehouse\n\norders: one row per order. Columns: order_id, customer_id, order_date, status, order_total_usd. order_total_usd is the whole order's total.\n\norder_items: one row per product line in an order. Columns: item_id, order_id, sku, quantity, unit_price_usd. An order can have many items.\n\ncustomers: one row per customer. Columns: customer_id, name, region, signup_date.\n\nrefunds: one row per refund. Columns: refund_id, order_id, refund_usd, refunded_at. An order can have more than one refund.\n\nTips from the data team:\n- status values in orders: placed, shipped, delivered, cancelled.\n- Joining orders to order_items repeats order_total_usd on every item row.\n\nThe analyst's questions:\n1. Which table do I use to count orders last month?\n2. Which table gives total units sold?\n3. Why is my revenue too high after joining orders to order_items?","rules":[{"type":"plainText"},{"type":"maxWords","max":130}],"mistakes":[{"title":"Naming no table","why":"The AI explains concepts without naming orders or order_items.","fix":"Add: \"Name the table and say what one row is.\"","checks":["r0"]},{"title":"Wrong table for units","why":"The AI uses orders for units sold.","fix":"Add: \"Units come from order_items: sum quantity.\"","checks":["r1"]},{"title":"Vague join answer","why":"The AI says 'joins can cause duplicates'.","fix":"Add: \"The join repeats order_total_usd on every item row.\"","checks":["r2"]},{"title":"Leaving the format to chance","why":"The AI picks its own length and layout unless told the exact shape.","fix":"Add: \"Plain text, no bold or headings.\"","checks":["plainText"]},{"title":"Trusting the AI to count words","why":"AI is bad at counting. Ask for a total word limit and it often lands over it.","fix":"Cap each part instead, for example \"each line under 15 words.\"","checks":["maxWords"]}],"promptHints":[{"label":"Asks for Q and A pairs","patterns":["q:","a:","exactly 3"]},{"label":"Asks for table and row grain","patterns":["name the table","one row"]},{"label":"Names the tables","patterns":["orders","order_items"]},{"label":"Explains the join","patterns":["repeats","every item row"]},{"label":"Limits to the guide","patterns":["only the data guide","using only"]}],"hint":"A table-grain answer says which table, what one row is, and the consequence. Spell that shape out.","mission":"Answer these questions about our data tables.","musts":["Three Q and A pairs","Name table and row grain","Only from the guide"],"rubricLabels":["Answer 1 names the orders table with one row per order, to count rows by order_date in the month (and mentions the status values such as cancelled to consider)","Answer 2 names order_items (one row per product line) and says to sum quantity","Answer 3 says the join repeats order_total_usd on every item row, so each order's total is counted once per item, and there are exactly 3 Q:/A: pairs of at most 2 sentences each"]}