1. What is the advantage of living in the country?

2. What is the advantage to living in the country?

Which preposition is correct?

The first sentence is the more common.