Complex sentence: Occasionally the loyalties vary greatly within the state, for example, people from northern Missouri consider themselves Northern, people from southern Missouri consider themselves Southern.
Split into simpler sentences: Occasionally the loyalties vary greatly within the state. For example, people from northern Missouri consider themselves Northern, while people from southern Missouri consider themselves Southern.