query-6178068c6e651f10a26434648deb61ba
Completeness (P2094 and P361):
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 ?event ?eventLabel ?competitionclass ?tournament ?tournamentLabel WHERE {
?event wdt:P31/wdt:P279* wd:Q46190676 .
OPTIONAL { ?event wdt:P2094 ?competitionclass }
OPTIONAL { ?event wdt:P361 ?tournament }
FILTER(!BOUND(?competitionclass)|| !BOUND(?tournament)) .
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("?competitionclass"):::projected
v3("?event"):::projected
v2("?tournament"):::projected
a1((" "))
c7(["bd:serviceParam"]):::iri
c3(["wd:Q46190676"]):::iri
c9(["en"]):::literal
f0[["(not bound(?competitionclass) || not bound(?tournament))"]]
f0 --> v1
f0 --> v2
v3 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P2094".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P361".-> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end