Building docs (selectQueryJoin)