Skip to main content

least

The function used to take two values and return the lesser of them in standard order. Works with numbers, strings, and dates.

Parameter

Type

value

any

Returns: any

Example

Query:

PREFIX : <https://ddw-doccorp.linked.data.world/d/sparql-function-sample-queries/>
PREFIX fn: <http://data.world/function/functions#>

SELECT (fn:least(3, 4) AS ?least)
{
}

Run query

Results:

least

3