To solve the delay during interest flooding and unbalanced energy consumption of nodes in the directed diffusion algorithm for Wireless Sensor Network (WSN), it proposes a Data Query Routing Algorithm with Cluster Bridge (DQCB) for WSN. In the clustering stage, it proposes the conception of cluster bridge and introduces triangular norm for an optimal strategy to select cluster bridge. In the query distribution phase, it establishes the network topology using the color conversion of nodes based on graph theory and passive clustering, as well as the advertisement routing table with key information to avoid in-cluster flooding. During data transmission phase, it designs the time level mechanism to prioritize tasks based on real-time requirements and the energy level mechanism to optimize the route. The simulation results prove that the proposed method effectively reduces the unbalanced energy consumption, improves query efficiency and prolongs the network life.