min(a, attr)
min(a)
Returns the minimum of the specified attr for tuples in relation a.
If the relation has only one attribute then it is used and no attr need be specified.
Examples
None
min($S[SNO="S0"], STATUS)
9223372036854775807 // note: largest possible int, i.e. min({a:int}{})
Some
min($S, STATUS)
10
Literal vs scalar
v1:=42
min({a}{[100][v1]})
42