Q: Valid English sentence (grammatically) or not: Mary was visited by Bill.

A: acceptable

Q: Valid English sentence (grammatically) or not: The Dodgers beat the Red Sox and the Giants beat the Dodgers.

A: acceptable

Q: Valid English sentence (grammatically) or not: each of the girls likes herself.

A:
acceptable