Built discrepancy query