To identify which query engine was used for an SQL query the tool Visual Explain can be used. One of the attributes of the explain is Query Engine Used which either states SQE or CQE.
Query Engine Used
SQE
CQE