CORE-1945: Expand variables in sql format preconditions