To export your query rule sets to an XML file:
On the Search Workbench tab, select Query Rules from the Show menu.
In the Query Rules menu, right-click the query rule set, and select Export from the menu.
Check the Global Query Rule Pattern Macros box to export macro information as well as the rule set.
Click Export. The export uses your browser’s file download defaults.