Query pages with property group by its value

Hi, I have many pages with property type (book, article, blog, etc) and would like to create a query to display a table with the columns

  1. type value (blog, article, book, etc)
  2. number of pages that have that type
  3. list of those pages

Please guide me on how to achieve this, thank you

2 Likes