flatulence-producing foods are typically high in certain polysaccharides (polysaccharides are relatively complex carbohydrates). some of these foods are sweet potato, beans, onions, and garlic.