query-90e815cd9a9f9c11e58fc39fbd17c748

rq turtle/ttl

. COUNT). In diesem Fall sind wir an der Anzahl von Gemälden interessiert; die Aggregat-Funktion dafür ist ?gemaelde und dann eine Aggregat-Funktion für die andere ausgewählte Variable (?material-Klausel für das GROUP BYErgänze als nächstes eine

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?material (COUNT(?gemaelde) AS ?menge)
WHERE
{
  ?gemaelde wdt:P31/wdt:P279* wd:Q3305213;
            p:P186 [ ps:P186 ?material; pq:P518 wd:Q861259 ].
}
GROUP BY ?material

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?gemaelde"):::projected v2("?material"):::projected v3("?menge") a1((" ")) a2((" ")) c3(["wd:Q3305213"]):::iri c6(["wd:Q861259"]):::iri v1 --"p:direct/P31"--> a1 a1 --"p:direct/P279"--> c3 a2 --"p:statement/P186"--> v2 a2 --"p:qualifier/P518"--> c6 v1 --"p:P186"--> a2 bind1[/"count(?gemaelde)"/] v1 --o bind1 bind1 --as--o v3