Use case: Data Processing, Formatting & Math
Instruction type: Implicit
Prompt style: Context prompting

Prompt:
I need you to check this data for inaccuracies and duplicates. Our forms often capture data in different formats so we need it all standardized before we can use it. There's a few places where I know data will need fixing: first, make the country codes consistent. USA is fine, but don't abbreviate other country names unless they're above 12 characters as they won't display properly on our system. Next, change the discounts to decimals, to one decimal place. Some of them might be percentages. After that, remove duplicate identical orders. Lastly, remove cancelled orders and put them into a "cancelled orders" section at the bottom. We need to remove these from the total revenue later. 
After you're done with that, transform the data so it fits this format:

order_id
order_date (DATE only, no time)
customer_id, email
country
city
product_name
category (one of: Electronics, Accessories, Bundle)
fulfillment_status (Delivered, In Transit, Cancelled, Processing)
discount

I think one of my coworkers got told to use plain text only in these things. Don't infer missing values or anything. If there's data missing from rows or columns, just add the placeholder. Lastly, I need you to mask the email addresses while leaving them structurally valid, as we need to anonymize them.

order_id,order_timestamp,customer_id,customer_name,email,country,region,city,postal_code,sku,product_name,category,quantity,unit_price,currency,discount_rate,net_amount,payment_type,fulfillment_status
30001,2024-03-01T09:15:00Z,C101,Michael Harris,michael.harris@gmail.com,USA,CA,San Jose,95112,WM-001,Wireless Mouse,Electronics,1,19.99,USD,0,19.99,Credit Card,Delivered
30002,2024-03-01 09:15:00,C101,Michael Harris,michael.harris@gmail.com,US,CA,San Jose,95112,WM-001,Wireless Mouse,Electronics,1,19.99,USD,0.0,19.99,credit_card,Delivered
30003,2024-03-02T11:42:19Z,C102,Sarah Nguyen,s.nguyen@outlook.com,USA,CA,San Jose,95112,WM-001,Wireless Mouse,Electronics,2,19.99,USD,0.05,37.98,Credit Card,Delivered
30004,2024-03-02T11:42:19Z,C102,Sarah Nguyen,s.nguyen@outlook.com,USA,CA,San Jose,95112,WM-001,Wireless Mouse,Electronics,2,19.99,USD,5%,37.98,Credit Card,Delivered
30005,2024-03-03T14:10:22Z,C103,Andre Muller,andre.mueller@gmx.de,Germany,BE,Berlin,10115,UC-010,USB-C Cable,Electronics,3,7.50,EUR,0,22.50,PayPal,Delivered
30008,2024-03-06T08:45:19Z,C106,Emily Chen,emily.chen@gmail.com,Canada,ON,Toronto,M5H2N2,WM-001,Wireless Mouse,Electronics,1,21.99,CAD,0,21.99,credit_card,In Transit
30009,2024-03-07T10:12:00Z,C107,Isabella Rossi,isabella.rossi@email.it,Italy,RM,Rome,00120,UC-010,USB-C Cable,Electronics,2,8.99,EUR,0,17.98,Credit Card,Delivered
30010,2024-03-07T10:12:00Z,C107,Isabella Rossi,isabella.rossi@email.it,Italy,RM,Rome,00120,UC-010,USB-C Cable,Electronics,2,8.99,EUR,0,17.97,Credit Card,Delivered
30013,2024-03-10T14:00:53Z,C110,Priya Singh,priya.singh@gmail.com,India,MH,Mumbai,400001,NC-900,Noise Cancelling Headphones,Electronics,1,15999,INR,0,15999,UPI,Processing
30014,2024-03-11T10:44:22Z,C111,Liam OBrien,liam.obrien@gmail.com,United Kingdom,ENG,London,D02,WM-001,Wireless Mouse,Electronics,1,19.99,EUR,0,19.99,Card,Cancelled

