# Chalk SQL Reference: Comparison Functions
source: https://docs.chalk.ai/chalksql-docs#section-comparison-functions

## `and(x, y)`
source: https://docs.chalk.ai/chalksql-docs#and

Performs logical AND operation on two boolean values.

**Parameters**

- `x`: `bool`
  The input value.
- `y`: `bool`
  The second input value.

## `between(value, min, max)`
source: https://docs.chalk.ai/chalksql-docs#between

Checks if a `value` is between two bounds (inclusive).

**Type parameters.** `T_ord` can be any orderable type, such as a number, string, date, timestamp, or boolean.

**Parameters**

- `value`: `$T_ord`
  The input `value`. `T_ord` can be any orderable type, such as a number, string, date, timestamp, or boolean.
- `min`: `$T_ord`
  The minimum bound, inclusive. `T_ord` can be any orderable type, such as a number, string, date, timestamp, or boolean.
- `max`: `$T_ord`
  The maximum bound, inclusive. `T_ord` can be any orderable type, such as a number, string, date, timestamp, or boolean.

## `coalesce(value1, value2)`
source: https://docs.chalk.ai/chalksql-docs#coalesce

Returns the first non-null value from a list of arguments.

**Type parameters.** `T` means matching inputs and outputs use the same type.

**Parameters**

- `value1`: `$T`
  The first value. `T` means matching inputs and outputs use the same type.
- `value2`: `$T...`
  The second value. `T` means matching inputs and outputs use the same type.

**Examples**

```sql
SELECT coalesce(NULL, 'fallback');
```

```text
fallback
```

## `distinct_from(x, y)`
source: https://docs.chalk.ai/chalksql-docs#distinct_from

Checks if two values are distinct, treating NULL values as different from non-NULL values.

**Type parameters.** `T` means matching inputs and outputs use the same type.

**Parameters**

- `x`: `$T`
  The input value. `T` means matching inputs and outputs use the same type.
- `y`: `$T`
  The second input value. `T` means matching inputs and outputs use the same type.

## `eq(x, y)`
source: https://docs.chalk.ai/chalksql-docs#eq

Returns whether two values are equal.

**Type parameters.** `T` means matching inputs and outputs use the same type.

**Examples**

```sql
SELECT eq(1, 1);
```

```text
true
```

**Overloads**

#### `eq(x, y)`

eq

**Parameters**

- `x`: `$T`
  The input value. `T` means matching inputs and outputs use the same type.
- `y`: `$T`
  The second input value. `T` means matching inputs and outputs use the same type.

#### `eq(x, y)`

Compares if two values are equal.

**Parameters**

- `x`: `int8`
  The input value.
- `y`: `int8`
  The second input value.

#### `eq(x, y)`

Compares if two values are equal.

**Parameters**

- `x`: `int16`
  The input value.
- `y`: `int16`
  The second input value.

#### `eq(x, y)`

Compares if two values are equal.

**Parameters**

- `x`: `int32`
  The input value.
- `y`: `int32`
  The second input value.

#### `eq(x, y)`

Compares if two values are equal.

**Parameters**

- `x`: `int64`
  The input value.
- `y`: `int64`
  The second input value.

#### `eq(x, y)`

Compares if two values are equal.

**Parameters**

- `x`: `halffloat`
  The input value.
- `y`: `halffloat`
  The second input value.

#### `eq(x, y)`

Compares if two values are equal.

**Parameters**

- `x`: `float`
  The input value.
- `y`: `float`
  The second input value.

#### `eq(x, y)`

Compares if two values are equal.

**Parameters**

- `x`: `double`
  The input value.
- `y`: `double`
  The second input value.

#### `eq(x, y)`

Compares if two values are equal.

**Parameters**

- `x`: `date32[day]`
  The input value.
- `y`: `date32[day]`
  The second input value.

#### `eq(x, y)`

Compares if two values are equal.

**Parameters**

- `x`: `date64[ms]`
  The input value.
- `y`: `date64[ms]`
  The second input value.

#### `eq(x, y)`

Compares if two values are equal.

**Parameters**

- `x`: `timestamp[us, tz=UTC]`
  The input value.
- `y`: `timestamp[us, tz=UTC]`
  The second input value.

#### `eq(x, y)`

Compares if two values are equal.

**Parameters**

- `x`: `duration[us]`
  The input value.
- `y`: `duration[us]`
  The second input value.

#### `eq(x, y)`

Compares if two values are equal.

**Parameters**

