query-c4d3225e1d69bcb154d87218b4249d49

rq turtle/ttl

Modified SPARQL. Original credit: https://www.wikidata.org/wiki/User:Vojt%C4%9Bch_Dost%C3%A1l SELECT DISTINCT ?item (SAMPLE(?label) as ?itemLabel) WHERE { ?item wdt:P31 wd:Q101352 . ?item wdt:P1705 ?label . FILTER (lang(?label) = 'en') } GROUP BY ?item

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
# Modified SPARQL. Original credit: https://www.wikidata.org/wiki/User:Vojt%C4%9Bch_Dost%C3%A1l
SELECT DISTINCT ?item (SAMPLE(?label) as ?itemLabel) WHERE {
  ?item wdt:P31 wd:Q101352 .
  ?item wdt:P1705 ?label .
  FILTER (lang(?label) = 'en')
} GROUP BY ?item

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v3("?itemLabel") v1("?label"):::projected c3(["wd:Q101352"]):::iri f0[["?label = 'en'"]] f0 --> v1 v2 --"wdt:P31"--> c3 v2 --"wdt:P1705"--> v1 bind2[/"sample(?label)"/] v1 --o bind2 bind2 --as--o v3