You have a result in grid view. A right click on a special cell in the grid view tiggers the feature and shows a new selection in the menu, maybe near "visualize as..." named "script as..." or something like this.The next selection list has (custom) entires, e.g. "WHERE - clause". A Klick on the selection makes a text appear in the query window, such as " WHERE {Header of clicked cell} = '{cellText}' ".