{ "type": "statement", "variant": "list", "statement": [ { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "!=", "left": { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "0" }, "right": { "type": "literal", "variant": "decimal", "value": "0" } }, "left": { "type": "literal", "variant": "decimal", "value": "5" } }, "right": { "type": "literal", "variant": "decimal", "value": "1" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "0" }, "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "!=", "left": { "type": "literal", "variant": "decimal", "value": "0" }, "right": { "type": "literal", "variant": "decimal", "value": "1" } } }, "left": { "type": "literal", "variant": "decimal", "value": "5" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "0" }, "right": { "type": "literal", "variant": "decimal", "value": "2" } }, "left": { "type": "expression", "format": "binary", "variant": "operation", "operation": "!=", "left": { "type": "literal", "variant": "decimal", "value": "1" }, "right": { "type": "literal", "variant": "decimal", "value": "0" } } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "0" }, "right": { "type": "literal", "variant": "decimal", "value": "2" } }, "left": { "type": "expression", "format": "binary", "variant": "operation", "operation": "!=", "left": { "type": "literal", "variant": "decimal", "value": "1" }, "right": { "type": "literal", "variant": "decimal", "value": "0" } } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "!=", "left": { "type": "literal", "variant": "decimal", "value": "1" }, "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "0" }, "right": { "type": "literal", "variant": "decimal", "value": "2" } }, "left": { "type": "literal", "variant": "decimal", "value": "0" } } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "0" }, "right": { "type": "literal", "variant": "decimal", "value": "2" } }, "left": { "type": "literal", "variant": "decimal", "value": "10" } }, "left": { "type": "literal", "variant": "decimal", "value": "1" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "0" }, "right": { "type": "literal", "variant": "decimal", "value": "2" } }, "left": { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "decimal", "value": "10" }, "left": { "type": "literal", "variant": "decimal", "value": "1" } } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "0" }, "right": { "type": "literal", "variant": "decimal", "value": "2" } }, "left": { "type": "literal", "variant": "decimal", "value": "10" } }, "left": { "type": "literal", "variant": "decimal", "value": "1" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "4" }, "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "decimal", "value": "1" }, "left": { "type": "literal", "variant": "decimal", "value": "8" } } }, "left": { "type": "literal", "variant": "decimal", "value": "6" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "decimal", "value": "1" }, "left": { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "4" }, "right": { "type": "literal", "variant": "decimal", "value": "8" } }, "left": { "type": "literal", "variant": "decimal", "value": "6" } } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "4" }, "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "decimal", "value": "1" }, "left": { "type": "literal", "variant": "decimal", "value": "8" } } }, "left": { "type": "literal", "variant": "decimal", "value": "6" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "0" }, "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "0" }, "right": { "type": "literal", "variant": "decimal", "value": "1" } }, "left": { "type": "literal", "variant": "decimal", "value": "0" } } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "0" }, "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "0" }, "right": { "type": "literal", "variant": "decimal", "value": "1" } }, "left": { "type": "literal", "variant": "decimal", "value": "0" } } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "0" }, "right": { "type": "literal", "variant": "decimal", "value": "1" } }, "left": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "0" }, "right": { "type": "literal", "variant": "decimal", "value": "0" } } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "expression", "format": "unary", "variant": "operation", "expression": { "type": "literal", "variant": "decimal", "value": "1" }, "operator": "-" }, "right": { "type": "literal", "variant": "decimal", "value": "1" } }, "left": { "type": "literal", "variant": "decimal", "value": "0" } }, "right": { "type": "literal", "variant": "decimal", "value": "0" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "expression", "format": "unary", "variant": "operation", "expression": { "type": "literal", "variant": "decimal", "value": "1" }, "operator": "-" }, "right": { "type": "literal", "variant": "decimal", "value": "1" } }, "left": { "type": "literal", "variant": "decimal", "value": "0" } }, "right": { "type": "literal", "variant": "decimal", "value": "0" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "expression", "format": "unary", "variant": "operation", "expression": { "type": "literal", "variant": "decimal", "value": "1" }, "operator": "-" }, "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "1" }, "right": { "type": "literal", "variant": "decimal", "value": "0" } } }, "left": { "type": "literal", "variant": "decimal", "value": "0" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "0" }, "right": { "type": "literal", "variant": "decimal", "value": "1" } }, "left": { "type": "expression", "format": "binary", "variant": "operation", "operation": "<", "left": { "type": "literal", "variant": "decimal", "value": "2" }, "right": { "type": "literal", "variant": "decimal", "value": "3" } } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "0" }, "right": { "type": "literal", "variant": "decimal", "value": "1" } }, "left": { "type": "expression", "format": "binary", "variant": "operation", "operation": "<", "left": { "type": "literal", "variant": "decimal", "value": "2" }, "right": { "type": "literal", "variant": "decimal", "value": "3" } } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "<", "left": { "type": "literal", "variant": "decimal", "value": "2" }, "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "0" }, "right": { "type": "literal", "variant": "decimal", "value": "1" } }, "left": { "type": "literal", "variant": "decimal", "value": "3" } } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "1" }, "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "<", "left": { "type": "literal", "variant": "decimal", "value": "2" }, "right": { "type": "literal", "variant": "decimal", "value": "3" } } }, "left": { "type": "literal", "variant": "decimal", "value": "2" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "1" }, "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "<", "left": { "type": "literal", "variant": "decimal", "value": "2" }, "right": { "type": "literal", "variant": "decimal", "value": "3" } } }, "left": { "type": "literal", "variant": "decimal", "value": "2" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "<", "left": { "type": "expression", "format": "binary", "variant": "operation", "operation": "between", "right": { "type": "expression", "format": "binary", "variant": "operation", "operation": "and", "left": { "type": "literal", "variant": "decimal", "value": "1" }, "right": { "type": "literal", "variant": "decimal", "value": "2" } }, "left": { "type": "literal", "variant": "decimal", "value": "2" } }, "right": { "type": "literal", "variant": "decimal", "value": "3" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "abcde" }, "left": { "type": "literal", "variant": "text", "value": "abc%" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "abc%" }, "left": { "type": "literal", "variant": "text", "value": "abcde" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "ab%de" }, "left": { "type": "literal", "variant": "text", "value": "abde" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "ab%de" }, "left": { "type": "literal", "variant": "text", "value": "abXde" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "ab%de" }, "left": { "type": "literal", "variant": "text", "value": "abABCde" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "ab_de" }, "left": { "type": "literal", "variant": "text", "value": "abde" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "ab_de" }, "left": { "type": "literal", "variant": "text", "value": "abXde" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "ab_de" }, "left": { "type": "literal", "variant": "text", "value": "abABCde" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "aBc" }, "left": { "type": "literal", "variant": "text", "value": "abc" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "aBc" }, "left": { "type": "literal", "variant": "text", "value": "aBc" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "aBc" }, "left": { "type": "literal", "variant": "text", "value": "ac" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "a" }, "left": { "type": "literal", "variant": "text", "value": "A" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "u00e6" }, "left": { "type": "literal", "variant": "text", "value": "u00c6" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "abcX%" }, "escape": { "type": "literal", "variant": "text", "value": "X" }, "left": { "type": "literal", "variant": "text", "value": "abc%" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "abcX%" }, "escape": { "type": "literal", "variant": "text", "value": "X" }, "left": { "type": "literal", "variant": "text", "value": "abc5" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "abcX%" }, "escape": { "type": "literal", "variant": "text", "value": "X" }, "left": { "type": "literal", "variant": "text", "value": "abc" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "abcX%" }, "escape": { "type": "literal", "variant": "text", "value": "X" }, "left": { "type": "literal", "variant": "text", "value": "abcX%" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "abcX%" }, "escape": { "type": "literal", "variant": "text", "value": "X" }, "left": { "type": "literal", "variant": "text", "value": "abc%%" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "abcX_" }, "escape": { "type": "literal", "variant": "text", "value": "X" }, "left": { "type": "literal", "variant": "text", "value": "abc_" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "abcX_" }, "escape": { "type": "literal", "variant": "text", "value": "X" }, "left": { "type": "literal", "variant": "text", "value": "abc5" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "abcX_" }, "escape": { "type": "literal", "variant": "text", "value": "X" }, "left": { "type": "literal", "variant": "text", "value": "abc" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "abcX_" }, "escape": { "type": "literal", "variant": "text", "value": "X" }, "left": { "type": "literal", "variant": "text", "value": "abcX_" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "abcX_" }, "escape": { "type": "literal", "variant": "text", "value": "X" }, "left": { "type": "literal", "variant": "text", "value": "abc__" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "abcXX" }, "escape": { "type": "literal", "variant": "text", "value": "X" }, "left": { "type": "literal", "variant": "text", "value": "abcX" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "abcXX" }, "escape": { "type": "literal", "variant": "text", "value": "X" }, "left": { "type": "literal", "variant": "text", "value": "abc5" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "abcXX" }, "escape": { "type": "literal", "variant": "text", "value": "X" }, "left": { "type": "literal", "variant": "text", "value": "abc" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "abcXX" }, "escape": { "type": "literal", "variant": "text", "value": "X" }, "left": { "type": "literal", "variant": "text", "value": "abcXX" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "def" }, "left": { "type": "literal", "variant": "text", "value": "abc" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "def" }, "escape": { "type": "literal", "variant": "text", "value": "X" }, "left": { "type": "literal", "variant": "text", "value": "abc" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "ABC%" }, "left": { "type": "literal", "variant": "text", "value": "abcxyz" } } ] }, { "type": "statement", "variant": "pragma", "target": { "type": "identifier", "variant": "pragma", "name": "case_sensitive_like" }, "args": { "type": "expression", "variant": "list", "expression": { "type": "literal", "variant": "boolean", "normalized": "1", "value": "1" } } }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "ABC%" }, "left": { "type": "literal", "variant": "text", "value": "abcxyz" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "ABC%" }, "left": { "type": "literal", "variant": "text", "value": "ABCxyz" } } ] }, { "type": "statement", "variant": "pragma", "target": { "type": "identifier", "variant": "pragma", "name": "case_sensitive_like" }, "args": { "type": "expression", "variant": "list", "expression": { "type": "literal", "variant": "boolean", "normalized": "0", "value": "0" } } }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "ABC%" }, "left": { "type": "literal", "variant": "text", "value": "abcxyz" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "like", "right": { "type": "literal", "variant": "text", "value": "ABC%" }, "left": { "type": "literal", "variant": "text", "value": "ABCxyz" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "glob", "right": { "type": "literal", "variant": "text", "value": "abc%" }, "left": { "type": "literal", "variant": "text", "value": "abcxyz" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "glob", "right": { "type": "literal", "variant": "text", "value": "abc*" }, "left": { "type": "literal", "variant": "text", "value": "abcxyz" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "glob", "right": { "type": "literal", "variant": "text", "value": "abc___" }, "left": { "type": "literal", "variant": "text", "value": "abcxyz" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "glob", "right": { "type": "literal", "variant": "text", "value": "abc???" }, "left": { "type": "literal", "variant": "text", "value": "abcxyz" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "glob", "right": { "type": "literal", "variant": "text", "value": "abc*" }, "left": { "type": "literal", "variant": "text", "value": "abcxyz" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "glob", "right": { "type": "literal", "variant": "text", "value": "abc*" }, "left": { "type": "literal", "variant": "text", "value": "ABCxyz" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "glob", "right": { "type": "literal", "variant": "text", "value": "ABC*" }, "left": { "type": "literal", "variant": "text", "value": "abcxyz" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "not glob", "right": { "type": "literal", "variant": "text", "value": "ABC*" }, "left": { "type": "literal", "variant": "text", "value": "abcxyz" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "not glob", "right": { "type": "literal", "variant": "text", "value": "abc*" }, "left": { "type": "literal", "variant": "text", "value": "abcxyz" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "not like", "right": { "type": "literal", "variant": "text", "value": "ABC%" }, "left": { "type": "literal", "variant": "text", "value": "abcxyz" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "not like", "right": { "type": "literal", "variant": "text", "value": "abc%" }, "left": { "type": "literal", "variant": "text", "value": "abcxyz" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "not like", "right": { "type": "literal", "variant": "text", "value": "abc%" }, "left": { "type": "literal", "variant": "text", "value": "abdxyz" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "not glob", "right": { "type": "literal", "variant": "null", "value": "null" }, "left": { "type": "literal", "variant": "text", "value": "abcxyz" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "not like", "right": { "type": "literal", "variant": "null", "value": "null" }, "left": { "type": "literal", "variant": "text", "value": "abcxyz" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "not glob", "right": { "type": "literal", "variant": "text", "value": "abc*" }, "left": { "type": "literal", "variant": "null", "value": "null" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "not like", "right": { "type": "literal", "variant": "text", "value": "ABC%" }, "left": { "type": "literal", "variant": "null", "value": "null" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "glob", "right": { "type": "literal", "variant": "text", "value": "def" }, "left": { "type": "literal", "variant": "text", "value": "abc" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "not glob", "right": { "type": "literal", "variant": "text", "value": "Y" }, "left": { "type": "literal", "variant": "text", "value": "X" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "regexp", "right": { "type": "literal", "variant": "text", "value": "def" }, "left": { "type": "literal", "variant": "text", "value": "abc" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "not regexp", "right": { "type": "literal", "variant": "text", "value": "Y" }, "left": { "type": "literal", "variant": "text", "value": "X" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "match", "right": { "type": "literal", "variant": "text", "value": "def" }, "left": { "type": "literal", "variant": "text", "value": "abc" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "format": "binary", "variant": "operation", "operation": "not match", "right": { "type": "literal", "variant": "text", "value": "Y" }, "left": { "type": "literal", "variant": "text", "value": "X" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "variant": "case", "expression": [ { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "1" }, "consequent": { "type": "literal", "variant": "text", "value": "true" } }, { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "0" }, "consequent": { "type": "literal", "variant": "text", "value": "false" } }, { "type": "condition", "variant": "else", "consequent": { "type": "literal", "variant": "text", "value": "else" } } ] } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "variant": "case", "expression": [ { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "1" }, "consequent": { "type": "literal", "variant": "text", "value": "true" } }, { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "0" }, "consequent": { "type": "literal", "variant": "text", "value": "false" } }, { "type": "condition", "variant": "else", "consequent": { "type": "literal", "variant": "text", "value": "else" } } ], "discriminant": { "type": "literal", "variant": "decimal", "value": "0" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "variant": "case", "expression": [ { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "a" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "A" } }, { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "b" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "B" } }, { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "c" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "C" } } ] } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "variant": "case", "expression": [ { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "c" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "C" } }, { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "b" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "B" } }, { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "a" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "A" } }, { "type": "condition", "variant": "else", "consequent": { "type": "literal", "variant": "text", "value": "no result" } } ] } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "variant": "case", "expression": [ { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "a" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "A" } }, { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "b" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "B" } }, { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "c" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "C" } }, { "type": "condition", "variant": "else", "consequent": { "type": "literal", "variant": "text", "value": "no result" } } ] } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "variant": "case", "expression": [ { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "a" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "A" } }, { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "b" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "B" } }, { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "c" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "C" } }, { "type": "condition", "variant": "else", "consequent": { "type": "literal", "variant": "text", "value": "no result" } } ] } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "variant": "case", "expression": [ { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "a" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "A" } }, { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "b" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "B" } }, { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "c" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "C" } }, { "type": "condition", "variant": "else", "consequent": { "type": "literal", "variant": "text", "value": "no result" } } ] } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "variant": "case", "expression": [ { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "a" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "A" } }, { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "b" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "B" } }, { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "c" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "C" } }, { "type": "condition", "variant": "else", "consequent": { "type": "literal", "variant": "text", "value": "no result" } } ] } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "variant": "case", "expression": [ { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "a" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "A" } }, { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "b" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "B" } }, { "type": "condition", "variant": "when", "condition": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "c" } ] } }, "consequent": { "type": "literal", "variant": "text", "value": "C" } } ] } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "variant": "case", "expression": [ { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "null", "value": "null" }, "consequent": { "type": "literal", "variant": "text", "value": "A" } }, { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "1" }, "consequent": { "type": "literal", "variant": "text", "value": "B" } } ] } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "variant": "case", "expression": [ { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "0" }, "consequent": { "type": "literal", "variant": "text", "value": "A" } }, { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "null", "value": "null" }, "consequent": { "type": "literal", "variant": "text", "value": "B" } }, { "type": "condition", "variant": "else", "consequent": { "type": "literal", "variant": "text", "value": "C" } } ] } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "variant": "case", "expression": [ { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "1" }, "consequent": { "type": "literal", "variant": "text", "value": "A" } }, { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "2" }, "consequent": { "type": "literal", "variant": "text", "value": "B" } }, { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "3" }, "consequent": { "type": "literal", "variant": "text", "value": "C" } } ], "discriminant": { "type": "function", "name": { "type": "identifier", "variant": "function", "name": "var" }, "args": { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "a" } ] } } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "variant": "case", "expression": [ { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "1" }, "consequent": { "type": "literal", "variant": "text", "value": "A" } }, { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "23" }, "consequent": { "type": "literal", "variant": "text", "value": "B" } }, { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "23" }, "consequent": { "type": "literal", "variant": "text", "value": "C" } } ], "discriminant": { "type": "literal", "variant": "decimal", "value": "23" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "variant": "case", "expression": [ { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "1" }, "consequent": { "type": "literal", "variant": "text", "value": "A" } }, { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "23" }, "consequent": { "type": "literal", "variant": "text", "value": "B" } }, { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "23" }, "consequent": { "type": "literal", "variant": "text", "value": "C" } } ], "discriminant": { "type": "literal", "variant": "decimal", "value": "1" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "variant": "case", "expression": [ { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "1" }, "consequent": { "type": "literal", "variant": "text", "value": "A" } }, { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "23" }, "consequent": { "type": "literal", "variant": "text", "value": "B" } }, { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "23" }, "consequent": { "type": "literal", "variant": "text", "value": "C" } }, { "type": "condition", "variant": "else", "consequent": { "type": "literal", "variant": "text", "value": "D" } } ], "discriminant": { "type": "literal", "variant": "decimal", "value": "24" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "variant": "case", "expression": [ { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "1" }, "consequent": { "type": "literal", "variant": "text", "value": "A" } }, { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "23" }, "consequent": { "type": "literal", "variant": "text", "value": "B" } }, { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "23" }, "consequent": { "type": "literal", "variant": "text", "value": "C" } } ], "discriminant": { "type": "literal", "variant": "decimal", "value": "24" } } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "variant": "case", "expression": [ { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "1" }, "consequent": { "type": "literal", "variant": "text", "value": "A" } }, { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "23" }, "consequent": { "type": "literal", "variant": "text", "value": "B" } }, { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "decimal", "value": "23" }, "consequent": { "type": "literal", "variant": "text", "value": "C" } } ], "discriminant": { "type": "literal", "variant": "decimal", "value": "24" } } ] }, { "type": "statement", "name": { "type": "identifier", "variant": "table", "name": "t1" }, "variant": "create", "format": "table", "definition": [ { "type": "definition", "variant": "column", "name": "a", "definition": [ { "type": "constraint", "variant": "collate", "collate": { "collate": [ { "type": "identifier", "variant": "collation", "name": "nocase" } ] } } ], "datatype": { "type": "datatype", "variant": "text", "affinity": "text" } }, { "type": "definition", "variant": "column", "name": "b", "definition": [ { "type": "constraint", "variant": "collate", "collate": { "collate": [ { "type": "identifier", "variant": "collation", "name": "reverse" } ] } } ] }, { "type": "definition", "variant": "column", "name": "c", "definition": [], "datatype": { "type": "datatype", "variant": "integer", "affinity": "integer" } }, { "type": "definition", "variant": "column", "name": "d", "definition": [], "datatype": { "type": "datatype", "variant": "blob", "affinity": "none" } } ] }, { "type": "statement", "variant": "insert", "action": "insert", "into": { "type": "identifier", "variant": "table", "name": "t1" }, "result": [ { "type": "expression", "variant": "list", "expression": [ { "type": "literal", "variant": "text", "value": "abc" }, { "type": "literal", "variant": "text", "value": "cba" }, { "type": "literal", "variant": "decimal", "value": "55" }, { "type": "literal", "variant": "decimal", "value": "34.5" } ] } ] }, { "type": "statement", "variant": "select", "result": [ { "type": "expression", "variant": "case", "expression": [ { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "text", "value": "xyz" }, "consequent": { "type": "literal", "variant": "text", "value": "A" } }, { "type": "condition", "variant": "when", "condition": { "type": "literal", "variant": "text", "value": "AbC" }, "consequent": { "type": "literal", "variant": "text", "value": "B" } } ], "discriminant": { "type": "identifier", "variant": "column", "name": "a" } } ], "from": { "type": "identifier", "variant": "table", "name": "t1" } } ] }