+\r
+ @Query(value = "SELECT * FROM FRAGMENT WHERE anchor_id = :anchor AND xpath LIKE CONCAT('%/',:descendantName) "\r
+ + "AND attributes @> :leafDataAsJson\\:\\:jsonb", nativeQuery = true)\r
+ // Above query will match the anchor id, last descendant name and all parameters passed into leafDataASJson with the\r
+ // attribute values of the requested data node eg: {"leaf_name":"value", "another_leaf_name":"another value"}\r
+ List<FragmentEntity> getByAnchorAndDescendentNameAndLeafValues(@Param("anchor") int anchorId,\r
+ @Param("descendantName") String descendantName, @Param("leafDataAsJson") String leafDataAsJson);\r