HPCC-12390 Allow variable parameters to SAMPLE

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>