Hello @mrityunjay ,
If you want to target if one order's total amount > 5000 then you can use like below.
1. Start your first query with the order table. First select all the order where ( amount * order quantity) >5000.

2. Then use change dimension activity to switch to recipient. It is important to select single records.

3. Your workflow will be look like below:

If you want to target, if total amount of all orders >5000 then you need to use group by.
For this one you can do like below:
1. In order query activity select all orders, do not add any condition.

2. Add additional data.

3. Disable adding primary key:

4. Add condition to select only records where total amount more than 5000.

5. After that you would get the customers who total amount is greater than 5000.
6. There is no targeting dimension in the output. If you want to add recipient dimension then use enrichment query:

it will look like below:

Thanks.
Parvesh.