PatomicQuery update for in function