Both SQL queries and visual queries can be saved for future use within segments in Hightouch.
Simply hit the "Save Query" button and set a name for your query. Then, it'll be visible in the dropdown for both SQL Explorer and Visual Explorer.
Saved queries can be used when creating a segment, instead of creating a new query. Changes in the query will be reflected in the segment and updated.