what is the {point in time} for {John XXIII} has {award received} as {Balzan Prize} ?
Where is the National Gallery of Art headquartered at at the coordinates 38.89147 -77.02001?
In what year did John XXIII receive a Balzan Prize?
SELECT ?l WHERE { ?e property:award_received resource:Balzan_Prize . resource:John_XXIII property:award_received ?e . ?e property:point_in_time ?l }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q23873> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P166> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q628457> .
?statement <http://www.wikidata.org/entity/P585> ?value. 
} 

SELECT ?value WHERE { wd:Q23873 p:P166 ?s . ?s ps:P166 wd:Q628457 . ?s pq:P585 ?value}