desc
relationalai.semantics.std.aggregates
desc(*args: AggValue) -> OrderingSpecify descending order for values in sorting and ranking operations.
Parameters
Section titled “Parameters”
(*argsAggValue, default:()) - Values to sort in descending order.
Returns
Section titled “Returns”Ordering- AnOrderingobject representing descending order.
Examples
Section titled “Examples”Rank employees by salary in descending order:
>>> select(Employee, aggregates.rank(aggregates.desc(Employee.salary)))Referenced By
Section titled “Referenced By”RelationalAI Documentation └── Build With RelationalAI └── Understand how PyRel works ├── Build a semantic model │ └── Query a model │ └── Rank and select top results withrank,asc,desc, andtop└── Use advanced reasoning > Rules-based reasoning └── Aggregate and group data └── Rank groups with.rank()