Translations:Tutorial/57/en: Difference between revisions
(Importing a new version from external source) |
(Importing a new version from external source) |
||
| Line 2: | Line 2: | ||
SELECT ?lastName ?firstName | SELECT ?lastName ?firstName | ||
WHERE { | WHERE { | ||
?person wdt:P1 wd:Q2 ; | ?person wdt:P1 wd:Q2 ; # Selects individuals | ||
wdt:P3 ?lastName ; # Retrieves the last name | wdt:P3 ?lastName ; # Retrieves the last name | ||
wdt:P2 ?firstName .# Retrieves the first name | wdt:P2 ?firstName . # Retrieves the first name | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 15:35, 1 April 2025
SELECT ?lastName ?firstName
WHERE {
?person wdt:P1 wd:Q2 ; # Selects individuals
wdt:P3 ?lastName ; # Retrieves the last name
wdt:P2 ?firstName . # Retrieves the first name
}