[#43] making the json case class for prie single query that includes queryPattern