- `x`: `string`
  The input value.
- `y`: `string`
  The second input value.

#### `eq(x, y)`

Compares if two values are equal.

**Parameters**

- `x`: `large_string`
  The input value.
- `y`: `large_string`
  The second input value.

#### `eq(x, y)`

Compares if two values are equal.

**Parameters**

- `x`: `binary`
  The input value.
- `y`: `binary`
  The second input value.

#### `eq(x, y)`

Compares if two values are equal.

**Parameters**

- `x`: `large_binary`
  The input value.
- `y`: `large_binary`
  The second input value.

#### `eq(x, y)`

Compares if two values are equal.

**Parameters**

- `x`: `extension<arrow.json>`
  The input value.
- `y`: `extension<arrow.json>`
  The second input value.

#### `eq(x, y)`

Compares if two values are equal.

**Parameters**

- `x`: `$Decimal`
  The input value.
- `y`: `$Decimal`
  The second input value.

#### `eq(x, y)`

Compares if two intervals are equal.

**Parameters**

- `x`: `month_day_nano_interval`
  The input value.
- `y`: `month_day_nano_interval`
  The second input value.

## `gt(x, y)`
source: https://docs.chalk.ai/chalksql-docs#gt

Returns whether the first value is greater than the second.

**Type parameters.** `T` means matching inputs and outputs use the same type.

**Examples**

```sql
SELECT gt(2, 1);
```

```text
true
```

**Overloads**

#### `gt(x, y)`

gt

**Parameters**

- `x`: `$T`
  The input value. `T` means matching inputs and outputs use the same type.
- `y`: `$T`
  The second input value. `T` means matching inputs and outputs use the same type.

#### `gt(x, y)`

Compares if the first value is greater than the second.

**Parameters**

- `x`: `int8`
  The input value.
- `y`: `int8`
  The second input value.

#### `gt(x, y)`

Compares if the first value is greater than the second.

**Parameters**

- `x`: `int16`
  The input value.
- `y`: `int16`
  The second input value.

#### `gt(x, y)`

Compares if the first value is greater than the second.

**Parameters**

- `x`: `int32`
  The input value.
- `y`: `int32`
  The second input value.

#### `gt(x, y)`

Compares if the first value is greater than the second.

**Parameters**

- `x`: `int64`
  The input value.
- `y`: `int64`
  The second input value.

#### `gt(x, y)`

Compares if the first value is greater than the second.

**Parameters**

- `x`: `halffloat`
  The input value.
- `y`: `halffloat`
  The second input value.

#### `gt(x, y)`

Compares if the first value is greater than the second.

**Parameters**

- `x`: `float`
  The input value.
- `y`: `float`
  The second input value.

#### `gt(x, y)`

Compares if the first value is greater than the second.

**Parameters**

- `x`: `double`
  The input value.
- `y`: `double`
  The second input value.

#### `gt(x, y)`

Compares if the first value is greater than the second.

**Parameters**

- `x`: `$Decimal`
  The input value.
- `y`: `$Decimal`
  The second input value.

## `gte(x, y)`
source: https://docs.chalk.ai/chalksql-docs#gte

Returns whether the first value is greater than or equal to the second.

**Type parameters.** `T` means matching inputs and outputs use the same type.

**Examples**

```sql
SELECT gte(2, 2);
```

```text
true
```

**Overloads**

#### `gte(x, y)`

gte

**Parameters**

- `x`: `$T`
  The input value. `T` means matching inputs and outputs use the same type.
- `y`: `$T`
  The second input value. `T` means matching inputs and outputs use the same type.

#### `gte(x, y)`

Compares if the first value is greater than or equal to the second.

**Parameters**

- `x`: `int8`
  The input value.
- `y`: `int8`
  The second input value.

#### `gte(x, y)`

Compares if the first value is greater than or equal to the second.

**Parameters**

- `x`: `int16`
  The input value.
- `y`: `int16`
  The second input value.

#### `gte(x, y)`

Compares if the first value is greater than or equal to the second.

**Parameters**

- `x`: `int32`
  The input value.
- `y`: `int32`
  The second input value.

#### `gte(x, y)`

Compares if the first value is greater than or equal to the second.

**Parameters**

- `x`: `int64`
  The input value.
- `y`: `int64`
  The second input value.

#### `gte(x, y)`

Compares if the first value is greater than or equal to the second.

**Parameters**

- `x`: `halffloat`
  The input value.
- `y`: `halffloat`
  The second input value.

#### `gte(x, y)`

