Ability to run an adhoc query

Is it possible to create and run an adhoc query from TG Insights such as deleting a subset of edges and vertices from the graph? I don’t want it run all the time. Just when I click “run query”. E.g.

CREATE QUERY clear_same_as_and_unified() FOR GRAPH MyGraph {

Clears all Same_As and Entity_To_UnifiedEntity edges

sameas = SELECT c
FROM Application:c -(Same_As:sa)- Application:s
ACCUM DELETE(sa);

unified = SELECT c
FROM Application:c -(Entity_To_UnifiedEntity:eu)- UnifiedEntity:ue
ACCUM DELETE(eu)
POST-ACCUM DELETE(ue);

}