Translations:Project:SPARQL/examples/9/en

From Resistance in Belgium

SELECT ?person ?personLabel ?birthDate WHERE {

 ?person  wdt:P1  wd:Q2 .                    # Selects all elements thaat are (P1) persons (Q2)
 ?person  wdt:P3  "Barbieux" .               # Filters to take only persons whose last name (P3) is "Barbieux" (modify "Barbieux" as needed)
 ?person  wdt:P67 ?birthDate  .              # Adds the birth date (P67)
          
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,[AUTO_LANGUAGE]". }  # Retrieves the label in English

}