joshmoore added a comment.
Thanks again, Lucas. Simplifying the original a bit:
SELECT DISTINCT ?city (SAMPLE(?name) as ?name)
WHERE
{
?city wdt:P31/wdt:P279* wd:Q387917 . # wd:Q515 .
?city rdfs:label ?label .
FILTER(LANGMATCHES(LANG(?label), "en"))
joshmoore added a comment.
Thanks, Lucas. Appreciate the feedback as the original instigator. 😃 This may
be getting into a data model question but this leaves me to wonder that if
there a chance that there would be no `en` but several `en_*` entries, what
would be the appropriate filter