What is the {craft} for {occupation} of {Joseph}
Where did Joseph work?
What was Joseph's occupation?
SELECT DISTINCT ?r WHERE { resource:Joseph property:occupation ?r . ?r rdf:type ontology:craft }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q128267> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P106> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q2207288> } 
 select distinct ?obj where { wd:Q128267 wdt:P106 ?obj . ?obj wdt:P31 wd:Q2207288 } 