If one of the arguments is also a function call, it must be encased in parentheses, so we know where arguments of inner function end and the arguments of outer function start.

    There is a alternative way of calling functions: using a pipeline. Regardless of whether the pipeline is delimited by pipe symbol | or a new line, the pipeline is equivalent to applying each of functions as the last argument of the next function.

    1. a | foo 3 | bar 'hello' 'world' | baz
    1. baz (bar 'hello' 'world' (foo 3 a))

    As you may have noticed, transforms are regular functions too!

    1. SELECT
    2. FROM
    3. employees
    4. WHERE
    5. age > 50
    6. ORDER BY
    7. name

    … is equivalent to …

    1. SELECT
    2. *
    3. FROM
    4. employees
    5. WHERE
    6. age > 50
    7. ORDER BY
    8. name

    1. *
    2. FROM
    3. WHERE
    4. age > 50
    5. ORDER BY
    6. name

    … is equivalent to …

    1. sort name (filter age > 50 (from employees))

    1. SELECT
    2. *
    3. FROM
    4. employees
    5. WHERE
    6. age > 50

    As you can see, the first example with pipeline notation is much easier to comprehend, compared to the last one with the regular function call notation. This is why it is recommended to use pipelines for nested function calls that are 3 or more levels deep.