What would be the SQL equivalent of what you're looking for? Authorization rules tend to consist in highly application-specific invariants, I'd be surprised if you found a generic solution.
@val_waeselynck - I was thinking maybe there was something similar to what Hasura, Dgraph, Firebase are doing for their authorization system. A rule engine that runs against a query.