First, I'll assume you meant SQL instead of SOQL. Second, in order to interface with any external component or API you'll need a component or extension. Fortunately, there is already a component in the Forge to connect to Sales Force. The component can be downloaded from here - http://www.outsystems.com/forge/component/109/salesforce-connector/
Once you incorporate this into your application you should be able to process requests like you want though it will likely be done using REST or Web Services, not direct SQL. I have not used this component myself so have no additional knowledge about its use.
Hope this helps,
Curt
Once you incorporate this into your application you should be able to process requests like you want though it will likely be done using REST or Web Services, not direct SQL. I have not used this component myself so have no additional knowledge about its use.
Hope this helps,
Curt