Implemented portal queries