Compares if the first value is greater than or equal to the second.

**Parameters**

- `x`: `float`
  The input value.
- `y`: `float`
  The second input value.

#### `gte(x, y)`

Compares if the first value is greater than or equal to the second.

**Parameters**

- `x`: `double`
  The input value.
- `y`: `double`
  The second input value.

#### `gte(x, y)`

Compares if the first value is greater than or equal to the second.

**Parameters**

- `x`: `$Decimal`
  The input value.
- `y`: `$Decimal`
  The second input value.

## `if_else(condition, true_value, false_value)`
source: https://docs.chalk.ai/chalksql-docs#if_else

Returns the second argument if the `condition` is true, otherwise returns the third argument.

**Type parameters.** `T` means matching inputs and outputs use the same type.

**Parameters**

- `condition`: `bool`
  The boolean `condition` to evaluate.
- `true_value`: `$T`
  The value returned when the condition is true. `T` means matching inputs and outputs use the same type.
- `false_value`: `$T`
  The value returned when the condition is false. `T` means matching inputs and outputs use the same type.

## `is_null(value)`
source: https://docs.chalk.ai/chalksql-docs#is_null

Checks if the input is null.

**Type parameters.** `T` means matching inputs and outputs use the same type.

**Parameters**

- `value`: `$T`
  The input `value`. `T` means matching inputs and outputs use the same type.

## `lt(x, y)`
source: https://docs.chalk.ai/chalksql-docs#lt

Returns whether the first value is less than the second.

**Type parameters.** `T` means matching inputs and outputs use the same type.

**Examples**

```sql
SELECT lt(1, 2);
```

```text
true
```

**Overloads**

#### `lt(x, y)`

lt

**Parameters**

- `x`: `$T`
  The input value. `T` means matching inputs and outputs use the same type.
- `y`: `$T`
  The second input value. `T` means matching inputs and outputs use the same type.

#### `lt(x, y)`

Compares if the first value is less than the second.

**Parameters**

- `x`: `int8`
  The input value.
- `y`: `int8`
  The second input value.

#### `lt(x, y)`

Compares if the first value is less than the second.

**Parameters**

- `x`: `int16`
  The input value.
- `y`: `int16`
  The second input value.

#### `lt(x, y)`

Compares if the first value is less than the second.

**Parameters**

- `x`: `int32`
  The input value.
- `y`: `int32`
  The second input value.

#### `lt(x, y)`

Compares if the first value is less than the second.

**Parameters**

- `x`: `int64`
  The input value.
- `y`: `int64`
  The second input value.

#### `lt(x, y)`

Compares if the first value is less than the second.

**Parameters**

- `x`: `halffloat`
  The input value.
- `y`: `halffloat`
  The second input value.

#### `lt(x, y)`

Compares if the first value is less than the second.

**Parameters**

- `x`: `float`
  The input value.
- `y`: `float`
  The second input value.

#### `lt(x, y)`

Compares if the first value is less than the second.

**Parameters**

- `x`: `double`
  The input value.
- `y`: `double`
  The second input value.

#### `lt(x, y)`

Compares if the first value is less than the second.

**Parameters**

- `x`: `$Decimal`
  The input value.
- `y`: `$Decimal`
  The second input value.

## `lte(x, y)`
source: https://docs.chalk.ai/chalksql-docs#lte

Returns whether the first value is less than or equal to the second.

**Type parameters.** `T` means matching inputs and outputs use the same type.

**Examples**

```sql
SELECT lte(2, 2);
```

```text
true
```

**Overloads**

#### `lte(x, y)`

lte

**Parameters**

- `x`: `$T`
  The input value. `T` means matching inputs and outputs use the same type.
- `y`: `$T`
  The second input value. `T` means matching inputs and outputs use the same type.

#### `lte(x, y)`

Compares if the first value is less than or equal to the second.

**Parameters**

- `x`: `int8`
  The input value.
- `y`: `int8`
  The second input value.

#### `lte(x, y)`

Compares if the first value is less than or equal to the second.

**Parameters**

- `x`: `int16`
  The input value.
- `y`: `int16`
  The second input value.

#### `lte(x, y)`

Compares if the first value is less than or equal to the second.

**Parameters**

- `x`: `int32`
  The input value.
- `y`: `int32`
  The second input value.

#### `lte(x, y)`

Compares if the first value is less than or equal to the second.

**Parameters**

- `x`: `int64`
  The input value.
- `y`: `int64`
  The second input value.

