query-983ac7fce4ba248d1a899ccf061e27a1

rq turtle/ttl

10:52, 19 February 2020 (UTC)) talk (Tagishsimon --11:04, 19 February 2020 (UTC) JuraI think every week queries time-out in new ways ;) --- 11:06, 19 February 2020 (UTC) JuraBTW, I get 105931 results in 55645 ms --- 11:07, 19 February 2020 (UTC)) talk (Tagishsimon --https://www.w3.org/TR/sparql11-query/#having. That's a clue, at least. Not sure if this is a problem with Blazegraph or me; the use of having in the initial query seems to be cromulent with having (?count >1000)(EC) :) ... yes, it ran ... 105931 results in 50675 ms ... so it's ignoring the

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?thing ?thingLabel ?count 
WHERE
{
  {
    SELECT ?thing (count(?thing) as ?count)
    WHERE 
    {
      ?item wdt:P138 ?thing .
    } 
    group by ?thing having (?count >1000)
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?count"):::projected v2("?item") v3("?thing"):::projected c4(["bd:serviceParam"]):::iri c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?count > '1000^^xsd:integer'"]] f0 --> v4 v2 --"wdt:P138"--> v3 bind2[/"count(?thing)"/] v3 --o bind2 bind2 --as--o v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end