getQueryPageContent method