what is the {point in time} for {James Prescott Joule} has {award received} as {Albert Medal} ?
At what time did James Prescott Joule receive an Albert Medal?
When did James Prescott Joule receive an Albert Medal?
SELECT ?n WHERE { ?b property:point_in_time ?n . resource:James_Prescott_Joule property:award_received ?b . ?b property:award_received resource:Albert_Medal }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q8962> .
?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/Q4710826> .
?statement <http://www.wikidata.org/entity/P585> ?value. 
} 

SELECT ?value WHERE { wd:Q8962 p:P166 ?s . ?s ps:P166 wd:Q4710826 . ?s pq:P585 ?value}