externalized query to be overrided