query: SELECT 
    (COUNT(?person) AS ?count)
    ?lexeme ?lemma ?surname
    (SAMPLE(?person) AS ?example_person)
    (GROUP_CONCAT(?person_labels; separator=", ") AS ?names)
  WHERE {
    hint:Query hint:optimizer "None".     
  
    ?lexeme dct:language wd:Q9035 .
    ?lexeme ontolex:lexicalForm ?form .
    ?form wikibase:grammaticalFeature wd:Q52434448 .
    ?lexeme wikibase:lemma ?lemma .
    ?form ontolex:representation ?word .
    BIND(STRLANG(CONCAT(UCASE(SUBSTR(STR(?word), 1, 1)), SUBSTR(STR(?word), 2)), "en") AS ?surname)
    ?surname_item rdfs:label ?surname .
    ?person wdt:P734 ?surname_item  .
    ?person rdfs:label ?person_labels . FILTER(LANG(?person_labels) = "en")
  }
  GROUP BY ?lexeme ?lemma ?surname
  ORDER BY DESC(?count) 
  LIMIT 100