bifurcate query and response