Question: Is betting allowed on horse race?
Answer: Betting is only allowed between those who take part in the horse race, and not for the onlookers and owners of the horses.

Does the same apply in other scenarios like chess?

No. Chess is strictly forbidden for all.