Translations:Project:SPARQL/examples/31/en
SELECT ?person ?surname ?firstName ?residenceLabel ?professionLabel WHERE {
?person wdt:P1 wd:Q2 . # Selects all people (P1) with the identifier "Person" (Q2) ?person wdt:P13 ?profession . # Selects their profession (P13) ?person wdt:P3 ?surname . # Retrieves the surname (P3) ?person wdt:P2 ?firstName . # Retrieves the first name (P2) FILTER (CONTAINS(str(?profession), 'coiffeu') || CONTAINS(str(?profession), 'kapper')). # Filters to select all people whose profession # contains 'coiffeu' (hairdresser in French) or 'kapper' (in Dutch)