Create modify views query