Translations:Project:SPARQL/examples/49/en

From Resistance in Belgium
Revision as of 18:26, 15 October 2024 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SELECT ?person ?personLabel ?placeOfDeath ?placeOfDeathLabel ?GPS ?dateOfDeath WHERE {

 ?person wdt:P1 wd:Q2 .                      # Selects all people (P1 = Q2)
 ?person wdt:P48 ?placeOfDeath .             # Retrieves the places of death (P48)
 ?placeOfDeath wdt:P6 ?GPS .                 # Retrieves the GPS coordinates of the places of death (P6)
 OPTIONAL { ?person wdt:P68 ?dateOfDeath .   # Retrieves the date of death, if available
            FILTER(?dateOfDeath <= "1945-12-31"^^xsd:dateTime)  # Filters deaths: up until the end of 1945
 }
 
 SERVICE wikibase:label { bd:serviceParam wikibase:language "en,[AUTO_LANGUAGE]". }  # Retrieves the labels in English

}