What is {position held} of {Charles I of England} and {end time}
What was Charles I of England's position and when did his term come to an end?
What was the position held by Charles I of England and when did his term end?
SELECT ?c ?f WHERE { ?t property:position_held ?f . resource:Charles_I_of_England property:position_held ?t . ?t property:end_time ?c . }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q81506> . ?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> ?obj . ?statement <http://www.wikidata.org/entity/P580> ?dataprop1 . } 
SELECT ?value1 ?obj WHERE { wd:Q81506 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P582 ?value1 . }