I have two questions.
1.I would like to know the meaning of "to" in the next sentence.
There are many advantages to riding a bicycle.
2. I wonder if there is any differece between "A" and "B".
A: There are many advantages to riding a bicycle.
B: There are many advantages of riding a bicycle.
"advantage" collocates with "to".
There is an advantage to it.
The advantages of walking out of doors are attractive to me. -- In this sentence "advantage of" is not an idiomatic combination; it is a free combination.
There are many advantages to riding a bicycle.
There are many advantages of riding a bicycle.![]()
This is not incorrect.
COCA gives the following numbers of example sentences:
advantages of: 1839, including......advantages of + -ing form: 223
advantages to: .442.......................advantages to + -ing form: 106
advantages in: .292.......................advantages of + -ing form: ..60