Building docs (runSelectQuery)