Question: Give me all American presidents in the last 20 years.
SPARQL query:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX dct: <http://purl.org/dc/terms/> PREFIX dbc: <http://dbpedia.org/resource/Category:> PREFIX prop: <http://dbpedia.org/property/> select distinct ?uri where { ?uri rdf:type onto:Person . ?uri dct:subject dbc:Presidents_of_the_United_States . ?uri prop:termEnd ?termEnd . FILTER(year(NOW()) - year(?termEnd) <= 20) }