Give me {Flavored tea} that {named after} {Charles Grey, 2nd Earl Grey} and which contains the word {earl} in their name
Name the flavored tea named after Charles Grey that carries the word "earl" in its identify
Name the flavored tea named after Charles Grey that contains the word "earl" in its name
SELECT DISTINCT ?v WHERE { FILTER ( CONTAINS ( LCASE ( ?v ) , 'earl' ) ) . ?v property:named_after resource:Charles_Grey,_2nd_Earl_Grey . ?v rdf:type ontology:flavored_tea }
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/Q3526264>. ?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/P138> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q294662>. ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'earl')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25
SELECT DISTINCT ?sbj ?sbj_label WHERE { ?sbj wdt:P31 wd:Q3526264 . ?sbj wdt:P138 wd:Q294662 . ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'earl')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25 
Earl Grey tea Earl Grey tea