Give me {dog type} that contains the word {toy} in their name
What is the name of a dog type in its name with the word "toy?"
What's the name of a type of dog with the word "toy" in its name?
SELECT DISTINCT ?n WHERE { FILTER ( CONTAINS ( LCASE ( ?n ) , 'toy' ) ) . ?n rdf:type ontology:dog_type }
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/Q38672>. ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'toy')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25
SELECT DISTINCT ?sbj ?sbj_label WHERE { ?sbj wdt:P31 wd:Q38672 . ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'toy')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25 
Belgian toy dog Belgian toy dog toy dog toy dog Toy Bulldog Toy Bulldog Toy Trawler Spaniel Toy Trawler Spaniel