Implement clone in p/c queries.