native query for HistoricVariableInstance
native query for HistoricDetail