What is {cast member} of {Days of our Lives} and {end time}
Who are the solid contributors of Days of our Lives and when did it end?
Who are the cast members of Days of our Lives and when did it end?
SELECT ?v ?f WHERE { ?q property:end_time ?v . . ?q property:cast_member ?f . resource:Days_of_Our_Lives property:cast_member ?q }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q185059> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P161> . ?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:Q185059 p:P161 ?s . ?s ps:P161 ?obj . ?s pq:P582 ?value1 . }