query: #Buildings of the Balearic Islands by type
  #defaultView:BubbleChart
  SELECT DISTINCT ?name ?nameLabel (count(*) as ?count)
  WHERE {
      ?bui wdt:P131* wd:Q5765.
      ?bui wdt:P31*/wdt:P279* wd:Q41176.
  	?bui wdt:P31 ?name .
    SERVICE wikibase:label {
      bd:serviceParam wikibase:language "en" .
    }
  }
  GROUP BY ?name ?nameLabel
  ORDER BY DESC(?count)