chain multiple query declarations