Better general intelligence is associated with higher levels of the fats (called monounsaturated fat) that are in olive oils, nuts, avocados.
“Functional connectivity within both the frontoparietal cortex and the dorsal attention network underlie general intelligence. While no associative studies can establish causation...the data was adjusted for age, gender, education, income, BMI, and depression status.”