Another posible test for nested SQL functions