OQL has no implementation having WITH. As soon as you start your OQL with the word ‘With’ you get this error:
Error on line 1 character 0: no viable alternative at input 'WITH'
All the options that OQL provides are described in https://docs.mendix.com/refguide/oql. WITH is not mentioned, which means it is also not implemented.