What is {religious affiliation} of {Jami}, that has {Q48460} is {297} ?
What is Jami's religious affiliation, which has a 297 Q48460?
What is the religious affiliation of Jami, that has a Q48460 of 297?
SELECT ?e WHERE { resource:Jami property:religion ?e . ?e property:Dewey_Decimal_Classification ?s . FILTER ( ?s = 297 ) }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q312458> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P140>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1036> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <297> . }
SELECT ?answer WHERE { wd:Q312458 wdt:P140 ?answer . ?answer wdt:P1036 ?x FILTER(contains(?x , '297'))}
Islam