Template:SPARQL/educated in

From Wikisource
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]


Usage[edit]

SPARQL query for authors educated at (P69) in a place, or any place in that place.

Parameters:

  • 1: The Q-id of the place
  • name: Override for the place name (if not given: the label of 1 from Wikidata)

Example

{{SPARQL|query=
 {{SPARQL/educated in|Q724}}
}}
# Items educated in Q724 (Maine)
SELECT ?item ?itemLabel ?schoolLabel ?itemDescription WHERE {
    VALUES ?Maine  { wd:Q724 }
    ?item wdt:P69 ?school . # educated in
    ?school wdt:P131* wd:Q724 . # located in
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
Go to query page

See also[edit]