Give me {spiral galaxy} that contains the word {ugc} in their name
What are the universe that contains the word ugc in their name
What are the galaxy that contains the word ugc in their name
SELECT DISTINCT ?w WHERE { FILTER ( CONTAINS ( LCASE ( ?w ) , 'ugc' ) ) . ?w rdf:type ontology:spiral_galaxy }
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/Q2488>. ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'ugc')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25
SELECT DISTINCT ?sbj ?sbj_label WHERE { ?sbj wdt:P31 wd:Q2488 . ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'ugc')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25 
UGC 121 UGC 121 UGC 27 UGC 27 UGC 117 UGC 117 UGC 9561 UGC 9561 UGCA 80 UGCA 80 UGC 119 UGC 119 UGC 10 UGC 10 UGC 20 UGC 20 UGC 66 UGC 66 UGC 5692 UGC 5692 UGC 6945 UGC 6945 UGC 11066 UGC 11066 UGC 1432 UGC 1432 UGC 4 UGC 4 UGC 1813 UGC 1813 UGC 2885 UGC 2885 UGC 3521 UGC 3521 UGC 1382 UGC 1382 UGC 3528 UGC 3528 UGC 4078 UGC 4078 UGC 4297 UGC 4297 UGC 3522 UGC 3522 UGC 3336 UGC 3336 UGC 3500 UGC 3500 UGC 4348 UGC 4348