refined QuerySpec model to include Validation