which legislative session ended on 1869-03-04?
Entity
m.07bmhz
40th United States Congress
class literal
government.legislative_session 1869-03-04^^http://www.w3.org/2001/XMLSchema#date
government.legislative_session type.datetime
Legislative session 1869-03-04
none none
government.legislative_session.date_ended
Date ended
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 :government.legislative_session . 
VALUES ?x1 { "1869-03-04-08:00"^^<http://www.w3.org/2001/XMLSchema#date> } 
?x0 :government.legislative_session.date_ended ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND government.legislative_session (JOIN government.legislative_session.date_ended 1869-03-04^^http://www.w3.org/2001/XMLSchema#date))