query-cb9dff14571405a489cfe07ebdd5caad
Locations of events with parts
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?location ?haspart WHERE {
?item wdt:P5008 wd:Q66098665; wdt:P276 ?location; wdt:P527 ?haspart.
FILTER EXISTS { ?item wdt:P527 ?dummy0 }
FILTER EXISTS { ?item wdt:P276 ?dummy0 }
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;
v2("?dummy0")
v4("?haspart"):::projected
v1("?item"):::projected
v3("?location"):::projected
c6(["bd:serviceParam"]):::iri
c4(["wd:Q66098665"]):::iri
c8(["en"]):::literal
f0[[" "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P276"--> e0v2
e0v2("?dummy0"):::projected
e0v1("?item"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"wdt:P276"--> v2
f1[[" "]]
subgraph f1e1["Exists Clause"]
e1v1 --"wdt:P527"--> e1v2
e1v2("?dummy0"):::projected
e1v1("?item"):::projected
end
f1--EXISTS--> f1e1
f1 --> v1
f1 --> c2
f1 --> v2
v1 --"wdt:P527"--> v2
v1 --"wdt:P5008"--> c4
v1 --"wdt:P276"--> v3
v1 --"wdt:P527"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end