What is {depicts} of {Grande Odalisque} that is {applies to part} is {foreground} ?
Is Grande odalisque depicted by foreground?
does foreground depicts grande odalisque?
SELECT ?g WHERE { resource:Grande_Odalisque property:depicts ?f . ?f property:depicts ?g . ?f property:applies_to_part resource:foreground }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1978815> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P518> <http://wikidata.dbpedia.org/resource/Q2533752>
} 

SELECT ?obj WHERE { wd:Q1978815 p:P180 ?s . ?s ps:P180 ?obj . ?s pq:P518 wd:Q2533752 }