#### `lte(x, y)`

Compares if the first value is less than or equal to the second.

**Parameters**

- `x`: `halffloat`
  The input value.
- `y`: `halffloat`
  The second input value.

#### `lte(x, y)`

Compares if the first value is less than or equal to the second.

**Parameters**

- `x`: `float`
  The input value.
- `y`: `float`
  The second input value.

#### `lte(x, y)`

Compares if the first value is less than or equal to the second.

**Parameters**

- `x`: `double`
  The input value.
- `y`: `double`
  The second input value.

#### `lte(x, y)`

Compares if the first value is less than or equal to the second.

**Parameters**

- `x`: `$Decimal`
  The input value.
- `y`: `$Decimal`
  The second input value.

## `neq(x, y)`
source: https://docs.chalk.ai/chalksql-docs#neq

Returns whether two values are not equal.

**Type parameters.** `T` means matching inputs and outputs use the same type.

**Examples**

```sql
SELECT neq(1, 2);
```

```text
true
```

**Overloads**

#### `neq(x, y)`

neq

**Parameters**

- `x`: `$T`
  The input value. `T` means matching inputs and outputs use the same type.
- `y`: `$T`
  The second input value. `T` means matching inputs and outputs use the same type.

#### `neq(x, y)`

Compares if two values are not equal.

**Parameters**

- `x`: `int8`
  The input value.
- `y`: `int8`
  The second input value.

#### `neq(x, y)`

Compares if two values are not equal.

**Parameters**

- `x`: `int16`
  The input value.
- `y`: `int16`
  The second input value.

#### `neq(x, y)`

Compares if two values are not equal.

**Parameters**

- `x`: `int32`
  The input value.
- `y`: `int32`
  The second input value.

#### `neq(x, y)`

Compares if two values are not equal.

**Parameters**

- `x`: `int64`
  The input value.
- `y`: `int64`
  The second input value.

#### `neq(x, y)`

Compares if two values are not equal.

**Parameters**

- `x`: `halffloat`
  The input value.
- `y`: `halffloat`
  The second input value.

#### `neq(x, y)`

Compares if two values are not equal.

**Parameters**

- `x`: `float`
  The input value.
- `y`: `float`
  The second input value.

#### `neq(x, y)`

Compares if two values are not equal.

**Parameters**

- `x`: `double`
  The input value.
- `y`: `double`
  The second input value.

#### `neq(x, y)`

Compares if two values are not equal.

**Parameters**

- `x`: `date32[day]`
  The input value.
- `y`: `date32[day]`
  The second input value.

#### `neq(x, y)`

Compares if two values are not equal.

**Parameters**

- `x`: `date64[ms]`
  The input value.
- `y`: `date64[ms]`
  The second input value.

#### `neq(x, y)`

Compares if two values are not equal.

**Parameters**

- `x`: `timestamp[us, tz=UTC]`
  The input value.
- `y`: `timestamp[us, tz=UTC]`
  The second input value.

#### `neq(x, y)`

Compares if two values are not equal.

**Parameters**

- `x`: `duration[us]`
  The input value.
- `y`: `duration[us]`
  The second input value.

#### `neq(x, y)`

Compares if two values are not equal.

**Parameters**

- `x`: `string`
  The input value.
- `y`: `string`
  The second input value.

#### `neq(x, y)`

Compares if two values are not equal.

**Parameters**

- `x`: `large_string`
  The input value.
- `y`: `large_string`
  The second input value.

#### `neq(x, y)`

Compares if two values are not equal.

**Parameters**

- `x`: `binary`
  The input value.
- `y`: `binary`
  The second input value.

#### `neq(x, y)`

Compares if two values are not equal.

**Parameters**

- `x`: `large_binary`
  The input value.
- `y`: `large_binary`
  The second input value.

#### `neq(x, y)`

Compares if two values are not equal.

**Parameters**

- `x`: `extension<arrow.json>`
  The input value.
- `y`: `extension<arrow.json>`
  The second input value.

#### `neq(x, y)`

Compares if two values are not equal.

**Parameters**

- `x`: `$Decimal`
  The input value.
- `y`: `$Decimal`
  The second input value.

#### `neq(x, y)`

Compares if two intervals are not equal.

**Parameters**

- `x`: `month_day_nano_interval`
  The input value.
- `y`: `month_day_nano_interval`
  The second input value.

## `nullif(value1, value2)`
source: https://docs.chalk.ai/chalksql-docs#nullif

