You can buy this project and download/modify it how often you want.
Files of the artifact lenses-sql-udf version 2.0.0 from the group com.landoop.