[TASK] automatically fetch extension information if it is not loaded when executing the query command