chore(procDef/query): allow to query with name/nameLike and latest

related to CAM-2758