What is the {manuscript codex} for {collection} of {Bill Gates}
What books does Bill Gates own?
Which books are in Bill Gates collection?
SELECT DISTINCT ?j WHERE { ?j property:collection resource:Bill_Gates . ?j rdf:type ontology:manuscript_codex }
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/P195> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q5284> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q2217259> } 
 select distinct ?sbj where { ?sbj wdt:P195 wd:Q5284 . ?sbj wdt:P31 wd:Q2217259 } 