query-b83f1c337aa637245c58440ca82b4f69
Propertiesinstance of (P31)sports discipline competed in (P2416)partner in business or sport (P1327)
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 ?skater ?skaterLabel ?disciplineLabel
WHERE {
?skater wdt:P31 wd:Q5 ;
wdt:P2416 ?discipline .
FILTER (?discipline IN (wd:Q1682809, wd:Q926191))
FILTER NOT EXISTS { ?skater wdt:P1327 ?partner .}
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;
v3("?discipline")
v2("?partner")
v1("?skater"):::projected
c8(["bd:serviceParam"]):::iri
c5(["wd:Q5"]):::iri
c10(["en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P1327"--> e0v2
e0v2("?partner"):::projected
e0v1("?skater"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"wdt:P1327"--> v2
list1c2(["wd:Q926191"]):::iri
list1c1(["wd:Q1682809"]):::iri
list1c1 --o f1
list1c2 --o f1
f1[[" in "]]
f1 --> v3
v1 --"wdt:P31"--> c5
v1 --"wdt:P2416"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end