Data error query editor - validation (work in progress)