feature(core): support for querying based on relationship create time

fixes #2343