I know of someone who did a PhD in fartology. They were investigating why certain foods make you fart almost immediately after ingestion, before the food has been fully digested. The answer was something to do with gases in the blood.
Sauerkraut does it for me. No offence to German cuisine intended.