Returns NULL if both arguments compare equal; otherwise returns the first argument.

**Type parameters.** `T` means matching inputs and outputs use the same type.

**Parameters**

- `value1`: `$T`
  The first value. `T` means matching inputs and outputs use the same type.
- `value2`: `$T`
  The second value. `T` means matching inputs and outputs use the same type.

## `python_eq(x, y)`
source: https://docs.chalk.ai/chalksql-docs#python_eq

Checks if two values are equal, treating NULL values as equal to other NULL values.

**Type parameters.** `T` means matching inputs and outputs use the same type.

**Parameters**

- `x`: `$T`
  The input value. `T` means matching inputs and outputs use the same type.
- `y`: `$T`
  The second input value. `T` means matching inputs and outputs use the same type.

## `python_ne(x, y)`
source: https://docs.chalk.ai/chalksql-docs#python_ne

Checks if two values are not equal, treating NULL values as different from non-NULL values.

**Type parameters.** `T` means matching inputs and outputs use the same type.

**Parameters**

- `x`: `$T`
  The input value. `T` means matching inputs and outputs use the same type.
- `y`: `$T`
  The second input value. `T` means matching inputs and outputs use the same type.

## `scalar_max(x, y)`
source: https://docs.chalk.ai/chalksql-docs#scalar_max

Returns the maximum of two scalar values.

**Overloads**

#### `scalar_max(x, y)`

**Parameters**

- `x`: `int8`
  The input value.
- `y`: `int8`
  The second input value.

#### `scalar_max(x, y)`

**Parameters**

- `x`: `int16`
  The input value.
- `y`: `int16`
  The second input value.

#### `scalar_max(x, y)`

**Parameters**

- `x`: `int32`
  The input value.
- `y`: `int32`
  The second input value.

#### `scalar_max(x, y)`

**Parameters**

- `x`: `int64`
  The input value.
- `y`: `int64`
  The second input value.

#### `scalar_max(x, y)`

**Parameters**

- `x`: `halffloat`
  The input value.
- `y`: `halffloat`
  The second input value.

#### `scalar_max(x, y)`

**Parameters**

- `x`: `float`
  The input value.
- `y`: `float`
  The second input value.

#### `scalar_max(x, y)`

**Parameters**

- `x`: `double`
  The input value.
- `y`: `double`
  The second input value.

#### `scalar_max(x, y)`

**Parameters**

- `x`: `date32[day]`
  The input value.
- `y`: `date32[day]`
  The second input value.

#### `scalar_max(x, y)`

**Parameters**

- `x`: `date64[ms]`
  The input value.
- `y`: `date64[ms]`
  The second input value.

#### `scalar_max(x, y)`

**Parameters**

- `x`: `timestamp[us, tz=UTC]`
  The input value.
- `y`: `timestamp[us, tz=UTC]`
  The second input value.

#### `scalar_max(x, y)`

**Parameters**

- `x`: `duration[us]`
  The input value.
- `y`: `duration[us]`
  The second input value.

## `scalar_min(x, y)`
source: https://docs.chalk.ai/chalksql-docs#scalar_min

Returns the minimum of two scalar values.

**Overloads**

#### `scalar_min(x, y)`

**Parameters**

- `x`: `int8`
  The input value.
- `y`: `int8`
  The second input value.

#### `scalar_min(x, y)`

**Parameters**

- `x`: `int16`
  The input value.
- `y`: `int16`
  The second input value.

#### `scalar_min(x, y)`

**Parameters**

- `x`: `int32`
  The input value.
- `y`: `int32`
  The second input value.

#### `scalar_min(x, y)`

**Parameters**

- `x`: `int64`
  The input value.
- `y`: `int64`
  The second input value.

#### `scalar_min(x, y)`

**Parameters**

- `x`: `halffloat`
  The input value.
- `y`: `halffloat`
  The second input value.

#### `scalar_min(x, y)`

**Parameters**

- `x`: `float`
  The input value.
- `y`: `float`
  The second input value.

#### `scalar_min(x, y)`

**Parameters**

- `x`: `double`
  The input value.
- `y`: `double`
  The second input value.

#### `scalar_min(x, y)`

**Parameters**

- `x`: `date32[day]`
  The input value.
- `y`: `date32[day]`
  The second input value.

#### `scalar_min(x, y)`

**Parameters**

- `x`: `date64[ms]`
  The input value.
- `y`: `date64[ms]`
  The second input value.

#### `scalar_min(x, y)`

**Parameters**

