wastage query