query-8259017132352c2266a831ec7d9bf4a5

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?value1 ?value2 WHERE{
  ?item wdt:P1614 ?value1;
        wdt:P1614 ?value2 .
  FILTER(?value1 < ?value2)
  FILTER(substr(?value1, 0, 9) = substr(?value2, 0, 9))
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?item"):::projected v1("?value1"):::projected v2("?value2"):::projected f0[["substring(?value1,'0^^xsd:integer','9^^xsd:integer') = substring(?value2,'0^^xsd:integer','9^^xsd:integer')"]] f0 --> v1 f0 --> v2 f1[["?value1 < ?value2"]] f1 --> v1 f1 --> v2 v3 --"wdt:P1614"--> v1 v3 --"wdt:P1614"--> v2