what is the {Commons category} for {Edgar Degas} has {place of burial} as {Montmartre Cemetery} ?
Edgar Degas, who is buried in Montmartre Cemetery, was in what part of the Commons?
What is the Commons category of Edgar Degas whose place of burial is Montmartre Cemetery.
SELECT ?i WHERE { resource:Edgar_Degas property:place_of_burial ?z . ?z property:Commons_category ?i . ?z property:place_of_burial resource:Montmartre_Cemetery }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q46373> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P119> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q746647> .
?statement <http://www.wikidata.org/entity/P373> ?value. 
} 

SELECT ?value WHERE { wd:Q46373 p:P119 ?s . ?s ps:P119 wd:Q746647 . ?s pq:P373 ?value}