query-59af474585b60f723a4b7b136d00edf8

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 psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT
  ?item ?itemLabel 
  ?bp ?bpunit ?bpunitLabel 
WHERE
{
    ?item wdt:P31 / wdt:P279* wd:Q170744 .

    ?item p:P2102/psv:P2102 [ wikibase:quantityAmount ?bp ; wikibase:quantityUnit ?bpunit ] .
    FILTER ( ( ?bp > 175 && ?bpunit = wd:Q25267 ) \u007C\u007C ( ?bp > 347 && ?mpunit = wd:Q42289 )  ) 
    FILTER ( ( ?bp < 185 && ?bpunit = wd:Q25267 ) \u007C\u007C ( ?bp < 365 && ?mpunit = wd:Q42289 )  ) 

    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 1000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?bp"):::projected v2("?bpunit"):::projected v4("?item"):::projected v3("?mpunit") a1((" ")) a3((" ")) a2((" ")) c15(["bd:serviceParam"]):::iri c9(["wd:Q170744"]):::iri c17(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["(?bp < '185^^xsd:integer'?bpunit = 'wd:Q25267' || ?bp < '365^^xsd:integer'?mpunit = 'wd:Q42289')"]] f0 --> v1 f0 --> v2 f0 --> v3 f1[["(?bp > '175^^xsd:integer'?bpunit = 'wd:Q25267' || ?bp > '347^^xsd:integer'?mpunit = 'wd:Q42289')"]] f1 --> v1 f1 --> v2 f1 --> v3 v4 --"p:direct/P31"--> a1 a1 --"p:direct/P279"--> c9 a2 --"wikibase:quantityAmount"--> v1 a2 --"wikibase:quantityUnit"--> v2 v4 --"p:P2102"--> a3 a3 --"p:statement/value/P2102"--> a2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c15 --"wikibase:language"--> c17 end