1. A method for generating a prediction query, comprising: selecting at least one mining model; selecting at least one input table; joining at least one element of the at least one mining model with at least one element of the at least one input table; and generating a prediction query in response to said joining.