What is {presenter} of {The Tonight Show} and {end time}
Who presents The Today Appear and when does it end?
Who presents The Tonight Show and when does it end?
SELECT ?q ?b WHERE { ?g property:end_time ?q . . resource:The_Tonight_Show_Starring_Jimmy_Fallon property:presenter ?g . ?g property:presenter ?b }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1338655> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P371> . ?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:Q1338655 p:P371 ?s . ?s ps:P371 ?obj . ?s pq:P582 ?value1 . }