query-5c6f72640455c8b0c3f8aec77287f3d3

rq turtle/ttl

Venues

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT 
  ?count

  ?venue ?venueLabel
  (CONCAT("#venue/", SUBSTR(STR(?venue), 32)) AS ?venueUrl)
WHERE {
   {
  SELECT 
    (COUNT(*) AS ?count)
    ?venue
  WHERE {
    [] wdt:P1433 ?venue .
  }
  GROUP BY ?venue
  ORDER BY DESC(?count)
  LIMIT 200
}  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; v3("?count"):::projected v2("?venue"):::projected v3("?venueUrl") a1((" ")) c3(["bd:serviceParam"]):::iri c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal a1 --"wdt:P1433"--> v2 bind1[/"count(*)"/] bind1 --as--o v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end bind2[/"concat('#venue/',substring(str(?venue),'32^^xsd:integer'))"/] v2 --o bind2 bind2 --as--o v3