What is {position held} of {Gregory VII} and {start time}
What is Gregory VII's job title and when did he start to work?
What is the job title of Gregory VII and when did he start working?
SELECT ?i ?v WHERE { ?b property:start_time ?i . . resource:Gregory_VII property:position_held ?b . ?b property:position_held ?v }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q133063> . ?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:Q133063 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P580 ?value1 . }