Extend view query functionality