Another use case is the invocation of aggregation functions:
@NamedNativeQuery(name = "countOrders", query = "db.runCommand( { count: 'orders' } )")