SELECT AVG(2.0 * foo) FROM bar