entity query input check