query persist type