Complex sentence: Of the 27 member states in the European Union, four legally recognize same-sex marriage, namely Belgium, the Netherlands, Spain, and Sweden.
Split into simpler sentences: Of the 27 member states in the European Union, a majority recognizes some sort of same-sex union. Four legally recognize same-sex marriage, namely Belgium, the Netherlands, Spain, and Sweden.