What is {educated at} of {Carl Sagan} and {end time}
When did Carl Sagan educate and finish time?
When did educated at of Carl Sagan and end time?
SELECT ?b ?u WHERE { ?b property:end_time ?b . . resource:Carl_Sagan property:educated_at ?b . ?b property:educated_at ?u }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q410> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P69> . ?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:Q410 p:P69 ?s . ?s ps:P69 ?obj . ?s pq:P582 ?value1 . }