query-a9a8a9caaaaecf73ac593ef3563bc728
Shared identifiers
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 ?x ?xLabel ?xDescription ?id ?y ?yLabel ?yDescription WHERE {
?x wdt:P1153 ?id .
?y wdt:P1153 ?id .
FILTER(STR(?x) < STR(?y))
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?id"):::projected
v1("?x"):::projected
v2("?y"):::projected
c3(["bd:serviceParam"]):::iri
c5(["en"]):::literal
f0[["str(?x) < str(?y)"]]
f0 --> v1
f0 --> v2
v1 --"wdt:P1153"--> v3
v2 --"wdt:P1153"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end