Give me {royal or noble rank} that {applies to jurisdiction} {Ancient Egypt} and which contains the word {pharaoh} in their name
Name a royal rank in Ancient Egypt that consists of the phrase "pharaoh" in its identify
Name a royal rank in Ancient Egypt that contains the word "pharaoh" in its name
SELECT DISTINCT ?k WHERE { ?k property:applies_to_jurisdiction resource:Ancient_Egypt . ?k rdf:type ontology:noble_title . FILTER ( CONTAINS ( LCASE ( ?k ) , 'pharaoh' ) ) }
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/Q355567>. ?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/P1001> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q11768>. ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'pharaoh')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25
SELECT DISTINCT ?sbj ?sbj_label WHERE { ?sbj wdt:P31 wd:Q355567 . ?sbj wdt:P1001 wd:Q11768 . ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'pharaoh')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25 
Pharaoh pharaoh