Adding impl of vectorial query.