Give me {military rank} that contains the word {stabswachtmeister} in their name
Let me know military rankw wose title has the word stabswachtmeister in it.
Tell me military rankw wose name has the word stabswachtmeister in it.
SELECT DISTINCT ?t WHERE { FILTER ( CONTAINS ( LCASE ( ?t ) , 'stabswachtmeister' ) ) . ?t rdf:type ontology:military_rank }
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/Q56019>. ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'stabswachtmeister')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25
SELECT DISTINCT ?sbj ?sbj_label WHERE { ?sbj wdt:P31 wd:Q56019 . ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'stabswachtmeister')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25 
Stabswachtmeister Stabswachtmeister