query-e014379a2101324389b612e5f6a1591f
Australian paintings/drawing/print/sculpture by institution and female creator
SELECT ?creatorLabel ?institutionLabel (COUNT(*) AS ?count) WHERE { {?artwork wdt:P31 wd:Q3305213.} # painting UNION {?artwork wdt:P31 wd:Q11060274.}# print UNION {?artwork wdt:P31 wd:Q93184.} # drawing UNION {?artwork wdt:P31 wd:Q860861.} # sculpture ?artwork wdt:P170 ?creator. # define variable creator ?creator wdt:P21 wd:Q6581072. # creator is female ?institution wdt:P131 wd:Q3258. # institution in ACT ?artwork wdt:P195 ?institution. SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } GROUP BY ?creatorLabel ?institutionLabel ORDER BY ?count ?creatorLabel
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#>
#Australian paintings/drawing/print/sculpture by institution and female creator
SELECT ?creatorLabel ?institutionLabel (COUNT(*) AS ?count) WHERE {
{?artwork wdt:P31 wd:Q3305213.} # painting
UNION
{?artwork wdt:P31 wd:Q11060274.}# print
UNION
{?artwork wdt:P31 wd:Q93184.} # drawing
UNION
{?artwork wdt:P31 wd:Q860861.} # sculpture
?artwork wdt:P170 ?creator. # define variable creator
?creator wdt:P21 wd:Q6581072. # creator is female
?institution wdt:P131 wd:Q3258. # institution in ACT
?artwork wdt:P195 ?institution.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
GROUP BY ?creatorLabel ?institutionLabel
ORDER BY ?count ?creatorLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?artwork")
v6("?count")
v4("?creator")
v2("?creatorLabel"):::projected
v5("?institution")
c4(["wd:Q93184"]):::iri
c15(["en"]):::literal
c8(["wd:Q6581072"]):::iri
c3(["wd:Q11060274"]):::iri
c2(["wd:Q3305213"]):::iri
c13(["bd:serviceParam"]):::iri
c5(["wd:Q860861"]):::iri
c10(["wd:Q3258"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P31"--> c5
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P31"--> c4
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P31"--> c3
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P31"--> c2
end
union0r <== or ==> union0l
end
v3 --"wdt:P170"--> v4
v4 --"wdt:P21"--> c8
v5 --"wdt:P131"--> c10
v3 --"wdt:P195"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end
bind1[/"count(*)"/]
bind1 --as--o v6