SELECT AVG(2.0 * foo,x) FROM bar