select * from oh_objects WHERE (det ilike '%Y%') ORDER BY oh_objects.ra,oh_objects.dec