According to the documentation as of 10.9, hosted feature services support SQL statements.
https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer-.html
- Hosted feature services on a relational data store support SQL expression for the outFields parameter when supportsOutFieldSqlExpression, under advancedQueryCapabilities, is true. Hosted feature services in ArcGIS Online already support this functionality.
https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html
- If specifying outFields as expressions on a feature service-based FeatureLayer, the service capabilities advancedQueryCapabilities.supportsOutFieldSQLExpression and useStandardizedQueries must both be true.
But a very simply expression does not work. PartyName LIKE '%driscoll%',
on this layer: https://www.jfksgis.us/server/rest/services/Hosted/Parcel_hosted/FeatureServer/0/
The SQL query works fine in Pro and for Online services: https://services1.arcgis.com/tpr1e2h7Rmn9C5oc/ArcGIS/rest/services/JFKS_GIS_ParcelOrion_Public_V4/FeatureServer/0
So is this not actually supported in server 10.9?