# Greater-than >

{% hint style="info" %}
The Greater Than operator **`>`** is used to compare two values and to check whether a value is greater than the other.\
The `>` operator can be used to compare values of the following types:

* text
* number
* duration
* datetime
* concept
* reference

This function is SQL compatible. For more information about SQL compatibility, see our [documentation](/platform/wemreference/sql-compatibility.md).&#x20;
{% endhint %}

{% hint style="success" %}
The result of the `>` operator is true or false.\
The result is <mark style="color:green;">True</mark> when`Value1` is greater than `Value2`.\
The result is <mark style="color:red;">False</mark> when `Value1` is **not** greater than `Value2`.

* number > number&#x20;
* text > text returns (alphabetical comparison, case insensitive)
* datetime > datetime&#x20;
* duration > duration&#x20;
* concept > concept (applies to the order of concepts)
* reference > reference&#x20;

If any of the operands is unknown, the result is also unknown.\
If operands are not of the same type, the "*<mark style="color:red;">expression type mismatch</mark>*" warning is displayed.
{% endhint %}

<details>

<summary><mark style="color:blue;"><code>value1</code></mark><code> > </code><mark style="color:blue;"><code>value2</code></mark> </summary>

`35 > 35` \
\&#xNAN;*=> No*

`1234 > 2345`\
\&#xNAN;*=> No*

`"text2" > "text1"`\
\&#xNAN;*=> Yes*

`(Today() + '1d') > UTCNow()`\
\&#xNAN;*=> Yes*

`'12d' > '20m'`\
\&#xNAN;*=> Yes*

`'Product categories'.'Monitor' > 'Product categories'.'Phone'`\
\&#xNAN;*=> No (in the order of concepts, Monitor comes first)*

`[Data.CurrentUser] > [OtherUser]`\
\&#xNAN;*=> Yes (if current-user-id > other-user-id)*

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wem.io/platform/wemreference/operators/greater-than.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
