added documentation of view query