Support empty queries and multiple result queries