query-92987a2db834c0732968be31a9b2f271

rq turtle/ttl

TODO

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?paper ?paperLabel ?count

WHERE {
    {
  SELECT ?paper (MAX(xsd:integer(?val)) AS ?count) WHERE {
      {
  SELECT ?paper WHERE {  
     ?paper wdt:P31 wd:Q13442814.
     ?paper p:P2093/pq:P1545 "1000" .
  }
}.
     ?paper p:P2093/pq:P1545 ?val .
  } GROUP BY ?paper 
}.
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}                  
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?count"):::projected v2("?paper"):::projected v3("?val") a1((" ")) a2((" ")) c2(["wd:Q13442814"]):::iri c7(["bd:serviceParam"]):::iri c5(["1000"]):::literal c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"p:direct/P31"--> c2 v2 --"p:P2093"--> a1 a1 --"p:qualifier/P1545"--> c5 v2 --"p:P2093"--> a2 a2 --"p:qualifier/P1545"--> v3 bind1[/"max(http://www.w3.org/2001/XMLSchema#integer(?val))"/] v3 --o bind1 bind1 --as--o v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end