Complex sentence: Different barrios provided different products and services to the city, e.g. one might make shoes while another made cheese.
Split into simpler sentences: Different barrios provided different products and services to the city. One might make shoes while another made cheese.