query: embed.html#PREFIX wd: <http://www.wikidata.org/entity/>
  PREFIX wdt: <http://www.wikidata.org/prop/direct/>
  PREFIX wikibase: <http://wikiba.se/ontology#>
  PREFIX p: <http://www.wikidata.org/prop/>
  PREFIX v: <http://www.wikidata.org/prop/statement/>
  PREFIX q: <http://www.wikidata.org/prop/qualifier/>
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  PREFIX ps: <http://www.wikidata.org/prop/statement/>
  PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
  
  
    # Query to find the classes of items that are
    # most often connected by the property ?p = P605
    # Query generated by [[Template:MostConnectedClasses]]
  
  SELECT ?class ?classLabel ?count WHERE {
    {
      SELECT ?class (COUNT(*) AS ?count) WHERE {
         ?item wdt:P31 ?class .
         ?item wdt:P31 wd:Q177634 .
         ?item wdt:P17 wd:Q145 .
      } GROUP BY ?class
    } . 
    SERVICE wikibase:label {
      bd:serviceParam wikibase:language "en" .
    }
  }
  # HAVING (?count > 1)
  ORDER BY DESC(?count) ?classLabel
  LIMIT 100