The short answer is
Flatulence depends on many factors
on the bean-side, like:
presence of toxins (try ecologically grown types)
presence of salt in the prepared food (try to lower)
soaking time and the acid-base balance of soaking liquid (can ...