Adding bw query