query-8db9bad74f38761edbdfd0d0877f42f1
Replace pr:P1343 with pr:P248
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?value ?valueLabel ?statement
WHERE
{
{
SELECT DISTINCT ?item ?value ?statement
WHERE
{
?ref pr:P1343 ?value .
?statement prov:wasDerivedFrom ?ref .
?item ?p ?statement .
}
} .
FILTER( ?item NOT IN ( wd:Q4115189, wd:Q13406268, wd:Q15397819 ) ) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v5("?p")
v2("?ref")
v4("?statement"):::projected
v3("?value"):::projected
c7(["bd:serviceParam"]):::iri
c9(["en"]):::literal
f0[["?item != 'wd:Q4115189'?item != 'wd:Q13406268'?item != 'wd:Q15397819'"]]
f0 --> v1
v2 --"pr:P1343"--> v3
v4 --"prov:wasDerivedFrom"--> v2
v1 -->v5--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end