TinyDB appears to only handle up to 3 aggregates in each statement. Sam conjectures that it's due to the 127 byte max allocation size limitation.
The following statement does not work: select count(light),max(temp),min(voltage),sum(nodeid)