Give me {stellar classification} that contains the word {type} in their name
Let me know stellar classification whose title has the word sort in it.
Tell me stellar classification whose name has the word type in it.
SELECT DISTINCT ?x WHERE { FILTER ( CONTAINS ( LCASE ( ?x ) , 'type' ) ) . ?x rdf:type ontology:spectral_class }
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/Q179600>. ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'type')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25
SELECT DISTINCT ?sbj ?sbj_label WHERE { ?sbj wdt:P31 wd:Q179600 . ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'type')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25 
G-type stars G-type stars B-type main sequence star B-type main sequence star M-type star M-type star F type F type K-type star K-type star O-type star O-type star Y-type brown dwarf Y-type brown dwarf B type B type A-type star A-type star T-type brown dwarf T-type brown dwarf