Hi Amir,
As an information to you, the most probable reason why the the last 2 SQLs are failing is because APL is not installed on your HANA server.
These blog posts might be of interest for you
What is the SAP Automated Predictive Library (APL) for SAP HANA?
How to Install the Automated Predictive Library in SAP HANA
Introducing the SAP Automated Predictive Library
My 2 cents,
Antoine