What is {employer} of {Nigel Farage} and {end time}
Who did Nigel Farage work for and when did he quit?
Nigel Farage was employed by whom and until when?
SELECT ?e ?d WHERE { ?u property:employer ?d . resource:Nigel_Farage property:employer ?u . ?u property:end_time ?e . }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q318471> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P108> . ?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:Q318471 p:P108 ?s . ?s ps:P108 ?obj . ?s pq:P582 ?value1 . }