select s.group_id from rel_segments s where s.segment_id = :segment_id