query debug criterios