query-9d0b7eb5a1276db8aa2d5725247d961f

rq turtle/ttl

both ambassador and list instance (should be split) SELECT DISTINCT ?item ?itemLabel WHERE { ?item wdt:P31/wdt:P279* wd:Q121998. ?item wdt:P31 wd:Q13406463. ?item rdfs:label ?itemLabel1. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#both ambassador and list instance (should be split)
SELECT DISTINCT ?item  ?itemLabel WHERE {
  ?item wdt:P31/wdt:P279* wd:Q121998.
  ?item wdt:P31 wd:Q13406463.
  ?item rdfs:label ?itemLabel1.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?itemLabel1") a1((" ")) c7(["bd:serviceParam"]):::iri c3(["wd:Q121998"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal c4(["wd:Q13406463"]):::iri v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P31"--> c4 v1 --"rdfs:label"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end