query-56a8ca15cc7b33e3b88c31f93d09781e
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 ?class ?classLabel ?property ?count WHERE {
{
SELECT ?class ?property (COUNT(DISTINCT ?faculty) AS ?count) WHERE {
VALUES ?class { wd:Q180958 wd:Q2467461 }.
VALUES ?property { wdt:P749 wdt:P361 }.
?faculty wdt:P31 ?class; ?property [].
}
GROUP BY ?class ?property
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "hu,en". }
}
ORDER BY ?class ?property
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?class"):::projected
v4("?count"):::projected
v3("?faculty")
v3("?property"):::projected
a1((" "))
c3(["bd:serviceParam"]):::iri
c5(["hu,en"]):::literal
bind0[/VALUES ?class/]
bind0-->v3
bind00(["wd:Q180958"])
bind00 --> bind0
bind01(["wd:Q2467461"])
bind01 --> bind0
bind1[/VALUES ?property/]
bind1-->v3
bind10(["wdt:P749"])
bind10 --> bind1
bind11(["wdt:P361"])
bind11 --> bind1
v3 --"wdt:P31"--> v3
v3 -->v3--> a1
bind3[/"count(?faculty)"/]
v3 --o bind3
bind3 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end