multiple query support