query-ed655b65b0a9e3ef96f9914bc29e1647

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
select ?item ?itemLabel ?equivalent ?equivalentLabel {
  ?item wdt:P7719+ ?equivalent .
  ?equivalent wdt:P7719+ ?item filter (str(?equivalent) < str(?item) ) .

  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("?equivalent"):::projected v2("?item"):::projected c3(["bd:serviceParam"]):::iri c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["str(?equivalent) < str(?item)"]] f0 --> v1 f0 --> v2 v2 --"wdt:P7719"--> v1 v1 --"wdt:P7719"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end