query-467419c629628581421579e0832267f2
Redundant P131 values?), this latter value being appropriately qualified: (Q3224)New South Wales (some other value which itself is P131/P131* (P131)located in the administrative territorial entity (without qualifiers) and (Q3224)New South Wales (P131)located in the administrative territorial entity There are quite a few items which have both
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
select distinct ?i ?iLabel {
?i p:P131 ?a ; p:P131 ?b .
?a ps:P131 ?c . ?b ps:P131 wd:Q3224 . ?c wdt:P131 wd:Q3224 .
MINUS { ?b ?s [] . ?s ^wikibase:qualifier [] }
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;
v2("?a")
v3("?b")
v4("?c")
v1("?i"):::projected
v5("?s")
a1((" "))
a2((" "))
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q3224"]):::iri
v1 --"p:P131"--> v2
v1 --"p:P131"--> v3
v2 --"p:statement/P131"--> v4
v3 --"p:statement/P131"--> c3
v4 --"p:direct/P131"--> c3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v3 -->v5--> a1
a2 --"wikibase:qualifier"--> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end