# gt

> **gt**(`key`, `value`): [`Predicate`](https://docs.arkiv.network/typescript-sdk/api-reference/query/type-aliases/predicate/)

Defined in: [src/query/predicate.ts:83](https://github.com/Arkiv-Network/arkiv-sdk-js/blob/9dd881b502454af6c7b7167106762d4ea0269389/src/query/predicate.ts#L83)

Creates a greater than predicate

## Parameters

### key

`string`

The key to compare

### value

The value to compare

`string` | `number`

## Returns

[`Predicate`](https://docs.arkiv.network/typescript-sdk/api-reference/query/type-aliases/predicate/)

The greater than predicate

## Example

```ts
const predicate = gt("name", "John")
// result = { type: "gt", key: "name", value: "John" }
```