what is the {end time} for {Jeannette Rankin} has {position held} as {United States representative} ?
When will the term of Jeanette Rankin, United States Representative, end?
When will United States Representative, Jeanette Rankin's, term end?
SELECT ?o WHERE { resource:Jeannette_Rankin property:position_held ?d . ?d property:end_time ?o . ?d property:position_held resource:United_States_representative }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q232407> .
?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/Q13218630> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q232407 p:P39 ?s . ?s ps:P39 wd:Q13218630 . ?s pq:P582 ?value}