Handle function calls with SQL parameter
Add tests
Merge branch 'handle-func-calls'