1882 was the day of the last perihelion of which comet?
Entity
g.122wt44v
Eclipse Comet of 1882
class literal
astronomy.comet 1882^^http://www.w3.org/2001/XMLSchema#gYear
astronomy.comet type.datetime
Comet 1882
none none
astronomy.comet.last_perihelion
Last perihelion
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :astronomy.comet . 
VALUES ?x1 { "1882-08:00"^^<http://www.w3.org/2001/XMLSchema#gYear> } 
?x0 :astronomy.comet.last_perihelion ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND astronomy.comet (JOIN astronomy.comet.last_perihelion 1882^^http://www.w3.org/2001/XMLSchema#gYear))