[Tasks] Use DMX and XMLA query templates provided in Management Studio [Links] 
Create a Singleton Prediction Query from a Template Create a Data Mining Query by Using XML/A Use Analysis Services Templates in SQL Server Management Studio