query-6d653f8839302deb7a6252e2c8b3b55c
Florentyna(Q13357858)badminton tournament (P279)subclass of (P276)location
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 schema: <http://schema.org/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX mw: <http://tools.wmflabs.org/mw2sparql/ontology#>
SELECT DISTINCT ?tournament ?tournamentLabel ?location ?locationLabel {
?cat p:P4224[ps:P4224 wd:Q13357858; pq:P276 ?location] .
?catArticle schema:about ?cat
SERVICE <http://tools.wmflabs.org/mw2sparql/sparql> {
?page mw:inCategory ?catArticle
}
?page schema:about ?tournament . ?tournament wdt:P279 wd:Q13357858
FILTER NOT EXISTS { ?tournament wdt:P276 [] }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?cat")
v4("?catArticle")
v2("?location"):::projected
v5("?page")
v1("?tournament"):::projected
a1((" "))
a2((" "))
c13(["en,de"]):::literal
c3(["wd:Q13357858"]):::iri
c11(["bd:serviceParam"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:direct/P276"--> e0a1
e0v1("?tournament"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
v1 --"p:direct/P276"--> a1
a2 --"p:statement/P4224"--> c3
a2 --"p:qualifier/P276"--> v2
v3 --"p:P4224"--> a2
v4 --"schema:about"--> v3
subgraph s1["http://tools.wmflabs.org/mw2sparql/sparql"]
style s1 stroke-width:4px;
v5 --http://tools.wmflabs.org/mw2sparql/ontology#inCategory--> v4
end
v5 --"schema:about"--> v1
v1 --"p:direct/P279"--> c3
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c11 --"wikibase:language"--> c13
end