How to use predefined sql in Synceditor scripts

How to use predefined sql in Synceditor scripts