I am trying to output a table using query.wikidata.org and SPARQL, with the name, birthdate, and brief description of notable, living Americans (i.e. those with wikidata entries) who will turn 100 years old between January and June 2016.
I've cobbled together some code which seems to be working, but I can't figure out how to output the description of the people.
For example, one of the people the code grabs is Beverly Cleary, whose wikidata description is "American writer of children's books." I would like to print that in the table.
Any help is much appreciated; code below. Thanks so much.
--
prefix wdt: <http://www.wikidata.org/prop/direct/>
prefix wd: <http://www.wikidata.org/entity/>
SELECT ?Name ?Birthday WHERE {
?item wdt:P569 ?Birthday .
FILTER ( ?Birthday >= "1916-01-01T00:00:00Z"^^xsd:dateTime && ?Birthday <= "1916-06-01T00:00:00Z"^^xsd:dateTime )
?item wdt:P27 wd:Q30 .
OPTIONAL { ?item wdt:P570 ?dummy0 }
FILTER(!bound(?dummy0))
OPTIONAL {?item rdfs:label ?Name filter (lang(?Name) = "en") .}
}
ORDER BY ASC(?time0)