query-860da55509ba6f12a6c1718598b5c24e
TODO
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 ?participantLabel WHERE {
{
SELECT ?item ?itemLabel ?participantLabel (CONTAINS(?participantLabel, "Women's") AS ?is_woman) WHERE {
?item wdt:P31 wd:Q5; wdt:P106 wd:Q13141064; wdt:P1344 ?participant .
MINUS { ?item wdt:P21 [] } .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
} .
}
} .
FILTER( ?is_woman = true ) .
#FILTER( ?is_woman = false ) .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?is_woman")
v2("?item"):::projected
v3("?participant")
a1((" "))
c9(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c11(["en"]):::literal
c5(["wd:Q13141064"]):::iri
f0[["?is_woman = 'true^^xsd:boolean'"]]
f0 --> v4
v2 --"wdt:P31"--> c3
v2 --"wdt:P106"--> c5
v2 --"wdt:P1344"--> v3
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P21"--> a1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end
bind2[/"contains(?participantLabel,'Women's')"/]
null --o bind2
bind2 --as--o v4