This function is commonly used to retrieve the SQL used in the datasource.
script.getQuery()
None
let query = script.getQuery();