Adds basic support for querying a view.