[Links] Create a DMX Query in SQL Server Management Studio Create a Prediction Query Using the Prediction Query Builder Apply Prediction Functions to a Model Manually Edit a Prediction Query [Tasks] 
Use data mining query tools in SQL Server Management Studio and SQL Server Data Tools (SSDT)