Translations:Tutorial/57/en: Difference between revisions

From Resistance in Belgium
(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 ;     # Selects individuals
   ?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

Message definition (Tutorial)
<syntaxhighlight lang="sparql">
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
}
</syntaxhighlight>
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
}