To open the SQL window:
From the Define Subscription window, click on the SQL push button. The SQL window opens.