Returns TRUE if premise entails conclusion (zero-shot NLI)
Per-row — runs once for each row.
{{ premise }} IMPLIES {{ conclusion }}| name | type | description |
|---|---|---|
| premise | VARCHAR | — |
| conclusion | VARCHAR | — |
| threshold(optional) | DOUBLE | — |
Function: Implication detected
SELECT
semantic_implies ('John is a bachelor', 'John is unmarried')Function: Causal implication
SELECT
semantic_implies ('It is raining', 'The ground is wet')Function: No logical implication
SELECT
semantic_implies ('The sky is blue', 'Today is Monday')Infix IMPLIES: logical deduction
WITH
t AS (
SELECT
'All birds can fly' AS premise
)
SELECT
premise
FROM
t
WHERE
premise IMPLIES 'Eagles can fly'Infix IMPLIES: invalid overgeneralization
WITH
t AS (
SELECT
'Some dogs are friendly' AS premise
)
SELECT
CASE
WHEN premise IMPLIES 'All dogs are friendly' THEN 'yes'
ELSE 'no'
END
FROM
tExtract hidden assumptions from an argument or claim
Returns TRUE if text_a contradicts text_b (3-class NLI)
LLM-backed contradiction check (escape hatch for CONTRADICTS)
LLM-backed logical implication (escape hatch for IMPLIES)
Score how strongly evidence supports a claim (0-1)
Returns TRUE if premise entails conclusion (zero-shot NLI)
Per-row — runs once for each row.
{{ premise }} IMPLIES {{ conclusion }}| name | type | description |
|---|---|---|
| premise | VARCHAR | — |
| conclusion | VARCHAR | — |
| threshold(optional) | DOUBLE | — |
Function: Implication detected
SELECT
semantic_implies ('John is a bachelor', 'John is unmarried')Function: Causal implication
SELECT
semantic_implies ('It is raining', 'The ground is wet')Function: No logical implication
SELECT
semantic_implies ('The sky is blue', 'Today is Monday')Infix IMPLIES: logical deduction
WITH
t AS (
SELECT
'All birds can fly' AS premise
)
SELECT
premise
FROM
t
WHERE
premise IMPLIES 'Eagles can fly'Infix IMPLIES: invalid overgeneralization
WITH
t AS (
SELECT
'Some dogs are friendly' AS premise
)
SELECT
CASE
WHEN premise IMPLIES 'All dogs are friendly' THEN 'yes'
ELSE 'no'
END
FROM
tExtract hidden assumptions from an argument or claim
Returns TRUE if text_a contradicts text_b (3-class NLI)
LLM-backed contradiction check (escape hatch for CONTRADICTS)
LLM-backed logical implication (escape hatch for IMPLIES)
Score how strongly evidence supports a claim (0-1)