select group_table.name from group_table
inner join department_table
on group_table._id = department_table.group_id
inner join relationship_table
on department_table._id = relationship_table.department_id
where relationship_table.user_id = ?