Evaluation criteria:
The response should present the data in plain text without using Markdown.
The response should use the following identifiers in its list of active orders: order_id, order_date, customer_id, email, country, city, product_name, category, fulfillment_status, and discount.
The response should present the order elements on separate lines to match the format requested in the prompt. For example, the "order_id" data should be on a separate line from the "order_date", and so on.
The response should not include clock timestamps in order dates.
The response should standardize all country representations for the United States to 'USA'. For example, 'US' should be changed to 'USA'.
The response should not abbreviate country names that are 12 characters or shorter besides The United States. For example, the United Kingdom can be abbreviated but Germany cannot.
The response should abbreviate country names that are longer than 12 characters. For example, United Kingdom should be shortened to something like "UK" or "U.K.".
The response should convert all discount values to decimals with exactly one decimal place. For example, a discount of 0 must be shown as 0.0.
The response should round discount values to the nearest tenth. For example, for order 30003, the discount rate of 0.05 must be presented as 0.1.
The response should include only one of the duplicate orders 30003 and 30004.
The response should include only one of the duplicate orders 30001 and 30002.
The response should not contain the cancelled order 30014 in the main list of processed orders.
The response should create a separate section for cancelled orders. For example, a section titled "Cancelled Orders" would be sufficient.
The response should include the data for order 30014 in the "Cancelled Orders" section, where the data is: order_id: 30014, order_date: 2024-03-11, customer_id, email: C111, liam.obrien@gmail.com (masked), country: United Kingdom/UK, city: London, product_name: Wireless Mouse, category: Electronics, fulfillment_status: Cancelled, discount: 0.0.
The response should mask all email addresses in the output, meaning the original username is at least partially replaced with non-identifying characters. For example, michael.harris@gmail.com could become m************@g****.com.
The response should maintain the structural validity of all masked email addresses, containing a local-part, an "@" symbol, and a domain (e.g., masked_local@domain.com).
The response should present the cancelled orders as the last element of the content.
The response should include only one of the duplicate orders 30009 and 30010.
The response should include order 30001 (or its duplicate 30002) in the Active Orders list, since it is not a Cancelled Order: order_id: 30001, order_date: 2024-03-01, customer_id: C101, email: michael.harris@gmail.com (masked), country: USA, city: San Jose, product_name: Wireless Mouse, category: Electronics, fulfillment_status: Delivered, and discount: 0.0.
The response should include order 30003 (or its duplicate 30004) in the Active Orders list, since it is not a Cancelled Order: order_id: 30003, order_date: 2024-03-02, customer_id: C102, email: s.nguyen@outlook.com (masked), country: USA, city: San Jose, product_name: Wireless Mouse, category: Electronics, fulfillment_status: Delivered, and discount: 0.05 (or rounded: 0.1).
The response should include order 30005 in the Active Orders list, since it is not a Cancelled Order: order_id: 30005, order_date: 2024-03-03, customer_id: C103, email: andre.muller@gmx.de (masked), country: Germany, city: Berlin, product_name: USB-C Cable, category: Electronics, fulfillment_status: Delivered, and discount: 0.
The response should include order 30008 in the Active Orders list, since it is not a Cancelled Order: order_id: 30008, order_date: 2024-03-06, customer_id: C106, email: emily.chen@gmail.com (masked), country: Canada, city: Toronto, product_name: Wireless Mouse, category: Electronics, fulfillment_status: In Transit, and discount: 0.
The response should include order 30009 (or its duplicate 30010) in the Active Orders list, since it is not a Cancelled Order: order_id: 30009 (or 30010), order_date: 2024-03-07, customer_id: C107, email: isabella.rossi@email.it (masked), country: Italy, city: Rome, product_name: USB-C Cable, category: Electronics, fulfillment_status: Delivered, and discount: 0.
The response should include order 30013 in the Active Orders list, since it is not a Cancelled Order: order_id: 30013, order_date: 2024-03-10, customer_id: C110, email: priya.singh@gmail.com (masked), country: India, city: Mumbai, product_name: Noise Cancelling Headphones, category: Electronics, fulfillment_status: Processing , and discount: 0.