select country.id, country.country,segment.segment from countrysegments
inner join country on countrysegments.country_id = country.id
inner join segments on countrysegments.segment_id = segments.id where country.id = (any id of country).
it will give all segments of require country or you can remove where
clause to get all segments of al countries and then you can play with results.