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