query-0cc758504599c7a1779a4b8697dc1afa

rq turtle/ttl

title:Partigiani morti in Toscana SELECT ?partigiano ?partigianoLabel ?partigianoDescription ?luogonascitaLabel ?luogomorteLabel ?ANPI WHERE { ?partigiano wdt:P106 wd:Q212948 . OPTIONAL { ?partigiano wdt:P19 ?luogonascita } . ?partigiano wdt:P20 ?luogomorte . ?luogomorte wdt:P131* wd:Q1273 . OPTIONAL { ?partigiano wdt:P9267 ?ANPI } . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY xsd:integer(?ANPI)

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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:Partigiani morti in Toscana
SELECT ?partigiano ?partigianoLabel ?partigianoDescription ?luogonascitaLabel ?luogomorteLabel ?ANPI
WHERE {
  ?partigiano wdt:P106 wd:Q212948 .
  OPTIONAL { ?partigiano wdt:P19 ?luogonascita } .
  ?partigiano wdt:P20 ?luogomorte . ?luogomorte wdt:P131* wd:Q1273 .
  OPTIONAL { ?partigiano wdt:P9267 ?ANPI } .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY xsd:integer(?ANPI)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?ANPI"):::projected v4("?luogomorte") v3("?luogonascita") v2("?partigiano"):::projected c9(["bd:serviceParam"]):::iri c6(["wd:Q1273"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal c2(["wd:Q212948"]):::iri v2 --"wdt:P106"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P19".-> v3 end v2 --"wdt:P20"--> v4 v4 --"wdt:P131"--> c6 subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P9267".-> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end