view queries prototype