In my experience the Pinto beans make me fart the most as well as baked beans.
Beans contain Legumes which causes a buildup in the gas in your stomach and Pinto Beans and Baked beans seem to have more of those Legumes than other beans so they make you fart more than other types of beans that have less of the Legumes.
You can soak beans in water overnight and the soaking can remove some of that chemical in the beans so that you buildup less gas in your stomach.
When you soak the beans overnight in the water you then drain that old water and then put fresh water into the pot or crock pot to cook the beans.
You should then get less gas in your stomach and fart less when eating any type of beans.