- `x`: `timestamp[us, tz=UTC]`
  The input value.
- `y`: `timestamp[us, tz=UTC]`
  The second input value.

#### `scalar_min(x, y)`

**Parameters**

- `x`: `duration[us]`
  The input value.
- `y`: `duration[us]`
  The second input value.

## `sort_order(spec, keys)`
source: https://docs.chalk.ai/chalksql-docs#sort_order

Encodes a struct of key columns into a single order-preserving value, for use as the comparator of max_by, min_by, max_by_n and min_by_n. The leading argument is a constant `spec` giving each key's direction and null placement; the ordering lives entirely in the encoded bytes.

**Type parameters.** `T` means matching inputs and outputs use the same type.

**Overloads**

#### `sort_order(spec, keys)`

**Parameters**

- `spec`: `string`
- `keys`: `$T`
  The map `keys` to read or update. `T` means matching inputs and outputs use the same type.

#### `sort_order(spec, keys)`

**Parameters**

- `spec`: `large_string`
- `keys`: `$T`
  The map `keys` to read or update. `T` means matching inputs and outputs use the same type.

## `x != y`
source: https://docs.chalk.ai/chalksql-docs#%21%3D

basic binary != operation

**Type parameters.** `T` means matching inputs and outputs use the same type.

**Parameters**

- `x`: `$T`
  The input value. `T` means matching inputs and outputs use the same type.
- `y`: `$T`
  The second input value. `T` means matching inputs and outputs use the same type.

## `x < y`
source: https://docs.chalk.ai/chalksql-docs#%3C

basic binary < operation

**Type parameters.** `T_ord` can be any orderable type, such as a number, string, date, timestamp, or boolean.

**Parameters**

- `x`: `$T_ord`
  The input value. `T_ord` can be any orderable type, such as a number, string, date, timestamp, or boolean.
- `y`: `$T_ord`
  The second input value. `T_ord` can be any orderable type, such as a number, string, date, timestamp, or boolean.

## `x <= y`
source: https://docs.chalk.ai/chalksql-docs#%3C%3D

basic binary <= operation

**Type parameters.** `T_ord` can be any orderable type, such as a number, string, date, timestamp, or boolean.

**Parameters**

- `x`: `$T_ord`
  The input value. `T_ord` can be any orderable type, such as a number, string, date, timestamp, or boolean.
- `y`: `$T_ord`
  The second input value. `T_ord` can be any orderable type, such as a number, string, date, timestamp, or boolean.

## `a <=> b`
source: https://docs.chalk.ai/chalksql-docs#%3C%3D%3E

Cosine distance (1 - cosine similarity) between two vectors.

**Overloads**

#### `a <=> b`

**Parameters**

- `a`: `list<item: float>`
- `b`: `list<item: float>`

#### `a <=> b`

**Parameters**

- `a`: `list<item: double>`
- `b`: `list<item: double>`

#### `a <=> b`

**Parameters**

- `a`: `large_list<item: float>`
- `b`: `large_list<item: float>`

#### `a <=> b`

**Parameters**

- `a`: `large_list<item: double>`
- `b`: `large_list<item: double>`

## `x == y`
source: https://docs.chalk.ai/chalksql-docs#%3D%3D

basic binary == operation

**Type parameters.** `T` means matching inputs and outputs use the same type.

**Parameters**

- `x`: `$T`
  The input value. `T` means matching inputs and outputs use the same type.
- `y`: `$T`
  The second input value. `T` means matching inputs and outputs use the same type.

## `x > y`
source: https://docs.chalk.ai/chalksql-docs#%3E

basic binary > operation

**Type parameters.** `T_ord` can be any orderable type, such as a number, string, date, timestamp, or boolean.

**Parameters**

- `x`: `$T_ord`
  The input value. `T_ord` can be any orderable type, such as a number, string, date, timestamp, or boolean.
- `y`: `$T_ord`
  The second input value. `T_ord` can be any orderable type, such as a number, string, date, timestamp, or boolean.

## `x >= y`
source: https://docs.chalk.ai/chalksql-docs#%3E%3D

basic binary >= operation

**Type parameters.** `T_ord` can be any orderable type, such as a number, string, date, timestamp, or boolean.

**Parameters**

- `x`: `$T_ord`
  The input value. `T_ord` can be any orderable type, such as a number, string, date, timestamp, or boolean.
- `y`: `$T_ord`
  The second input value. `T_ord` can be any orderable type, such as a number, string, date, timestamp, or boolean.
