1. A computer-readable medium having program code stored thereon, the program code executable by a processor to: receive a query filtered on an object of a hierarchical list of values and comprising a first filter value; generate an SQL script based on the first filter value and at least one ancestor value of the first filter value in the hierarchical list of values; and retrieve a data set associated with the query based on the SQL script.