SELECT ?nom ?prenom WHERE { ?personne wdt:P1 wd:Q2 ; # Selects people wdt:P3 ?nom ; # Retrieves last name wdt:P2 ?prenom . # Retrieves first name }