Since you are running your Easy Chart in RealTime, the query syntax is automatic.
I believe the “?” value is just the current date minus the time configured under the Chart (in your case 2 hours).
The fact that the Easy Chart does not run in Client is probably a Project Property issue.
In the designer, go to Project/Properties under Client/Permissions make sure that Legacy Database Access is enabled.