You can import exported queries. This functionality is available in the Explorer tab > Contents and in the Administration tab.
Prerequisite
You have the Analysis publisher function privilege.
Procedure
The query is imported with all outputs. If a query with the same name already exists, a number is added to the name indicating imported versions.