added logical  &  operators into query checking