1. A computer implemented method for generating a prediction query, comprising: electronically displaying a first user interface area adapted to display a mining model and receive inputs matching a mining model to an input table; in response to a user input, electronically displaying a second user interface area adapted to display mining models and receive a selection of a mining model; receiving a selection of a mining model in the second user interface area and displaying the selected model in the first user interface area; electronically displaying a third user interface area, the third user interface area adapted to display a database schema and receive an input matching an input table displayed in the third user interface area with a mining model displayed in the first user interface area; receiving in the first user interface area and the third user interface area an input of at least one line segment between at least one column of the mining model and at least one column of the at least one input table; and in response to receiving the input of at least one line segment, automatically generating a prediction query and displaying the generated prediction query in a fourth user interface area.