comp and refund queries