query-93d798072ae01d9a20523a095fe68a34

rq turtle/ttl

List of Schools by Research Papers with Specific SubjectsNot fully accurate to what schools produce the papers since it uses all schools the authors attended.

Use at

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 ?school ?schoolLabel ?subject ?subjectLabel (count(distinct(?paper)) as ?countPapers)
WHERE {
  {?subject wdt:P279* wd:Q638328.} #subject is dynamical system
  UNION
  {?subject wdt:P279* wd:Q1787424.} #subject is chaos
  UNION
  {?subject wdt:P279* wd:Q185961.} #subject is time perception
  {?paper wdt:P31/wdt:P279* wd:Q13442814.} #is a scholarly article
  UNION
  {?paper wdt:P31/wdt:P279* wd:Q18918145.} #is a academic journal article
  ?paper wdt:P921 ?subject;
         wdt:P50 ?author.
  {?author wdt:P69 ?school.} #author educated at
  UNION
  {?author wdt:P108 ?school.} #author employed at
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
group by ?school ?schoolLabel ?subject ?subjectLabel
order by desc(?countPapers)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?author") v6("?countPapers") v3("?paper"):::projected v5("?school"):::projected v2("?subject"):::projected a1((" ")) a2((" ")) c7(["wd:Q18918145"]):::iri c2(["wd:Q638328"]):::iri c15(["en"]):::literal c4(["wd:Q185961"]):::iri c6(["wd:Q13442814"]):::iri c13(["bd:serviceParam"]):::iri c3(["wd:Q1787424"]):::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; v2 --"wdt:P279"--> c4 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P279"--> c3 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P279"--> c2 end union0r <== or ==> union0l end subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P31"--> a2 a2 --"wdt:P279"--> c7 end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c6 end union2r <== or ==> union2l end v3 --"wdt:P921"--> v2 v3 --"wdt:P50"--> v4 subgraph union3[" Union "] subgraph union3l[" "] style union3l fill:#abf,stroke-dasharray: 3 3; v4 --"wdt:P108"--> v5 end subgraph union3r[" "] style union3r fill:#abf,stroke-dasharray: 3 3; v4 --"wdt:P69"--> v5 end union3r <== or ==> union3l end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end bind1[/"count(?paper)"/] v3 --o bind1 bind1 --as--o v6