The Query History Inspector is a Sandbox plugin that allows the user to inspect details about previously recorded "live" queries. It can also save the current "live" history to a file for later inspection when, for example, the game is no longer running.
In order to track a query history the following CVar must be set to 1:
uqs_logQueryHistory 1
The "live" query history will first be stored in memory (presuming the CVar is enabled). Only after that, you can actually save the history from memory to a file.
Each "live" query builds a "historic" counterpart while running, this is called a historical query. All historic queries are referred to as a query history.
Internally, the Universal Query System (UQS) core keeps track of 2 independent query histories:
The "live" history can be saved to a file at any point in time and be loaded again as the "deserialized" one. Both histories are separated and won't interfere with each other.