There are built-in tools in rec for querying, joining / foreign keys, checking data integrity against a schema, and aggregation and reporting.
So the set of advantages over json/yaml are similar to SQL's advantages, except the database format is human readable and grepable.