if query is empty, it means *