What is the {landlocked country} for {religion} of {Islam}
Which landlocked nation takes after the Islam religion?
Which landlocked country follows the Islam religion?
SELECT DISTINCT ?e WHERE { ?e property:religion resource:Islam . ?e rdf:type ontology:landlocked_country }
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/P140> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q432> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q123480> } 
 select distinct ?sbj where { ?sbj wdt:P140 wd:Q432 . ?sbj wdt:P31 wd:Q123480 } 
Afghanistan