abstract query doc