SELECT least(4, number, 6), greatest(4, number, 6) FROM numbers(10);
