exampleQuery = `#Population in Europe after 1960
SELECT ?objectLabel (YEAR(?date) as ?year)
?population (?objectLabel as ?Location)
WHERE
{
wd:Q458 wdt:P150 ?object . # European Union contains administrative territorial entity
?object p:P1082 ?populationStatement .
?populationStatement ps:P1082 ?population
; pq:P585 ?date .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
FILTER (YEAR(?date) >= 1960)
}
ORDER BY ?objectLabel ?year`;