query-25d2ca4e8f7cbe6be7a2c587eee71537

rq turtle/ttl

title:Lista degli allievi della SAIA, in ordine alfabetico per cognome SELECT DISTINCT ?person ?personLabel WHERE { ?person wdt:P69 wd:Q1576779 . OPTIONAL { ?person wdt:P734 ?cognome . ?cognome wdt:P1705 ?n . } SERVICE wikibase:label { bd:serviceParam wikibase:language "it". } } ORDER BY ?n

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#>
#title:Lista degli allievi della SAIA, in ordine alfabetico per cognome
SELECT DISTINCT ?person ?personLabel
WHERE {
  ?person wdt:P69 wd:Q1576779 .
  OPTIONAL { ?person wdt:P734 ?cognome . ?cognome wdt:P1705 ?n . }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "it". }
}
ORDER BY ?n

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?cognome") v1("?n") v2("?person"):::projected c2(["wd:Q1576779"]):::iri c6(["bd:serviceParam"]):::iri c8(["it"]):::literal v2 --"wdt:P69"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P734".-> v3 v3 --"wdt:P1705"--> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end