query-cdff96d4ce2b0845a961e8f44594fd52
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 WHERE
{
?item wdt:P136 wd:Q557141 . # public art
?item wdt:P131* wd:Q23939248 . # in London
{?item wdt:P180/wdt:P21 wd:Q6581072 .} # P180 depicts an item which has a P21 sex or gender of female
UNION # together with
{?item wdt:P180/wdt:P279* wd:Q6581072 .} # P180 depicts an item which is a P279* subclass of female
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
a1((" "))
a2((" "))
c10(["bd:serviceParam"]):::iri
c2(["wd:Q557141"]):::iri
c4(["wd:Q23939248"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c7(["wd:Q6581072"]):::iri
v1 --"wdt:P136"--> c2
v1 --"wdt:P131"--> c4
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P180"--> a2
a2 --"wdt:P279"--> c7
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P180"--> a1
a1 --"wdt:P21"--> c7
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end