WHat is the galaxy where you an find the Andromeda constellation that contains the word " ugc" in its name ?
SELECT DISTINCT ?sbj ?sbj_label WHERE { ?sbj wdt:P31 wd:Q2488 . ?sbj wdt:P59 wd:Q9256 . ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'ugc')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25 
spiral galaxy: Q2488 andromeda: Q9256