A default template is restored to its state at the time of its removal. That is, if you modified a default template prior to removing it, the modified version of the template is restored.
You can restore only default templates. You cannot restore templates that you create or import. You cannot restore removed default templates selectively. All of the removed default templates are restored.
To restore removed SQL or XQuery templates: