debug for query which has broken result right now