query-0a1ba0153335d21c62ed2f6e2875da13
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item1 ?item1Label ?item1_p791_and_item2_p7764 ?item2Label ?item2 {
?item1 wdt:P791 ?item1_p791_and_item2_p7764 .
?item2 wdt:P7764 ?item1_p791_and_item2_p7764 .
FILTER(STR(?item1)<STR(?item2))
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de,it". }
}
ORDER BY ?item1_p791_and_item2_p7764
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item1"):::projected
v1("?item1_p791_and_item2_p7764"):::projected
v3("?item2"):::projected
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en,de,it"]):::literal
f0[["str(?item1) < str(?item2)"]]
f0 --> v2
f0 --> v3
v2 --"wdt:P791"--> v1
v3 --"wdt:P7764"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end