I haven't really run into anything that gave me gas. At least, not yet anyway. However, bubblegum could help me win a belching contest.
I've never been able to pin it down.
These days I know that milk is a major cause. I've become lactose-intolerant in my dotage.
I get urges in the morning to go to the can ! Does that count also ? Lol