Created the page type query