I dont think it can be done through sql query, but it can be done through java jdbc programming which can extract all the predefined functions and display them