Systems and methods are provided for generating prediction queries to help
a user build and execute prediction queries. A user interface (UI) is
provided that is easy to use and understand in connection with the
generation of a prediction query for data mining. The UI can be
instantiated from a variety of disparate sources that may request query
building services. While prediction queries and relational queries are
quite different, the UI enables prediction queries to be built in a
manner that is similar to the way relational queries are built. In one
embodiment, the main screen of the UI includes four main components: (1)
a table column mapping area, (3) a selection grid area, (4) a query text
display area and (5) a query result grid area. In one embodiment, the
query text display area and the query result grid area are initially not
presented to the user.