Starting version 7.2.0 flag "acm.cleanuponcompletion" is added under workflow and it is set to 'True' by default. When this flag is set to true all user data including sql queries is expected to be cleaned up once the job completes.
Following is the sql select node query in the workflow: Image description
As expected you do not see the query populating in run time. Image description
But sometimes you do see the query populating.
Since the option under workflow "acm.cleanuponcompletion" is set to true, the queries cleanup is expected behavior but due to a defect the cleanup is not working in few cases.
This is a known issue reported in engineering ticket ACM-107552.
This issue is resolved in the following RSA Identity Governance & Lifecycle patch levels: