Give me {folk religion} that {foundational text} {Nihon Shoki} and which contains the word {shinto} in their name
What is religion based on Nihon Shoki's sacred text, which contains the word "shinto" in its name?
What is the religion based on the sacred text Nihon Shoki that contains the word " shinto" in its name
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:folk_religion . FILTER ( CONTAINS ( LCASE ( ?i ) , 'shinto' ) ) . ?i property:foundational_text resource:Nihon_Shoki }
SELECT DISTINCT ?sbj ?sbj_label { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sbj . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P31> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1068640>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sbj . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P457> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q813935>. ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'shinto')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25
SELECT DISTINCT ?sbj ?sbj_label WHERE { ?sbj wdt:P31 wd:Q1068640 . ?sbj wdt:P457 wd:Q813935 . ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'shinto')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25 
Shinto Shinto