In ‘In-Database’ tools, we can use’’ Dynamic Output In-DB’’ tool to locate/observe the query being used at a particular stage of a workflow. In a few cases, we might not locate the tool as the tool category might be hidden, but we will find it in the search all toolbox.
If any In-DB tool is not being used then the workflow is not taking place in DB, so there is no query in the first place.