Patent ID: 8015165

Claim:
A method comprising the steps of: receiving a database statement that specifies a particular path and one or more conditions relating to either content of one or more resources or metadata associated with the one or more resources; and in response to receiving the database statement: identifying a first set of versions, of one or more versioned resources, that satisfy the one or more conditions in the database statement; determining, from among the first set of versions, a second set of one or more versions by determining which versions of the first set of versions are versions of any versioned resource that has any version that satisfies the particular path; wherein the second set of one or more versions includes a particular version of a particular versioned resource; wherein a path that identifies a hierarchical location of the particular version does not satisfy the particular path; wherein a version of the particular versioned resource other than the particular version satisfies the particular path; generating, based on the second set of one or more versions, a result of the database statement; wherein the steps are performed on one or more computing devices.