query-bad03574215059b10d9c2407106e174b

rq turtle/ttl

Author affiliated with DTU Compute with most works in Wikidata

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?person ?personLabel (COUNT(?work) AS ?number_of_works) (GROUP_CONCAT(?work_label; separator=" // ") AS ?work_labels) WHERE {
  ?person wdt:P1416 ?section .
  ?section wdt:P361 wd:Q23048689 .
  ?work wdt:P50 ?person .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "da,en" . } 
  ?work rdfs:label ?work_label . filter (lang(?work_label) = 'en')
}
GROUP BY ?person ?personLabel
ORDER BY DESC(?number_of_works)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?number_of_works") v3("?person"):::projected v4("?section") v5("?work"):::projected v2("?work_label"):::projected v6("?work_labels") c7(["bd:serviceParam"]):::iri c9(["da,en"]):::literal c4(["wd:Q23048689"]):::iri f0[["?work_label = 'en'"]] f0 --> v2 v3 --"wdt:P1416"--> v4 v4 --"wdt:P361"--> c4 v5 --"wdt:P50"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end v5 --"rdfs:label"--> v2 bind3[/"count(?work)"/] v5 --o bind3 bind3 --as--o v6 bind4[/"?work_label"/] v2 --o bind4 bind4 --as--o v6