Did {David_Cassidy} {occupation} {actor} and {singer-songwriter} ?
Was David Cassidy a singer-songwriter and also an actor?
Was David Cassidy an actor and a singer-songwriter?
ASK WHERE { resource:David_Cassidy property:occupation resource:actor . resource:David_Cassidy property:occupation resource:singer-songwriter }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q457306> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P106> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q33999>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q457306> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P106> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q488205>. } 
ASK WHERE { wd:Q457306 wdt:P106 wd:Q33999 . wd:Q457306 wdt:P106 wd:Q488205 }