Implement Query and QueryList views

Resolves #199.