select random_sample(x, 3l) from AS_TABLE(ListMap(ListFromRange(1, 10), ($x) -> {return AsStruct( if ($x > 1, Null, Just($x)) as x ); }))