query-b9bfd4db28c62d3979ff1e38e7b46fdf

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psn: <http://www.wikidata.org/prop/statement/value-normalized/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel (?duration / 60 AS ?minutes) {
  ?item wdt:P136|wdt:P31 wd:Q188473;
        p:P2047/psn:P2047/wikibase:quantityAmount ?duration;
        wdt:P577 ?date .
  FILTER( YEAR( ?date ) = 2009 ) .
  FILTER( ?duration >= 60 * 90 ) .
  FILTER( ?duration <= 60 * 120 ) .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } .
} ORDER BY ?minutes

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?date") v2("?duration"):::projected v4("?item"):::projected v5("?minutes") a1((" ")) a2((" ")) c13(["bd:serviceParam"]):::iri c6(["wd:Q188473"]):::iri c15(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?duration <= '60^^xsd:integer' * '120^^xsd:integer'"]] f0 --> v2 f1[["?duration >= '60^^xsd:integer' * '90^^xsd:integer'"]] f1 --> v2 f2[["year-from-dateTime(?date) = '2009^^xsd:integer'"]] f2 --> v3 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v4 --"p:direct/P31"--> c6 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v4 --"p:direct/P136"--> c6 end union0r <== or ==> union0l end v4 --"p:P2047"--> a1 a1 --"p:statement/value-normalized/P2047"--> a2 a2 --"wikibase:quantityAmount"--> v2 v4 --"p:direct/P577"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end bind3[/"?duration / '60^^xsd:integer'"/] v2 --o bind3 bind3 --as--o v5