query-f787b7ce90b03dcfb3dc5ba4b1f365f0
Comparison
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 ?a ?aLabel ?ll ?ol
WHERE {
?a wdt:P7208 ?ll .
OPTIONAL { ?a wdt:P648 ?ol . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,en". }
}
ORDER BY ?ll
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?a"):::projected
v1("?ll"):::projected
v3("?ol"):::projected
c6(["#91;AUTO_LANGUAGE#93;,it,en"]):::literal
c4(["bd:serviceParam"]):::iri
v2 --"wdt:P7208"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P648".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end