An orders table records gross amounts and optional discounts:
orders (
order_id INTEGER,
category TEXT,
gross_amount INTEGER,
discount INTEGER -- NULL when no discount was applied
)
Write a SQL query that computes net revenue per category, where the net for
each order is gross_amount minus the discount (treat a NULL discount as 0).
Return columns: category, net_revenue.
Order by net_revenue DESC, then category ASC.