Disable query checks for pre-queries

Signed-off-by: emanuele <emanuele45@gmail.com>