A Relational Approach to Sensor Network Data Mining