What is the {painting} for {depicts} of {Barack Obama}
What is Barack Obama's picture?
What painting depicts Barack Obama
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:painting . ?g property:depicts resource:Barack_Obama }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P180> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q76> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q3305213> } 
 select distinct ?sbj where { ?sbj wdt:P180 wd:Q76 . ?sbj wdt:P31 wd:Q3305213 } 
Barack Obama President Barack Obama The Forgotten Man