What is {partner} of {Ian McKellen} and {end time}
Let me know around accomplice of Ian McKellen and conclusion time?
Tell me about partner of Ian McKellen and end time?
SELECT ?t ?l WHERE { resource:Ian_McKellen property:unmarried_partner ?i . ?i property:unmarried_partner ?l . ?i property:end_time ?t . }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q170510> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P451> . ?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:Q170510 p:P451 ?s . ?s ps:P451 ?obj . ?s pq:P582 ?value1 . }