The present invention generally provides methods, systems and articles of manufacture
for programmatically providing a user interface for creating queries. In one embodiment,
the graphical user interface comprises (i) a region for displaying conditions of
a user-defined query; and (ii) a graphical element for initiating a process of
applying an event profile to a first condition of the query, whereby results returned
by execution of the query are restricted to those for which the first condition
and a second condition defined by the event profile are contemporaneously true.