Rational cohomology via field theories