Adding Relational Query for Querying Objects