Save 25%Black Friday: 25% off all plans — use code BLACKFRIDAY2026 at checkout. Ends Friday, Dec 4.Claim the deal

Table: orders

+----------+---------+
| Column   | Type    |
+----------+---------+
| order_id | integer |
| user_id  | integer |
| quantity | integer |
| status   | varchar |
| date     | date    |
| price    | float   |
+----------+---------+

Table: users

+-------------+----------+
| Column Name | Type     |
+-------------+----------+
| user_id     | integer  |
| city        | varchar  |
| email       | varchar  |
| signup_date | date     |
+-------------+----------+

order_id is the primary key of orders. user_id is the primary key of users. Each order row records a trade with a status of 'Completed' or 'Cancelled'.

Test Cases
Input
-
Output
-
Expected
-