You can view the SPARQL Query which is currently visualized by going to the “SPARQL” tab.
You can also directly edit the query here. Your changes will be reflected in the visualisation on the left side instantly.
As soon as you make a change, the save/discard buttons will appear.