1. A method of generating a query, the method comprising: receiving a representation of a first query item, the first query item belonging to a data set and having at least one attribute; receiving a representation of a second query item, the second query item being defined as relating to at least one particular attribute of another query item; associating, by a processor, the second query item with the first query item; automatically retrieving, in response to the second query item being associated with the first query item, a value for the at least one particular attribute of the second query item from the first query item; and saving a record of the retrieved value.