I got a question for you: In 2013, Madison began playing Hillary on the TV sitcom Trophy Wife, replacing Gianna LePera who played the character in the pilot. In 2014, she began playing the recurring role of Sophia Quinn in the ABC Family drama The Fosters. In 2015, she began playing Grace Russell, the daughter of Cassie Nightingale, in the Hallmark series Good Witch.

Answer this question: what role does bailee madison play in the fosters?
Let's think first:
The relevant information is: In 2014, she began playing the recurring role of Sophia Quinn in the ABC Family drama The Fosters.
Therefore, the answer is Sophia Quinn.