I am m doing research in efficient query optimization in WSN databases. I read so many research papers also in this topic. Kindly guide me for the best way out.
You may need to read about Pocket Driven Trajectories (PDT) algorithm.
Its a selectivity-aware data collection technique that tailors data collection paths for a monitoring query based on the spatial layout of selected nodes.
Also, Check the Query Optimization Processors for Wireless Sensor Network
These are very helpful to optimize Query Based WSN
Have you read about the routing algorithms? are you asking about the routing quiries? I propsed an algorithm for reducing the energy in WSN during the routing. I hope it will be helpful for you.