query-0ed6faa53d8f481c6c00e3adcf119c74

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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?P279_1 ?P279_1Label ?P279_2 ?P279_2Label WHERE 
{
  ?item wdt:P31/wdt:P279* wd:Q20162172 .
  ?item wdt:P279 ?P279_1 .
  ?item wdt:P279 ?P279_2 .
  filter(str(?P279_1) < str(?P279_2) ) 
  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; v1("?P279_1"):::projected v2("?P279_2"):::projected v3("?item"):::projected a1((" ")) c5(["bd:serviceParam"]):::iri c3(["wd:Q20162172"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["str(?P279_1) < str(?P279_2)"]] f0 --> v1 f0 --> v2 v3 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v3 --"wdt:P279"--> v1 v3 --"wdt:P279"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end