what is the {end time} for {Tip O'Neill} has {position held} as {speaker of the United States House of Representatives} ?
When was Tip O'Neill no longer the speaker of the United States House of Representatives?
SELECT ?value WHERE { wd:Q2094491 p:P39 ?s . ?s ps:P39 wd:Q912994 . ?s pq:P582 ?value}
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2094491> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q912994> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

When did Tip O'Neill leave the House of Representatives?