Aggregate Queries in Wireless Sensor Networks. (26th September 2012)