some-any query fix