Create Function Like Replicate – Query Examples