If Sophie is having tummy problems it's most likely something she ate. According to my rabbit specialist vet the beans in green beans are not good for bunnies. That may be the problem. I would change her diet immediately by giving her all the timothy hay she can eat (NOT alfalfa), NO PELLETS, fresh leafy veggies (no iceberg lettuce but all other lettuces are fine), absolutely no fruit while her tummy is upset. No broccoli until the upset is gone for several days.
This situation needs to clear up within a day or two and if it doesn't take her to a vet who specializes in rabbits. With any gastrointestinal problem, bunnies can get sick and die within a few days if not corrected quickly. Help her keep her butt clean too.
Hope this helps. Good luck.