What is {inventory number} of {Liberty Leading the People} that is {collection} is {Department of Paintings of the Louvre} ?
which is the inventory number of the painting Liberty Leading the People that is located in the Louvre
What is the inventory number of the painting Liberty Leading the People that is located in the Louvre?
SELECT ?b WHERE { ?d property:inventory_number ?b . resource:Liberty_Leading_the_People property:inventory_number ?d . ?d property:collection resource:Department_of_Paintings_of_the_Louvre }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q29530> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P217> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P195> <http://wikidata.dbpedia.org/resource/Q3044768>
} 

SELECT ?obj WHERE { wd:Q29530 p:P217 ?s . ?s ps:P217 ?obj . ?s pq:P195 wd:Q3044768 }