show sql in the function