Override clone() in p/c queries