Executing raw sql is done through creating a RetrievalQuery object or ActionQuery object. Problem is though that you need to provide a connection object to do so, and that's not going to work out of the box.
YOu have to add custom code to a partial class of DataAccessAdapter. THere you first call CreateDynamicQueryEngine and use the returned object to obtain a hold of the DbProviderFactory though the Creator property.
WIth the DbProviderFactory (or with the creator object of the DynamicQueryEngine) you can create DbCommands, which is needed to create the RetrievalQuery.
After you've created the RetrievalQuery you can execute it to do something using the FetchProjection method as that's the easiest. That way you can project the result to whatever you want.
If you only obtain the where clauses from the db (though why not solve that problem there?) and the projections etc. are not read from the DB, you can also create a new Predicate derived class.
In your Predicate derived class you simply store the string read from the DB (e.g. through its ctor) and in its ToQueryText() override (see the sourcecode of the runtime libraries for details, it's in the extras section) you simply return the string you passed to it in the ctor. The engine will then append the string to the query generated as the WHERE clause.