hash-threshold 8
statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
INSERT INTO tab0 VALUES(97,1,99)
statement ok
INSERT INTO tab0 VALUES(15,81,47)
statement ok
INSERT INTO tab0 VALUES(87,21,10)
statement ok
INSERT INTO tab1 VALUES(51,14,96)
statement ok
INSERT INTO tab1 VALUES(85,5,59)
statement ok
INSERT INTO tab1 VALUES(91,47,68)
statement ok
INSERT INTO tab2 VALUES(64,77,40)
statement ok
INSERT INTO tab2 VALUES(75,67,58)
statement ok
INSERT INTO tab2 VALUES(46,51,23)
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( + col0 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 91 ) * + 31 NOT IN ( - 44 * 94 )
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2
SELECT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) = - 50 * - col2
----
skipif mysql # not compatible
query III rowsort label-2
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) = - 50 * - col2
----
onlyif mysql # DIV for integer division:
query I rowsort label-3
SELECT DISTINCT + col2 DIV + + 55 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-3
SELECT DISTINCT + col2 / + + 55 FROM tab0
----
0
1
query I rowsort
SELECT col1 * - 2 AS col2 FROM tab0
----
-162
-2
-42
query I rowsort
SELECT + 88 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
88
88
88
query I rowsort
SELECT ALL + - 1 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - + col1 + + - ( ( 78 ) ) AS col0 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
-159
-79
-99
query II rowsort
SELECT ( - - ( + col2 ) ) AS col0, - col0 + - col2 + 38 FROM tab2
----
23
-31
40
-66
58
-95
query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 + + 81 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-10
SELECT + 55 * COUNT( DISTINCT + - col2 ) AS col2 FROM tab1 AS cor0
----
165
skipif mysql # not compatible
query I rowsort label-10
SELECT + 55 * COUNT ( DISTINCT + - col2 ) AS col2 FROM tab1 AS cor0
----
165
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) + + + col0 NOT BETWEEN + col0 AND NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-12
SELECT ALL 22 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN ( col0 - - + col2 - - col2 * - col1 ) AND NULL
----
skipif mysql # not compatible
query I rowsort label-12
SELECT ALL 22 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN ( col0 - - + col2 - - col2 * - col1 ) AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, 44 / + 4 * col2 col1 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-14
SELECT DISTINCT COUNT( + 99 ) * - + COUNT( * ) FROM tab0
----
-9
skipif mysql # not compatible
query I rowsort label-14
SELECT DISTINCT COUNT ( + 99 ) * - + COUNT ( * ) FROM tab0
----
-9
onlyif mysql # DIV for integer division:
query III rowsort label-15
SELECT col0 AS col2, 31 AS col2, 50 DIV - col2 * - col1 - + ( + 27 ) FROM tab1
----
9 values hashing to 8cd35670126a70f07d4e760cc612419b
skipif mysql # not compatible
query III rowsort label-15
SELECT col0 AS col2, 31 AS col2, 50 / - col2 * - col1 - + ( + 27 ) FROM tab1
----
9 values hashing to 8cd35670126a70f07d4e760cc612419b
query II rowsort
SELECT col0, - col2 * col2 * + 18 * + + col0 FROM tab1
----
51
-8460288
85
-5325930
91
-7574112
query II rowsort
SELECT col0 AS col2, + col0 + - col1 * + col2 FROM tab0
----
15
-3792
87
-123
97
-2
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-18
SELECT col2 AS col0, CAST( NULL AS SIGNED ) FROM tab0
----
10
NULL
47
NULL
99
NULL
skipif mysql # not compatible
query II rowsort label-18
SELECT col2 AS col0, CAST ( NULL AS INTEGER ) FROM tab0
----
10
NULL
47
NULL
99
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-19
SELECT + COUNT( * ) AS col0, + 0 AS col2 FROM tab2
----
3
0
skipif mysql # not compatible
query II rowsort label-19
SELECT + COUNT ( * ) AS col0, + 0 AS col2 FROM tab2
----
3
0
onlyif mysql # DIV for integer division:
query I rowsort label-20
SELECT DISTINCT + col1 DIV + + 34 + + col2 + 37 AS col2 FROM tab1
----
106
133
96
skipif mysql # not compatible
query I rowsort label-20
SELECT DISTINCT + col1 / + + 34 + + col2 + 37 AS col2 FROM tab1
----
106
133
96
query I rowsort
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE 85 + + col2 IS NOT NULL
----
59
68
96
query I rowsort
SELECT DISTINCT 92 * + - 96 + + - col2 FROM tab2 AS cor0
----
-8855
-8872
-8890
onlyif mysql # aggregate syntax:
query I rowsort label-23
SELECT + + MAX( - col2 ) AS col0 FROM tab2 cor0
----
-23
skipif mysql # not compatible
query I rowsort label-23
SELECT + + MAX ( - col2 ) AS col0 FROM tab2 cor0
----
-23
query I rowsort
SELECT DISTINCT - - col0 + 83 AS col1 FROM tab2 AS cor0
----
129
147
158
query I rowsort
SELECT + 92 + 6 - 89 * + col2 AS col0 FROM tab2
----
-1949
-3462
-5064
query I rowsort
SELECT - 58 * col2 + 35 AS col2 FROM tab0
----
-2691
-545
-5707
query III rowsort
SELECT * FROM tab2 WHERE - 43 * 20 + col2 BETWEEN ( - - 11 ) * + ( 9 + + col2 ) AND ( col2 )
----
query I rowsort
SELECT DISTINCT - + 98 * - - 61 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-5978
onlyif mysql # DIV for integer division:
query I rowsort label-29
SELECT DISTINCT - ( - col1 ) DIV col2 * + col1 * 25 col2 FROM tab0
----
0
1050
2025
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-29
SELECT DISTINCT - ( - col1 ) / col2 * + col1 * 25 col2 FROM tab0
----
0
1050
2025
query II rowsort
SELECT DISTINCT + - ( + + col1 ) AS col0, + col0 AS col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * col2 = - 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-32
SELECT - CAST( - 61 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
61
61
61
skipif mysql # not compatible
query I rowsort label-32
SELECT - CAST ( - 61 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
61
61
61
onlyif mysql # aggregate syntax:
query I rowsort label-33
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-33
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-34
SELECT DISTINCT - - COUNT( + col2 ) + + 42 FROM tab2 AS cor0
----
45
skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT - - COUNT ( + col2 ) + + 42 FROM tab2 AS cor0
----
45
query I rowsort
SELECT - col2 * 1 - - col0 FROM tab1 AS cor0
----
-45
23
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab2 AS cor0 WHERE + ( + col0 ) / - ( - col0 ) * + + 87 IS NOT NULL
----
23
40
58
query I rowsort
SELECT DISTINCT 98 - + col0 AS col1 FROM tab1
----
13
47
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 - + col1 col1 FROM tab1
----
-13
-4
-46
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-39
SELECT ALL - 16 + - COUNT( * ) DIV - COUNT( * ) + - + COUNT( * ) AS col2 FROM tab1
----
-18
skipif mysql # not compatible
query I rowsort label-39
SELECT ALL - 16 + - COUNT ( * ) / - COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab1
----
-18
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-40
SELECT DISTINCT + COUNT( * ), + CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col1 FROM tab0
----
3
NULL
skipif mysql # not compatible
query II rowsort label-40
SELECT DISTINCT + COUNT ( * ), + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col1 FROM tab0
----
3
NULL
query I rowsort
SELECT 24 + + 86 AS col1 FROM tab0
----
110
110
110
query I rowsort
SELECT ALL col2 * - 27 AS col1 FROM tab2
----
-1080
-1566
-621
query I rowsort
SELECT DISTINCT ( ( + col1 ) ) FROM tab2 AS cor0
----
51
67
77
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( - 86 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-45
SELECT - + COUNT( col0 ) AS col1 FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-45
SELECT - + COUNT ( col0 ) AS col1 FROM tab1 AS cor0
----
-3
query I rowsort
SELECT ALL - + 36 * + - col1 FROM tab2 AS cor0
----
1836
2412
2772
onlyif mysql # DIV for integer division:
query I rowsort label-47
SELECT + + ( col2 ) DIV 67 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-47
SELECT + + ( col2 ) / 67 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 17 * col0 AS col2 FROM tab0
----
1479
1649
255
query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE 17 + + col2 - + col1 = NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-50
SELECT - MAX( - - ( + + col1 ) ) FROM tab0 AS cor0
----
-81
skipif mysql # not compatible
query I rowsort label-50
SELECT - MAX ( - - ( + + col1 ) ) FROM tab0 AS cor0
----
-81
query I rowsort
SELECT ALL - 8 + col1 AS col2 FROM tab0 AS cor0
----
-7
13
73
onlyif mysql # aggregate syntax:
query I rowsort label-52
SELECT DISTINCT - COUNT( ALL - col2 ) col2 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-52
SELECT DISTINCT - COUNT ( ALL - col2 ) col2 FROM tab2 AS cor0
----
-3
query I rowsort
SELECT + col1 * 94 FROM tab1 AS cor0
----
1316
4418
470
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-54
SELECT - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-54
SELECT - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * + - 53 * - + 57 + - + col0 FROM tab2 AS cor0
----
120776
175143
69437
query I rowsort
SELECT ALL ( col1 ) + - col0 + - - col1 FROM tab2 AS cor0
----
56
59
90
query I rowsort
SELECT DISTINCT - - col1 * col1 + + 95 AS col2 FROM tab0 AS cor0
----
536
6656
96
query I rowsort
SELECT ALL ( 17 ) AS col1 FROM tab0
----
17
17
17
query I rowsort
SELECT + ( col0 ) / - col2 FROM tab0 WHERE NOT - 37 * + + 28 <> NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-60
SELECT COUNT( - col0 ) + - + MIN( - + 51 ) * - 91 FROM tab2
----
-4638
skipif mysql # not compatible
query I rowsort label-60
SELECT COUNT ( - col0 ) + - + MIN ( - + 51 ) * - 91 FROM tab2
----
-4638
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-61
SELECT + col2 AS col0 FROM tab0 WHERE + col0 = - ( + col1 ) AND col0 <= + CAST( + col2 AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-61
SELECT + col2 AS col0 FROM tab0 WHERE + col0 = - ( + col1 ) AND col0 <= + CAST ( + col2 AS INTEGER )
----
query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT NULL <= 11
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-63
SELECT 41 + CAST( 92 AS SIGNED ), col1 col1 FROM tab2
----
133
51
133
67
133
77
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-63
SELECT 41 + CAST ( 92 AS INTEGER ), col1 col1 FROM tab2
----
133
51
133
67
133
77
query I rowsort
SELECT ALL col2 FROM tab0 WHERE ( NULL ) > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + - 51 col2 FROM tab1 AS cor0
----
0
34
40
query I rowsort
SELECT ALL - 4 + + + col2 * 1 AS col2 FROM tab1 AS cor0
----
55
64
92
query I rowsort
SELECT - 61 AS col0 FROM tab1 AS cor0 WHERE 47 BETWEEN NULL AND + + 66
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 49 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT DISTINCT col0 - + - col0 + ( + 14 ) AS col0, col1 + col0 AS col0 FROM tab0
----
188
108
208
98
44
96
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 36 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT + ( col1 ) * + col0 * 0 + - col0 AS col2 FROM tab0 cor0
----
-15
-87
-97
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-72
SELECT + col2 + + - 40 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-72
SELECT + col2 + + - 40 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-73
SELECT - - col1 * 40 * + 44 + - + col1 - + + 92 * + ( + 80 ) * + col2 * - 69 + - col1 - 68 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-73
SELECT - - col1 * 40 * + 44 + - + col1 - + + 92 * + ( + 80 ) * + col2 * - 69 + - col1 - 68 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-74
SELECT 81 + + + 91 - - - 32 + - SUM( ALL + col2 ) - - 64 * + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
-592
skipif mysql # not compatible
query I rowsort label-74
SELECT 81 + + + 91 - - - 32 + - SUM ( ALL + col2 ) - - 64 * + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
-592
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-75
SELECT ALL + COUNT( * ) * + 28 / + CAST( NULL AS SIGNED ) / + 13 + + + COUNT( * ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-75
SELECT ALL + COUNT ( * ) * + 28 / + CAST ( NULL AS INTEGER ) / + 13 + + + COUNT ( * ) FROM tab2 AS cor0
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-76
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-76
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-77
SELECT DISTINCT + 1 - + 33 AS col0, COUNT( * ) + 32 FROM tab0 cor0 WHERE + col1 IS NULL
----
-32
32
skipif mysql # not compatible
query II rowsort label-77
SELECT DISTINCT + 1 - + 33 AS col0, COUNT ( * ) + 32 FROM tab0 cor0 WHERE + col1 IS NULL
----
-32
32
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-78
SELECT ALL CAST( NULL AS SIGNED ) / ( + COUNT( * ) ) * + - 88 + - 27 + + ( 38 ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-78
SELECT ALL CAST ( NULL AS INTEGER ) / ( + COUNT ( * ) ) * + - 88 + - 27 + + ( 38 ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + 75 * - - col2 FROM tab0
----
3525
7425
750
query I rowsort
SELECT + col1 * - 62 * - col2 FROM tab0
----
13020
236034
6138
onlyif mysql # aggregate syntax:
query I rowsort label-81
SELECT ALL - MAX( DISTINCT - - 27 ) AS col0 FROM tab2 AS cor0
----
-27
skipif mysql # not compatible
query I rowsort label-81
SELECT ALL - MAX ( DISTINCT - - 27 ) AS col0 FROM tab2 AS cor0
----
-27
onlyif mysql # aggregate syntax:
query I rowsort label-82
SELECT DISTINCT - COUNT( * ) * 91 FROM tab0 AS cor0
----
-273
skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT - COUNT ( * ) * 91 FROM tab0 AS cor0
----
-273
query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + + 23 + + col2 NOT BETWEEN + + col2 - - col0 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-84
SELECT ALL + MIN( + col1 ) AS col1 FROM tab1
----
5
skipif mysql # not compatible
query I rowsort label-84
SELECT ALL + MIN ( + col1 ) AS col1 FROM tab1
----
5
query I rowsort
SELECT - col1 + + 80 FROM tab1
----
33
66
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 + col0 col1 FROM tab0 AS cor0
----
112
122
40
query I rowsort
SELECT col2 + - - col0 * - - col2 * - 1 FROM tab1 AS cor0
----
-4800
-4956
-6120
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT - 95 * - 34 FROM tab2 AS cor0
----
3230
3230
3230
query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 + - + 83 = - + col1
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - + 85 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col2 * + + col2 col2 FROM tab1 AS cor0 WHERE ( NOT + col0 < - - col0 )
----
-129024
-17405
-217328
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL = col2 + - + 16 )
----
query I rowsort
SELECT DISTINCT - + col1 + col2 - - - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-95
SELECT ALL - COUNT( * ) DIV - + SUM( DISTINCT 32 ) col0 FROM tab1
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-95
SELECT ALL - COUNT ( * ) / - + SUM ( DISTINCT 32 ) col0 FROM tab1
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-96
SELECT CAST( - 30 AS SIGNED ) FROM tab1
----
-30
-30
-30
skipif mysql # not compatible
query I rowsort label-96
SELECT CAST ( - 30 AS INTEGER ) FROM tab1
----
-30
-30
-30
onlyif mysql # aggregate syntax:
query I rowsort label-97
SELECT ALL - COUNT( ALL - - col2 ) AS col2 FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-97
SELECT ALL - COUNT ( ALL - - col2 ) AS col2 FROM tab0
----
-3
onlyif mysql # DIV for integer division:
query I rowsort label-98
SELECT - 46 DIV + - col1 FROM tab1
----
0
3
9
skipif mysql # not compatible
query I rowsort label-98
SELECT - 46 / + - col1 FROM tab1
----
0
3
9
query III rowsort
SELECT * FROM tab1 WHERE - 1 / + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < - 17
----
query II rowsort
SELECT + 24 + col2, + 94 + col2 AS col0 FROM tab2 cor0
----
47
117
64
134
82
152
query II rowsort
SELECT 48 + + - 23, + 14 AS col2 FROM tab1 cor0
----
25
14
25
14
25
14
query I rowsort
SELECT ALL - 18 * - - 7 - + 64 + - - 58 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-104
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 <= - col1 * + - CAST( col1 AS SIGNED )
----
85
5
59
skipif mysql # not compatible
query III rowsort label-104
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 <= - col1 * + - CAST ( col1 AS INTEGER )
----
85
5
59
query I rowsort
SELECT + col2 AS col0 FROM tab2 cor0 WHERE - col2 <= + col2 * 17 * - ( 1 )
----
query I rowsort
SELECT DISTINCT - - 18 * + col1 FROM tab2 cor0
----
1206
1386
918
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( col0, 92, col0 )
----
onlyif mysql # aggregate syntax:
query II rowsort label-108
SELECT DISTINCT - SUM( DISTINCT - + ( + 52 ) ) col2, 79 AS col2 FROM tab1 AS cor0
----
52
79
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-108
SELECT DISTINCT - SUM ( DISTINCT - + ( + 52 ) ) col2, 79 AS col2 FROM tab1 AS cor0
----
52
79
onlyif mysql # DIV for integer division:
query I rowsort label-109
SELECT 93 DIV + col1 AS col1 FROM tab1
----
1
18
6
skipif mysql # not compatible
query I rowsort label-109
SELECT 93 / + col1 AS col1 FROM tab1
----
1
18
6
query II rowsort
SELECT - col2 AS col1, ( col2 ) + + - col0 FROM tab2
----
-23
-23
-40
-24
-58
-17
query II rowsort
SELECT ALL + 58 AS col0, - col2 AS col2 FROM tab0
----
58
-10
58
-47
58
-99
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-112
SELECT DISTINCT - 21 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-112
SELECT DISTINCT - 21 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-113
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-113
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
3
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-114
SELECT * FROM tab0 WHERE NOT CAST( + col2 AS SIGNED ) < + 9
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-114
SELECT * FROM tab0 WHERE NOT CAST ( + col2 AS INTEGER ) < + 9
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL + 79 FROM tab0 WHERE NOT NULL IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-116
SELECT ALL + col1 AS col2, 89 * - 97 * + 57 + CAST( + 5 AS SIGNED ) + col1 FROM tab1
----
14
-492062
47
-492029
5
-492071
skipif mysql # not compatible
query II rowsort label-116
SELECT ALL + col1 AS col2, 89 * - 97 * + 57 + CAST ( + 5 AS INTEGER ) + col1 FROM tab1
----
14
-492062
47
-492029
5
-492071
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL = + 61 )
----
query II rowsort
SELECT + col0, - col0 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= + col1
----
onlyif mysql # DIV for integer division:
query II rowsort label-120
SELECT ALL col1 DIV + col2 col2, col0 DIV - col2 + col2 FROM tab0 AS cor0
----
0
99
1
47
2
2
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-120
SELECT ALL col1 / + col2 col2, col0 / - col2 + col2 FROM tab0 AS cor0
----
0
99
1
47
2
2
onlyif mysql # aggregate syntax:
query I rowsort label-121
SELECT ALL ( SUM( + 88 ) ) AS col0 FROM tab1
----
264
skipif mysql # not compatible
query I rowsort label-121
SELECT ALL ( SUM ( + 88 ) ) AS col0 FROM tab1
----
264
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-122
SELECT ALL col2 * CAST( + col1 AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
1358
300
3243
skipif mysql # not compatible
query I rowsort label-122
SELECT ALL col2 * CAST ( + col1 AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
1358
300
3243
query II rowsort
SELECT col2 AS col0, 31 AS col2 FROM tab1 AS cor0 WHERE col2 <= ( 55 * + col2 + ( - col1 ) )
----
59
31
68
31
96
31
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-124
SELECT DISTINCT + CAST( - - 8 AS SIGNED ) + - 14 + col1 FROM tab0 AS cor0
----
-5
15
75
skipif mysql # not compatible
query I rowsort label-124
SELECT DISTINCT + CAST ( - - 8 AS INTEGER ) + - 14 + col1 FROM tab0 AS cor0
----
-5
15
75
onlyif mysql # DIV for integer division:
query I rowsort label-125
SELECT DISTINCT - col0 + + col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
-15
-87
2
skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT - col0 + + col2 / + col1 AS col2 FROM tab0 AS cor0
----
-15
-87
2
query II rowsort
SELECT DISTINCT - + col2 + ( + - col0 ) + col0 * + col2 AS col2, col1 * col0 AS col1 FROM tab0 cor0
----
643
1215
773
1827
9407
97
query I rowsort
SELECT DISTINCT - ( + col0 ) * col2 * - - 50 + col1 + col1 AS col1 FROM tab2 AS cor0
----
-127846
-217366
-52798
query II rowsort
SELECT - col1 + + col2 * - col1 AS col1, - col1 FROM tab0 AS cor0
----
-100
-1
-231
-21
-3888
-81
onlyif mysql # aggregate syntax:
query I rowsort label-129
SELECT 84 * + 66 + + COUNT( * ) FROM tab2
----
5547
skipif mysql # not compatible
query I rowsort label-129
SELECT 84 * + 66 + + COUNT ( * ) FROM tab2
----
5547
query II rowsort
SELECT - col1 + - col1 * col2 AS col1, + 66 AS col0 FROM tab1
----
-1358
66
-300
66
-3243
66
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-131
SELECT ALL 11 + col0 + - + col0 * col0 AS col2, CAST( NULL AS SIGNED ) FROM tab2
----
-2059
NULL
-4021
NULL
-5539
NULL
skipif mysql # not compatible
query II rowsort label-131
SELECT ALL 11 + col0 + - + col0 * col0 AS col2, CAST ( NULL AS INTEGER ) FROM tab2
----
-2059
NULL
-4021
NULL
-5539
NULL
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query I rowsort label-132
SELECT - - ( col0 ) AS col2 FROM tab2 WHERE NULL = + - ( col0 ) * + 34 * + col1 + - + CAST( NULL AS SIGNED ) - - + col2 - + CAST( NULL AS DECIMAL ) * 8
----
skipif mysql # not compatible
query I rowsort label-132
SELECT - - ( col0 ) AS col2 FROM tab2 WHERE NULL = + - ( col0 ) * + 34 * + col1 + - + CAST ( NULL AS INTEGER ) - - + col2 - + CAST ( NULL AS REAL ) * 8
----
query II rowsort
SELECT DISTINCT - col1 * - col2 + + 72 * - - ( + ( col1 ) ) + - + 59 * + - col0 AS col1, col2 AS col2 FROM tab2
----
12400
40
13135
58
7559
23
query III rowsort
SELECT * FROM tab1 WHERE ( 77 ) BETWEEN NULL AND - 35
----
query I rowsort
SELECT + col0 / col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
query I rowsort
SELECT ALL col1 + - - 89 FROM tab2 AS cor0
----
140
156
166
query I rowsort
SELECT DISTINCT + ( - - col2 ) - - col0 AS col1 FROM tab2
----
104
133
69
onlyif mysql # aggregate syntax:
query I rowsort label-138
SELECT ALL + 82 - COUNT( * ) col2 FROM tab1
----
79
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-138
SELECT ALL + 82 - COUNT ( * ) col2 FROM tab1
----
79
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 >= - - 83
----
85
5
59
91
47
68
onlyif mysql # DIV for integer division:
query I rowsort label-140
SELECT - + col0 DIV - 87 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-140
SELECT - + col0 / - 87 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-141
SELECT - 76 * + col1 * - CAST( - + CAST( col1 AS SIGNED ) AS SIGNED ) * - + 89 FROM tab0 AS cor0
----
2982924
44378604
6764
skipif mysql # not compatible
query I rowsort label-141
SELECT - 76 * + col1 * - CAST ( - + CAST ( col1 AS INTEGER ) AS INTEGER ) * - + 89 FROM tab0 AS cor0
----
2982924
44378604
6764
onlyif mysql # aggregate syntax:
query I rowsort label-142
SELECT + COUNT( + col1 ) AS col1 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-142
SELECT + COUNT ( + col1 ) AS col1 FROM tab1 AS cor0
----
3
query I rowsort
SELECT ALL + - 24 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
query I rowsort
SELECT DISTINCT col2 * - + 19 - - col0 + col1 * col2 AS col1 FROM tab2 AS cor0
----
2384
2859
782
query I rowsort
SELECT - 15 AS col0 FROM tab2 cor0 WHERE NOT ( NOT + col1 IS NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-146
SELECT + SUM( col2 ) FROM tab0 AS cor0
----
156
skipif mysql # not compatible
query I rowsort label-146
SELECT + SUM ( col2 ) FROM tab0 AS cor0
----
156
onlyif mysql # aggregate syntax:
query I rowsort label-147
SELECT + 72 * SUM( DISTINCT - + col1 ) * - + ( - COUNT( * ) ) * - - 71 + + + 83 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-147
SELECT + 72 * SUM ( DISTINCT - + col1 ) * - + ( - COUNT ( * ) ) * - - 71 + + + 83 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 <= ( 35 )
----
15
81
47
query III rowsort
SELECT * FROM tab1 WHERE NOT 35 * + + col0 >= + + col0
----
query I rowsort
SELECT DISTINCT ( - col1 ) * - - col0 - + col1 FROM tab2
----
-2397
-5005
-5092
query I rowsort
SELECT ( + + 92 ) FROM tab2
----
92
92
92
onlyif mysql # aggregate syntax:
query II rowsort label-152
SELECT DISTINCT + MIN( + + col1 ) * - 63 col1, + 69 FROM tab2
----
-3213
69
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-152
SELECT DISTINCT + MIN ( + + col1 ) * - 63 col1, + 69 FROM tab2
----
-3213
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * + col2 col1 FROM tab0
----
3995
8415
850
query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND col1
----
query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 - + col1 IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( - col1 ) col0 FROM tab0
----
-1
-441
-6561
query I rowsort
SELECT ALL + col1 * - + col2 FROM tab2 AS cor0
----
-1173
-3080
-3886
query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT ALL + col1 + col2 + + - 51 FROM tab0 AS cor0
----
-20
49
77
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - ( + + col2 ) ) + col1 + + 80 / + col2 * + + 33 + col2 + + + col2 + - - 20 BETWEEN + col1 + 99 - + 61 AND - col0 + - - col2
----
query I rowsort
SELECT DISTINCT - col2 - + - col1 * + col1 AS col2 FROM tab1 cor0
----
-34
100
2141
query III rowsort
SELECT * FROM tab0 WHERE - col0 > + - col0 - col0 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-163
SELECT SUM( DISTINCT 13 ) FROM tab1
----
13
skipif mysql # not compatible
query I rowsort label-163
SELECT SUM ( DISTINCT 13 ) FROM tab1
----
13
query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * + col1 + col1 >= NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-165
SELECT col0 - + col2 + + ( col2 ) DIV + + 99 + + 6 AS col0 FROM tab0
----
-26
5
83
skipif mysql # not compatible
query I rowsort label-165
SELECT col0 - + col2 + + ( col2 ) / + + 99 + + 6 AS col0 FROM tab0
----
-26
5
83
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-166
SELECT + 40 - - col1 - col0 * - + col2 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-166
SELECT + 40 - - col1 - col0 * - + col2 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > col1 AND - ( col1 ) IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-168
SELECT - 49 DIV + col1 FROM tab0 AS cor0
----
-2
-49
0
skipif mysql # not compatible
query I rowsort label-168
SELECT - 49 / + col1 FROM tab0 AS cor0
----
-2
-49
0
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 / col2 AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, col2 FROM tab2 cor0
----
23
23
40
40
58
58
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 <= - col1
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 22 NOT BETWEEN NULL AND - 6 * - + col0
----
query I rowsort
SELECT - col1 * + + 40 AS col0 FROM tab2 cor0
----
-2040
-2680
-3080
onlyif mysql # aggregate syntax:
query I rowsort label-174
SELECT DISTINCT 39 * - COUNT( * ) AS col2 FROM tab1
----
-117
skipif mysql # not compatible
query I rowsort label-174
SELECT DISTINCT 39 * - COUNT ( * ) AS col2 FROM tab1
----
-117
query I rowsort
SELECT col2 * + col1 * + - col0 FROM tab1
----
-25075
-290836
-68544
query III rowsort
SELECT * FROM tab1 WHERE NOT col1 - - - col1 = 84
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL ( - - ( + + col2 ) ) AS col2 FROM tab1
----
59
68
96
onlyif mysql # aggregate syntax:
query I rowsort label-178
SELECT DISTINCT + COUNT( + 4 ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-178
SELECT DISTINCT + COUNT ( + 4 ) FROM tab0
----
3
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> ( - col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-180
SELECT - MIN( + 68 ) + + + MIN( col0 ) col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-180
SELECT - MIN ( + 68 ) + + + MIN ( col0 ) col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
query I rowsort
SELECT ( + - 98 ) FROM tab1 cor0
----
-98
-98
-98
query I rowsort
SELECT + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT + 82 * 56 IS NULL OR NOT + col0 / + col1 IS NULL
----
-51
-67
-77
query I rowsort
SELECT + col2 * - - col0 * - ( + - col0 ) FROM tab2 AS cor0
----
163840
326250
48668
query I rowsort
SELECT - 40 * + col0 FROM tab1 AS cor0
----
-2040
-3400
-3640
onlyif mysql # DIV for integer division:
query I rowsort label-185
SELECT DISTINCT col2 DIV - 88 + - 31 DIV col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT col2 / - 88 + - 31 / col0 FROM tab2 AS cor0
----
0
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type:
query I rowsort label-186
SELECT + + SUM( DISTINCT - CAST( + + col1 AS SIGNED ) ) + + CAST( + COUNT( * ) AS DECIMAL ) * CAST( NULL AS SIGNED ) + + - 26 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-186
SELECT + + SUM ( DISTINCT - CAST ( + + col1 AS INTEGER ) ) + + CAST ( + COUNT ( * ) AS REAL ) * CAST ( NULL AS INTEGER ) + + - 26 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - + 25 * + ( - col1 ) - + - col2 + + - ( - col2 ) AS col2 FROM tab2 AS cor0
----
1321
1791
2005
query I rowsort
SELECT ALL 48 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND - 50
----
query I rowsort
SELECT + 5 + - col1 FROM tab0 AS cor0
----
-16
-76
4
query I rowsort
SELECT - 10 + - + 11 FROM tab0 AS cor0
----
-21
-21
-21
query I rowsort
SELECT ALL + 78 - + ( - 91 ) - + - col1 FROM tab1
----
174
183
216
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 >= + 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 82 * - 49 col0 FROM tab0
----
349566
389746
60270
query I rowsort
SELECT AVG ( ALL col0 ) FROM tab0 WHERE + col1 IS NULL
----
NULL
query I rowsort
SELECT ALL - 16 * - 36 FROM tab2
----
576
576
576
query I rowsort
SELECT ALL 89 * + - 12 AS col0 FROM tab0 WHERE - - ( 1 ) * - col0 + 96 * 4 * + 82 IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-197
SELECT DISTINCT + col2 DIV + - col2 AS col1 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT + col2 / + - col2 AS col1 FROM tab2
----
-1
onlyif mysql # aggregate syntax:
query I rowsort label-198
SELECT - COUNT( * ) col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-198
SELECT - COUNT ( * ) col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 * + - 74 col1 FROM tab2
----
173604
364672
371850
query I rowsort
SELECT - 89 * - 4 AS col2 FROM tab0
----
356
356
356
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
onlyif mysql # aggregate syntax:
query I rowsort label-202
SELECT DISTINCT + + MAX( - + col1 ) AS col0 FROM tab1 AS cor0
----
-5
skipif mysql # not compatible
query I rowsort label-202
SELECT DISTINCT + + MAX ( - + col1 ) AS col0 FROM tab1 AS cor0
----
-5
onlyif mysql # aggregate syntax:
query I rowsort label-203
SELECT ALL - MIN( ALL col0 ) FROM tab2 AS cor0
----
-46
skipif mysql # not compatible
query I rowsort label-203
SELECT ALL - MIN ( ALL col0 ) FROM tab2 AS cor0
----
-46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 5 col0, - 5 FROM tab2
----
-5
-5
-5
-5
-5
-5
query III rowsort
SELECT ALL * FROM tab2 WHERE + 79 / - 60 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ( - col1 ) * + 15 FROM tab1
----
-210
-705
-75
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-207
SELECT ALL - CAST( + SUM( ALL + - 72 ) AS SIGNED ) * + 49 + + 62 AS col0 FROM tab0
----
10646
skipif mysql # not compatible
query I rowsort label-207
SELECT ALL - CAST ( + SUM ( ALL + - 72 ) AS INTEGER ) * + 49 + + 62 AS col0 FROM tab0
----
10646
query I rowsort
SELECT DISTINCT 22 + + col2 AS col0 FROM tab0
----
121
32
69
onlyif mysql # aggregate syntax:
query I rowsort label-209
SELECT - + ( - COUNT( * ) ) AS col1 FROM tab1 cor0
----
3
skipif mysql # not compatible
query I rowsort label-209
SELECT - + ( - COUNT ( * ) ) AS col1 FROM tab1 cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-210
SELECT ALL + 86 FROM tab0 cor0 WHERE ( NULL ) IN ( + CAST( - 65 AS SIGNED ), col0 )
----
skipif mysql # not compatible
query I rowsort label-210
SELECT ALL + 86 FROM tab0 cor0 WHERE ( NULL ) IN ( + CAST ( - 65 AS INTEGER ), col0 )
----
query II rowsort
SELECT + col2, 8 * + col1 * + + col2 FROM tab2 AS cor0
----
23
9384
40
24640
58
31088
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - col2 )
----
query I rowsort
SELECT + + 36 AS col1 FROM tab1 AS cor0 WHERE 51 BETWEEN + col0 AND NULL
----
query I rowsort
SELECT ALL col0 * + col0 * - 41 FROM tab1
----
-106641
-296225
-339521
query I rowsort
SELECT - col2 + 39 FROM tab2
----
-1
-19
16
onlyif mysql # aggregate syntax:
query I rowsort label-216
SELECT DISTINCT + COUNT( * ) * + - ( + COUNT( * ) ) AS col1 FROM tab1
----
-9
skipif mysql # not compatible
query I rowsort label-216
SELECT DISTINCT + COUNT ( * ) * + - ( + COUNT ( * ) ) AS col1 FROM tab1
----
-9
query I rowsort
SELECT + col2 + - + 19 FROM tab1
----
40
49
77
query I rowsort
SELECT + - col1 AS col1 FROM tab1 AS cor0 WHERE NULL < + col0
----
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-219
SELECT ALL - - CAST( NULL AS DECIMAL ) + SUM( 73 ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-219
SELECT ALL - - CAST ( NULL AS REAL ) + SUM ( 73 ) FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 * + col1 * col0 col1 FROM tab2 AS cor0 WHERE + col1 > ( - 0 * 67 * - col0 - - + col2 )
----
113344
115575
53958
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN NULL AND col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-222
SELECT - COUNT( + + 11 ) FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-222
SELECT - COUNT ( + + 11 ) FROM tab0 AS cor0
----
-3
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-223
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 WHERE 28 + - col1 IS NOT NULL
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-223
SELECT ALL + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 WHERE 28 + - col1 IS NOT NULL
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-224
SELECT ALL 38 * + col0 AS col1 FROM tab1 AS cor0 WHERE 20 > + - CAST( NULL AS SIGNED ) * + ( - + 55 )
----
skipif mysql # not compatible
query I rowsort label-224
SELECT ALL 38 * + col0 AS col1 FROM tab1 AS cor0 WHERE 20 > + - CAST ( NULL AS INTEGER ) * + ( - + 55 )
----
query I rowsort
SELECT ALL + col0 - + 74 FROM tab0 cor0
----
-59
13
23
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-226
SELECT col2 - + 2 * + - CAST( + col2 AS SIGNED ) FROM tab1 cor0
----
177
204
288
skipif mysql # not compatible
query I rowsort label-226
SELECT col2 - + 2 * + - CAST ( + col2 AS INTEGER ) FROM tab1 cor0
----
177
204
288
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + + 38 AND NULL
----
query I rowsort
SELECT ALL col2 + + - 21 AS col1 FROM tab0
----
-11
26
78
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-229
SELECT + 63 * - 20 - - + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-229
SELECT + 63 * - 20 - - + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query II rowsort label-230
SELECT - col1 - - col0 - CAST( NULL AS SIGNED ) AS col2, col0 DIV - + 13 + - col0 FROM tab1
----
NULL
-54
NULL
-91
NULL
-98
skipif mysql # not compatible
query II rowsort label-230
SELECT - col1 - - col0 - CAST ( NULL AS INTEGER ) AS col2, col0 / - + 13 + - col0 FROM tab1
----
NULL
-54
NULL
-91
NULL
-98
onlyif mysql # aggregate syntax:
query I rowsort label-231
SELECT + ( + MAX( ALL col0 ) ) - - 9 AS col0 FROM tab0
----
106
skipif mysql # not compatible
query I rowsort label-231
SELECT + ( + MAX ( ALL col0 ) ) - - 9 AS col0 FROM tab0
----
106
query I rowsort
SELECT - 54 * col0 + - col1 FROM tab1
----
-2768
-4595
-4961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 57, - col2 col2 FROM tab0 AS cor0
----
-57
-10
-57
-47
-57
-99
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-234
SELECT - CAST( + col0 AS SIGNED ) * - + col0 FROM tab1 AS cor0
----
2601
7225
8281
skipif mysql # not compatible
query I rowsort label-234
SELECT - CAST ( + col0 AS INTEGER ) * - + col0 FROM tab1 AS cor0
----
2601
7225
8281
query I rowsort
SELECT - col2 FROM tab1 WHERE NOT - col2 IN ( + 52 + col1, - col0 ) AND col2 / - col1 + 41 = + col2 / - - 95 + - col1
----
query I rowsort
SELECT DISTINCT 10 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-237
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 > - CAST( NULL AS SIGNED )
----
0
skipif mysql # not compatible
query I rowsort label-237
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 > - CAST ( NULL AS INTEGER )
----
0
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - col0 * - 54 IS NULL )
----
query II rowsort
SELECT - col2 AS col0, + 32 - + ( - col0 ) * - + col1 FROM tab2 AS cor0
----
-23
-2314
-40
-4896
-58
-4993
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, + col1 AS col0 FROM tab2 AS cor0
----
46
51
64
77
75
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97
query II rowsort
SELECT 21 AS col0, - col1 - + + col1 FROM tab0 AS cor0
----
21
-162
21
-2
21
-42
onlyif mysql # DIV for integer division:
query I rowsort label-243
SELECT 92 DIV - col1 AS col0 FROM tab1 AS cor0
----
-1
-18
-6
skipif mysql # not compatible
query I rowsort label-243
SELECT 92 / - col1 AS col0 FROM tab1 AS cor0
----
-1
-18
-6
onlyif mysql # aggregate syntax:
query I rowsort label-244
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT - col2 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-244
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - col2 IS NOT NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-245
SELECT - COUNT( DISTINCT col0 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3
skipif mysql # not compatible
query I rowsort label-245
SELECT - COUNT ( DISTINCT col0 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3
query II rowsort
SELECT col1 * + col0 * - col0 + + col0 * - - col0 AS col0, + col1 FROM tab0
----
-151380
21
-18000
81
0
1
onlyif mysql # aggregate syntax:
query I rowsort label-247
SELECT ALL + COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0 WHERE 62 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-247
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0 WHERE 62 IS NULL
----
0
query I rowsort
SELECT DISTINCT - col0 * - 81 * col0 + 21 * col0 * - col0 FROM tab2 AS cor0
----
126960
245760
337500
query I rowsort
SELECT DISTINCT col2 + - + col1 FROM tab2 AS cor0
----
-28
-37
-9
query I rowsort
SELECT ALL + ( - 46 ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-251
SELECT 58 DIV - COUNT( * ) + + 2 - + 88 FROM tab2
----
-105
skipif mysql # not compatible
query I rowsort label-251
SELECT 58 / - COUNT ( * ) + + 2 - + 88 FROM tab2
----
-105
query I rowsort
SELECT DISTINCT + + col0 + - 53 FROM tab2 AS cor0
----
-7
11
22
query I rowsort
SELECT - 55 - col2 AS col1 FROM tab2 AS cor0 WHERE + col1 < - col2
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-254
SELECT - col2 + - CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-254
SELECT - col2 + - CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 90 >= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-256
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= NULL
----
0
skipif mysql # not compatible
query I rowsort label-256
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-257
SELECT DISTINCT - COUNT( * ) + + 94 AS col0 FROM tab1 AS cor0
----
91
skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT - COUNT ( * ) + + 94 AS col0 FROM tab1 AS cor0
----
91
query I rowsort
SELECT DISTINCT + - 27 - - - col1 FROM tab0 AS cor0
----
-108
-28
-48
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-259
SELECT 36 + + + col2 + + CAST( NULL AS SIGNED ) / - 2 / + - 36 * + col1 + - col1 - col2 + - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-259
SELECT 36 + + + col2 + + CAST ( NULL AS INTEGER ) / - 2 / + - 36 * + col1 + - col1 - col2 + - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-260
SELECT 82 + + 15 + - col2 DIV 78 * - + col2 FROM tab2 AS cor0
----
97
97
97
skipif mysql # not compatible
query I rowsort label-260
SELECT 82 + + 15 + - col2 / 78 * - + col2 FROM tab2 AS cor0
----
97
97
97
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query I rowsort label-261
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED ) * MIN( DISTINCT col1 ) + - 59 DIV 49 col0 FROM tab2 cor0
----
152
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-261
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) * MIN ( DISTINCT col1 ) + - 59 / 49 col0 FROM tab2 cor0
----
152
onlyif mysql # aggregate syntax:
query I rowsort label-262
SELECT DISTINCT + + COUNT( * ) * - - MAX( - col1 ) - ( + - COUNT( DISTINCT - + col1 ) ) AS col1 FROM tab2 AS cor0
----
-150
skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT + + COUNT ( * ) * - - MAX ( - col1 ) - ( + - COUNT ( DISTINCT - + col1 ) ) AS col1 FROM tab2 AS cor0
----
-150
query I rowsort
SELECT - 41 + + col2 AS col0 FROM tab2 AS cor0
----
-1
-18
17
onlyif mysql # aggregate syntax:
query II rowsort label-264
SELECT ALL COUNT( * ) + + SUM( - col2 ) AS col1, + 25 FROM tab2 AS cor0
----
-118
25
skipif mysql # not compatible
query II rowsort label-264
SELECT ALL COUNT ( * ) + + SUM ( - col2 ) AS col1, + 25 FROM tab2 AS cor0
----
-118
25
onlyif mysql # aggregate syntax:
query I rowsort label-265
SELECT + MAX( DISTINCT + col1 ) FROM tab0
----
81
skipif mysql # not compatible
query I rowsort label-265
SELECT + MAX ( DISTINCT + col1 ) FROM tab0
----
81
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-266
SELECT DISTINCT CAST( ( + COUNT( * ) ) AS SIGNED ) AS col1 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-266
SELECT DISTINCT CAST ( ( + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab2
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-267
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE 86 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-267
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE 86 IS NULL
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-268
SELECT - - 10 DIV ( + col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-268
SELECT - - 10 / ( + col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # aggregate syntax:
query II rowsort label-269
SELECT ALL + COUNT( * ), COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----
0
0
skipif mysql # not compatible
query II rowsort label-269
SELECT ALL + COUNT ( * ), COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----
0
0
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-270
SELECT DISTINCT + 75 AS col2, + 43 * col0 FROM tab1 WHERE + CAST( 59 AS SIGNED ) IS NULL
----
skipif mysql # not compatible
query II rowsort label-270
SELECT DISTINCT + 75 AS col2, + 43 * col0 FROM tab1 WHERE + CAST ( 59 AS INTEGER ) IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-271
SELECT DISTINCT - CAST( + + col0 AS SIGNED ) AS col2 FROM tab1
----
-51
-85
-91
skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT - CAST ( + + col0 AS INTEGER ) AS col2 FROM tab1
----
-51
-85
-91
onlyif mysql # aggregate syntax:
query I rowsort label-272
SELECT + SUM( DISTINCT - 0 ) AS col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-272
SELECT + SUM ( DISTINCT - 0 ) AS col2 FROM tab1
----
0
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 80 < + col0
----
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-274
SELECT DISTINCT + CAST( + + col0 AS SIGNED ) DIV + 16 col0 FROM tab0 AS cor0
----
0
5
6
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-274
SELECT DISTINCT + CAST ( + + col0 AS INTEGER ) / + 16 col0 FROM tab0 AS cor0
----
0
5
6
onlyif mysql # DIV for integer division:
query II rowsort label-275
SELECT ALL - 25 AS col1, col1 DIV + col2 AS col1 FROM tab2 AS cor0
----
-25
1
-25
1
-25
2
skipif mysql # not compatible
query II rowsort label-275
SELECT ALL - 25 AS col1, col1 / + col2 AS col1 FROM tab2 AS cor0
----
-25
1
-25
1
-25
2
query I rowsort
SELECT ( + - col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-277
SELECT ALL ( - COUNT( * ) ) col0 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-277
SELECT ALL ( - COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-3
query I rowsort
SELECT ALL - + 43 + + ( 92 ) + - - col1 AS col1 FROM tab2 cor0
----
100
116
126
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-279
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - CAST( NULL AS SIGNED ) * col1, + col2 )
----
skipif mysql # not compatible
query III rowsort label-279
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - CAST ( NULL AS INTEGER ) * col1, + col2 )
----
query I rowsort
SELECT ALL + 0 * - ( 96 ) FROM tab2
----
0
0
0
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-281
SELECT CAST( - + col2 AS SIGNED ) DIV - 48 AS col1 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-281
SELECT CAST ( - + col2 AS INTEGER ) / - 48 AS col1 FROM tab2
----
0
0
1
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-282
SELECT DISTINCT + 93 AS col1, COUNT( * ) DIV + 34 FROM tab1
----
93
0
skipif mysql # not compatible
query II rowsort label-282
SELECT DISTINCT + 93 AS col1, COUNT ( * ) / + 34 FROM tab1
----
93
0
onlyif mysql # aggregate syntax:
query I rowsort label-283
SELECT DISTINCT SUM( ALL + col1 ) AS col1 FROM tab1
----
66
skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT SUM ( ALL + col1 ) AS col1 FROM tab1
----
66
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-284
SELECT DISTINCT - 34 col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-34
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-284
SELECT DISTINCT - 34 col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-34
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-285
SELECT DISTINCT COUNT( * ) * + 66 * + COUNT( * ) AS col0 FROM tab0
----
594
skipif mysql # not compatible
query I rowsort label-285
SELECT DISTINCT COUNT ( * ) * + 66 * + COUNT ( * ) AS col0 FROM tab0
----
594
onlyif mysql # aggregate syntax:
query I rowsort label-286
SELECT DISTINCT SUM( DISTINCT col2 ) + - - 22 FROM tab0 AS cor0
----
178
skipif mysql # not compatible
query I rowsort label-286
SELECT DISTINCT SUM ( DISTINCT col2 ) + - - 22 FROM tab0 AS cor0
----
178
query I rowsort
SELECT 82 + - - 12 AS col1 FROM tab2
----
94
94
94
query I rowsort
SELECT DISTINCT - 42 + + col0 AS col0 FROM tab0 AS cor0
----
-27
45
55
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-289
SELECT DISTINCT - 68 + - col0 AS col1, + ( + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
-119
NULL
-153
NULL
-159
NULL
skipif mysql # not compatible
query II rowsort label-289
SELECT DISTINCT - 68 + - col0 AS col1, + ( + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
-119
NULL
-153
NULL
-159
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 - - ( - 75 ) col0 FROM tab0 cor0
----
150
7494
9334
onlyif mysql # DIV for integer division:
query I rowsort label-291
SELECT + col0 DIV + + col1 - + 83 + + col1 AS col1 FROM tab2 AS cor0
----
-15
-32
-6
skipif mysql # not compatible
query I rowsort label-291
SELECT + col0 / + + col1 - + 83 + + col1 AS col1 FROM tab2 AS cor0
----
-15
-32
-6
onlyif mysql # aggregate syntax:
query II rowsort label-292
SELECT + - SUM( DISTINCT + col2 ), 1 AS col1 FROM tab1 AS cor0
----
-223
1
skipif mysql # not compatible
query II rowsort label-292
SELECT + - SUM ( DISTINCT + col2 ), 1 AS col1 FROM tab1 AS cor0
----
-223
1
onlyif mysql # aggregate syntax:
query I rowsort label-293
SELECT - MAX( - - 44 ) col1 FROM tab2 AS cor0
----
-44
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-293
SELECT - MAX ( - - 44 ) col1 FROM tab2 AS cor0
----
-44
query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-295
SELECT ( - SUM( ALL + col1 ) ), COUNT( * ) AS col1 FROM tab2
----
-195
3
skipif mysql # not compatible
query II rowsort label-295
SELECT ( - SUM ( ALL + col1 ) ), COUNT ( * ) AS col1 FROM tab2
----
-195
3
query III rowsort
SELECT ALL * FROM tab0 WHERE col2 = - col1
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 96 >= + col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 col0 FROM tab1 AS cor0
----
7
7
7
query I rowsort
SELECT + 89 * - 64 AS col2 FROM tab2 AS cor0
----
-5696
-5696
-5696
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-300
SELECT - ( + + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-300
SELECT - ( + + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-301
SELECT + 37 + + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT - 21 * col1 BETWEEN + - col0 AND + - 44 + + 57
----
40
skipif mysql # not compatible
query I rowsort label-301
SELECT + 37 + + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT - 21 * col1 BETWEEN + - col0 AND + - 44 + + 57
----
40
onlyif mysql # aggregate syntax:
query II rowsort label-302
SELECT + ( - COUNT( * ) ) AS col2, - COUNT( * ) FROM tab0 AS cor0
----
-3
-3
skipif mysql # not compatible
query II rowsort label-302
SELECT + ( - COUNT ( * ) ) AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
-3
-3
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * col2 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT - - ( 12 ) AS col0, col2 AS col2 FROM tab2 cor0
----
12
23
12
40
12
58
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-305
SELECT ALL + - COUNT( * ) * + 94 * 35 + - + 38 * - + 29 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-305
SELECT ALL + - COUNT ( * ) * + 94 * 35 + - + 38 * - + 29 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL col1 + - col2 * - col1 + - + col1 FROM tab0 AS cor0
----
210
3807
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + - col2 + + col2 col2 FROM tab1 AS cor0
----
1440
3264
354
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-308
SELECT + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + - ( - COUNT( * ) ) + - + 48 col1 FROM tab2
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-308
SELECT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + - ( - COUNT ( * ) ) + - + 48 col1 FROM tab2
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-309
SELECT ALL 38 DIV + - col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-309
SELECT ALL 38 / + - col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NULL <= ( col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 11 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL col2 + + 95 + + 51 AS col1 FROM tab2 AS cor0
----
169
186
204
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-313
SELECT MIN( - + col1 ) DIV COUNT( * ) FROM tab2 AS cor0
----
-25
skipif mysql # not compatible
query I rowsort label-313
SELECT MIN ( - + col1 ) / COUNT ( * ) FROM tab2 AS cor0
----
-25
query II rowsort
SELECT + + col1 AS col2, - col0 AS col2 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + col0 + + col1 = + col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-316
SELECT ALL + 1 + + ( - COUNT( * ) ) FROM tab0 AS cor0
----
-2
skipif mysql # not compatible
query I rowsort label-316
SELECT ALL + 1 + + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-2
query I rowsort
SELECT 41 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
onlyif mysql # DIV for integer division:
query I rowsort label-318
SELECT DISTINCT - + 15 DIV col2 * - col2 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT - + 15 / col2 * - col2 AS col1 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - - col2 col0 FROM tab0 AS cor0
----
198
20
94
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + + col2 IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 / + col2 * + - col0 = 18 + + 10
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT col1 AS col1, col0 AS col1 FROM tab1 AS cor0
----
14
51
47
91
5
85
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-323
SELECT + 22 DIV + CAST( 87 AS SIGNED ) col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-323
SELECT + 22 / + CAST ( 87 AS INTEGER ) col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - + 96 * + col0 FROM tab0 AS cor0
----
-1440
-8352
-9312
onlyif mysql # aggregate syntax:
query I rowsort label-325
SELECT + - ( SUM( ALL col2 ) ) col2 FROM tab2 AS cor0
----
-121
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-325
SELECT + - ( SUM ( ALL col2 ) ) col2 FROM tab2 AS cor0
----
-121
query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE - 52 BETWEEN col1 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-327
SELECT + SUM( ALL + + 72 ) FROM tab0 AS cor0
----
216
skipif mysql # not compatible
query I rowsort label-327
SELECT + SUM ( ALL + + 72 ) FROM tab0 AS cor0
----
216
onlyif mysql # aggregate syntax:
query I rowsort label-328
SELECT ALL - ( + + MAX( - col0 ) ) AS col0 FROM tab0
----
15
skipif mysql # not compatible
query I rowsort label-328
SELECT ALL - ( + + MAX ( - col0 ) ) AS col0 FROM tab0
----
15
onlyif mysql # aggregate syntax:
query I rowsort label-329
SELECT ALL - MAX( DISTINCT - 66 ) * + 6 AS col2 FROM tab2
----
396
skipif mysql # not compatible
query I rowsort label-329
SELECT ALL - MAX ( DISTINCT - 66 ) * + 6 AS col2 FROM tab2
----
396
onlyif mysql # aggregate syntax:
query II rowsort label-330
SELECT DISTINCT - 38 * - COUNT( * ) AS col1, + 25 FROM tab2
----
114
25
skipif mysql # not compatible
query II rowsort label-330
SELECT DISTINCT - 38 * - COUNT ( * ) AS col1, + 25 FROM tab2
----
114
25
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-331
SELECT CAST( + + 53 AS SIGNED ) AS col1 FROM tab2
----
53
53
53
skipif mysql # not compatible
query I rowsort label-331
SELECT CAST ( + + 53 AS INTEGER ) AS col1 FROM tab2
----
53
53
53
query I rowsort
SELECT ( - ( - + col1 ) ) FROM tab2
----
51
67
77
onlyif mysql # aggregate syntax:
query I rowsort label-333
SELECT DISTINCT MAX( ALL col1 ) AS col1 FROM tab0
----
81
skipif mysql # not compatible
query I rowsort label-333
SELECT DISTINCT MAX ( ALL col1 ) AS col1 FROM tab0
----
81
query I rowsort
SELECT DISTINCT 52 AS col0 FROM tab2 AS cor0
----
52
query I rowsort
SELECT - 89 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
onlyif mysql # DIV for integer division:
query II rowsort label-336
SELECT 62 DIV - + 88, 20 + + col1 col0 FROM tab2 AS cor0
----
0
71
0
87
0
97
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-336
SELECT 62 / - + 88, 20 + + col1 col0 FROM tab2 AS cor0
----
0
71
0
87
0
97
query I rowsort
SELECT DISTINCT - - col2 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT 19 + + col1 * + col2 IS NULL
----
4896
5015
6188
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 * - - col0 IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 > NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-340
SELECT - COUNT( * ) + + + COUNT( * ) col0 FROM tab2
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-340
SELECT - COUNT ( * ) + + + COUNT ( * ) col0 FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 24 col2 FROM tab1
----
35
44
72
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * 66 IS NULL
----
query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 = + col0
----
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-344
SELECT ALL - 48 + AVG ( + CAST( NULL AS DECIMAL ) ) * COUNT( * ) AS col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-344
SELECT ALL - 48 + AVG ( + CAST ( NULL AS REAL ) ) * COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + ( - 76 ) * col1 AND + + 87
----
query II rowsort
SELECT DISTINCT - 5 * - col2 AS col1, - col1 * col2 * ( - col0 ) AS col0 FROM tab1
----
295
25075
340
290836
480
68544
query III rowsort
SELECT * FROM tab2 WHERE + - 85 IS NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-348
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * + + COUNT( * ) * - MIN( DISTINCT - + col1 ) AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-348
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) * - MIN ( DISTINCT - + col1 ) AS col2 FROM tab0
----
NULL
query I rowsort
SELECT col2 - - 12 * + col2 * + col0 AS col0 FROM tab1
----
58848
60239
74324
query I rowsort
SELECT ALL ( col2 ) + col0 * - 40 + - 73 AS col2 FROM tab2
----
-1890
-2593
-3015
onlyif mysql # aggregate syntax:
query I rowsort label-351
SELECT ALL + COUNT( * ) * - 64 FROM tab0
----
-192
skipif mysql # not compatible
query I rowsort label-351
SELECT ALL + COUNT ( * ) * - 64 FROM tab0
----
-192
query I rowsort
SELECT col0 + + + 73 AS col2 FROM tab1
----
124
158
164
query I rowsort
SELECT ALL + + 91 FROM tab1 AS cor0 WHERE + 87 IS NULL
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-354
SELECT - 21 / - CAST( - 75 AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE col1 = + col0 / - 75 * - - col0
----
skipif mysql # not compatible
query I rowsort label-354
SELECT - 21 / - CAST ( - 75 AS REAL ) AS col2 FROM tab2 AS cor0 WHERE col1 = + col0 / - 75 * - - col0
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-355
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-355
SELECT DISTINCT + - CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL
query I rowsort
SELECT - col0 * 19 AS col2 FROM tab1
----
-1615
-1729
-969
onlyif mysql # aggregate syntax:
query I rowsort label-357
SELECT DISTINCT - + MAX( + 83 ) AS col1 FROM tab2 AS cor0
----
-83
skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT - + MAX ( + 83 ) AS col1 FROM tab2 AS cor0
----
-83
query I rowsort
SELECT ALL 81 * 19 FROM tab1 cor0
----
1539
1539
1539
query I rowsort
SELECT DISTINCT + col1 * - 39 + - - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----
query I rowsort
SELECT + - col0 * - 43 FROM tab1 AS cor0
----
2193
3655
3913
query I rowsort
SELECT col0 * + 89 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 < col1
----
6675
query I rowsort
SELECT ALL + col0 * + + col2 AS col0 FROM tab0 AS cor0
----
705
870
9603
onlyif mysql # aggregate syntax:
query I rowsort label-363
SELECT - - ( - MAX( + ( - 86 ) ) ) AS col1 FROM tab1 AS cor0
----
86
skipif mysql # not compatible
query I rowsort label-363
SELECT - - ( - MAX ( + ( - 86 ) ) ) AS col1 FROM tab1 AS cor0
----
86
query I rowsort
SELECT - col1 * - 8 AS col0 FROM tab1 AS cor0
----
112
376
40
query I rowsort
SELECT DISTINCT col0 * + 65 * 3 * - col1 AS col2 FROM tab1
----
-139230
-82875
-834015
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-366
SELECT DISTINCT - COUNT( * ) DIV 75 DIV 66 AS col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-366
SELECT DISTINCT - COUNT ( * ) / 75 / 66 AS col1 FROM tab1
----
0
query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
-1
-21
-81
onlyif mysql # aggregate syntax:
query II rowsort label-368
SELECT ALL - 76 AS col2, COUNT( * ) FROM tab0
----
-76
3
skipif mysql # not compatible
query II rowsort label-368
SELECT ALL - 76 AS col2, COUNT ( * ) FROM tab0
----
-76
3
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-369
SELECT DISTINCT COUNT( * ) DIV 89 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT COUNT ( * ) / 89 FROM tab0
----
0
query I rowsort
SELECT - 1 FROM tab0 WHERE NOT col1 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-371
SELECT ALL - col0 DIV 21 * + 74 AS col1 FROM tab0
----
-296
-296
0
skipif mysql # not compatible
query I rowsort label-371
SELECT ALL - col0 / 21 * + 74 AS col1 FROM tab0
----
-296
-296
0
onlyif mysql # aggregate syntax:
query I rowsort label-372
SELECT - 36 * - + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
108
skipif mysql # not compatible
query I rowsort label-372
SELECT - 36 * - + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
108
query I rowsort
SELECT + + ( - col2 ) * + col1 + + + 52 AS col1 FROM tab1 AS cor0
----
-1292
-243
-3144
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col2 * + + col1 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-375
SELECT - + SUM( + col0 ) * + 98 AS col2 FROM tab2 AS cor0
----
-18130
skipif mysql # not compatible
query I rowsort label-375
SELECT - + SUM ( + col0 ) * + 98 AS col2 FROM tab2 AS cor0
----
-18130
query III rowsort
SELECT * FROM tab2 WHERE NOT + 52 NOT IN ( + col2, - col0, - 13 )
----
onlyif mysql # DIV for integer division:
query I rowsort label-377
SELECT + ( + col1 ) * - col1 DIV - - col1 AS col0 FROM tab2
----
-51
-67
-77
skipif mysql # not compatible
query I rowsort label-377
SELECT + ( + col1 ) * - col1 / - - col1 AS col0 FROM tab2
----
-51
-67
-77
query I rowsort
SELECT - + 5 AS col0 FROM tab0 WHERE + col2 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-379
SELECT DISTINCT - MAX( + ( - 27 ) ) AS col0 FROM tab1
----
27
skipif mysql # not compatible
query I rowsort label-379
SELECT DISTINCT - MAX ( + ( - 27 ) ) AS col0 FROM tab1
----
27
onlyif mysql # aggregate syntax:
query I rowsort label-380
SELECT ALL - - 4 + - COUNT( * ) FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-380
SELECT ALL - - 4 + - COUNT ( * ) FROM tab1 AS cor0
----
1
query I rowsort
SELECT DISTINCT + + col0 * + - col2 + - col2 + - col0 + - 58 AS col1 FROM tab0 cor0
----
-1025
-825
-9857
onlyif mysql # DIV for integer division:
query II rowsort label-382
SELECT - col0 DIV 21 + + 40 * + + ( - - col0 ) + + + 98 DIV + - col2, col0 FROM tab0 AS cor0
----
3467
87
3876
97
598
15
skipif mysql # not compatible
query II rowsort label-382
SELECT - col0 / 21 + + 40 * + + ( - - col0 ) + + + 98 / + - col2, col0 FROM tab0 AS cor0
----
3467
87
3876
97
598
15
onlyif mysql # DIV for integer division:
query II rowsort label-383
SELECT ALL col0 DIV - col0 + - + col2, col1 AS col1 FROM tab1 AS cor0
----
-60
5
-69
47
-97
14
skipif mysql # not compatible
query II rowsort label-383
SELECT ALL col0 / - col0 + - + col2, col1 AS col1 FROM tab1 AS cor0
----
-60
5
-69
47
-97
14
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-384
SELECT DISTINCT + CAST( - + col2 AS SIGNED ) + - - 83 AS col1 FROM tab2 AS cor0
----
25
43
60
skipif mysql # not compatible
query I rowsort label-384
SELECT DISTINCT + CAST ( - + col2 AS INTEGER ) + - - 83 AS col1 FROM tab2 AS cor0
----
25
43
60
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-385
SELECT col1 + + - col0, CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
-8
NULL
13
NULL
5
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-385
SELECT col1 + + - col0, CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
-8
NULL
13
NULL
5
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-386
SELECT + + MIN( col1 ) FROM tab0 AS cor0 WHERE col2 < NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-386
SELECT + + MIN ( col1 ) FROM tab0 AS cor0 WHERE col2 < NULL
----
NULL
query I rowsort
SELECT + 79 + - col2 AS col2 FROM tab2 cor0
----
21
39
56
onlyif mysql # DIV for integer division:
query I rowsort label-388
SELECT col0 + col0 DIV - - col1 + ( + col0 ) FROM tab1
----
105
183
187
skipif mysql # not compatible
query I rowsort label-388
SELECT col0 + col0 / - - col1 + ( + col0 ) FROM tab1
----
105
183
187
query I rowsort
SELECT col0 + col0 + - - 29 FROM tab2
----
121
157
179
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 * + col1 col0 FROM tab2
----
123200
225388
26979
query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE - - 96 <= NULL
----
query III rowsort
SELECT * FROM tab2 WHERE - + col0 / - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL >= + col1 - + + 12
----
query I rowsort
SELECT - 28 * 25 * - - ( - 80 ) FROM tab2 AS cor0
----
56000
56000
56000
query I rowsort
SELECT 57 AS col1 FROM tab1 AS cor0 WHERE + ( - col2 ) + + 63 > NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-396
SELECT - 41 - + COUNT( * ) * + 74 FROM tab0 cor0
----
-263
skipif mysql # not compatible
query I rowsort label-396
SELECT - 41 - + COUNT ( * ) * + 74 FROM tab0 cor0
----
-263
query I rowsort
SELECT + - 56 - - col0 FROM tab0 cor0
----
-41
31
41
query I rowsort
SELECT ALL + 47 - + col2 FROM tab2 cor0
----
-11
24
7
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - col1 AND - 66 / col2 + - col1
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 35 IS NOT NULL
----
query I rowsort
SELECT DISTINCT - 79 * + col0 + - ( + col1 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-402
SELECT DISTINCT + 94 * - col0 AS col2 FROM tab2 WHERE NOT + col0 >= ( - CAST( col2 AS DECIMAL ) )
----
skipif mysql # not compatible
query I rowsort label-402
SELECT DISTINCT + 94 * - col0 AS col2 FROM tab2 WHERE NOT + col0 >= ( - CAST ( col2 AS REAL ) )
----
onlyif mysql # aggregate syntax:
query I rowsort label-403
SELECT DISTINCT - MIN( ( - col0 ) ) AS col1 FROM tab1
----
91
skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT - MIN ( ( - col0 ) ) AS col1 FROM tab1
----
91
query I rowsort
SELECT + col2 + col1 * - col0 FROM tab2 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN ( + ( + col0 ) + col2 ) AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-406
SELECT ALL SUM( ALL col2 ) FROM tab2
----
121
skipif mysql # not compatible
query I rowsort label-406
SELECT ALL SUM ( ALL col2 ) FROM tab2
----
121
onlyif mysql # aggregate syntax:
query I rowsort label-407
SELECT ALL COUNT( ALL - col1 ) AS col0 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-407
SELECT ALL COUNT ( ALL - col1 ) AS col0 FROM tab1
----
3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-408
SELECT DISTINCT MIN( CAST( NULL AS SIGNED ) ) col0 FROM tab2
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-408
SELECT DISTINCT MIN ( CAST ( NULL AS INTEGER ) ) col0 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 WHERE + col0 + 12 IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 40 col2 FROM tab1
----
19
28
56
query I rowsort
SELECT DISTINCT - 28 + + col2 AS col2 FROM tab2
----
-5
12
30
query I rowsort
SELECT ( ( 37 ) ) FROM tab1
----
37
37
37
onlyif mysql # aggregate syntax:
query I rowsort label-413
SELECT DISTINCT SUM( DISTINCT + col1 ) + + COUNT( + col1 + col1 * + col0 ) AS col0 FROM tab0
----
106
skipif mysql # not compatible
query I rowsort label-413
SELECT DISTINCT SUM ( DISTINCT + col1 ) + + COUNT ( + col1 + col1 * + col0 ) AS col0 FROM tab0
----
106
query I rowsort
SELECT ALL 52 AS col1 FROM tab0 WHERE col2 - 29 IS NOT NULL
----
52
52
52
query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT col0 > - col0
----
query I rowsort
SELECT 73 * 20 FROM tab2 WHERE NOT ( 12 + - 87 ) <> 35
----
query III rowsort
SELECT * FROM tab1 WHERE NOT ( 13 * - col0 ) = NULL
----
query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE ( col1 * + 66 + col1 ) BETWEEN + col2 AND NULL
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 11 + col0 / - 25 )
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-420
SELECT ALL + SUM( ALL 47 ) DIV - 43 col1 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-420
SELECT ALL + SUM ( ALL 47 ) / - 43 col1 FROM tab2 AS cor0
----
-3
query I rowsort
SELECT DISTINCT + 44 + + ( col0 ) FROM tab2 AS cor0 WHERE NOT NULL <= ( + col0 )
----
query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( 38 ) NOT IN ( col0 )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-423
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-423
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 cor0
----
NULL
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-424
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) IN ( 90 )
----
skipif mysql # not compatible
query I rowsort label-424
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) IN ( 90 )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-425
SELECT DISTINCT + CAST( - MIN( ALL + 43 ) AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
-43
skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT + CAST ( - MIN ( ALL + 43 ) AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
-43
query III rowsort
SELECT * FROM tab0 WHERE 15 <> NULL
----
query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NULL < NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-428
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
10
47
99
skipif mysql # not compatible
query I rowsort label-428
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
10
47
99
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 95 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-430
SELECT - COUNT( * ) DIV + 58 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-430
SELECT - COUNT ( * ) / + 58 AS col0 FROM tab1 AS cor0
----
0
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 85 >= NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-432
SELECT DISTINCT col2 + - col0 DIV 66 AS col1 FROM tab1 AS cor0
----
58
67
96
skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT col2 + - col0 / 66 AS col1 FROM tab1 AS cor0
----
58
67
96
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col2 ) NOT BETWEEN - col0 AND + col0 - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT - + ( 75 ) - + 22 FROM tab0 AS cor0
----
-97
query I rowsort
SELECT DISTINCT + col0 * - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( 52 / col1 ) < ( - col0 )
----
-2346
-4928
-5025
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) NOT IN ( col2 )
----
query I rowsort
SELECT DISTINCT - col1 + - 11 * col0 FROM tab0 AS cor0
----
-1068
-246
-978
query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN col2 + - col0 * - col2 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-439
SELECT - - MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
5
skipif mysql # not compatible
query I rowsort label-439
SELECT - - MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col1 col1 FROM tab2 AS cor0
----
-13
-5
8
onlyif mysql # DIV for integer division:
query I rowsort label-441
SELECT 1 - - col0 DIV 47 FROM tab1
----
2
2
2
skipif mysql # not compatible
query I rowsort label-441
SELECT 1 - - col0 / 47 FROM tab1
----
2
2
2
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-442
SELECT DISTINCT COUNT( - col1 ) - + COUNT( * ) FROM tab1 WHERE CAST( NULL AS SIGNED ) * - col0 IN ( + ( - col1 ) )
----
0
skipif mysql # not compatible
query I rowsort label-442
SELECT DISTINCT COUNT ( - col1 ) - + COUNT ( * ) FROM tab1 WHERE CAST ( NULL AS INTEGER ) * - col0 IN ( + ( - col1 ) )
----
0
query III rowsort
SELECT * FROM tab1 WHERE + col1 NOT IN ( col1 / col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-444
SELECT + COUNT( 98 ) - 61 AS col1 FROM tab1
----
-58
skipif mysql # not compatible
query I rowsort label-444
SELECT + COUNT ( 98 ) - 61 AS col1 FROM tab1
----
-58
query I rowsort
SELECT DISTINCT - 85 + col0 FROM tab0 WHERE NOT ( col0 ) NOT BETWEEN ( col0 ) AND col2 - col1
----
12
query I rowsort
SELECT ALL 43 - 48 FROM tab1
----
-5
-5
-5
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-447
SELECT + ( MAX( - col2 ) ) * + COUNT( * ) - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-447
SELECT + ( MAX ( - col2 ) ) * + COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
query I rowsort
SELECT 62 * col0 - + 84 FROM tab2
----
2768
3884
4566
onlyif mysql # aggregate syntax:
query I rowsort label-449
SELECT ALL - SUM( 3 ) FROM tab0
----
-9
skipif mysql # not compatible
query I rowsort label-449
SELECT ALL - SUM ( 3 ) FROM tab0
----
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 13 col2 FROM tab2
----
-38
-54
-64
query I rowsort
SELECT - 28 + - col1 FROM tab1
----
-33
-42
-75
onlyif mysql # aggregate syntax:
query I rowsort label-452
SELECT DISTINCT + 38 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
35
skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT + 38 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
35
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-453
SELECT ALL col1 + - col2 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-453
SELECT ALL col1 + - col2 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-454
SELECT DISTINCT - SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
-156
skipif mysql # not compatible
query I rowsort label-454
SELECT DISTINCT - SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
-156
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-455
SELECT ALL 80 * + COUNT( * ) + 48 DIV + 61 FROM tab2 AS cor0
----
240
skipif mysql # not compatible
query I rowsort label-455
SELECT ALL 80 * + COUNT ( * ) + 48 / + 61 FROM tab2 AS cor0
----
240
onlyif mysql # aggregate syntax:
query I rowsort label-456
SELECT DISTINCT + - SUM( DISTINCT 23 ) FROM tab1 AS cor0
----
-23
skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT + - SUM ( DISTINCT 23 ) FROM tab1 AS cor0
----
-23
query I rowsort
SELECT DISTINCT + 29 * - col1 * 61 AS col1 FROM tab1 AS cor0
----
-24766
-83143
-8845
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-458
SELECT + 2 FROM tab2 AS cor0 WHERE NOT ( + 68 ) NOT BETWEEN - col2 AND 77 / CAST( NULL AS SIGNED ) + 60
----
skipif mysql # not compatible
query I rowsort label-458
SELECT + 2 FROM tab2 AS cor0 WHERE NOT ( + 68 ) NOT BETWEEN - col2 AND 77 / CAST ( NULL AS INTEGER ) + 60
----
query I rowsort
SELECT DISTINCT - col0 * col1 AS col1 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( + + 68 * - col0 ) AND NULL
----
query I rowsort
SELECT + col0 * + 51 * 65 + - 61 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
169004
281714
301604
onlyif mysql # aggregate syntax:
query I rowsort label-461
SELECT - SUM( ALL - 32 ) FROM tab2 AS cor0
----
96
skipif mysql # not compatible
query I rowsort label-461
SELECT - SUM ( ALL - 32 ) FROM tab2 AS cor0
----
96
onlyif mysql # aggregate syntax:
query I rowsort label-462
SELECT MIN( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) IN ( - col0 - + ( + 32 ) * - col0 )
----
51
skipif mysql # not compatible
query I rowsort label-462
SELECT MIN ( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) IN ( - col0 - + ( + 32 ) * - col0 )
----
51
onlyif mysql # aggregate syntax:
query I rowsort label-463
SELECT ALL + - ( - ( - COUNT( * ) ) ) AS col0 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-463
SELECT ALL + - ( - ( - COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query II rowsort label-464
SELECT DISTINCT + 22 AS col2, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
22
-3
skipif mysql # not compatible
query II rowsort label-464
SELECT DISTINCT + 22 AS col2, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
22
-3
query I rowsort
SELECT col2 + 91 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-466
SELECT ALL + COUNT( * ) * + ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-466
SELECT ALL + COUNT ( * ) * + ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT + + 36 FROM tab0 WHERE NOT ( NULL ) < - 95
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-468
SELECT DISTINCT * FROM tab0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-468
SELECT DISTINCT * FROM tab0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - - ( - 77 ) )
----
query I rowsort
SELECT col0 * - 89 + - + col0 * - ( + col2 ) AS col1 FROM tab2
----
-2325
-3036
-3136
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-471
SELECT * FROM tab1 WHERE NOT NULL <> 84 * - CAST( NULL AS SIGNED ) * - col1 - + 78
----
skipif mysql # not compatible
query III rowsort label-471
SELECT * FROM tab1 WHERE NOT NULL <> 84 * - CAST ( NULL AS INTEGER ) * - col1 - + 78
----
query III rowsort
SELECT ALL * FROM tab0 WHERE + 33 * + + col1 + + col1 + 17 BETWEEN - col0 AND NULL
----
query I rowsort
SELECT ALL + + col1 + col0 - ( col2 ) - + 62 AS col0 FROM tab0 AS cor0
----
-13
-63
36
query II rowsort
SELECT DISTINCT + col1 * col1 AS col0, + 97 AS col2 FROM tab0 AS cor0
----
1
97
441
97
6561
97
query I rowsort
SELECT DISTINCT + + col1 + - 85 FROM tab2 AS cor0
----
-18
-34
-8
query I rowsort
SELECT + 76 * + + col0 FROM tab1 AS cor0
----
3876
6460
6916
query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN ( NULL ) AND ( 93 + 83 )
----
query II rowsort
SELECT DISTINCT + - col0 + 67, col0 FROM tab0 AS cor0
----
-20
87
-30
97
52
15
query I rowsort
SELECT ALL ( - - 65 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT ALL - col0 * + col1 AS col2 FROM tab2 WHERE NULL NOT BETWEEN + 84 AND ( ( + 62 ) + - 60 )
----
query II rowsort
SELECT ALL - + col0 * - 64 + 75 AS col1, col1 FROM tab2 AS cor0
----
3019
51
4171
77
4875
67
query I rowsort
SELECT + 51 + - + 54 FROM tab1 AS cor0
----
-3
-3
-3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-483
SELECT - + CAST( NULL AS SIGNED ) + - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-483
SELECT - + CAST ( NULL AS INTEGER ) + - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 * + col0 + 17 + + + col0 FROM tab1 AS cor0
----
2669
7327
8389
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-485
SELECT ALL - - 11 + + ( + col2 ) * + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-485
SELECT ALL - - 11 + + ( + col2 ) * + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + 98 AS col0 FROM tab2 AS cor0
----
144
162
173
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - col2 NOT IN ( - 90 - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-488
SELECT col0 + + - col0 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-488
SELECT col0 + + - col0 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 61 BETWEEN 65 / - 16 AND NULL
----
query I rowsort
SELECT - 11 + 35 FROM tab1 AS cor0
----
24
24
24
query I rowsort
SELECT + 39 FROM tab2, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT 40 + ( + 46 ) * + ( 6 ) AS col0 FROM tab0 WHERE NULL IS NULL
----
316
316
316
query I rowsort
SELECT ALL + col0 / - col0 + - + 80 / + col0 / + col2 + col1 AS col0 FROM tab0 WHERE NULL <> NULL
----
query III rowsort
SELECT * FROM tab0 WHERE - - col1 <> NULL
----
query I rowsort
SELECT DISTINCT 52 AS col0 FROM tab2, tab1 AS cor0
----
52
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-496
SELECT DISTINCT * FROM tab2 WHERE CAST( + 55 AS SIGNED ) <> NULL
----
skipif mysql # not compatible
query III rowsort label-496
SELECT DISTINCT * FROM tab2 WHERE CAST ( + 55 AS INTEGER ) <> NULL
----
query I rowsort
SELECT DISTINCT 92 - + ( 65 ) AS col0 FROM tab2
----
27
query III rowsort
SELECT * FROM tab1 WHERE ( + col0 * col2 + + col0 + + col2 ) NOT BETWEEN NULL AND NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + + col0 * - - col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 41 ) * 30 * - col2 col0 FROM tab1
----
118080
72570
83640
query I rowsort
SELECT ALL - 66 * - col0 FROM tab0 WHERE - col2 IS NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-502
SELECT ( ( 11 ) ) DIV - SUM( 44 ) FROM tab2 cor0
----
0
skipif mysql # not compatible
query I rowsort label-502
SELECT ( ( 11 ) ) / - SUM ( 44 ) FROM tab2 cor0
----
0
query II rowsort
SELECT DISTINCT + 70 AS col2, col0 AS col1 FROM tab0 AS cor0
----
70
15
70
87
70
97
onlyif mysql # aggregate syntax:
query II rowsort label-504
SELECT DISTINCT - - COUNT( * ) AS col0, 45 col2 FROM tab1 AS cor0
----
3
45
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-504
SELECT DISTINCT - - COUNT ( * ) AS col0, 45 col2 FROM tab1 AS cor0
----
3
45
query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75
query I rowsort
SELECT ALL + 71 FROM tab1 AS cor0 WHERE - 12 <= col2
----
71
71
71
query I rowsort
SELECT DISTINCT - + 22 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-22
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 + + col2 + - 63 ) NOT IN ( ( - 15 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 / + + col0 * 97 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 col1 FROM tab0 AS cor0
----
72
onlyif mysql # aggregate syntax:
query I rowsort label-511
SELECT - COUNT( * ) * + 62 AS col2 FROM tab2 AS cor0
----
-186
skipif mysql # not compatible
query I rowsort label-511
SELECT - COUNT ( * ) * + 62 AS col2 FROM tab2 AS cor0
----
-186
query I rowsort
SELECT ALL - 88 * + + ( + col0 ) FROM tab2 AS cor0
----
-4048
-5632
-6600
onlyif mysql # aggregate syntax:
query I rowsort label-513
SELECT ALL ( - + SUM( ALL + 34 ) ) AS col0 FROM tab2
----
-102
skipif mysql # not compatible
query I rowsort label-513
SELECT ALL ( - + SUM ( ALL + 34 ) ) AS col0 FROM tab2
----
-102
onlyif mysql # aggregate syntax:
query I rowsort label-514
SELECT DISTINCT MIN( - col1 ) * 75 FROM tab1
----
-3525
skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT MIN ( - col1 ) * 75 FROM tab1
----
-3525
onlyif mysql # aggregate syntax:
query I rowsort label-515
SELECT + SUM( DISTINCT col0 ) AS col1 FROM tab1
----
227
skipif mysql # not compatible
query I rowsort label-515
SELECT + SUM ( DISTINCT col0 ) AS col1 FROM tab1
----
227
query III rowsort
SELECT * FROM tab0 WHERE NOT - + ( 94 ) + col1 * - col0 NOT BETWEEN 28 AND - + 83
----
query I rowsort
SELECT 27 * - + col1 * ( + + 27 ) AS col0 FROM tab0
----
-15309
-59049
-729
query I rowsort
SELECT DISTINCT col0 * + ( - 21 ) AS col0 FROM tab2
----
-1344
-1575
-966
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 63 col0 FROM tab2
----
-23
-40
-5
query I rowsort
SELECT ALL + col0 FROM tab2 WHERE ( NULL ) < ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( + col1 ) ) * + col1 + + 48 * col0 col0 FROM tab2 WHERE NOT NULL IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-523
SELECT + COUNT( DISTINCT - + ( ( + col1 ) ) ) + 12, COUNT( * ) - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
15
NULL
skipif mysql # not compatible
query II rowsort label-523
SELECT + COUNT ( DISTINCT - + ( ( + col1 ) ) ) + 12, COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
15
NULL
query I rowsort
SELECT ALL + + 6 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-525
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) + - 70 FROM tab2
----
-71
skipif mysql # not compatible
query I rowsort label-525
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) + - 70 FROM tab2
----
-71
onlyif mysql # aggregate syntax:
query I rowsort label-526
SELECT - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9
skipif mysql # not compatible
query I rowsort label-526
SELECT - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9
query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col0 ) >= NULL
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 BETWEEN + col1 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL - col0 + + - 60 FROM tab2 AS cor0
----
-106
-124
-135
onlyif mysql # aggregate syntax:
query II rowsort label-531
SELECT + MIN( - col2 ) - - + COUNT( * ), - COUNT( ALL - col2 ) AS col2 FROM tab2
----
-55
-3
skipif mysql # not compatible
query II rowsort label-531
SELECT + MIN ( - col2 ) - - + COUNT ( * ), - COUNT ( ALL - col2 ) AS col2 FROM tab2
----
-55
-3
query I rowsort
SELECT 93 + - - 59 - col1 AS col1 FROM tab0
----
131
151
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 * col2 col2 FROM tab0
----
1692
3564
360
query II rowsort
SELECT ( - - col1 ) * - col2 AS col1, col2 AS col1 FROM tab0
----
-210
10
-3807
47
-99
99
query I rowsort
SELECT + + col0 * 72 AS col1 FROM tab1 cor0
----
3672
6120
6552
onlyif mysql # aggregate syntax:
query II rowsort label-536
SELECT + COUNT( * ) AS col1, + COUNT( * ) col2 FROM tab1 AS cor0
----
3
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-536
SELECT + COUNT ( * ) AS col1, + COUNT ( * ) col2 FROM tab1 AS cor0
----
3
3
query I rowsort
SELECT - 88 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2
query I rowsort
SELECT ALL + col1 * - col0 * + 2 AS col1 FROM tab0
----
-194
-2430
-3654
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-539
SELECT + CAST( NULL AS SIGNED ) - + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-539
SELECT + CAST ( NULL AS INTEGER ) - + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-540
SELECT ALL + MIN( - + col2 ) AS col1 FROM tab1 AS cor0
----
-96
skipif mysql # not compatible
query I rowsort label-540
SELECT ALL + MIN ( - + col2 ) AS col1 FROM tab1 AS cor0
----
-96
onlyif mysql # aggregate syntax:
query I rowsort label-541
SELECT MIN( DISTINCT - + col0 ) AS col2 FROM tab2 AS cor0
----
-75
skipif mysql # not compatible
query I rowsort label-541
SELECT MIN ( DISTINCT - + col0 ) AS col2 FROM tab2 AS cor0
----
-75
onlyif mysql # aggregate syntax:
query I rowsort label-542
SELECT ALL + - COUNT( DISTINCT + 3 ) col2 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-542
SELECT ALL + - COUNT ( DISTINCT + 3 ) col2 FROM tab2 AS cor0
----
-1
onlyif mysql # aggregate syntax:
query I rowsort label-543
SELECT DISTINCT - SUM( ALL - - col1 ) AS col1 FROM tab2 AS cor0
----
-195
skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT - SUM ( ALL - - col1 ) AS col1 FROM tab2 AS cor0
----
-195
query I rowsort
SELECT ALL + col0 + + - col1 AS col1 FROM tab2 AS cor0
----
-13
-5
8
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-545
SELECT + + ( AVG ( CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-545
SELECT + + ( AVG ( CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - 80 + + col2 AS col0 FROM tab2 cor0
----
-22
-40
-57
query I rowsort
SELECT col1 + + col0 - + col1 FROM tab0
----
15
87
97
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 + - - col1 IS NOT NULL
----
query III rowsort
SELECT * FROM tab2 WHERE + 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query II rowsort label-550
SELECT ALL - 92 + - MAX( col0 ) AS col1, - ( 60 ) * MAX( DISTINCT - col2 ) AS col0 FROM tab1 WHERE NOT ( NOT col2 IS NULL )
----
NULL
NULL
skipif mysql # not compatible
query II rowsort label-550
SELECT ALL - 92 + - MAX ( col0 ) AS col1, - ( 60 ) * MAX ( DISTINCT - col2 ) AS col0 FROM tab1 WHERE NOT ( NOT col2 IS NULL )
----
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-551
SELECT DISTINCT + 46 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-551
SELECT DISTINCT + 46 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 + + 94 col2 FROM tab2
----
102
102
102
query I rowsort
SELECT ALL col2 * + 27 + + col2 AS col2 FROM tab2 cor0
----
1120
1624
644
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) * - col0 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-555
SELECT + + CAST( - - 60 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
60
60
60
skipif mysql # not compatible
query I rowsort label-555
SELECT + + CAST ( - - 60 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
60
60
60
query I rowsort
SELECT DISTINCT - 3 * + col1 + + - 14 + + - col0 * - col1 * + col2 FROM tab0 AS cor0
----
18193
56848
9586
query I rowsort
SELECT DISTINCT + ( 8 ) * - - 50 FROM tab1 AS cor0
----
400
query I rowsort
SELECT ALL ( - + 50 ) + - - col2 FROM tab0
----
-3
-40
49
onlyif mysql # aggregate syntax:
query I rowsort label-559
SELECT - COUNT( * ) + + - COUNT( * ) col2 FROM tab1 AS cor0
----
-6
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-559
SELECT - COUNT ( * ) + + - COUNT ( * ) col2 FROM tab1 AS cor0
----
-6
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND - col0 )
----
onlyif mysql # DIV for integer division:
query I rowsort label-561
SELECT + col1 DIV + - 48 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-561
SELECT + col1 / + - 48 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + + 68 * col0 FROM tab0 AS cor0
----
1020
5916
6596
onlyif mysql # aggregate syntax:
query I rowsort label-563
SELECT + MIN( + 19 ) AS col0 FROM tab0 AS cor0
----
19
skipif mysql # not compatible
query I rowsort label-563
SELECT + MIN ( + 19 ) AS col0 FROM tab0 AS cor0
----
19
query III rowsort
SELECT ALL * FROM tab1 WHERE 38 IS NULL
----
query I rowsort
SELECT ( - - col0 ) * + 79 - col1 AS col2 FROM tab1
----
4015
6710
7142
onlyif mysql # aggregate syntax:
query I rowsort label-566
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT - col2 IS NULL
----
-3
skipif mysql # not compatible
query I rowsort label-566
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT - col2 IS NULL
----
-3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-567
SELECT ( SUM( ALL + col1 ) ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-567
SELECT ( SUM ( ALL + col1 ) ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-568
SELECT + + 81 * - 79 + + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-6390
skipif mysql # not compatible
query I rowsort label-568
SELECT + + 81 * - 79 + + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-6390
query I rowsort
SELECT ALL + 33 + + col0 FROM tab1 AS cor0
----
118
124
84
query II rowsort
SELECT DISTINCT col2 + + 49 + - + col1 * - + 17 * - - 74 AS col1, col2 FROM tab0 AS cor0
----
101994
47
1406
99
26477
10
query I rowsort
SELECT ALL 25 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0 + - col1
----
query III rowsort
SELECT * FROM tab2 WHERE 18 + 24 - - col1 IS NULL
----
query II rowsort
SELECT DISTINCT col0 AS col1, 76 FROM tab2
----
46
76
64
76
75
76
query II rowsort
SELECT + col0 AS col0, col1 AS col2 FROM tab0
----
15
81
87
21
97
1
query II rowsort
SELECT DISTINCT - 68, col0 FROM tab2
----
-68
46
-68
64
-68
75
query II rowsort
SELECT - col0 AS col0, - col0 AS col1 FROM tab1
----
-51
-51
-85
-85
-91
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 9 AS col2, - col1 col1 FROM tab1
----
-9
-14
-9
-47
-9
-5
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-578
SELECT DISTINCT + 41 DIV 46 + COUNT( * ) col2 FROM tab0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-578
SELECT DISTINCT + 41 / 46 + COUNT ( * ) col2 FROM tab0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-579
SELECT COUNT( * ) + - 63 AS col2 FROM tab1
----
-60
skipif mysql # not compatible
query I rowsort label-579
SELECT COUNT ( * ) + - 63 AS col2 FROM tab1
----
-60
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-580
SELECT + CAST( NULL AS SIGNED ) + - AVG ( DISTINCT + 80 ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-580
SELECT + CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT + 80 ) AS col0 FROM tab1 AS cor0
----
NULL
query III rowsort
SELECT * FROM tab2 cor0 WHERE - 58 >= NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 96 >= ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-583
SELECT ALL + col0 FROM tab1 WHERE NOT - + col1 BETWEEN - CAST( NULL AS SIGNED ) AND ( - - col0 )
----
skipif mysql # not compatible
query I rowsort label-583
SELECT ALL + col0 FROM tab1 WHERE NOT - + col1 BETWEEN - CAST ( NULL AS INTEGER ) AND ( - - col0 )
----
query III rowsort
SELECT * FROM tab1 WHERE - + 32 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 / + - col1 <> + col2 * + col1
----
query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-51
-67
-77
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 29 + - col0 AND NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-588
SELECT 13 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
13
skipif mysql # not compatible
query I rowsort label-588
SELECT 13 / col1 AS col1 FROM tab0 AS cor0
----
0
0
13
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 58 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-590
SELECT ALL COUNT( DISTINCT + - col0 ) AS col0 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-590
SELECT ALL COUNT ( DISTINCT + - col0 ) AS col0 FROM tab0
----
3
query I rowsort
SELECT ALL - 79 * + 65 FROM tab1
----
-5135
-5135
-5135
query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * - - 57 * col2 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab1 WHERE NOT - 58 * - col0 - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-594
SELECT + COUNT( * ) AS col0 FROM tab0, tab2 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-594
SELECT + COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0
----
9
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT - 88 IS NULL )
----
query I rowsort
SELECT DISTINCT - - col1 * - col0 * col1 + + 25 FROM tab1 cor0
----
-200994
-2100
-9971
onlyif mysql # DIV for integer division:
query I rowsort label-597
SELECT + col1 DIV 86 col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-597
SELECT + col1 / 86 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col0 + + - ( + - col2 ) + col0 AS col1 FROM tab1 AS cor0
----
198
229
250
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-599
SELECT DISTINCT CAST( + + 17 AS SIGNED ) * + - 87 + - col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1530
NULL
-1546
NULL
-1556
NULL
skipif mysql # not compatible
query II rowsort label-599
SELECT DISTINCT CAST ( + + 17 AS INTEGER ) * + - 87 + - col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1530
NULL
-1546
NULL
-1556
NULL
query I rowsort
SELECT + 60 + + - col2 - col2 FROM tab2 AS cor0
----
-20
-56
14
query I rowsort
SELECT DISTINCT col2 + - - 40 AS col0 FROM tab1 AS cor0
----
108
136
99
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-602
SELECT - CAST( - col1 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
-37
-44
-80
skipif mysql # not compatible
query I rowsort label-602
SELECT - CAST ( - col1 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
-37
-44
-80
query I rowsort
SELECT + 32 + + + col2 AS col1 FROM tab0 cor0
----
131
42
79
query I rowsort
SELECT ALL + col1 + + - col2 FROM tab0 AS cor0
----
-98
11
34
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NOT + col2 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-606
SELECT - + 39 * + + 21 + COUNT( * ) * + 9 FROM tab2 AS cor0
----
-792
skipif mysql # not compatible
query I rowsort label-606
SELECT - + 39 * + + 21 + COUNT ( * ) * + 9 FROM tab2 AS cor0
----
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + 70 col0 FROM tab0 AS cor0 WHERE col1 + - col1 * - col0 IS NOT NULL
----
-157
-167
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, col0 col0 FROM tab2
----
-23
46
-40
64
-58
75
onlyif mysql # aggregate syntax:
query I rowsort label-609
SELECT ALL ( - - COUNT( ALL + ( col1 ) ) ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-609
SELECT ALL ( - - COUNT ( ALL + ( col1 ) ) ) FROM tab0
----
3
onlyif mysql # DIV for integer division:
query II rowsort label-610
SELECT 0 AS col2, col1 DIV col2 * - col2 AS col1 FROM tab1
----
0
0
0
0
0
0
skipif mysql # not compatible
query II rowsort label-610
SELECT 0 AS col2, col1 / col2 * - col2 AS col1 FROM tab1
----
0
0
0
0
0
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-611
SELECT ALL - CAST( NULL AS SIGNED ) + + 52 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-611
SELECT ALL - CAST ( NULL AS INTEGER ) + + 52 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-612
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE col2 + 98 / - - CAST( NULL AS SIGNED ) / + col0 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-612
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE col2 + 98 / - - CAST ( NULL AS INTEGER ) / + col0 IS NOT NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-613
SELECT + COUNT( * ) - - 9 AS col1 FROM tab0 AS cor0
----
12
skipif mysql # not compatible
query I rowsort label-613
SELECT + COUNT ( * ) - - 9 AS col1 FROM tab0 AS cor0
----
12
query I rowsort
SELECT ALL + 73 + col2 AS col2 FROM tab2 AS cor0
----
113
131
96
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT - 62 - + 87 FROM tab1 AS cor0
----
-149
-149
-149
onlyif mysql # aggregate syntax:
query I rowsort label-617
SELECT ( - - COUNT( * ) ) FROM tab1, tab2 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-617
SELECT ( - - COUNT ( * ) ) FROM tab1, tab2 AS cor0
----
9
query I rowsort
SELECT ALL + ( + 3 ) FROM tab0 AS cor0
----
3
3
3
onlyif mysql # aggregate syntax:
query I rowsort label-619
SELECT - + ( - SUM( + + col2 ) ) * - 72 FROM tab1 AS cor0
----
-16056
skipif mysql # not compatible
query I rowsort label-619
SELECT - + ( - SUM ( + + col2 ) ) * - 72 FROM tab1 AS cor0
----
-16056
query I rowsort
SELECT DISTINCT + 72 * col1 * + 71 AS col2 FROM tab2 AS cor0
----
260712
342504
393624
onlyif mysql # aggregate syntax:
query II rowsort label-621
SELECT COUNT( * ) AS col2, 25 AS col0 FROM tab1 AS cor0
----
3
25
skipif mysql # not compatible
query II rowsort label-621
SELECT COUNT ( * ) AS col2, 25 AS col0 FROM tab1 AS cor0
----
3
25
onlyif mysql # aggregate syntax:
query I rowsort label-622
SELECT MAX( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-59
skipif mysql # not compatible
query I rowsort label-622
SELECT MAX ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-59
onlyif mysql # aggregate syntax:
query I rowsort label-623
SELECT ALL + - ( - - MAX( ALL - col2 ) ) AS col2 FROM tab2 AS cor0
----
23
skipif mysql # not compatible
query I rowsort label-623
SELECT ALL + - ( - - MAX ( ALL - col2 ) ) AS col2 FROM tab2 AS cor0
----
23
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-624
SELECT ALL ( CAST( + col2 AS SIGNED ) ) AS col1 FROM tab1
----
59
68
96
skipif mysql # not compatible
query I rowsort label-624
SELECT ALL ( CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab1
----
59
68
96
onlyif mysql # aggregate syntax:
query I rowsort label-625
SELECT ALL MIN( ALL + col1 ) AS col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-625
SELECT ALL MIN ( ALL + col1 ) AS col2 FROM tab0
----
1
onlyif mysql # aggregate syntax:
query I rowsort label-626
SELECT ALL COUNT( ALL + col0 ) AS col1 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-626
SELECT ALL COUNT ( ALL + col0 ) AS col1 FROM tab1
----
3
query I rowsort
SELECT DISTINCT 92 * - 29 FROM tab1
----
-2668
query I rowsort
SELECT + - col1 * + 15 FROM tab2 AS cor0
----
-1005
-1155
-765
onlyif mysql # aggregate syntax:
query II rowsort label-629
SELECT DISTINCT + MIN( DISTINCT col2 ), 41 AS col0 FROM tab1 AS cor0
----
59
41
skipif mysql # not compatible
query II rowsort label-629
SELECT DISTINCT + MIN ( DISTINCT col2 ), 41 AS col0 FROM tab1 AS cor0
----
59
41
query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT - 40 IS NOT NULL
----
query I rowsort
SELECT DISTINCT - 24 + col0 FROM tab2
----
22
40
51
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > + col2 + - 7
----
query I rowsort
SELECT DISTINCT + col1 + - + col0 FROM tab1 AS cor0
----
-37
-44
-80
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-634
SELECT - + 60 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( - ( 95 ) - - CAST( NULL AS SIGNED ), col0 + + col1, + col0, - 41, - 13 - col0, + col1 + col1, + col2 + - 12 )
----
skipif mysql # not compatible
query I rowsort label-634
SELECT - + 60 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( - ( 95 ) - - CAST ( NULL AS INTEGER ), col0 + + col1, + col0, - 41, - 13 - col0, + col1 + col1, + col2 + - 12 )
----
query II rowsort
SELECT + col2, - col0 * - col0 * - - ( + col0 ) + + col2 FROM tab1 AS cor0
----
59
614184
68
753639
96
132747
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + col0 * - - col1 + - + col1 <> NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-637
SELECT COUNT( DISTINCT - 89 ) FROM tab2 cor0
----
1
skipif mysql # not compatible
query I rowsort label-637
SELECT COUNT ( DISTINCT - 89 ) FROM tab2 cor0
----
1
onlyif mysql # aggregate syntax:
query I rowsort label-638
SELECT DISTINCT COUNT( * ) col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-638
SELECT DISTINCT COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-639
SELECT DISTINCT 97 - + - ( - COUNT( * ) ) AS col2 FROM tab0
----
94
skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT 97 - + - ( - COUNT ( * ) ) AS col2 FROM tab0
----
94
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-640
SELECT + CAST( NULL AS SIGNED ) - + COUNT( * ) * + 11 - + + COUNT( * ) * ( + COUNT( DISTINCT - + col0 ) ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-640
SELECT + CAST ( NULL AS INTEGER ) - + COUNT ( * ) * + 11 - + + COUNT ( * ) * ( + COUNT ( DISTINCT - + col0 ) ) FROM tab1
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-641
SELECT ALL + ( - - 54 ) * - + ( + COUNT( * ) ) + - 59 AS col0 FROM tab1
----
-221
skipif mysql # not compatible
query I rowsort label-641
SELECT ALL + ( - - 54 ) * - + ( + COUNT ( * ) ) + - 59 AS col0 FROM tab1
----
-221
onlyif mysql # DIV for integer division:
query I rowsort label-642
SELECT ALL + col2 DIV - + 76 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-642
SELECT ALL + col2 / - + 76 FROM tab0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 * + col0 col2 FROM tab1
----
-132651
-614125
-753571
query I rowsort
SELECT 9 FROM tab1 WHERE ( col0 IS NOT NULL )
----
9
9
9
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 21 - - - col2 IS NULL
----
query I rowsort
SELECT - - col1 + - + col1 * - col0 AS col1 FROM tab0 AS cor0
----
1296
1848
98
query I rowsort
SELECT ALL + + 62 * col2 + + 20 AS col2 FROM tab0 AS cor0
----
2934
6158
640
query I rowsort
SELECT ALL - 37 FROM tab1 WHERE + col0 + + - col0 IS NOT NULL
----
-37
-37
-37
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-649
SELECT 26 + - 39 + 54 - + - ( + + 56 ) + CAST( NULL AS DECIMAL ) - - - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-649
SELECT 26 + - 39 + 54 - + - ( + + 56 ) + CAST ( NULL AS REAL ) - - - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-650
SELECT ALL - COUNT( - 30 ) + + - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-18
skipif mysql # not compatible
query I rowsort label-650
SELECT ALL - COUNT ( - 30 ) + + - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-18
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 17 IN ( + 18 )
----
query I rowsort
SELECT DISTINCT - - 14 FROM tab0 cor0
----
14
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-653
SELECT + + ( CAST( NULL AS SIGNED ) ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-653
SELECT + + ( CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query II rowsort label-654
SELECT + - 45 DIV 18 DIV - col0, + col1 DIV 38 AS col0 FROM tab0 AS cor0
----
0
0
0
0
0
2
skipif mysql # not compatible
query II rowsort label-654
SELECT + - 45 / 18 / - col0, + col1 / 38 AS col0 FROM tab0 AS cor0
----
0
0
0
0
0
2
query I rowsort
SELECT ALL - 48 FROM tab2 AS cor0 WHERE NOT ( - - col2 ) IS NULL
----
-48
-48
-48
query I rowsort
SELECT + 9 * col2 * 29 - col1 FROM tab1 cor0
----
15394
17701
25042
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 col1 FROM tab0 AS cor0
----
-42
-42
-42
onlyif mysql # aggregate syntax:
query I rowsort label-658
SELECT - - COUNT( ALL - col2 ) * + 24 AS col0 FROM tab2 AS cor0
----
72
skipif mysql # not compatible
query I rowsort label-658
SELECT - - COUNT ( ALL - col2 ) * + 24 AS col0 FROM tab2 AS cor0
----
72
query I rowsort
SELECT - ( 62 ) FROM tab1 AS cor0
----
-62
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 77 col0, col0 * - 40 col2 FROM tab0 AS cor0
----
77
-3480
77
-3880
77
-600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, + col1 col1 FROM tab2
----
46
51
64
77
75
67
onlyif mysql # aggregate syntax:
query I rowsort label-662
SELECT DISTINCT - ( - - COUNT( - 0 ) ) FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT - ( - - COUNT ( - 0 ) ) FROM tab1
----
-3
query I rowsort
SELECT - col1 + + 39 FROM tab0
----
-42
18
38
query II rowsort
SELECT ALL col1, col1 + 36 FROM tab0
----
1
37
21
57
81
117
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-665
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * 72 * + col2 * + col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 72 * + col2 * + col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-666
SELECT - COUNT( * ) FROM tab1 cor0 WHERE NOT 80 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-666
SELECT - COUNT ( * ) FROM tab1 cor0 WHERE NOT 80 IS NOT NULL
----
0
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-667
SELECT + - ( 29 ) col2, - col1 + + col1 * CAST( NULL AS DECIMAL ) + col0 FROM tab2 AS cor0
----
-29
NULL
-29
NULL
-29
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-667
SELECT + - ( 29 ) col2, - col1 + + col1 * CAST ( NULL AS REAL ) + col0 FROM tab2 AS cor0
----
-29
NULL
-29
NULL
-29
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-668
SELECT ALL - + col1 DIV - col1 + + - 40 * - 71 FROM tab2 AS cor0
----
2841
2841
2841
skipif mysql # not compatible
query I rowsort label-668
SELECT ALL - + col1 / - col1 + + - 40 * - 71 FROM tab2 AS cor0
----
2841
2841
2841
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-669
SELECT DISTINCT + 66 AS col2, 14 * col2 - CAST( + - ( + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
66
1358
66
831
66
999
skipif mysql # not compatible
query II rowsort label-669
SELECT DISTINCT + 66 AS col2, 14 * col2 - CAST ( + - ( + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
66
1358
66
831
66
999
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-670
SELECT + MIN( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-670
SELECT + MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) NOT IN ( 12 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 36 - + - 36 col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # DIV for integer division:
query II rowsort label-673
SELECT ALL - col0 DIV - col1 + + 2 AS col0, 21 FROM tab0
----
2
21
6
21
99
21
skipif mysql # not compatible
query II rowsort label-673
SELECT ALL - col0 / - col1 + + 2 AS col0, 21 FROM tab0
----
2
21
6
21
99
21
query I rowsort
SELECT 25 + ( - + col0 ) FROM tab1
----
-26
-60
-66
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= + 81
----
onlyif mysql # aggregate syntax:
query I rowsort label-676
SELECT + 8 + - COUNT( * ) FROM tab1 AS cor0
----
5
skipif mysql # not compatible
query I rowsort label-676
SELECT + 8 + - COUNT ( * ) FROM tab1 AS cor0
----
5
onlyif mysql # aggregate syntax:
query I rowsort label-677
SELECT - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-677
SELECT - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----
0
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-678
SELECT + col1 + + 80 / + CAST( NULL AS DECIMAL ) + + col1 / col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-678
SELECT + col1 + + 80 / + CAST ( NULL AS REAL ) + + col1 / col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 - - + 64 AS col0 FROM tab2 AS cor0
----
104
122
87
query I rowsort
SELECT DISTINCT - col1 + - 56 + - 94 FROM tab0 AS cor0
----
-151
-171
-231
onlyif mysql # aggregate syntax:
query I rowsort label-681
SELECT - 54 + COUNT( * ) AS col0 FROM tab2
----
-51
skipif mysql # not compatible
query I rowsort label-681
SELECT - 54 + COUNT ( * ) AS col0 FROM tab2
----
-51
query I rowsort
SELECT ALL col0 + - col0 + col0 AS col2 FROM tab2
----
46
64
75
onlyif mysql # aggregate syntax:
query I rowsort label-683
SELECT + MIN( 5 ) FROM tab0
----
5
skipif mysql # not compatible
query I rowsort label-683
SELECT + MIN ( 5 ) FROM tab0
----
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 - + 6 * col2 col0 FROM tab0
----
-214
-526
8
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-685
SELECT CAST( - CAST( + col1 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2
----
-51
-67
-77
skipif mysql # not compatible
query I rowsort label-685
SELECT CAST ( - CAST ( + col1 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2
----
-51
-67
-77
onlyif mysql # DIV for integer division:
query I rowsort label-686
SELECT ALL - 41 DIV + + col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-686
SELECT ALL - 41 / + + col1 FROM tab2
----
0
0
0
query II rowsort
SELECT - 39 * - col1 - col0 + + col2, ( col2 ) FROM tab2 AS cor0
----
1966
23
2596
58
2979
40
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-688
SELECT CAST( NULL AS SIGNED ) - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-688
SELECT CAST ( NULL AS INTEGER ) - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query II rowsort
SELECT ALL - 8, + col2 FROM tab0 AS cor0
----
-8
10
-8
47
-8
99
onlyif mysql # DIV for integer division:
query I rowsort label-690
SELECT ALL - ( col1 ) DIV col1 col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-690
SELECT ALL - ( col1 ) / col1 col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT + 75 * - col0 AS col0 FROM tab1 AS cor0
----
-3825
-6375
-6825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 col2 FROM tab2 AS cor0
----
96
onlyif mysql # aggregate syntax:
query I rowsort label-693
SELECT ALL + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----
0
skipif mysql # not compatible
query I rowsort label-693
SELECT ALL + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-694
SELECT CAST( + col1 AS SIGNED ) * + + col1 AS col2 FROM tab2 cor0
----
2601
4489
5929
skipif mysql # not compatible
query I rowsort label-694
SELECT CAST ( + col1 AS INTEGER ) * + + col1 AS col2 FROM tab2 cor0
----
2601
4489
5929
onlyif mysql # aggregate syntax:
query I rowsort label-695
SELECT + - ( - COUNT( * ) ) * + + COUNT( * ) * 20 FROM tab2 AS cor0
----
180
skipif mysql # not compatible
query I rowsort label-695
SELECT + - ( - COUNT ( * ) ) * + + COUNT ( * ) * 20 FROM tab2 AS cor0
----
180
query I rowsort
SELECT DISTINCT col1 * 49 + + col1 FROM tab2 cor0
----
2550
3350
3850
query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - - ( + + col2 ) ) + - 21 + - col0 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-698
SELECT ALL + + MIN( ALL + + col0 ) FROM tab2 cor0
----
46
skipif mysql # not compatible
query I rowsort label-698
SELECT ALL + + MIN ( ALL + + col0 ) FROM tab2 cor0
----
46
onlyif mysql # aggregate syntax:
query I rowsort label-699
SELECT ALL - COUNT( * ) * + 12 AS col0 FROM tab0
----
-36
skipif mysql # not compatible
query I rowsort label-699
SELECT ALL - COUNT ( * ) * + 12 AS col0 FROM tab0
----
-36
query II rowsort
SELECT ALL - + col1, - col0 AS col0 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= - ( 49 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-702
SELECT DISTINCT + SUM( + ( - col1 ) ) + 3 + - MAX( + - col1 ) FROM tab2 AS cor0
----
-141
skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT + SUM ( + ( - col1 ) ) + 3 + - MAX ( + - col1 ) FROM tab2 AS cor0
----
-141
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-703
SELECT * FROM tab2 AS cor0 WHERE 74 <= CAST( col2 AS SIGNED ) + - 17 - - - 50 / - col1
----
skipif mysql # not compatible
query III rowsort label-703
SELECT * FROM tab2 AS cor0 WHERE 74 <= CAST ( col2 AS INTEGER ) + - 17 - - - 50 / - col1
----
query I rowsort
SELECT DISTINCT + + col2 + - - col1 FROM tab2 AS cor0
----
117
125
74
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= - ( - col1 )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 30 BETWEEN NULL AND - ( + 83 ) / + 69 / + 77
----
onlyif mysql # aggregate syntax:
query I rowsort label-707
SELECT + COUNT( * ) - + 33 AS col0 FROM tab0 cor0
----
-30
skipif mysql # not compatible
query I rowsort label-707
SELECT + COUNT ( * ) - + 33 AS col0 FROM tab0 cor0
----
-30
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-708
SELECT + ( - - CAST( + col0 AS SIGNED ) ) - + - ( - col0 ) col2, 95 AS col2 FROM tab2
----
0
95
0
95
0
95
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-708
SELECT + ( - - CAST ( + col0 AS INTEGER ) ) - + - ( - col0 ) col2, 95 AS col2 FROM tab2
----
0
95
0
95
0
95
query I rowsort
SELECT ALL 32 - + col1 FROM tab2
----
-19
-35
-45
onlyif mysql # aggregate syntax:
query I rowsort label-710
SELECT 76 - - - COUNT( * ) + + MIN( ALL + col0 ) AS col2 FROM tab0
----
88
skipif mysql # not compatible
query I rowsort label-710
SELECT 76 - - - COUNT ( * ) + + MIN ( ALL + col0 ) AS col2 FROM tab0
----
88
query I rowsort
SELECT DISTINCT col2 * - + 33 + + col2 FROM tab0
----
-1504
-3168
-320
query I rowsort
SELECT - 78 AS col1 FROM tab1 WHERE - col0 IS NOT NULL
----
-78
-78
-78
query I rowsort
SELECT + col2 + + 88 FROM tab0
----
135
187
98
query I rowsort
SELECT + 89 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + + 8 col0 FROM tab1
----
104
67
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 + 54 col0 FROM tab2
----
78
78
78
query II rowsort
SELECT DISTINCT - col0 - - + 5 AS col0, + col2 * col0 AS col0 FROM tab0
----
-10
705
-82
870
-92
9603
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-718
SELECT ALL col2 * - CAST( NULL AS SIGNED ) * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-718
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 29 AS col0 FROM tab1 AS cor0
----
29
query I rowsort
SELECT col1 * + - 3 FROM tab0 AS cor0
----
-243
-3
-63
onlyif mysql # DIV for integer division:
query I rowsort label-721
SELECT ALL + 27 DIV 14 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-721
SELECT ALL + 27 / 14 AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + - 0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT - 53 IS NULL )
----
0
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 79 * col2 > NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-724
SELECT ALL - AVG ( DISTINCT col2 ) * - - ( - ( + MAX( ALL + col2 ) ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-724
SELECT ALL - AVG ( DISTINCT col2 ) * - - ( - ( + MAX ( ALL + col2 ) ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL
query I rowsort
SELECT DISTINCT + 76 + col2 AS col0 FROM tab1 cor0
----
135
144
172
query I rowsort
SELECT DISTINCT ( + 80 ) AS col0 FROM tab0 AS cor0
----
80
onlyif mysql # aggregate syntax:
query I rowsort label-727
SELECT - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-727
SELECT - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9
onlyif mysql # DIV for integer division:
query I rowsort label-728
SELECT DISTINCT - - 92 DIV + col2 FROM tab2 cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-728
SELECT DISTINCT - - 92 / + col2 FROM tab2 cor0
----
1
2
4
onlyif mysql # DIV for integer division:
query I rowsort label-729
SELECT - + col2 DIV + - 41 col0 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-729
SELECT - + col2 / + - 41 col0 FROM tab2 AS cor0
----
0
0
1
onlyif mysql # DIV for integer division:
query I rowsort label-730
SELECT + 46 DIV - col1 + + col1 FROM tab0 AS cor0
----
-45
19
81
skipif mysql # not compatible
query I rowsort label-730
SELECT + 46 / - col1 + + col1 FROM tab0 AS cor0
----
-45
19
81
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-731
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT - ( - - col0 ) * CAST( NULL AS SIGNED ) NOT IN ( - + col2, CAST( NULL AS SIGNED ) )
----
skipif mysql # not compatible
query I rowsort label-731
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT - ( - - col0 ) * CAST ( NULL AS INTEGER ) NOT IN ( - + col2, CAST ( NULL AS INTEGER ) )
----
query II rowsort
SELECT DISTINCT - 61 AS col1, col0 FROM tab1 WHERE NULL <= - 45
----
onlyif mysql # aggregate syntax:
query I rowsort label-733
SELECT - SUM( DISTINCT + 79 ) FROM tab1 WHERE NULL = + col0
----
NULL
skipif mysql # not compatible
query I rowsort label-733
SELECT - SUM ( DISTINCT + 79 ) FROM tab1 WHERE NULL = + col0
----
NULL
query I rowsort
SELECT DISTINCT - + col2 + + + col0 * - col1 + ( col0 ) FROM tab2 AS cor0
----
-2323
-4904
-5008
query I rowsort
SELECT DISTINCT + 42 + - col1 * - col2 FROM tab2 AS cor0
----
1215
3122
3928
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-736
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 31 / - 26 + 30 + - + col0 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 31 / - 26 + 30 + - + col0 AS col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-737
SELECT ALL + MAX( DISTINCT - 14 ) FROM tab0
----
-14
skipif mysql # not compatible
query I rowsort label-737
SELECT ALL + MAX ( DISTINCT - 14 ) FROM tab0
----
-14
onlyif mysql # aggregate syntax:
query I rowsort label-738
SELECT ALL 76 + + + SUM( DISTINCT + col2 ) + + COUNT( * ) FROM tab1 cor0
----
302
skipif mysql # not compatible
query I rowsort label-738
SELECT ALL 76 + + + SUM ( DISTINCT + col2 ) + + COUNT ( * ) FROM tab1 cor0
----
302
query I rowsort
SELECT - 43 + + col2 + + 48 * + - 1 FROM tab2 AS cor0
----
-33
-51
-68
onlyif mysql # aggregate syntax:
query I rowsort label-740
SELECT DISTINCT + ( MAX( ALL col0 ) ) + + ( + 65 ) + - + 31 col0 FROM tab1 AS cor0
----
125
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-740
SELECT DISTINCT + ( MAX ( ALL col0 ) ) + + ( + 65 ) + - + 31 col0 FROM tab1 AS cor0
----
125
onlyif mysql # aggregate syntax:
query I rowsort label-741
SELECT - - COUNT( * ) + + MIN( + col0 ) AS col1 FROM tab1 AS cor0
----
54
skipif mysql # not compatible
query I rowsort label-741
SELECT - - COUNT ( * ) + + MIN ( + col0 ) AS col1 FROM tab1 AS cor0
----
54
query II rowsort
SELECT ALL - - col0 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68
query I rowsort
SELECT + - 78 + - + col1 FROM tab2 AS cor0
----
-129
-145
-155
onlyif mysql # aggregate syntax:
query I rowsort label-744
SELECT ALL - MIN( DISTINCT col1 ) + - MAX( ALL + col2 ) FROM tab2 AS cor0
----
-109
skipif mysql # not compatible
query I rowsort label-744
SELECT ALL - MIN ( DISTINCT col1 ) + - MAX ( ALL + col2 ) FROM tab2 AS cor0
----
-109
onlyif mysql # aggregate syntax:
query I rowsort label-745
SELECT - COUNT( - ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-745
SELECT - COUNT ( - ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
-3
onlyif mysql # DIV for integer division:
query I rowsort label-746
SELECT 62 DIV col2 AS col1 FROM tab2 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-746
SELECT 62 / col2 AS col1 FROM tab2 AS cor0
----
1
1
2
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > + col0 * col2 * 0 + + + col2
----
query I rowsort
SELECT - col0 + - 87 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-133
-151
-162
onlyif mysql # aggregate syntax:
query I rowsort label-749
SELECT DISTINCT + SUM( DISTINCT - + 25 ) FROM tab2
----
-25
skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT + SUM ( DISTINCT - + 25 ) FROM tab2
----
-25
query II rowsort
SELECT DISTINCT 32 AS col2, + ( + - 11 ) FROM tab0
----
32
-11
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 = - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT + 87 * - col0 * - - ( - col1 ) FROM tab2 AS cor0
----
204102
428736
437175
query I rowsort
SELECT ALL + col2 * - + 11 + - 89 FROM tab1 AS cor0
----
-1145
-738
-837
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-754
SELECT - col2 * - col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-754
SELECT - col2 * - col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 53 * col1 + - col1 + - + 4 AS col1 FROM tab1 AS cor0
----
-2542
-274
-760
onlyif mysql # aggregate syntax:
query I rowsort label-756
SELECT COUNT( * ) * + + 2 AS col1 FROM tab2 AS cor0
----
6
skipif mysql # not compatible
query I rowsort label-756
SELECT COUNT ( * ) * + + 2 AS col1 FROM tab2 AS cor0
----
6
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + col1 IS NOT NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT - 80 * 82 * col2 / - col1 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-759
SELECT + SUM( ALL + 21 ) AS col0 FROM tab0
----
63
skipif mysql # not compatible
query I rowsort label-759
SELECT + SUM ( ALL + 21 ) AS col0 FROM tab0
----
63
query I rowsort
SELECT ALL - col1 * - - col1 FROM tab0 cor0 WHERE col1 + + 58 IS NOT NULL
----
-1
-441
-6561
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) NOT BETWEEN - 85 - - 27 AND col2 - + 40 * 92
----
onlyif mysql # DIV for integer division:
query I rowsort label-762
SELECT DISTINCT - col1 DIV - 74 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT - col1 / - 74 AS col0 FROM tab1 AS cor0
----
0
query II rowsort
SELECT + 87 AS col0, 8 FROM tab1
----
87
8
87
8
87
8
query I rowsort
SELECT col0 FROM tab2 WHERE ( NULL ) >= col2 + - col0
----
query I rowsort
SELECT col2 * + 82 * + 36 FROM tab2
----
118080
171216
67896
query I rowsort
SELECT ALL + col1 * + 27 AS col2 FROM tab0
----
2187
27
567
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-767
SELECT + MIN( + ( - col1 ) ) DIV COUNT( * ) AS col0 FROM tab2
----
-25
skipif mysql # not compatible
query I rowsort label-767
SELECT + MIN ( + ( - col1 ) ) / COUNT ( * ) AS col0 FROM tab2
----
-25
query I rowsort
SELECT DISTINCT 6 + - col1 FROM tab2
----
-45
-61
-71
onlyif mysql # aggregate syntax:
query I rowsort label-769
SELECT + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----
0
skipif mysql # not compatible
query I rowsort label-769
SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----
0
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-770
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + - 73 IS NULL AND NOT CAST( - ( - col0 ) AS SIGNED ) IS NULL
----
skipif mysql # not compatible
query III rowsort label-770
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + - 73 IS NULL AND NOT CAST ( - ( - col0 ) AS INTEGER ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-771
SELECT DISTINCT 73 + + SUM( 55 ) FROM tab0 AS cor0
----
238
skipif mysql # not compatible
query I rowsort label-771
SELECT DISTINCT 73 + + SUM ( 55 ) FROM tab0 AS cor0
----
238
query I rowsort
SELECT DISTINCT col0 * + + col2 + - 3 FROM tab0 AS cor0
----
702
867
9600
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 51 + + 21 )
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 NOT IN ( ( + + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-775
SELECT DISTINCT + + col1 * - - 73 - - col2 * + + col0 / - + CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-775
SELECT DISTINCT + + col1 * - - 73 - - col2 * + + col0 / - + CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - col2 * - + 81 + + + 95 FROM tab2
----
1958
3335
4793
query I rowsort
SELECT col1 * 57 AS col2 FROM tab0
----
1197
4617
57
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 42 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-779
SELECT DISTINCT - MAX( ALL + - 41 ) AS col1 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT - MAX ( ALL + - 41 ) AS col1 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col2 FROM tab1 AS cor0
----
73
73
73
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-781
SELECT col1, - CAST( NULL AS SIGNED ) * + col1 FROM tab2
----
51
NULL
67
NULL
77
NULL
skipif mysql # not compatible
query II rowsort label-781
SELECT col1, - CAST ( NULL AS INTEGER ) * + col1 FROM tab2
----
51
NULL
67
NULL
77
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-782
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL > - 33 + + - 96
----
0
skipif mysql # not compatible
query I rowsort label-782
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL > - 33 + + - 96
----
0
query II rowsort
SELECT col0, col0 * + - ( - col1 ) FROM tab2
----
46
2346
64
4928
75
5025
query II rowsort
SELECT 80 AS col2, col0 + + - col0 * + 68 * - col1 FROM tab1
----
80
28985
80
290927
80
48603
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + col1 * - col2 + + 87 + - 68 * + ( + col1 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-786
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT + 18 = + + 81
----
NULL
skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT + 18 = + + 81
----
NULL
query I rowsort
SELECT DISTINCT - - col1 * - col0 + + + col2 + + col1 AS col0 FROM tab1 AS cor0
----
-361
-4162
-604
query II rowsort
SELECT DISTINCT - col0, 68 AS col0 FROM tab0
----
-15
68
-87
68
-97
68
onlyif mysql # aggregate syntax:
query I rowsort label-789
SELECT + - 18 * - - 97 - + + 27 * - - COUNT( * ) * - COUNT( * ) * - 82 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-181080
skipif mysql # not compatible
query I rowsort label-789
SELECT + - 18 * - - 97 - + + 27 * - - COUNT ( * ) * - COUNT ( * ) * - 82 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-181080
query II rowsort
SELECT ALL - 59, + col2 FROM tab0
----
-59
10
-59
47
-59
99
query I rowsort
SELECT - 13 FROM tab1 AS cor0 WHERE NOT + col1 * - - 54 <> NULL
----
query II rowsort
SELECT + - col2 AS col2, 53 * - + col2 FROM tab2 AS cor0
----
-23
-1219
-40
-2120
-58
-3074
query I rowsort
SELECT DISTINCT + + col0 + + - col0 FROM tab0 AS cor0
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-794
SELECT - col2 * col2 * - - col1 DIV col1 + 98 AS col0 FROM tab1 AS cor0
----
-3383
-4526
-9118
skipif mysql # not compatible
query I rowsort label-794
SELECT - col2 * col2 * - - col1 / col1 + 98 AS col0 FROM tab1 AS cor0
----
-3383
-4526
-9118
query I rowsort
SELECT ALL + col0 + - + col1 FROM tab2 AS cor0
----
-13
-5
8
onlyif mysql # DIV for integer division:
query I rowsort label-796
SELECT - col1 DIV - col2 + - + 4 * col2 - - 78 FROM tab0 AS cor0 WHERE ( ( + col2 ) ) * + col2 IS NOT NULL
----
-109
-318
40
skipif mysql # not compatible
query I rowsort label-796
SELECT - col1 / - col2 + - + 4 * col2 - - 78 FROM tab0 AS cor0 WHERE ( ( + col2 ) ) * + col2 IS NOT NULL
----
-109
-318
40
onlyif mysql # aggregate syntax:
query I rowsort label-797
SELECT + COUNT( * ) + + COUNT( * ) + + 83 FROM tab1
----
89
skipif mysql # not compatible
query I rowsort label-797
SELECT + COUNT ( * ) + + COUNT ( * ) + + 83 FROM tab1
----
89
query I rowsort
SELECT + col0 FROM tab0 WHERE NULL NOT IN ( col2, 83 )
----
query III rowsort
SELECT * FROM tab1 WHERE ( NOT - 79 = NULL )
----
query I rowsort
SELECT DISTINCT 49 + - col0 AS col1 FROM tab2
----
-15
-26
3
query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE + ( + + 70 ) < + 10 + col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-802
SELECT 50 + - COUNT( * ) AS col1 FROM tab0
----
47
skipif mysql # not compatible
query I rowsort label-802
SELECT 50 + - COUNT ( * ) AS col1 FROM tab0
----
47
query I rowsort
SELECT col0 + + - 20 AS col2 FROM tab0
----
-5
67
77
query II rowsort
SELECT DISTINCT - - 12, col2 - - col1 AS col2 FROM tab0 AS cor0
----
12
100
12
128
12
31
query II rowsort
SELECT - 15, col2 FROM tab0 AS cor0
----
-15
10
-15
47
-15
99
query I rowsort
SELECT col1 * - + col2 * col0 FROM tab1 AS cor0
----
-25075
-290836
-68544
query I rowsort
SELECT + col0 * + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1058
2560
4350
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col0, - col2 AS col2 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99
query II rowsort
SELECT ALL - ( - + col1 ) + + ( 51 ) AS col0, col1 FROM tab2 AS cor0 WHERE NOT + 39 * + col0 BETWEEN + col1 AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 39 + + - 51 IS NOT NULL
----
query II rowsort
SELECT + + col0, 86 + - col1 AS col1 FROM tab1 AS cor0
----
51
72
85
81
91
39
onlyif mysql # aggregate syntax:
query I rowsort label-812
SELECT ALL MIN( DISTINCT - 91 ) FROM tab2
----
-91
skipif mysql # not compatible
query I rowsort label-812
SELECT ALL MIN ( DISTINCT - 91 ) FROM tab2
----
-91
query I rowsort
SELECT DISTINCT + - 49 AS col2 FROM tab2 WHERE NULL <= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-814
SELECT DISTINCT COUNT( ALL + 5 ) AS col2 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT COUNT ( ALL + 5 ) AS col2 FROM tab1
----
3
query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 * + col1 * + + col1 + - - col2 IS NULL
----
query II rowsort
SELECT ( + col0 ) AS col2, col1 AS col1 FROM tab0
----
15
81
87
21
97
1
query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + 57 + + 25 - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-818
SELECT ALL COUNT( DISTINCT col1 ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-818
SELECT ALL COUNT ( DISTINCT col1 ) FROM tab1 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-819
SELECT - - COUNT( DISTINCT 99 ) FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-819
SELECT - - COUNT ( DISTINCT 99 ) FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----
0
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN - + col0 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT - 79 * 1 AS col1 FROM tab1
----
-79
-79
-79
onlyif mysql # aggregate syntax:
query I rowsort label-822
SELECT ALL 94 * + - COUNT( * ) FROM tab2
----
-282
skipif mysql # not compatible
query I rowsort label-822
SELECT ALL 94 * + - COUNT ( * ) FROM tab2
----
-282
query II rowsort
SELECT DISTINCT col1 AS col1, 74 FROM tab2
----
51
74
67
74
77
74
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-824
SELECT - CAST( - ( - MIN( - col1 ) ) AS SIGNED ) + - + 92 FROM tab0
----
-11
skipif mysql # not compatible
query I rowsort label-824
SELECT - CAST ( - ( - MIN ( - col1 ) ) AS INTEGER ) + - + 92 FROM tab0
----
-11
onlyif mysql # aggregate syntax:
query I rowsort label-825
SELECT DISTINCT COUNT( * ) * + - 2 + - COUNT( DISTINCT - 64 ) + + 79 + + 15 + - - COUNT( * ) * + 71 FROM tab0 AS cor0
----
300
skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT COUNT ( * ) * + - 2 + - COUNT ( DISTINCT - 64 ) + + 79 + + 15 + - - COUNT ( * ) * + 71 FROM tab0 AS cor0
----
300
query II rowsort
SELECT + col1 AS col1, + col1 FROM tab0 cor0
----
1
1
21
21
81
81
query I rowsort
SELECT ALL + + col1 * + 91 + - + col0 AS col1 FROM tab0 AS cor0
----
-6
1824
7356
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 96 / 2 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-829
SELECT + - ( + - CAST( + - col0 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97
skipif mysql # not compatible
query I rowsort label-829
SELECT + - ( + - CAST ( + - col0 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97
onlyif mysql # aggregate syntax:
query I rowsort label-830
SELECT DISTINCT + COUNT( * ) * - 49 FROM tab0 AS cor0
----
-147
skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT + COUNT ( * ) * - 49 FROM tab0 AS cor0
----
-147
onlyif mysql # aggregate syntax:
query I rowsort label-831
SELECT ALL COUNT( + 29 ) AS col2 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-831
SELECT ALL COUNT ( + 29 ) AS col2 FROM tab2
----
3
query I rowsort
SELECT + col2 * - 85 AS col2 FROM tab2
----
-1955
-3400
-4930
onlyif mysql # aggregate syntax:
query I rowsort label-833
SELECT DISTINCT COUNT( * ) * 58 FROM tab1
----
174
skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT COUNT ( * ) * 58 FROM tab1
----
174
onlyif mysql # DIV for integer division:
query I rowsort label-834
SELECT + 80 - + + 51 DIV + col2 FROM tab2
----
78
79
80
skipif mysql # not compatible
query I rowsort label-834
SELECT + 80 - + + 51 / + col2 FROM tab2
----
78
79
80
query I rowsort
SELECT ALL 58 * + 69 FROM tab0
----
4002
4002
4002
query I rowsort
SELECT + 46 + + col2 FROM tab2
----
104
69
86
query III rowsort
SELECT * FROM tab1 WHERE + 81 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-838
SELECT + AVG ( ALL + - 95 ) + - CAST( NULL AS SIGNED ) - + + 1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-838
SELECT + AVG ( ALL + - 95 ) + - CAST ( NULL AS INTEGER ) - + + 1 FROM tab1
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-839
SELECT DISTINCT - COUNT( ALL - 90 ) AS col0 FROM tab1 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT - COUNT ( ALL - 90 ) AS col0 FROM tab1 cor0
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-840
SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----
skipif mysql # not compatible
query I rowsort label-840
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----
query II rowsort
SELECT ALL ( + 5 ) - - col0 + - + 60 AS col2, 48 AS col2 FROM tab0 AS cor0
----
-40
48
32
48
42
48
query I rowsort
SELECT DISTINCT - col2 - col0 * col0 FROM tab0
----
-272
-7579
-9508
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-843
SELECT DISTINCT col0 - col1 AS col0, CAST( NULL AS SIGNED ) + + - 21 AS col2 FROM tab0
----
-66
NULL
66
NULL
96
NULL
skipif mysql # not compatible
query II rowsort label-843
SELECT DISTINCT col0 - col1 AS col0, CAST ( NULL AS INTEGER ) + + - 21 AS col2 FROM tab0
----
-66
NULL
66
NULL
96
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-844
SELECT DISTINCT SUM( ALL 95 ) FROM tab1
----
285
skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT SUM ( ALL 95 ) FROM tab1
----
285
onlyif mysql # aggregate syntax:
query II rowsort label-845
SELECT ALL - + COUNT( * ) AS col0, 8 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 12 IS NULL
----
-9
8
skipif mysql # not compatible
query II rowsort label-845
SELECT ALL - + COUNT ( * ) AS col0, 8 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 12 IS NULL
----
-9
8
query I rowsort
SELECT DISTINCT - - 86 FROM tab1 AS cor0
----
86
query I rowsort
SELECT ALL - + 89 FROM tab0 cor0
----
-89
-89
-89
onlyif mysql # aggregate syntax:
query I rowsort label-848
SELECT ALL - COUNT( * ) * + ( MAX( ALL + col2 ) ) - MIN( ALL col1 ) col2 FROM tab2 AS cor0
----
-225
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-848
SELECT ALL - COUNT ( * ) * + ( MAX ( ALL + col2 ) ) - MIN ( ALL col1 ) col2 FROM tab2 AS cor0
----
-225
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-849
SELECT - - CAST( + - 59 AS SIGNED ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
-59
3
skipif mysql # not compatible
query II rowsort label-849
SELECT - - CAST ( + - 59 AS INTEGER ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-59
3
onlyif mysql # aggregate syntax:
query I rowsort label-850
SELECT + ( + - SUM( - 80 ) ) col0 FROM tab1 cor0
----
240
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-850
SELECT + ( + - SUM ( - 80 ) ) col0 FROM tab1 cor0
----
240
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <= - 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-852
SELECT - COUNT( * ) DIV SUM( - 6 ) AS col0 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-852
SELECT - COUNT ( * ) / SUM ( - 6 ) AS col0 FROM tab2
----
0
query I rowsort
SELECT ALL + 33 / - + 5 FROM tab1 WHERE - 51 IS NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-854
SELECT 90 * + - CAST( + + COUNT( + 12 ) AS SIGNED ) AS col2 FROM tab1 WHERE NOT col0 IS NULL
----
-270
skipif mysql # not compatible
query I rowsort label-854
SELECT 90 * + - CAST ( + + COUNT ( + 12 ) AS INTEGER ) AS col2 FROM tab1 WHERE NOT col0 IS NULL
----
-270
query I rowsort
SELECT 15 * col2 FROM tab0 AS cor0
----
1485
150
705
query I rowsort
SELECT + 87 * + col0 AS col2 FROM tab1 AS cor0
----
4437
7395
7917
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-857
SELECT + ( ( - - CAST( + col2 AS SIGNED ) ) ) * col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886
skipif mysql # not compatible
query I rowsort label-857
SELECT + ( ( - - CAST ( + col2 AS INTEGER ) ) ) * col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886
query I rowsort
SELECT 42 AS col1 FROM tab2 WHERE col1 + + ( col2 + 87 * + 45 ) * + col1 <= NULL
----
query I rowsort
SELECT DISTINCT + 77 * - col1 AS col2 FROM tab2
----
-3927
-5159
-5929
query I rowsort
SELECT + col2 - + 12 * col2 FROM tab1
----
-1056
-649
-748
onlyif mysql # aggregate syntax:
query I rowsort label-861
SELECT COUNT( + col1 ) col1 FROM tab0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-861
SELECT COUNT ( + col1 ) col1 FROM tab0
----
3
onlyif mysql # DIV for integer division:
query I rowsort label-862
SELECT - col1 DIV + col0 + + col1 AS col2 FROM tab1
----
14
47
5
skipif mysql # not compatible
query I rowsort label-862
SELECT - col1 / + col0 + + col1 AS col2 FROM tab1
----
14
47
5
query I rowsort
SELECT ALL col0 * ( + 77 * 76 ) AS col2 FROM tab0
----
509124
567644
87780
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN NULL AND col0 / + ( - col0 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-865
SELECT DISTINCT col1 - + CAST( - col2 AS SIGNED ) col1 FROM tab1
----
110
115
64
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-865
SELECT DISTINCT col1 - + CAST ( - col2 AS INTEGER ) col1 FROM tab1
----
110
115
64
query I rowsort
SELECT DISTINCT col1 + - 53 AS col0 FROM tab2
----
-2
14
24
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-867
SELECT * FROM tab1 WHERE NOT - col2 * + col1 BETWEEN ( - col2 * col0 + - 84 ) AND ( + col1 * CAST( NULL AS DECIMAL ) )
----
skipif mysql # not compatible
query III rowsort label-867
SELECT * FROM tab1 WHERE NOT - col2 * + col1 BETWEEN ( - col2 * col0 + - 84 ) AND ( + col1 * CAST ( NULL AS REAL ) )
----
query I rowsort
SELECT ALL - 65 * + col1 FROM tab0 WHERE - 41 + col2 * - 31 IS NULL
----
query I rowsort
SELECT - col1 FROM tab1 WHERE ( 82 + + col1 ) = col2
----
-14
onlyif mysql # aggregate syntax:
query I rowsort label-870
SELECT ALL COUNT( * ) col1 FROM tab2 WHERE NULL BETWEEN ( col2 * 21 ) AND col0
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-870
SELECT ALL COUNT ( * ) col1 FROM tab2 WHERE NULL BETWEEN ( col2 * 21 ) AND col0
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-871
SELECT DISTINCT - CAST( + 9 AS SIGNED ) * 46 + + col1 AS col0 FROM tab2
----
-337
-347
-363
skipif mysql # not compatible
query I rowsort label-871
SELECT DISTINCT - CAST ( + 9 AS INTEGER ) * 46 + + col1 AS col0 FROM tab2
----
-337
-347
-363
query III rowsort
SELECT * FROM tab2 WHERE + col2 * - col1 + - ( col1 + + col1 * + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-873
SELECT COUNT( * ) * + 28 AS col0 FROM tab2
----
84
skipif mysql # not compatible
query I rowsort label-873
SELECT COUNT ( * ) * + 28 AS col0 FROM tab2
----
84
query I rowsort
SELECT ALL + 0 + col1 FROM tab2
----
51
67
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 54 col2 FROM tab1
----
113
122
150
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-876
SELECT MIN( - col1 ) AS col0 FROM tab1 WHERE CAST( - col0 AS SIGNED ) NOT IN ( col1 )
----
-47
skipif mysql # not compatible
query I rowsort label-876
SELECT MIN ( - col1 ) AS col0 FROM tab1 WHERE CAST ( - col0 AS INTEGER ) NOT IN ( col1 )
----
-47
query I rowsort
SELECT col0 FROM tab0 WHERE - col0 NOT BETWEEN + 43 AND 3
----
15
87
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 16 col2 FROM tab1
----
1088
1536
944
onlyif mysql # DIV for integer division:
query I rowsort label-879
SELECT ALL - col0 DIV col1 + + col1 AS col2 FROM tab0
----
-96
17
81
skipif mysql # not compatible
query I rowsort label-879
SELECT ALL - col0 / col1 + + col1 AS col2 FROM tab0
----
-96
17
81
onlyif mysql # aggregate syntax:
query I rowsort label-880
SELECT + COUNT( * ) FROM tab2 WHERE NOT NULL NOT IN ( col0 + - col0 * + col2 )
----
0
skipif mysql # not compatible
query I rowsort label-880
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL NOT IN ( col0 + - col0 * + col2 )
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 65 col0 FROM tab0
----
3055
6435
650
query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-883
SELECT + COUNT( DISTINCT 16 ) FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-883
SELECT + COUNT ( DISTINCT 16 ) FROM tab0
----
1
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 * - col0 ) BETWEEN ( NULL ) AND + col0 / 11 - + col0 * + col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-885
SELECT - MIN( + 23 ) AS col0 FROM tab1
----
-23
skipif mysql # not compatible
query I rowsort label-885
SELECT - MIN ( + 23 ) AS col0 FROM tab1
----
-23
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-886
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + CAST( NULL AS SIGNED ) / - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL = 55 * - col0
----
NULL
skipif mysql # not compatible
query I rowsort label-886
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL = 55 * - col0
----
NULL
query I rowsort
SELECT col0 - - 33 AS col2 FROM tab1 AS cor0
----
118
124
84
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-888
SELECT ALL * FROM tab0 AS cor0 WHERE col1 / col0 + 61 >= col1 + - col1 * + CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-888
SELECT ALL * FROM tab0 AS cor0 WHERE col1 / col0 + 61 >= col1 + - col1 * + CAST ( NULL AS INTEGER )
----
query I rowsort
SELECT col1 AS col0 FROM tab1 cor0 WHERE col2 >= 5 + col0 * 66
----
onlyif mysql # DIV for integer division:
query I rowsort label-890
SELECT DISTINCT 67 DIV + col1 + col0 col2 FROM tab0 AS cor0
----
15
164
90
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-890
SELECT DISTINCT 67 / + col1 + col0 col2 FROM tab0 AS cor0
----
15
164
90
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - col1 * col2 )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 6 < NULL
----
query I rowsort
SELECT ALL 48 * 69 FROM tab0 AS cor0
----
3312
3312
3312
query I rowsort
SELECT - - 4 * + col0 FROM tab2 AS cor0
----
184
256
300
query I rowsort
SELECT ALL - 54 * + col1 FROM tab1 AS cor0
----
-2538
-270
-756
query I rowsort
SELECT - 29 * + 34 AS col0 FROM tab2 AS cor0
----
-986
-986
-986
onlyif mysql # aggregate syntax:
query I rowsort label-897
SELECT DISTINCT + COUNT( * ) * - 40 FROM tab0 AS cor0
----
-120
skipif mysql # not compatible
query I rowsort label-897
SELECT DISTINCT + COUNT ( * ) * - 40 FROM tab0 AS cor0
----
-120
query I rowsort
SELECT ALL - col2 FROM tab0 cor0 WHERE - 42 IS NOT NULL
----
-10
-47
-99
onlyif mysql # aggregate syntax:
query I rowsort label-899
SELECT MAX( ALL col1 ) AS col2 FROM tab0 AS cor0
----
81
skipif mysql # not compatible
query I rowsort label-899
SELECT MAX ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
81
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN 36 AND NULL
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + + col2 <> NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-902
SELECT DISTINCT + col1 DIV ( - 92 * col2 ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-902
SELECT DISTINCT + col1 / ( - 92 * col2 ) FROM tab2 AS cor0
----
0
query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( - col1 )
----
query I rowsort
SELECT DISTINCT + col2 - + ( - col2 + + col0 ) FROM tab1 WHERE 91 NOT BETWEEN NULL AND col2
----
33
45
onlyif mysql # aggregate syntax:
query I rowsort label-905
SELECT ALL MAX( DISTINCT col1 ) col1 FROM tab2
----
77
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-905
SELECT ALL MAX ( DISTINCT col1 ) col1 FROM tab2
----
77
query III rowsort
SELECT ALL * FROM tab0 WHERE 57 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-907
SELECT CAST( - col2 AS SIGNED ) * col1 FROM tab2
----
-1173
-3080
-3886
skipif mysql # not compatible
query I rowsort label-907
SELECT CAST ( - col2 AS INTEGER ) * col1 FROM tab2
----
-1173
-3080
-3886
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-908
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN col1 + + col0 AND + col0 / col1 OR NOT NULL IS NULL
----
skipif mysql # not compatible
query III rowsort label-908
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN col1 + + col0 AND + col0 / col1 OR NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-909
SELECT + COUNT( ALL - col0 ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-909
SELECT + COUNT ( ALL - col0 ) FROM tab0
----
3
query I rowsort
SELECT DISTINCT + col2 + + 76 FROM tab2 WHERE NULL BETWEEN NULL AND ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-911
SELECT ALL SUM( DISTINCT + col1 ) AS col2 FROM tab2
----
195
skipif mysql # not compatible
query I rowsort label-911
SELECT ALL SUM ( DISTINCT + col1 ) AS col2 FROM tab2
----
195
onlyif mysql # aggregate syntax:
query I rowsort label-912
SELECT DISTINCT + COUNT( * ) * - + 68 * - 56 FROM tab1
----
11424
skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT + COUNT ( * ) * - + 68 * - 56 FROM tab1
----
11424
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-913
SELECT + 79 AS col1 FROM tab2 AS cor0 WHERE NOT + 9 + col1 * col0 <> ( CAST( NULL AS DECIMAL ) )
----
skipif mysql # not compatible
query I rowsort label-913
SELECT + 79 AS col1 FROM tab2 AS cor0 WHERE NOT + 9 + col1 * col0 <> ( CAST ( NULL AS REAL ) )
----
query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5
query I rowsort
SELECT 80 + col1 * + - 6 AS col1 FROM tab2
----
-226
-322
-382
onlyif mysql # aggregate syntax:
query I rowsort label-916
SELECT MIN( + ( + - col2 ) ) + COUNT( * ) FROM tab2
----
-55
skipif mysql # not compatible
query I rowsort label-916
SELECT MIN ( + ( + - col2 ) ) + COUNT ( * ) FROM tab2
----
-55
onlyif mysql # aggregate syntax:
query I rowsort label-917
SELECT DISTINCT COUNT( * ) * 23 - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
198
skipif mysql # not compatible
query I rowsort label-917
SELECT DISTINCT COUNT ( * ) * 23 - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
198
query III rowsort
SELECT ALL * FROM tab2 WHERE - + col0 NOT BETWEEN NULL AND - col0 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-919
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + CAST( 59 AS SIGNED ) / 37 + + col0 * 46
----
skipif mysql # not compatible
query III rowsort label-919
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + CAST ( 59 AS INTEGER ) / 37 + + col0 * 46
----
onlyif mysql # aggregate syntax:
query I rowsort label-920
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN + col2 * - col1 AND ( NULL )
----
0
skipif mysql # not compatible
query I rowsort label-920
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN + col2 * - col1 AND ( NULL )
----
0
query I rowsort
SELECT DISTINCT 60 + + - 8 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
532
604
828
query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NULL IN ( - 17 + - col2 )
----
query I rowsort
SELECT DISTINCT + - col2 + 76 AS col0 FROM tab0 AS cor0
----
-23
29
66
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-924
SELECT + CAST( NULL AS SIGNED ) - - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-924
SELECT + CAST ( NULL AS INTEGER ) - - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-925
SELECT ALL - + COUNT( ALL + col2 ) FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-925
SELECT ALL - + COUNT ( ALL + col2 ) FROM tab1 AS cor0
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-926
SELECT DISTINCT CAST( NULL AS SIGNED ) - col0 AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col0 AS col2 FROM tab1
----
NULL
query I rowsort
SELECT + 84 FROM tab2 WHERE NULL >= ( NULL ) AND NOT - col2 IS NOT NULL
----
query I rowsort
SELECT 66 - - col2 - + col1 * + col0 FROM tab2
----
-2257
-4822
-4901
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 col0 FROM tab0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-930
SELECT COUNT( * ) + + - 0 AS col1 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-930
SELECT COUNT ( * ) + + - 0 AS col1 FROM tab0
----
3
query I rowsort
SELECT col2 + + 32 + - - col0 AS col2 FROM tab0
----
129
228
94
query III rowsort
SELECT * FROM tab1 WHERE - + 79 >= col2 * + col0
----
query I rowsort
SELECT 66 + 53 FROM tab0
----
119
119
119
query I rowsort
SELECT ALL - - col1 + - 19 AS col0 FROM tab2 cor0
----
32
48
58
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > ( - 36 )
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col2 * col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-937
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-937
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-938
SELECT - 2 * - + COUNT( * ) + + 83 AS col2 FROM tab2 cor0 WHERE NOT col1 IN ( col1 )
----
83
skipif mysql # not compatible
query I rowsort label-938
SELECT - 2 * - + COUNT ( * ) + + 83 AS col2 FROM tab2 cor0 WHERE NOT col1 IN ( col1 )
----
83
onlyif mysql # aggregate syntax:
query I rowsort label-939
SELECT MAX( - ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-23
skipif mysql # not compatible
query I rowsort label-939
SELECT MAX ( - ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-23
query I rowsort
SELECT DISTINCT + 76 + col2 FROM tab0 AS cor0 WHERE NOT 57 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-941
SELECT + + ( - MIN( ALL col2 ) ) * - - MIN( ALL - col1 ) + - COUNT( * ) FROM tab2 AS cor0
----
1768
skipif mysql # not compatible
query I rowsort label-941
SELECT + + ( - MIN ( ALL col2 ) ) * - - MIN ( ALL - col1 ) + - COUNT ( * ) FROM tab2 AS cor0
----
1768
query I rowsort
SELECT DISTINCT - 97 * - col1 AS col2 FROM tab2 cor0
----
4947
6499
7469
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 63 = ( - - col1 + - + 95 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # DIV for integer division:
query I rowsort label-944
SELECT ( 2 ) DIV - col2 * + col2 * + 27 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-944
SELECT ( 2 ) / - col2 * + col2 * + 27 FROM tab2 cor0
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-945
SELECT - SUM( DISTINCT - 54 ) FROM tab0
----
54
skipif mysql # not compatible
query I rowsort label-945
SELECT - SUM ( DISTINCT - 54 ) FROM tab0
----
54
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-946
SELECT 65 DIV COUNT( * ) * + 31 AS col1 FROM tab0
----
651
skipif mysql # not compatible
query I rowsort label-946
SELECT 65 / COUNT ( * ) * + 31 AS col1 FROM tab0
----
651
query II rowsort
SELECT - col1, 97 AS col2 FROM tab2
----
-51
97
-67
97
-77
97
onlyif mysql # DIV for integer division:
query II rowsort label-948
SELECT col0 DIV 20 * - col1 * - col0 AS col0, 44 AS col2 FROM tab0
----
0
44
388
44
7308
44
skipif mysql # not compatible
query II rowsort label-948
SELECT col0 / 20 * - col1 * - col0 AS col0, 44 AS col2 FROM tab0
----
0
44
388
44
7308
44
query II rowsort
SELECT ALL - col1 * - 0 AS col1, col2 - - - col2 FROM tab2
----
0
0
0
0
0
0
query I rowsort
SELECT DISTINCT + col1 + col0 FROM tab2 WHERE - + ( - - col2 ) < ( col0 )
----
141
142
97
query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * - col1 > NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( - col2 ) IS NULL )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-953
SELECT + 97 + + 14 * 73 AS col2 FROM tab0 WHERE NOT - 81 * - + CAST( NULL AS SIGNED ) <> + - col0 + - col0 + - col1 * + col2
----
skipif mysql # not compatible
query I rowsort label-953
SELECT + 97 + + 14 * 73 AS col2 FROM tab0 WHERE NOT - 81 * - + CAST ( NULL AS INTEGER ) <> + - col0 + - col0 + - col1 * + col2
----
onlyif mysql # aggregate syntax:
query II rowsort label-954
SELECT DISTINCT 96 + + 7 AS col0, - COUNT( 9 ) FROM tab2
----
103
-3
skipif mysql # not compatible
query II rowsort label-954
SELECT DISTINCT 96 + + 7 AS col0, - COUNT ( 9 ) FROM tab2
----
103
-3
query I rowsort
SELECT ( 47 ) AS col2 FROM tab2 cor0
----
47
47
47
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 + - 48 ) NOT IN ( + col2, - 73 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT + col0 * + col1 * + 6 * - col2 AS col0 FROM tab0 AS cor0
----
-109620
-342630
-57618
query I rowsort
SELECT DISTINCT - 43 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-43
query III rowsort
SELECT * FROM tab0 WHERE 20 + - col0 * - ( col1 ) * col1 > ( col0 * col0 )
----
15
81
47
87
21
10
query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE - col2 <= NULL AND NOT ( NULL ) IS NOT NULL
----
query I rowsort
SELECT ALL + col1 + - - ( + 44 ) * col0 + - col0 FROM tab0 AS cor0
----
3762
4172
726
onlyif mysql # aggregate syntax:
query I rowsort label-963
SELECT + + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-963
SELECT + + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 + - col0 col1 FROM tab2 AS cor0
----
-70
-88
-99
onlyif mysql # aggregate syntax:
query I rowsort label-965
SELECT - + COUNT( DISTINCT + 47 ) + - 83 FROM tab2 AS cor0
----
-84
skipif mysql # not compatible
query I rowsort label-965
SELECT - + COUNT ( DISTINCT + 47 ) + - 83 FROM tab2 AS cor0
----
-84
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-966
SELECT DISTINCT + - col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-966
SELECT DISTINCT + - col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 col2 FROM tab0 AS cor0 WHERE col1 NOT IN ( + 28 )
----
16
16
16
onlyif mysql # aggregate syntax:
query I rowsort label-968
SELECT DISTINCT + MIN( ALL - col2 ) AS col2 FROM tab1 AS cor0 WHERE ( - 77 * col1 IN ( + 22 - col1 ) )
----
NULL
skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT + MIN ( ALL - col2 ) AS col2 FROM tab1 AS cor0 WHERE ( - 77 * col1 IN ( + 22 - col1 ) )
----
NULL
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-969
SELECT col0 + - col1 AS col0, - col0, + ( - - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
9 values hashing to f7b80aa2bbb87eeb180b65159cd88e97
skipif mysql # not compatible
query III rowsort label-969
SELECT col0 + - col1 AS col0, - col0, + ( - - CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0
----
9 values hashing to f7b80aa2bbb87eeb180b65159cd88e97
query I rowsort
SELECT ALL - 43 + + col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-22
-42
38
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-971
SELECT + CAST( - - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
14
47
5
skipif mysql # not compatible
query I rowsort label-971
SELECT + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
14
47
5
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 54 - + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-973
SELECT DISTINCT + 60 - + COUNT( * ) FROM tab2
----
57
skipif mysql # not compatible
query I rowsort label-973
SELECT DISTINCT + 60 - + COUNT ( * ) FROM tab2
----
57
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - col2 - - 43 + + ( 3 ) AND ( - col2 * + ( + 40 ) )
----
query I rowsort
SELECT DISTINCT + 64 AS col2 FROM tab2 WHERE + col0 < NULL
----
query II rowsort
SELECT ALL + - 74 AS col0, col1 * + 30 * - 55 AS col1 FROM tab1 WHERE NOT - 40 < NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 <> + 94 + - col0 + col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 94, 30 col2 FROM tab0
----
-94
30
query I rowsort
SELECT 84 * col1 * + + col0 FROM tab1
----
35700
359268
59976
onlyif mysql # aggregate syntax:
query I rowsort label-980
SELECT DISTINCT - COUNT( ALL col2 ) * COUNT( DISTINCT - col0 ) FROM tab0 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT - COUNT ( ALL col2 ) * COUNT ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-9
onlyif mysql # aggregate syntax:
query II rowsort label-981
SELECT ALL - 88 AS col1, + COUNT( * ) FROM tab0 AS cor0
----
-88
3
skipif mysql # not compatible
query II rowsort label-981
SELECT ALL - 88 AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
-88
3
query I rowsort
SELECT col2 * col1 * col1 + - col2 FROM tab1 AS cor0
----
1416
150144
18720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 17 AS col1, col1 col2 FROM tab1 AS cor0
----
17
14
17
47
17
5
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-984
SELECT + CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL > NULL
----
0
skipif mysql # not compatible
query I rowsort label-984
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL > NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-985
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE ( NULL NOT BETWEEN NULL AND col2 * + ( 79 ) )
----
0
skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE ( NULL NOT BETWEEN NULL AND col2 * + ( 79 ) )
----
0
query I rowsort
SELECT - - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + 5
----
query II rowsort
SELECT col1 * 38 * + + col0 - + col1, col0 FROM tab1 AS cor0
----
16145
85
162479
91
27118
51
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-988
SELECT ALL - CAST( - col2 AS SIGNED ) + - col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-988
SELECT ALL - CAST ( - col2 AS INTEGER ) + - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-989
SELECT ALL ( + - CAST( NULL AS DECIMAL ) ) col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-989
SELECT ALL ( + - CAST ( NULL AS REAL ) ) col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 94 AS col0 FROM tab1 AS cor0
----
-94
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-991
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-991
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * + 16 col1, - 28 FROM tab1 AS cor0
----
1088
-28
1536
-28
944
-28
onlyif mysql # aggregate syntax:
query I rowsort label-993
SELECT ALL MIN( ALL + col2 ) AS col2 FROM tab1
----
59
skipif mysql # not compatible
query I rowsort label-993
SELECT ALL MIN ( ALL + col2 ) AS col2 FROM tab1
----
59
query I rowsort
SELECT DISTINCT ( + ( 6 ) ) * + + 92 - - - ( 14 ) AS col0 FROM tab0
----
538
query III rowsort
SELECT * FROM tab2 WHERE col2 - - col2 < NULL
----
query III rowsort
SELECT * FROM tab2 WHERE - col2 > col2
----
query I rowsort
SELECT + col2 * + 14 FROM tab0
----
1386
140
658
query I rowsort
SELECT col0 * + + 68 AS col0 FROM tab1 WHERE col0 * + col2 > + ( col1 ) * - - 85
----
3468
5780
6188
onlyif mysql # DIV for integer division:
query I rowsort label-999
SELECT + 87 DIV 9 * + 16 * - + col2 AS col0 FROM tab2
----
-3312
-5760
-8352
skipif mysql # not compatible
query I rowsort label-999
SELECT + 87 / 9 * + 16 * - + col2 AS col0 FROM tab2
----
-3312
-5760
-8352
onlyif mysql # aggregate syntax:
query I rowsort label-1000
SELECT + SUM( DISTINCT + 56 ) FROM tab2
----
56
skipif mysql # not compatible
query I rowsort label-1000
SELECT + SUM ( DISTINCT + 56 ) FROM tab2
----
56
query I rowsort
SELECT ALL col2 + - + ( + - col1 ) FROM tab0 AS cor0
----
100
128
31
onlyif mysql # aggregate syntax:
query I rowsort label-1002
SELECT DISTINCT - SUM( ALL col1 ) - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-69
skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT - SUM ( ALL col1 ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-69
query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE + col1 * col0 BETWEEN NULL AND ( - 91 )
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) = ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1006
SELECT DISTINCT - - MAX( ALL - 6 ) * - COUNT( * ) FROM tab1 AS cor0
----
18
skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT - - MAX ( ALL - 6 ) * - COUNT ( * ) FROM tab1 AS cor0
----
18
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - col0 + + 31 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-1008
SELECT + MIN( - 66 ) AS col1 FROM tab0 cor0
----
-66
skipif mysql # not compatible
query I rowsort label-1008
SELECT + MIN ( - 66 ) AS col1 FROM tab0 cor0
----
-66
query I rowsort
SELECT ALL + 31 AS col0 FROM tab1 AS cor0
----
31
31
31
query I rowsort
SELECT 90 * col0 FROM tab0
----
1350
7830
8730
query III rowsort
SELECT * FROM tab0 WHERE NOT - 84 + ( col1 + - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ( - 2 ) * - 35 FROM tab2
----
70
70
70
onlyif mysql # aggregate syntax:
query I rowsort label-1013
SELECT COUNT( * ) * - 89 * - 74 AS col1 FROM tab0
----
19758
skipif mysql # not compatible
query I rowsort label-1013
SELECT COUNT ( * ) * - 89 * - 74 AS col1 FROM tab0
----
19758
onlyif mysql # aggregate syntax:
query I rowsort label-1014
SELECT ALL - 38 * - COUNT( * ) * - MAX( + col1 ) AS col1 FROM tab2
----
-8778
skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL - 38 * - COUNT ( * ) * - MAX ( + col1 ) AS col1 FROM tab2
----
-8778
query I rowsort
SELECT col0 * - + col1 FROM tab0
----
-1215
-1827
-97
onlyif mysql # aggregate syntax:
query I rowsort label-1016
SELECT + MIN( ALL + col2 ) AS col2 FROM tab2
----
23
skipif mysql # not compatible
query I rowsort label-1016
SELECT + MIN ( ALL + col2 ) AS col2 FROM tab2
----
23
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT col0 * + 32 FROM tab1
----
1632
2720
2912
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND ( - 44 )
----
query I rowsort
SELECT DISTINCT 46 * + - col2 * col2 AS col0 FROM tab0
----
-101614
-450846
-4600
query III rowsort
SELECT * FROM tab1 WHERE NOT - 35 * col0 < ( col2 )
----
query I rowsort
SELECT col1 FROM tab1 WHERE NOT 99 * - col1 IS NULL
----
14
47
5
query I rowsort
SELECT ALL 90 + 55 FROM tab1, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 184dd874efc91366378cfe8644e8c122
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 39 ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1025
SELECT DISTINCT MAX( 34 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
34
skipif mysql # not compatible
query I rowsort label-1025
SELECT DISTINCT MAX ( 34 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
34
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 21 BETWEEN ( NULL ) AND ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, ( + col0 ) * col1 AS col0 FROM tab1 AS cor0
----
59
425
68
4277
96
714
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <> ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( - 1 )
----
onlyif mysql # DIV for integer division:
query I rowsort label-1030
SELECT ALL col1 DIV - col1 + col0 FROM tab2 AS cor0
----
45
63
74
skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL col1 / - col1 + col0 FROM tab2 AS cor0
----
45
63
74
onlyif mysql # aggregate syntax:
query I rowsort label-1031
SELECT - + COUNT( - col2 ) FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-1031
SELECT - + COUNT ( - col2 ) FROM tab0 AS cor0
----
-3
query II rowsort
SELECT - 77, col0 AS col1 FROM tab2 cor0
----
-77
46
-77
64
-77
75
query I rowsort
SELECT DISTINCT - ( - - col2 ) + - + ( + col1 ) FROM tab0
----
-100
-128
-31
onlyif mysql # aggregate syntax:
query I rowsort label-1034
SELECT ALL + MAX( ALL - col2 ) FROM tab1
----
-59
skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL + MAX ( ALL - col2 ) FROM tab1
----
-59
query I rowsort
SELECT ALL - col1 * - 10 FROM tab0 WHERE col1 * + col2 IS NULL
----
query I rowsort
SELECT 52 + col1 FROM tab1 WHERE - - col0 * - 16 <= - 39
----
57
66
99
onlyif mysql # DIV for integer division:
query I rowsort label-1037
SELECT DISTINCT - col2 DIV - col1 FROM tab2 WHERE + col0 - - col0 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT - col2 / - col1 FROM tab2 WHERE + col0 - - col0 IS NOT NULL
----
0
query II rowsort
SELECT col0 - - col1 AS col2, + col0 * 30 AS col1 FROM tab1
----
138
2730
65
1530
90
2550
query I rowsort
SELECT ALL col0 - + - 93 FROM tab0
----
108
180
190
query I rowsort
SELECT ALL - ( + - col1 ) + + 97 FROM tab0
----
118
178
98
query I rowsort
SELECT + col2 * + 87 + + col1 FROM tab1 AS cor0
----
5138
5963
8366
query I rowsort
SELECT + ( col2 ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1043
SELECT MIN( - col0 ) + - 28 FROM tab2 AS cor0
----
-103
skipif mysql # not compatible
query I rowsort label-1043
SELECT MIN ( - col0 ) + - 28 FROM tab2 AS cor0
----
-103
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1044
SELECT DISTINCT + - CAST( + MAX( CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT + - CAST ( + MAX ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1045
SELECT + 68 + + 14 - - CAST( - 47 AS SIGNED ) * + 6 FROM tab0 AS cor0
----
-200
-200
-200
skipif mysql # not compatible
query I rowsort label-1045
SELECT + 68 + + 14 - - CAST ( - 47 AS INTEGER ) * + 6 FROM tab0 AS cor0
----
-200
-200
-200
query I rowsort
SELECT col0 * + 18 + + col1 FROM tab0 AS cor0
----
1587
1747
351
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1047
SELECT ALL col2 + - CAST( + col1 AS SIGNED ) FROM tab2
----
-28
-37
-9
skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL col2 + - CAST ( + col1 AS INTEGER ) FROM tab2
----
-28
-37
-9
query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE 34 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1050
SELECT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-1050
SELECT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - 9, - 14 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1052
SELECT DISTINCT ( MAX( + 90 ) ) FROM tab2 AS cor0
----
90
skipif mysql # not compatible
query I rowsort label-1052
SELECT DISTINCT ( MAX ( + 90 ) ) FROM tab2 AS cor0
----
90
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1053
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 85 * + col1 + - - CAST( + 77 AS SIGNED ) * + col2 <= ( - col0 * col2 )
----
skipif mysql # not compatible
query III rowsort label-1053
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 85 * + col1 + - - CAST ( + 77 AS INTEGER ) * + col2 <= ( - col0 * col2 )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * + col1 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1055
SELECT + MIN( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-96
skipif mysql # not compatible
query I rowsort label-1055
SELECT + MIN ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-96
onlyif mysql # aggregate syntax:
query I rowsort label-1056
SELECT MIN( DISTINCT - col1 ) FROM tab1 AS cor0
----
-47
skipif mysql # not compatible
query I rowsort label-1056
SELECT MIN ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-47
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL < 61
----
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - 81 * col2 + - col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-1059
SELECT 7 * + MAX( + - col1 ) col0 FROM tab1
----
-35
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1059
SELECT 7 * + MAX ( + - col1 ) col0 FROM tab1
----
-35
onlyif mysql # DIV for integer division:
query I rowsort label-1060
SELECT - 11 DIV - 16 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1060
SELECT - 11 / - 16 FROM tab0
----
0
0
0
query II rowsort
SELECT + 47 AS col0, 1 FROM tab1
----
47
1
47
1
47
1
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * + 40 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-1063
SELECT MIN( ALL 77 ) FROM tab1 AS cor0
----
77
skipif mysql # not compatible
query I rowsort label-1063
SELECT MIN ( ALL 77 ) FROM tab1 AS cor0
----
77
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1064
SELECT DISTINCT + - 64 DIV + COUNT( * ) FROM tab0 AS cor0
----
-21
skipif mysql # not compatible
query I rowsort label-1064
SELECT DISTINCT + - 64 / + COUNT ( * ) FROM tab0 AS cor0
----
-21
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT + 23 * + col2 + - 88 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + ( col0 ) )
----
query I rowsort
SELECT ALL + col1 + + + 97 AS col0 FROM tab2
----
148
164
174
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + col1 col1 FROM tab2
----
141
142
97
onlyif mysql # aggregate syntax:
query I rowsort label-1069
SELECT DISTINCT - + 10 * - + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
90
skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT - + 10 * - + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
90
query I rowsort
SELECT DISTINCT + 28 * - col0 AS col1 FROM tab2 AS cor0
----
-1288
-1792
-2100
onlyif mysql # aggregate syntax:
query I rowsort label-1071
SELECT COUNT( * ) + 81 col2 FROM tab1 AS cor0
----
84
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1071
SELECT COUNT ( * ) + 81 col2 FROM tab1 AS cor0
----
84
query I rowsort
SELECT ALL + + col0 * + + col0 * - - col2 FROM tab2 AS cor0
----
163840
326250
48668
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1073
SELECT - col0 * col1 + - - CAST( NULL AS SIGNED ) * + 82 * - + 41 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1073
SELECT - col0 * col1 + - - CAST ( NULL AS INTEGER ) * + 82 * - + 41 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1074
SELECT DISTINCT 2 * COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <> col0 + + ( - 3 ) + - col1 * - - ( - col1 ) * col1
----
0
skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT 2 * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <> col0 + + ( - 3 ) + - col1 * - - ( - col1 ) * col1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + + col0 * - 79 col0 FROM tab1 AS cor0
----
-4043
-6720
-7236
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 66 >= NULL
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 36 <= NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-1078
SELECT - col2 DIV + - col0 + - col1 - - col2 AS col2 FROM tab1
----
21
54
83
skipif mysql # not compatible
query I rowsort label-1078
SELECT - col2 / + - col0 + - col1 - - col2 AS col2 FROM tab1
----
21
54
83
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= ( + 6 + - + 36 )
----
query I rowsort
SELECT DISTINCT ( - + col1 ) AS col1 FROM tab1
----
-14
-47
-5
query I rowsort
SELECT DISTINCT - 45 + col0 AS col0 FROM tab0
----
-30
42
52
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-1082
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( 35 * CAST( NULL AS DECIMAL ) ) OR NOT + 23 * - - col1 = ( + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-1082
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( 35 * CAST ( NULL AS REAL ) ) OR NOT + 23 * - - col1 = ( + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT DISTINCT + ( + col0 ) + - col2 AS col0, 10 AS col0 FROM tab0
----
-2
10
-32
10
77
10
query I rowsort
SELECT + 35 + + col0 AS col2 FROM tab2
----
110
81
99
query II rowsort
SELECT ALL col0 + - - col2 * 16, + col1 FROM tab0
----
1681
1
247
21
767
81
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1086
SELECT - 1 DIV - COUNT( * ) AS col1 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-1086
SELECT - 1 / - COUNT ( * ) AS col1 FROM tab2
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-1087
SELECT ALL + 76 + + - COUNT( * ) AS col0 FROM tab2
----
73
skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL + 76 + + - COUNT ( * ) AS col0 FROM tab2
----
73
query II rowsort
SELECT col0 AS col2, 27 FROM tab2
----
46
27
64
27
75
27
query III rowsort
SELECT * FROM tab0 WHERE - col2 + + 73 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-1090
SELECT DISTINCT - COUNT( * ) + - + COUNT( * ) FROM tab2
----
-6
skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT - COUNT ( * ) + - + COUNT ( * ) FROM tab2
----
-6
query III rowsort
SELECT ALL * FROM tab1 WHERE + 74 IS NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1092
SELECT 77 DIV - SUM( + col2 ) AS col0 FROM tab0 cor0 WHERE 80 * + + col1 + col0 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-1092
SELECT 77 / - SUM ( + col2 ) AS col0 FROM tab0 cor0 WHERE 80 * + + col1 + col0 IS NOT NULL
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1093
SELECT ALL - 10 - - - 75 + + CAST( + - col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
-108
-125
-143
skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL - 10 - - - 75 + + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
-108
-125
-143
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 93 * - + col2 NOT BETWEEN NULL AND col0 AND NULL > ( col0 / + ( + 67 ) / col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1095
SELECT + - COUNT( * ) - ( + - 48 ) AS col1 FROM tab2 AS cor0
----
45
skipif mysql # not compatible
query I rowsort label-1095
SELECT + - COUNT ( * ) - ( + - 48 ) AS col1 FROM tab2 AS cor0
----
45
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1096
SELECT ALL - COUNT( DISTINCT col2 ) - COUNT( DISTINCT + col2 ) * + 45 DIV - COUNT( * ) FROM tab0 AS cor0
----
42
skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL - COUNT ( DISTINCT col2 ) - COUNT ( DISTINCT + col2 ) * + 45 / - COUNT ( * ) FROM tab0 AS cor0
----
42
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1097
SELECT - 71 + - + ( 46 ) AS col1, AVG ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-117
NULL
skipif mysql # not compatible
query II rowsort label-1097
SELECT - 71 + - + ( 46 ) AS col1, AVG ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-117
NULL
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1098
SELECT ALL * FROM tab2 WHERE + + 42 * - ( CAST( - + ( 30 ) AS SIGNED ) ) + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-1098
SELECT ALL * FROM tab2 WHERE + + 42 * - ( CAST ( - + ( 30 ) AS INTEGER ) ) + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-1099
SELECT - ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-1099
SELECT - ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-1100
SELECT DISTINCT + MAX( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-5
skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT + MAX ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-5
onlyif mysql # aggregate syntax:
query I rowsort label-1101
SELECT DISTINCT - MAX( - - ( - col2 ) ) FROM tab0 AS cor0
----
10
skipif mysql # not compatible
query I rowsort label-1101
SELECT DISTINCT - MAX ( - - ( - col2 ) ) FROM tab0 AS cor0
----
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 73 col1 FROM tab1 cor0
----
-73
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1103
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - - col0 / - + CAST( NULL AS SIGNED ) + + col0, - 37 )
----
skipif mysql # not compatible
query III rowsort label-1103
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - - col0 / - + CAST ( NULL AS INTEGER ) + + col0, - 37 )
----
query I rowsort
SELECT - ( - + col1 ) * col1 AS col2 FROM tab1 AS cor0
----
196
2209
25
onlyif mysql # aggregate syntax:
query I rowsort label-1105
SELECT DISTINCT + MIN( DISTINCT 99 ) AS col2 FROM tab1
----
99
skipif mysql # not compatible
query I rowsort label-1105
SELECT DISTINCT + MIN ( DISTINCT 99 ) AS col2 FROM tab1
----
99
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 34 ) IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-1107
SELECT ALL + COUNT( - - col1 ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL + COUNT ( - - col1 ) FROM tab0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-1108
SELECT ( - + COUNT( * ) ) AS col2 FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-1108
SELECT ( - + COUNT ( * ) ) AS col2 FROM tab1
----
-3
query II rowsort
SELECT ( + + col2 ) * + col0 * - - col0 - + col1, - col0 AS col2 FROM tab2
----
163763
-64
326183
-75
48617
-46
query I rowsort
SELECT DISTINCT + 10 AS col0 FROM tab2 WHERE - col2 <= NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-1111
SELECT DISTINCT 7 * - + col1 DIV - + col1 AS col0 FROM tab1
----
7
skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT 7 * - + col1 / - + col1 AS col0 FROM tab1
----
7
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1112
SELECT col0 FROM tab1 AS cor0 WHERE NOT + CAST( + col0 AS SIGNED ) / col0 IS NULL
----
51
85
91
skipif mysql # not compatible
query I rowsort label-1112
SELECT col0 FROM tab1 AS cor0 WHERE NOT + CAST ( + col0 AS INTEGER ) / col0 IS NULL
----
51
85
91
query I rowsort
SELECT DISTINCT ( - - 32 ) AS col0 FROM tab0 AS cor0
----
32
query II rowsort
SELECT DISTINCT + ( + col2 ), col2 FROM tab2 AS cor0
----
23
23
40
40
58
58
query I rowsort
SELECT + 69 * col2 * col0 + col1 AS col1 FROM tab0 AS cor0
----
48726
60051
662608
onlyif mysql # aggregate syntax:
query I rowsort label-1116
SELECT ALL MIN( col0 ) FROM tab2 cor0
----
46
skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL MIN ( col0 ) FROM tab2 cor0
----
46
query I rowsort
SELECT - 74 * col0 * - col0 AS col2 FROM tab2 AS cor0
----
156584
303104
416250
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1118
SELECT CAST( - - col0 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
225
7569
9409
skipif mysql # not compatible
query I rowsort label-1118
SELECT CAST ( - - col0 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
225
7569
9409
onlyif mysql # aggregate syntax:
query I rowsort label-1119
SELECT MAX( DISTINCT + col2 ) FROM tab1 cor0
----
96
skipif mysql # not compatible
query I rowsort label-1119
SELECT MAX ( DISTINCT + col2 ) FROM tab1 cor0
----
96
query I rowsort
SELECT + 35 FROM tab2 cor0
----
35
35
35
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1121
SELECT + COUNT( * ) DIV + - 52 col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1121
SELECT + COUNT ( * ) / + - 52 col0 FROM tab0 AS cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-1122
SELECT DISTINCT - COUNT( * ) * + - 72 FROM tab0 AS cor0
----
216
skipif mysql # not compatible
query I rowsort label-1122
SELECT DISTINCT - COUNT ( * ) * + - 72 FROM tab0 AS cor0
----
216
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IS NULL AND NOT 87 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT - col1 - - + col1, + ( col0 ) + - col1 AS col0 FROM tab0
----
0
-66
0
66
0
96
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1125
SELECT col1 - + ( CAST( col0 AS SIGNED ) ) FROM tab2
----
-8
13
5
skipif mysql # not compatible
query I rowsort label-1125
SELECT col1 - + ( CAST ( col0 AS INTEGER ) ) FROM tab2
----
-8
13
5
query I rowsort
SELECT - col0 * - - 56 FROM tab1 WHERE ( NOT ( col1 + col2 IS NULL ) )
----
-2856
-4760
-5096
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL IN ( - col0, col1 ) )
----
query I rowsort
SELECT ( - col0 ) * + - col0 * col1 + 83 + col2 + col2 FROM tab1
----
36326
36689
389426
onlyif mysql # aggregate syntax:
query I rowsort label-1129
SELECT DISTINCT - 10 + - - COUNT( * ) FROM tab0
----
-7
skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT - 10 + - - COUNT ( * ) FROM tab0
----
-7
onlyif mysql # DIV for integer division:
query I rowsort label-1130
SELECT ALL col2 DIV + - col0 - - - col2 * + col1 FROM tab2
----
-1173
-3080
-3886
skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL col2 / + - col0 - - - col2 * + col1 FROM tab2
----
-1173
-3080
-3886
query II rowsort
SELECT DISTINCT - 83 - 32 AS col0, col0 AS col1 FROM tab1
----
-115
51
-115
85
-115
91
query I rowsort
SELECT DISTINCT col0 - + + col2 FROM tab1 AS cor0
----
-45
23
26
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-1133
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * - 75 * - 69 / + CAST( - col0 AS DECIMAL ) = + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-1133
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * - 75 * - 69 / + CAST ( - col0 AS REAL ) = + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT DISTINCT col2 AS col2, col0 + + + col1 AS col2 FROM tab1
----
59
90
68
138
96
65
onlyif mysql # aggregate syntax:
query I rowsort label-1135
SELECT - MIN( + 5 ) FROM tab2
----
-5
skipif mysql # not compatible
query I rowsort label-1135
SELECT - MIN ( + 5 ) FROM tab2
----
-5
onlyif mysql # aggregate syntax:
query I rowsort label-1136
SELECT ALL - COUNT( + + col0 ) AS col2 FROM tab0 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL - COUNT ( + + col0 ) AS col2 FROM tab0 cor0
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - col2 col1, - col0 * 23 + - col1 AS col0, + col0 col2 FROM tab2 AS cor0
----
9 values hashing to 062c86b8b6993bb29da94b37e7a1abfb
onlyif mysql # aggregate syntax:
query I rowsort label-1138
SELECT - SUM( - col0 ) AS col1 FROM tab2 AS cor0
----
185
skipif mysql # not compatible
query I rowsort label-1138
SELECT - SUM ( - col0 ) AS col1 FROM tab2 AS cor0
----
185
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1139
SELECT * FROM tab2 cor0 WHERE NOT ( + + 61 ) * col1 * + + CAST( col1 AS SIGNED ) * 82 + + col0 IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-1139
SELECT * FROM tab2 cor0 WHERE NOT ( + + 61 ) * col1 * + + CAST ( col1 AS INTEGER ) * 82 + + col0 IS NOT NULL
----
query II rowsort
SELECT - col1 AS col1, + 77 AS col1 FROM tab1 AS cor0
----
-14
77
-47
77
-5
77
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 6 <> - col2 * col0 / - + 12 + + col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col2 FROM tab0 cor0
----
18
18
18
query II rowsort
SELECT ALL col0 AS col0, + ( - col2 ) FROM tab1 AS cor0
----
51
-96
85
-59
91
-68
query II rowsort
SELECT - 41, col1 AS col1 FROM tab2 AS cor0
----
-41
51
-41
67
-41
77
query II rowsort
SELECT DISTINCT col2, + col2 FROM tab0 AS cor0
----
10
10
47
47
99
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 < - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT - 4 + + col1 AS col1, col1 * - + col0 FROM tab0 AS cor0 WHERE NOT 74 = ( + col2 * col0 )
----
-3
-97
17
-1827
77
-1215
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 WHERE NOT NULL IS NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 26 + - col0 / + - col0 * + ( - 11 ) IS NULL
----
query I rowsort
SELECT ALL col0 + + col1 FROM tab1 WHERE NOT - col2 BETWEEN + - 53 * - col0 * 51 AND - 43 - + col0 + + col1 * + col0
----
138
65
90
query I rowsort
SELECT - 11 * - + col0 * + col2 FROM tab1 AS cor0
----
53856
55165
68068
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) > NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1154
SELECT ALL - + ( COUNT( * ) ) FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL - + ( COUNT ( * ) ) FROM tab1 AS cor0
----
-3
query I rowsort
SELECT DISTINCT - - 82 AS col2 FROM tab0 AS cor0
----
82
query III rowsort
SELECT ALL * FROM tab2 WHERE - 58 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL >= col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1158
SELECT - SUM( - 54 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
486
skipif mysql # not compatible
query I rowsort label-1158
SELECT - SUM ( - 54 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
486
onlyif mysql # aggregate syntax:
query I rowsort label-1159
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE + col2 > - col1
----
-3
skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE + col2 > - col1
----
-3
query I rowsort
SELECT DISTINCT - - 91 * 62 + 71 FROM tab2 AS cor0
----
5713
query I rowsort
SELECT ALL + - 68 * + - col2 * + 89 + col2 * + col2 AS col1 FROM tab0 AS cor0
----
286653
60620
608949
onlyif mysql # aggregate syntax:
query I rowsort label-1162
SELECT - - SUM( col1 ) + + + 7 col1 FROM tab2 AS cor0
----
202
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1162
SELECT - - SUM ( col1 ) + + + 7 col1 FROM tab2 AS cor0
----
202
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1163
SELECT ALL COUNT( * ) * + CAST( + - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-1163
SELECT ALL COUNT ( * ) * + CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-9
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1164
SELECT - MIN( + CAST( NULL AS SIGNED ) ) + - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1164
SELECT - MIN ( + CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1165
SELECT ALL - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 32 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 32 IS NOT NULL
----
0
query I rowsort
SELECT DISTINCT + ( - - col1 ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
query II rowsort
SELECT + col0, + col1 * - - 68 FROM tab2
----
46
3468
64
5236
75
4556
onlyif mysql # aggregate syntax:
query I rowsort label-1168
SELECT ALL 38 * COUNT( * ) + + 0 AS col1 FROM tab2
----
114
skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL 38 * COUNT ( * ) + + 0 AS col1 FROM tab2
----
114
query I rowsort
SELECT 21 * col2 FROM tab0
----
2079
210
987
query I rowsort
SELECT + col0 * col1 AS col0 FROM tab1 WHERE col0 IS NOT NULL
----
425
4277
714
onlyif mysql # DIV for integer division:
query I rowsort label-1171
SELECT col2 DIV - 90 col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1171
SELECT col2 / - 90 col2 FROM tab2
----
0
0
0
query I rowsort
SELECT + ( 65 ) AS col0 FROM tab2
----
65
65
65
onlyif mysql # DIV for integer division:
query I rowsort label-1173
SELECT 62 DIV - col1 AS col2 FROM tab0
----
-2
-62
0
skipif mysql # not compatible
query I rowsort label-1173
SELECT 62 / - col1 AS col2 FROM tab0
----
-2
-62
0
onlyif mysql # aggregate syntax:
query I rowsort label-1174
SELECT 70 - SUM( ALL col1 ) AS col1 FROM tab1
----
4
skipif mysql # not compatible
query I rowsort label-1174
SELECT 70 - SUM ( ALL col1 ) AS col1 FROM tab1
----
4
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1175
SELECT - CAST( NULL AS SIGNED ) + - + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 18
----
skipif mysql # not compatible
query I rowsort label-1175
SELECT - CAST ( NULL AS INTEGER ) + - + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 18
----
query I rowsort
SELECT ALL - ( 2 ) AS col2 FROM tab2 AS cor0
----
-2
-2
-2
onlyif mysql # DIV for integer division:
query I rowsort label-1177
SELECT DISTINCT 0 * - col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT 0 * - col1 / - col2 AS col2 FROM tab0 AS cor0
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-1178
SELECT ALL + col0 DIV + 68 + + col0 FROM tab2 cor0
----
46
64
76
skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL + col0 / + 68 + + col0 FROM tab2 cor0
----
46
64
76
onlyif mysql # aggregate syntax:
query I rowsort label-1179
SELECT SUM( + + col0 ) * COUNT( * ) AS col2 FROM tab2 cor0
----
555
skipif mysql # not compatible
query I rowsort label-1179
SELECT SUM ( + + col0 ) * COUNT ( * ) AS col2 FROM tab2 cor0
----
555
query I rowsort
SELECT ALL 89 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query II rowsort
SELECT ALL + ( col1 ) * col0 AS col2, + col1 + - 45 AS col1 FROM tab2
----
2346
6
4928
32
5025
22
query I rowsort
SELECT DISTINCT + + 36 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
36
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1183
SELECT DISTINCT + CAST( AVG ( + col1 ) AS SIGNED ) FROM tab0 cor0
----
34
skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT + CAST ( AVG ( + col1 ) AS INTEGER ) FROM tab0 cor0
----
34
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 60 + + - col2 BETWEEN NULL AND + - col0 + col0
----
query I rowsort
SELECT DISTINCT + col1 * + - 64 * - ( + - 82 ) FROM tab2 AS cor0
----
-267648
-351616
-404096
query I rowsort
SELECT ALL + 37 * + col2 * + col1 AS col0 FROM tab1 AS cor0
----
10915
118252
49728
onlyif mysql # DIV for integer division:
query II rowsort label-1187
SELECT DISTINCT - - col2 DIV ( col2 ), + col1 FROM tab1 AS cor0
----
1
14
1
47
1
5
skipif mysql # not compatible
query II rowsort label-1187
SELECT DISTINCT - - col2 / ( col2 ), + col1 FROM tab1 AS cor0
----
1
14
1
47
1
5
query I rowsort
SELECT ALL + - 32 AS col0 FROM tab0 AS cor0
----
-32
-32
-32
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1189
SELECT - CAST( NULL AS SIGNED ) AS col0, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91
skipif mysql # not compatible
query II rowsort label-1189
SELECT - CAST ( NULL AS INTEGER ) AS col0, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91
onlyif mysql # DIV for integer division:
query I rowsort label-1190
SELECT ALL col0 + + col1 * ( + col0 ) DIV 50 * + ( - 35 ) col0 FROM tab2
----
-1564
-3366
-3425
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1190
SELECT ALL col0 + + col1 * ( + col0 ) / 50 * + ( - 35 ) col0 FROM tab2
----
-1564
-3366
-3425
onlyif mysql # aggregate syntax:
query I rowsort label-1191
SELECT ALL + COUNT( ALL col2 ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL + COUNT ( ALL col2 ) FROM tab2
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-1192
SELECT DISTINCT 2 + + SUM( col2 ) AS col2 FROM tab1
----
225
skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT 2 + + SUM ( col2 ) AS col2 FROM tab1
----
225
query I rowsort
SELECT + col1 * - + 96 AS col2 FROM tab2
----
-4896
-6432
-7392
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1194
SELECT DISTINCT - col0 * - - CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
-2346
-4928
-5025
skipif mysql # not compatible
query I rowsort label-1194
SELECT DISTINCT - col0 * - - CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
-2346
-4928
-5025
query I rowsort
SELECT ALL 0 + 44 AS col2 FROM tab0
----
44
44
44
onlyif mysql # DIV for integer division:
query I rowsort label-1196
SELECT ALL - col1 DIV - 60 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL - col1 / - 60 FROM tab1
----
0
0
0
query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NULL ) IS NULL )
----
query I rowsort
SELECT DISTINCT + ( + 80 ) FROM tab1 AS cor0
----
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 col0 FROM tab2 AS cor0
----
-70
-70
-70
onlyif mysql # aggregate syntax:
query I rowsort label-1200
SELECT + + COUNT( * ) + + + 44 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 * + - 9, + 99, - 32, - + 48, - col2 / + ( col1 ) )
----
44
skipif mysql # not compatible
query I rowsort label-1200
SELECT + + COUNT ( * ) + + + 44 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 * + - 9, + 99, - 32, - + 48, - col2 / + ( col1 ) )
----
44
onlyif mysql # aggregate syntax:
query I rowsort label-1201
SELECT ALL - - COUNT( * ) + + 46 + 91 * 15 FROM tab2 cor0
----
1414
skipif mysql # not compatible
query I rowsort label-1201
SELECT ALL - - COUNT ( * ) + + 46 + 91 * 15 FROM tab2 cor0
----
1414
onlyif mysql # aggregate syntax:
query I rowsort label-1202
SELECT 62 - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
65
skipif mysql # not compatible
query I rowsort label-1202
SELECT 62 - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
65
onlyif mysql # aggregate syntax:
query II rowsort label-1203
SELECT COUNT( * ) - + + COUNT( * ) AS col0, - 39 col0 FROM tab2 AS cor0
----
0
-39
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1203
SELECT COUNT ( * ) - + + COUNT ( * ) AS col0, - 39 col0 FROM tab2 AS cor0
----
0
-39
query I rowsort
SELECT - col1 - + col0 AS col0 FROM tab0 cor0
----
-108
-96
-98
query I rowsort
SELECT col1 * - col1 - + col2 FROM tab1 AS cor0
----
-2277
-292
-84
onlyif mysql # aggregate syntax:
query I rowsort label-1206
SELECT ALL - - SUM( ALL + col2 ) FROM tab0 AS cor0
----
156
skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL - - SUM ( ALL + col2 ) FROM tab0 AS cor0
----
156
query I rowsort
SELECT DISTINCT - 14 * + col2 - 40 AS col1 FROM tab0 AS cor0
----
-1426
-180
-698
query I rowsort
SELECT DISTINCT - 77 AS col2 FROM tab2 AS cor0
----
-77
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 >= + col2 * - 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT + col1 - 29 * + col2 FROM tab2 AS cor0
----
-1083
-1615
-616
query I rowsort
SELECT 34 + + col2 + col2 FROM tab0
----
128
232
54
onlyif mysql # aggregate syntax:
query I rowsort label-1212
SELECT ALL COUNT( col2 ) AS col1 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL COUNT ( col2 ) AS col1 FROM tab0
----
3
onlyif mysql # DIV for integer division:
query I rowsort label-1213
SELECT col1 DIV 54 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1213
SELECT col1 / 54 FROM tab0
----
0
0
1
onlyif mysql # DIV for integer division:
query I rowsort label-1214
SELECT 31 DIV + + 69 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1214
SELECT 31 / + + 69 FROM tab0
----
0
0
0
query I rowsort
SELECT - - 99 + - col0 + + 87 FROM tab1 cor0 WHERE NOT ( + 26 ) * - col0 <> col0
----
query I rowsort
SELECT DISTINCT + ( ( col0 ) ) FROM tab1 AS cor0
----
51
85
91
onlyif mysql # aggregate syntax:
query I rowsort label-1217
SELECT + COUNT( + + 56 ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-1217
SELECT + COUNT ( + + 56 ) FROM tab1 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-1218
SELECT - + 64 * + + 9 * - COUNT( * ) FROM tab1 AS cor0
----
1728
skipif mysql # not compatible
query I rowsort label-1218
SELECT - + 64 * + + 9 * - COUNT ( * ) FROM tab1 AS cor0
----
1728
query I rowsort
SELECT DISTINCT - 43 * - ( - col1 ) * col1 + + col1 FROM tab0 AS cor0
----
-18942
-282042
-42
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + 86 AND NULL
----
query I rowsort
SELECT ALL col1 * 97 FROM tab1 AS cor0
----
1358
4559
485
onlyif mysql # aggregate syntax:
query I rowsort label-1222
SELECT - SUM( DISTINCT - 70 ) AS col2 FROM tab2 cor0
----
70
skipif mysql # not compatible
query I rowsort label-1222
SELECT - SUM ( DISTINCT - 70 ) AS col2 FROM tab2 cor0
----
70
query I rowsort
SELECT - + ( - - col2 ) FROM tab0 AS cor0
----
-10
-47
-99
onlyif mysql # DIV for integer division:
query I rowsort label-1224
SELECT DISTINCT - col2 DIV ( col1 ) - - col1 + 4 DIV - 16 AS col1 FROM tab2 AS cor0
----
51
67
77
skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT - col2 / ( col1 ) - - col1 + 4 / - 16 AS col1 FROM tab2 AS cor0
----
51
67
77
query I rowsort
SELECT ALL - + col0 + + 64 + + + 96 FROM tab1 AS cor0
----
109
69
75
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 <= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1227
SELECT - COUNT( * ) * 86 + + COUNT( * ) FROM tab0
----
-255
skipif mysql # not compatible
query I rowsort label-1227
SELECT - COUNT ( * ) * 86 + + COUNT ( * ) FROM tab0
----
-255
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1228
SELECT ALL - 87 + + CAST( + - col0 AS SIGNED ) AS col1 FROM tab2
----
-133
-151
-162
skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL - 87 + + CAST ( + - col0 AS INTEGER ) AS col1 FROM tab2
----
-133
-151
-162
query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN - col1 * - col0 AND col2
----
97
1
99
query II rowsort
SELECT col0 + - col0, + col0 FROM tab0
----
0
15
0
87
0
97
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 >= + 56
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT - ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE + 99 - + - col2 NOT IN ( col1, col1 - - col2 * - col1 )
----
-14
-47
-5
onlyif mysql # DIV for integer division:
query I rowsort label-1233
SELECT DISTINCT 42 * col2 DIV + ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
288
495
60
skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT 42 * col2 / + ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
288
495
60
query II rowsort
SELECT + 46 + col0 AS col1, - 21 FROM tab0 AS cor0 WHERE ( col2 + col1 IS NULL )
----
query I rowsort
SELECT DISTINCT + ( + 67 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
67
onlyif mysql # DIV for integer division:
query I rowsort label-1236
SELECT - col0 DIV col0 * + - col2 * - - col1 FROM tab1
----
1344
295
3196
skipif mysql # not compatible
query I rowsort label-1236
SELECT - col0 / col0 * + - col2 * - - col1 FROM tab1
----
1344
295
3196
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT + - col0 FROM tab0 WHERE NULL IS NOT NULL OR NOT 32 <> NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1239
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NULL <= NULL
----
0
skipif mysql # not compatible
query I rowsort label-1239
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <= NULL
----
0
query I rowsort
SELECT - 1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT ALL - 76 - - col0 * col0 FROM tab0 cor0
----
149
7493
9333
onlyif mysql # aggregate syntax:
query I rowsort label-1242
SELECT DISTINCT MIN( ALL - - 3 ) - + SUM( ALL - col1 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
201
skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT MIN ( ALL - - 3 ) - + SUM ( ALL - col1 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
201
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 61 col2 FROM tab2 cor0
----
-61
-61
-61
query II rowsort
SELECT ALL + 63, col0 AS col0 FROM tab1 AS cor0
----
63
51
63
85
63
91
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1245
SELECT * FROM tab0 WHERE NOT CAST( - + 76 AS SIGNED ) * - - col0 + col0 >= + ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-1245
SELECT * FROM tab0 WHERE NOT CAST ( - + 76 AS INTEGER ) * - - col0 + col0 >= + ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 col2 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT col2 + 89 - + col1 AS col1 FROM tab1 cor0 WHERE NOT + col0 * - + ( - col1 ) IN ( col1 + col1, col2, + - col0 / col2 )
----
110
143
171
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 * - 29 - - - col2 ) = - 98
----
onlyif mysql # aggregate syntax:
query I rowsort label-1249
SELECT DISTINCT + 68 * + COUNT( * ) * COUNT( * ) AS col1 FROM tab0 WHERE col0 <= NULL
----
0
skipif mysql # not compatible
query I rowsort label-1249
SELECT DISTINCT + 68 * + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 WHERE col0 <= NULL
----
0
query I rowsort
SELECT DISTINCT + col1 * col2 * - ( + + 93 ) FROM tab2
----
-109089
-286440
-361398
query I rowsort
SELECT DISTINCT - 45 AS col0 FROM tab0 cor0
----
-45
onlyif mysql # aggregate syntax:
query I rowsort label-1252
SELECT ALL - COUNT( * ) * + MAX( 84 ) FROM tab0 AS cor0 WHERE NOT + 27 + - col1 IS NULL
----
-252
skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL - COUNT ( * ) * + MAX ( 84 ) FROM tab0 AS cor0 WHERE NOT + 27 + - col1 IS NULL
----
-252
onlyif mysql # aggregate syntax:
query I rowsort label-1253
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-1253
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-1254
SELECT DISTINCT + MAX( ALL + - 80 ) FROM tab0 cor0
----
-80
skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT + MAX ( ALL + - 80 ) FROM tab0 cor0
----
-80
onlyif mysql # DIV for integer division:
query I rowsort label-1255
SELECT col2 DIV - + col2 col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1255
SELECT col2 / - + col2 col0 FROM tab0 cor0
----
-1
-1
-1
onlyif mysql # aggregate syntax:
query II rowsort label-1256
SELECT ALL - 43 AS col1, COUNT( * ) AS col0 FROM tab1 cor0
----
-43
3
skipif mysql # not compatible
query II rowsort label-1256
SELECT ALL - 43 AS col1, COUNT ( * ) AS col0 FROM tab1 cor0
----
-43
3
query I rowsort
SELECT ALL col0 + 17 - - + 76 FROM tab2 AS cor0
----
139
157
168
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1258
SELECT DISTINCT - + col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT - + col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + 45 * + 25 * 50 AS col0 FROM tab2
----
56250
56250
56250
query II rowsort
SELECT - col0 AS col2, col2 AS col1 FROM tab1
----
-51
96
-85
59
-91
68
onlyif mysql # aggregate syntax:
query I rowsort label-1261
SELECT SUM( - col1 ) FROM tab0
----
-103
skipif mysql # not compatible
query I rowsort label-1261
SELECT SUM ( - col1 ) FROM tab0
----
-103
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 88 col0, col0 col1 FROM tab1
----
88
51
88
85
88
91
query III rowsort
SELECT * FROM tab0 WHERE + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT ALL - col0, col1 + + col0 * - + col1 AS col2 FROM tab0 AS cor0
----
-15
-1134
-87
-1806
-97
-96
query I rowsort
SELECT ALL + + 35 - col2 AS col0 FROM tab0 AS cor0
----
-12
-64
25
query I rowsort
SELECT 64 + - + col0 FROM tab0 AS cor0
----
-23
-33
49
query I rowsort
SELECT - ( + col0 ) * - + 10 + + - col1 + - - 22 FROM tab0 AS cor0
----
871
91
991
query I rowsort
SELECT + col2 + + 43 FROM tab0 cor0
----
142
53
90
query I rowsort
SELECT - 21 FROM tab1 AS cor0 WHERE ( NULL ) >= + + ( - col2 )
----
query I rowsort
SELECT ALL 94 * + col2 FROM tab0
----
4418
9306
940
onlyif mysql # aggregate syntax:
query I rowsort label-1271
SELECT - SUM( ALL + 39 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-351
skipif mysql # not compatible
query I rowsort label-1271
SELECT - SUM ( ALL + 39 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-351
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1272
SELECT DISTINCT ( + - CAST( NULL AS SIGNED ) ) / COUNT( * ) * - MIN( 4 ) FROM tab0 WHERE ( NOT 72 IS NULL )
----
NULL
skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT ( + - CAST ( NULL AS INTEGER ) ) / COUNT ( * ) * - MIN ( 4 ) FROM tab0 WHERE ( NOT 72 IS NULL )
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-1273
SELECT DISTINCT - col0 + - col2 DIV - col0 FROM tab2 AS cor0
----
-46
-64
-75
skipif mysql # not compatible
query I rowsort label-1273
SELECT DISTINCT - col0 + - col2 / - col0 FROM tab2 AS cor0
----
-46
-64
-75
onlyif mysql # aggregate syntax:
query I rowsort label-1274
SELECT COUNT( DISTINCT - col0 ) * MIN( + col2 ) - 97 AS col1 FROM tab2 AS cor0
----
-28
skipif mysql # not compatible
query I rowsort label-1274
SELECT COUNT ( DISTINCT - col0 ) * MIN ( + col2 ) - 97 AS col1 FROM tab2 AS cor0
----
-28
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + 59 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1276
SELECT DISTINCT - MAX( ALL col0 ) AS col0 FROM tab2 AS cor0
----
-75
skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT - MAX ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
-75
onlyif mysql # aggregate syntax:
query I rowsort label-1277
SELECT - COUNT( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-1277
SELECT - COUNT ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-3
query II rowsort
SELECT - col0, col0 AS col0 FROM tab2
----
-46
46
-64
64
-75
75
onlyif mysql # aggregate syntax:
query I rowsort label-1279
SELECT MIN( 60 ) FROM tab1
----
60
skipif mysql # not compatible
query I rowsort label-1279
SELECT MIN ( 60 ) FROM tab1
----
60
query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query I rowsort label-1281
SELECT + col1 DIV - 20 AS col2 FROM tab0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-1281
SELECT + col1 / - 20 AS col2 FROM tab0
----
-1
-4
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1282
SELECT - CAST( NULL AS SIGNED ) / col0 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1282
SELECT - CAST ( NULL AS INTEGER ) / col0 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - 45 AS col1 FROM tab0 AS cor0
----
45
45
45
query II rowsort
SELECT DISTINCT col0 * + col0, col0 AS col0 FROM tab1
----
2601
51
7225
85
8281
91
query I rowsort
SELECT col2 * + 71 FROM tab1
----
4189
4828
6816
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1286
SELECT - 61 / + CAST( NULL AS SIGNED ) - + 95 * + + COUNT( * ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1286
SELECT - 61 / + CAST ( NULL AS INTEGER ) - + 95 * + + COUNT ( * ) FROM tab0 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1287
SELECT + + COUNT( * ) * COUNT( ALL - col2 ) FROM tab1 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-1287
SELECT + + COUNT ( * ) * COUNT ( ALL - col2 ) FROM tab1 AS cor0
----
9
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1288
SELECT SUM( 45 ) / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1288
SELECT SUM ( 45 ) / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1289
SELECT ALL - SUM( col0 ) AS col1 FROM tab1 AS cor0
----
-227
skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL - SUM ( col0 ) AS col1 FROM tab1 AS cor0
----
-227
onlyif mysql # aggregate syntax:
query I rowsort label-1290
SELECT ALL MIN( col1 ) FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL MIN ( col1 ) FROM tab0 AS cor0
----
1
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < + ( + col2 )
----
query I rowsort
SELECT ALL - - 67 * - col0 - + - col0 FROM tab1 AS cor0
----
-3366
-5610
-6006
query I rowsort
SELECT col0 + + 22 * - col0 FROM tab1
----
-1071
-1785
-1911
query III rowsort
SELECT * FROM tab1 WHERE NULL > + 53
----
query I rowsort
SELECT 81 + + col1 AS col2 FROM tab2
----
132
148
158
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col0 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1297
SELECT DISTINCT - COUNT( * ) + 24 * + - COUNT( - 1 ) + + ( + SUM( ALL - 23 ) ) FROM tab1
----
-144
skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT - COUNT ( * ) + 24 * + - COUNT ( - 1 ) + + ( + SUM ( ALL - 23 ) ) FROM tab1
----
-144
onlyif mysql # aggregate syntax:
query I rowsort label-1298
SELECT + COUNT( - - col0 ) AS col1 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-1298
SELECT + COUNT ( - - col0 ) AS col1 FROM tab1
----
3
query I rowsort
SELECT ALL ( col0 ) * col0 + ( + - col1 ) + + col0 FROM tab1
----
2638
7305
8325
query I rowsort
SELECT - 18 * + col0 FROM tab1
----
-1530
-1638
-918
query I rowsort
SELECT DISTINCT col2 + - 53 FROM tab0
----
-43
-6
46
query III rowsort
SELECT * FROM tab0 WHERE ( + + 80 ) IS NULL
----
query I rowsort
SELECT ALL 12 - - + col0 FROM tab2 AS cor0
----
58
76
87
query I rowsort
SELECT DISTINCT - ( - col2 ) AS col1 FROM tab1 cor0
----
59
68
96
onlyif mysql # aggregate syntax:
query I rowsort label-1305
SELECT + SUM( ALL + + col0 ) FROM tab2 AS cor0
----
185
skipif mysql # not compatible
query I rowsort label-1305
SELECT + SUM ( ALL + + col0 ) FROM tab2 AS cor0
----
185
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query II rowsort label-1306
SELECT - 16 * + CAST( - + 67 AS SIGNED ) + + col1 + - 27 - + + 23 * + 56 * - + col1 * + - ( col1 ) * - + col2, - col0 / + CAST( NULL AS DECIMAL ) * - - 96 col2 FROM tab0 AS cor0
----
128558
NULL
397177822
NULL
5681146
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1306
SELECT - 16 * + CAST ( - + 67 AS INTEGER ) + + col1 + - 27 - + + 23 * + 56 * - + col1 * + - ( col1 ) * - + col2, - col0 / + CAST ( NULL AS REAL ) * - - 96 col2 FROM tab0 AS cor0
----
128558
NULL
397177822
NULL
5681146
NULL
query I rowsort
SELECT + 99 * - ( - 15 ) + + 19 AS col1 FROM tab2 AS cor0 WHERE col0 >= NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1308
SELECT ALL col0 - + CAST( 15 AS SIGNED ) AS col1 FROM tab0 cor0
----
0
72
82
skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL col0 - + CAST ( 15 AS INTEGER ) AS col1 FROM tab0 cor0
----
0
72
82
query II rowsort
SELECT - col2, + 96 AS col0 FROM tab1
----
-59
96
-68
96
-96
96
onlyif mysql # aggregate syntax:
query I rowsort label-1310
SELECT ALL - MAX( ALL + 35 ) AS col0 FROM tab0 AS cor0
----
-35
skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL - MAX ( ALL + 35 ) AS col0 FROM tab0 AS cor0
----
-35
query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1312
SELECT - MAX( ALL col0 ) AS col0 FROM tab1 AS cor0
----
-91
skipif mysql # not compatible
query I rowsort label-1312
SELECT - MAX ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
-91
query I rowsort
SELECT ALL col2 * + + col2 FROM tab0 AS cor0
----
100
2209
9801
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1314
SELECT ALL + CAST( NULL AS SIGNED ) * MIN( + - 40 ) FROM tab2 WHERE NOT + ( + col0 ) * + col2 >= - 90 / - col1 * col1
----
NULL
skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL + CAST ( NULL AS INTEGER ) * MIN ( + - 40 ) FROM tab2 WHERE NOT + ( + col0 ) * + col2 >= - 90 / - col1 * col1
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1315
SELECT ALL MIN( ALL col1 ) FROM tab2
----
51
skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL MIN ( ALL col1 ) FROM tab2
----
51
onlyif mysql # DIV for integer division:
query I rowsort label-1316
SELECT + col2 DIV 46 AS col0 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1316
SELECT + col2 / 46 AS col0 FROM tab2
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 77 col1 FROM tab1 cor0
----
-77
-77
-77
onlyif mysql # aggregate syntax:
query I rowsort label-1318
SELECT MAX( col1 ) AS col2 FROM tab1 AS cor0
----
47
skipif mysql # not compatible
query I rowsort label-1318
SELECT MAX ( col1 ) AS col2 FROM tab1 AS cor0
----
47
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1319
SELECT + col1 + + 81 AS col2, col0 * - col0 * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
102
NULL
162
NULL
82
NULL
skipif mysql # not compatible
query II rowsort label-1319
SELECT + col1 + + 81 AS col2, col0 * - col0 * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
102
NULL
162
NULL
82
NULL
query I rowsort
SELECT - col1 * + + 88 + + 79 FROM tab1 AS cor0
----
-1153
-361
-4057
query I rowsort
SELECT ALL col1 + + - col2 AS col2 FROM tab2
----
28
37
9
onlyif mysql # DIV for integer division:
query I rowsort label-1322
SELECT DISTINCT 96 DIV - col1 FROM tab0
----
-1
-4
-96
skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT 96 / - col1 FROM tab0
----
-1
-4
-96
onlyif mysql # aggregate syntax:
query II rowsort label-1323
SELECT + COUNT( * ) AS col0, - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-9
skipif mysql # not compatible
query II rowsort label-1323
SELECT + COUNT ( * ) AS col0, - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-9
query I rowsort
SELECT ALL - ( + 89 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
onlyif mysql # aggregate syntax:
query I rowsort label-1325
SELECT ALL + MIN( 88 ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
88
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1325
SELECT ALL + MIN ( 88 ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
88
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= - 41 / + 38 * - col1 * + - col2 + - col2
----
query I rowsort
SELECT DISTINCT col1 * 11 + + - 57 FROM tab0
----
-46
174
834
query I rowsort
SELECT DISTINCT + - ( 53 ) AS col1 FROM tab2 cor0
----
-53
onlyif mysql # aggregate syntax:
query I rowsort label-1329
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - col1 AS col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47
query I rowsort
SELECT DISTINCT + ( - - 46 ) FROM tab1 cor0
----
46
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 15 BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT + - 52 AS col1 FROM tab0 AS cor0
----
-52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 * 11 col2 FROM tab0 AS cor0
----
253
253
253
onlyif mysql # aggregate syntax:
query I rowsort label-1335
SELECT - MIN( ALL + 0 ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1335
SELECT - MIN ( ALL + 0 ) FROM tab1 AS cor0
----
0
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1336
SELECT CAST( - ( - 69 ) AS SIGNED ), col1 AS col2 FROM tab2 AS cor0
----
69
51
69
67
69
77
skipif mysql # not compatible
query II rowsort label-1336
SELECT CAST ( - ( - 69 ) AS INTEGER ), col1 AS col2 FROM tab2 AS cor0
----
69
51
69
67
69
77
query I rowsort
SELECT DISTINCT + 50 * + col0 FROM tab1
----
2550
4250
4550
query I rowsort
SELECT col0 * - - 44 - - col0 AS col1 FROM tab1
----
2295
3825
4095
query I rowsort
SELECT ALL 53 * - col0 + - - 15 FROM tab2
----
-2423
-3377
-3960
onlyif mysql # aggregate syntax:
query I rowsort label-1340
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) * + 46 - MAX( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-505
skipif mysql # not compatible
query I rowsort label-1340
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * + 46 - MAX ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-505
query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 cor0 WHERE NOT ( NOT - col0 + + - col1 IS NULL )
----
onlyif mysql # DIV for integer division:
query II rowsort label-1343
SELECT ALL col2 - - - col0 * + col0 + + 63 AS col1, col2 * col1 DIV - col1 FROM tab1 AS cor0
----
-2442
-96
-7103
-59
-8150
-68
skipif mysql # not compatible
query II rowsort label-1343
SELECT ALL col2 - - - col0 * + col0 + + 63 AS col1, col2 * col1 / - col1 FROM tab1 AS cor0
----
-2442
-96
-7103
-59
-8150
-68
query I rowsort
SELECT DISTINCT + col0 + - + col0 AS col2 FROM tab2 AS cor0
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1345
SELECT col0 / - CAST( NULL AS SIGNED ) * - + col2 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1345
SELECT col0 / - CAST ( NULL AS INTEGER ) * - + col2 AS col2 FROM tab0
----
NULL
NULL
NULL
query II rowsort
SELECT DISTINCT col1, col1 AS col1 FROM tab1
----
14
14
47
47
5
5
query II rowsort
SELECT DISTINCT - + col1 AS col0, col2 AS col2 FROM tab1 WHERE NULL IS NULL
----
-14
96
-47
68
-5
59
query I rowsort
SELECT DISTINCT - + col2 * + - col2 + col0 AS col2 FROM tab2 AS cor0
----
1664
3439
575
query I rowsort
SELECT - + col0 * - 15 AS col2 FROM tab0 AS cor0
----
1305
1455
225
query I rowsort
SELECT ALL - 30 * 46 * - col2 AS col1 FROM tab1 cor0
----
132480
81420
93840
onlyif mysql # aggregate syntax:
query I rowsort label-1351
SELECT + MIN( DISTINCT + 49 ) col0 FROM tab1 AS cor0
----
49
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1351
SELECT + MIN ( DISTINCT + 49 ) col0 FROM tab1 AS cor0
----
49
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1352
SELECT ALL - + COUNT( * ) DIV - + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-2
skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL - + COUNT ( * ) / - + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-2
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 * - 15 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1354
SELECT COUNT( * ) FROM tab0, tab1 cor0
----
9
skipif mysql # not compatible
query I rowsort label-1354
SELECT COUNT ( * ) FROM tab0, tab1 cor0
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 98 col2, col2 FROM tab0
----
98
10
98
47
98
99
query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT col2 / + col0 / - col2 - col0 - + col1 + - col1 * col0 * + - 68 * + - col1 * + 51 IS NULL
----
46
64
75
query I rowsort
SELECT DISTINCT - 10 * + col1 * - 35 FROM tab0
----
28350
350
7350
onlyif mysql # aggregate syntax:
query I rowsort label-1358
SELECT SUM( 68 ) + + + 78 FROM tab0
----
282
skipif mysql # not compatible
query I rowsort label-1358
SELECT SUM ( 68 ) + + + 78 FROM tab0
----
282
query I rowsort
SELECT 65 * + col1 AS col0 FROM tab0
----
1365
5265
65
query I rowsort
SELECT DISTINCT - col1 * - - ( - 98 ) * - col0 * - 85 FROM tab0
----
10120950
15218910
808010
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-1361
SELECT + 72 / + CAST( NULL AS DECIMAL ) * + + COUNT( * ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1361
SELECT + 72 / + CAST ( NULL AS REAL ) * + + COUNT ( * ) AS col0 FROM tab2
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 23 BETWEEN NULL AND col0
----
onlyif mysql # DIV for integer division:
query I rowsort label-1363
SELECT + col0 DIV + ( - col0 ) col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1363
SELECT + col0 / + ( - col0 ) col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - col0 * - ( + col1 ) AS col2 FROM tab2 AS cor0
----
2346
4928
5025
query III rowsort
SELECT DISTINCT + col0 AS col0, col2, - ( - ( col0 ) ) AS col2 FROM tab2 AS cor0
----
9 values hashing to ff7ca66775ef856852310661dba65470
query I rowsort
SELECT + - 19 * 73 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 0d1e451daf6ee4f38f88b73cc0f6931f
onlyif mysql # aggregate syntax:
query I rowsort label-1367
SELECT DISTINCT COUNT( ( col0 ) ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-1367
SELECT DISTINCT COUNT ( ( col0 ) ) FROM tab2
----
3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-1368
SELECT - + CAST( NULL AS SIGNED ) + COUNT( * ), 20 AS col0 FROM tab2 cor0
----
NULL
20
skipif mysql # not compatible
query II rowsort label-1368
SELECT - + CAST ( NULL AS INTEGER ) + COUNT ( * ), 20 AS col0 FROM tab2 cor0
----
NULL
20
query I rowsort
SELECT DISTINCT + col1 * + + col1 + - - 92 FROM tab0 AS cor0 WHERE NOT ( NULL ) > ( + col1 )
----
query I rowsort
SELECT + - 80 + - col1 FROM tab0 AS cor0
----
-101
-161
-81
query I rowsort
SELECT + + col2 + - - col1 FROM tab0 AS cor0
----
100
128
31
query I rowsort
SELECT col0 + - 33 + + + 85 + + - 6 + 45 FROM tab1 AS cor0 WHERE - col1 - col0 + + + col0 IS NOT NULL
----
142
176
182
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - - ( + 41 ) col0 FROM tab0 AS cor0
----
-40
20
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col1 FROM tab2 AS cor0 WHERE + ( - 11 ) IS NOT NULL
----
42
42
42
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 <> NULL
----
query I rowsort
SELECT DISTINCT col0 + - col0 * + + col0 * - 31 FROM tab0
----
234726
291776
6990
query I rowsort
SELECT + + col0 * col0 + - col2 AS col2 FROM tab1 WHERE + 53 * + col1 IS NOT NULL
----
2505
7166
8213
query II rowsort
SELECT col0 AS col2, + col1 * + col1 FROM tab0
----
15
6561
87
441
97
1
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1379
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 * - + CAST( 83 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-1379
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 * - + CAST ( 83 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-1380
SELECT MIN( DISTINCT + col0 ) FROM tab2
----
46
skipif mysql # not compatible
query I rowsort label-1380
SELECT MIN ( DISTINCT + col0 ) FROM tab2
----
46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col2 FROM tab0
----
42
42
42
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * 54 * + 23 <> NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1383
SELECT * FROM tab0 cor0 WHERE - col2 / CAST( NULL AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-1383
SELECT * FROM tab0 cor0 WHERE - col2 / CAST ( NULL AS INTEGER ) IS NOT NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1384
SELECT SUM( ALL + col0 ) DIV 52 AS col1 FROM tab1
----
4
skipif mysql # not compatible
query I rowsort label-1384
SELECT SUM ( ALL + col0 ) / 52 AS col1 FROM tab1
----
4
onlyif mysql # aggregate syntax:
query I rowsort label-1385
SELECT MIN( ALL + col1 ) col2 FROM tab1
----
5
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1385
SELECT MIN ( ALL + col1 ) col2 FROM tab1
----
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col2 FROM tab0 AS cor0
----
4
4
4
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + + - 50 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1388
SELECT ALL - CAST( NULL AS SIGNED ) * - + COUNT( * ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) FROM tab1 AS cor0
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1389
SELECT - - col0 * - ( + ( + CAST( + col0 AS SIGNED ) ) ) FROM tab1 AS cor0
----
-2601
-7225
-8281
skipif mysql # not compatible
query I rowsort label-1389
SELECT - - col0 * - ( + ( + CAST ( + col0 AS INTEGER ) ) ) FROM tab1 AS cor0
----
-2601
-7225
-8281
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > + 98
----
query I rowsort
SELECT DISTINCT - 4 AS col0 FROM tab1 cor0
----
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 col2 FROM tab1 WHERE - col2 * - col2 = NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1393
SELECT CAST( - 54 AS SIGNED ) * + col0 - - - col2 FROM tab2
----
-2507
-3496
-4108
skipif mysql # not compatible
query I rowsort label-1393
SELECT CAST ( - 54 AS INTEGER ) * + col0 - - - col2 FROM tab2
----
-2507
-3496
-4108
query I rowsort
SELECT ALL - 41 + col1 FROM tab1
----
-27
-36
6
onlyif mysql # aggregate syntax:
query I rowsort label-1395
SELECT - COUNT( * ) * + + 69 AS col1 FROM tab2
----
-207
skipif mysql # not compatible
query I rowsort label-1395
SELECT - COUNT ( * ) * + + 69 AS col1 FROM tab2
----
-207
query I rowsort
SELECT ALL + col0 * - + 46 AS col0 FROM tab2
----
-2116
-2944
-3450
onlyif mysql # aggregate syntax:
query I rowsort label-1397
SELECT DISTINCT COUNT( * ) * - 56 * COUNT( * ) AS col1 FROM tab1
----
-504
skipif mysql # not compatible
query I rowsort label-1397
SELECT DISTINCT COUNT ( * ) * - 56 * COUNT ( * ) AS col1 FROM tab1
----
-504
onlyif mysql # aggregate syntax:
query I rowsort label-1398
SELECT ALL - COUNT( * ) * 38 AS col1 FROM tab1
----
-114
skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL - COUNT ( * ) * 38 AS col1 FROM tab1
----
-114
onlyif mysql # aggregate syntax:
query I rowsort label-1399
SELECT DISTINCT + COUNT( * ) * + - 92 AS col1 FROM tab1
----
-276
skipif mysql # not compatible
query I rowsort label-1399
SELECT DISTINCT + COUNT ( * ) * + - 92 AS col1 FROM tab1
----
-276
query I rowsort
SELECT DISTINCT 67 FROM tab0 WHERE NOT 70 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-1401
SELECT ALL col0 DIV - 51 + + col0 + - col2 AS col2 FROM tab0 AS cor0
----
-3
-32
76
skipif mysql # not compatible
query I rowsort label-1401
SELECT ALL col0 / - 51 + + col0 + - col2 AS col2 FROM tab0 AS cor0
----
-3
-32
76
onlyif mysql # DIV for integer division:
query I rowsort label-1402
SELECT ALL + - col0 DIV 56 AS col1 FROM tab0 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL + - col0 / 56 AS col1 FROM tab0 AS cor0
----
-1
-1
0
query I rowsort
SELECT DISTINCT + 55 AS col0 FROM tab2 cor0
----
55
query II rowsort
SELECT + ( - col0 ) * - 34 AS col0, - col0 * - 30 * - col2 FROM tab0 AS cor0 WHERE col2 + - + 85 BETWEEN - 38 * col0 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1405
SELECT ALL - + COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT col1 * + col2 IS NULL
----
-3
skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL - + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT col1 * + col2 IS NULL
----
-3
query I rowsort
SELECT 44 * col0 + + - col2 FROM tab0 AS cor0
----
3818
4169
613
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1407
SELECT - 42 * - col0 + + CAST( NULL AS SIGNED ) / + ( - + col2 ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1407
SELECT - 42 * - col0 + + CAST ( NULL AS INTEGER ) / + ( - + col2 ) AS col0 FROM tab2
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab1 WHERE + ( col0 ) + + 80 <= 98
----
query I rowsort
SELECT DISTINCT + col0 * + col2 - 63 + col0 FROM tab1
----
4884
5037
6216
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-1410
SELECT ALL + col0 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL + col0 + + CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col0, + col1 FROM tab2 AS cor0 WHERE col0 + - col2 NOT BETWEEN col0 AND col0
----
-23
51
-40
77
-58
67
onlyif mysql # aggregate syntax:
query I rowsort label-1412
SELECT COUNT( col0 ) FROM tab0 cor0
----
3
skipif mysql # not compatible
query I rowsort label-1412
SELECT COUNT ( col0 ) FROM tab0 cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1413
SELECT + CAST( - + col2 AS SIGNED ) FROM tab2 cor0
----
-23
-40
-58
skipif mysql # not compatible
query I rowsort label-1413
SELECT + CAST ( - + col2 AS INTEGER ) FROM tab2 cor0
----
-23
-40
-58
onlyif mysql # aggregate syntax:
query I rowsort label-1414
SELECT - ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-1414
SELECT - ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-1415
SELECT DISTINCT - - MAX( DISTINCT - col2 ) FROM tab2 AS cor0
----
-23
skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT - - MAX ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-23
onlyif mysql # aggregate syntax:
query I rowsort label-1416
SELECT ALL - MIN( - col0 ) FROM tab1 AS cor0
----
91
skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL - MIN ( - col0 ) FROM tab1 AS cor0
----
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 col1 FROM tab2 AS cor0
----
-29
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1418
SELECT col2 * - + col2 + - col0 + + col2 * - CAST( col2 AS SIGNED ) * - 85 - - col0 + CAST( + - col0 AS SIGNED ) AS col2 FROM tab2
----
134336
282501
44390
skipif mysql # not compatible
query I rowsort label-1418
SELECT col2 * - + col2 + - col0 + + col2 * - CAST ( col2 AS INTEGER ) * - 85 - - col0 + CAST ( + - col0 AS INTEGER ) AS col2 FROM tab2
----
134336
282501
44390
query I rowsort
SELECT col2 + 17 AS col0 FROM tab1
----
113
76
85
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * - col2 <> - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1422
SELECT + + ( col1 ), + ( - 87 ) - + - CAST( NULL AS SIGNED ) * ( - col1 ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL
skipif mysql # not compatible
query II rowsort label-1422
SELECT + + ( col1 ), + ( - 87 ) - + - CAST ( NULL AS INTEGER ) * ( - col1 ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - 23 ) + - 99 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
query I rowsort
SELECT - + 2 FROM tab1 cor0
----
-2
-2
-2
onlyif mysql # aggregate syntax:
query I rowsort label-1425
SELECT ALL - COUNT( ALL + 86 ) FROM tab0 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL - COUNT ( ALL + 86 ) FROM tab0 cor0
----
-3
query II rowsort
SELECT - 76, + 44 * col0 AS col0 FROM tab2 AS cor0
----
-76
2024
-76
2816
-76
3300
query II rowsort
SELECT + 75 AS col1, - 0 AS col2 FROM tab0 AS cor0
----
75
0
75
0
75
0
query II rowsort
SELECT ALL + col1, - ( - col1 ) * 35 AS col0 FROM tab1 AS cor0
----
14
490
47
1645
5
175
query II rowsort
SELECT ALL - col0 AS col1, - col0 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91
query I rowsort
SELECT DISTINCT + 75 * - - col1 FROM tab0 AS cor0
----
1575
6075
75
query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1432
SELECT + col1 AS col0, + CAST( NULL AS SIGNED ) - + + CAST( + - CAST( col1 AS SIGNED ) AS SIGNED ) col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1432
SELECT + col1 AS col0, + CAST ( NULL AS INTEGER ) - + + CAST ( + - CAST ( col1 AS INTEGER ) AS INTEGER ) col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 NOT IN ( + col2, col1 * - 28 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - 79 AS col2 FROM tab1 AS cor0 WHERE NOT ( + - col1 ) <> NULL
----
query I rowsort
SELECT 16 + - col0 + - + 72 FROM tab0
----
-143
-153
-71
query I rowsort
SELECT ALL - col1 * - col2 + 51 + - - col0 AS col1 FROM tab0
----
247
348
3873
query I rowsort
SELECT col2 + - 29 + col1 AS col1 FROM tab1
----
35
81
86
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1438
SELECT DISTINCT + MAX( ALL CAST( NULL AS SIGNED ) ) + + 29 AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1438
SELECT DISTINCT + MAX ( ALL CAST ( NULL AS INTEGER ) ) + + 29 AS col0 FROM tab1
----
NULL
query II rowsort
SELECT DISTINCT - col2 * col1 AS col2, + 92 + + col0 FROM tab0
----
-210
179
-3807
107
-99
189
onlyif mysql # aggregate syntax:
query I rowsort label-1440
SELECT ALL - SUM( col1 ) AS col0 FROM tab2
----
-195
skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL - SUM ( col1 ) AS col0 FROM tab2
----
-195
query II rowsort
SELECT - col1 * col0, col2 AS col1 FROM tab1
----
-425
59
-4277
68
-714
96
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1442
SELECT ALL + 79 DIV + MIN( ALL + + col0 ) FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL + 79 / + MIN ( ALL + + col0 ) FROM tab2
----
1
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1443
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-1443
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1444
SELECT + ( COUNT( + col1 ) ) * + 61 col0 FROM tab2 AS cor0
----
183
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1444
SELECT + ( COUNT ( + col1 ) ) * + 61 col0 FROM tab2 AS cor0
----
183
query II rowsort
SELECT - ( - 62 ) - - col2 * - col0 + - col2 + 51 AS col1, col0 * - col1 + - 90 * - - 73 AS col2 FROM tab0
----
-639
-7785
-767
-8397
-9589
-6667
query I rowsort
SELECT + col2 - + col1 + + col1 FROM tab0
----
10
47
99
query I rowsort
SELECT DISTINCT + 57 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
57
onlyif mysql # aggregate syntax:
query I rowsort label-1448
SELECT - COUNT( * ) + - COUNT( * ) AS col0 FROM tab1
----
-6
skipif mysql # not compatible
query I rowsort label-1448
SELECT - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1
----
-6
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-1449
SELECT - CAST( NULL AS DECIMAL ) / + ( + col1 ) + + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1449
SELECT - CAST ( NULL AS REAL ) / + ( + col1 ) + + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1450
SELECT DISTINCT - COUNT( DISTINCT + - col0 ) + 50 FROM tab0 AS cor0
----
47
skipif mysql # not compatible
query I rowsort label-1450
SELECT DISTINCT - COUNT ( DISTINCT + - col0 ) + 50 FROM tab0 AS cor0
----
47
query I rowsort
SELECT col1 + 67 AS col0 FROM tab0 AS cor0
----
148
68
88
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1452
SELECT + - col1 * + col2 + ( + CAST( + - 72 AS SIGNED ) ) * col0 AS col1, 23 - + - col1 - + 80 FROM tab2 AS cor0
----
-4485
-6
-7688
20
-9286
10
skipif mysql # not compatible
query II rowsort label-1452
SELECT + - col1 * + col2 + ( + CAST ( + - 72 AS INTEGER ) ) * col0 AS col1, 23 - + - col1 - + 80 FROM tab2 AS cor0
----
-4485
-6
-7688
20
-9286
10
query I rowsort
SELECT - 84 AS col2 FROM tab2 WHERE NOT - - col0 <> - col1 + - + 11
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 22, col2 * + ( + col2 ) col1 FROM tab1
----
22
3481
22
4624
22
9216
onlyif mysql # aggregate syntax:
query I rowsort label-1455
SELECT ALL - COUNT( DISTINCT - col0 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3
skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL - COUNT ( DISTINCT - col0 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3
query I rowsort
SELECT 56 * - 44 FROM tab1
----
-2464
-2464
-2464
query I rowsort
SELECT col1 * - col2 * - col0 * col0 AS col0 FROM tab2
----
12615680
21858750
2482068
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1458
SELECT ALL CAST( col1 AS SIGNED ) col0 FROM tab1
----
14
47
5
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1458
SELECT ALL CAST ( col1 AS INTEGER ) col0 FROM tab1
----
14
47
5
query II rowsort
SELECT DISTINCT - 86 AS col2, - col1 FROM tab1
----
-86
-14
-86
-47
-86
-5
query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91
query I rowsort
SELECT col0 * 87 FROM tab2
----
4002
5568
6525
onlyif mysql # aggregate syntax:
query I rowsort label-1462
SELECT + 40 * - MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
-3880
skipif mysql # not compatible
query I rowsort label-1462
SELECT + 40 * - MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
-3880
query I rowsort
SELECT ( - 90 ) FROM tab0 AS cor0
----
-90
-90
-90
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 81 IS NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-1465
SELECT ALL ( - COUNT( ALL col0 ) ), + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
3
skipif mysql # not compatible
query II rowsort label-1465
SELECT ALL ( - COUNT ( ALL col0 ) ), + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
3
onlyif mysql # aggregate syntax:
query I rowsort label-1466
SELECT DISTINCT - COUNT( * ) + + + 70 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
64
skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT - COUNT ( * ) + + + 70 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
64
query II rowsort
SELECT DISTINCT col1 AS col1, + 97 * - + 30 * 70 AS col0 FROM tab0
----
1
-203700
21
-203700
81
-203700
query III rowsort
SELECT ALL * FROM tab0 WHERE + + col0 IS NULL
----
query I rowsort
SELECT - 71 AS col1 FROM tab0
----
-71
-71
-71
onlyif mysql # aggregate syntax:
query I rowsort label-1470
SELECT COUNT( - 70 ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-1470
SELECT COUNT ( - 70 ) FROM tab0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-1471
SELECT ALL MIN( + col0 ) FROM tab0
----
15
skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL MIN ( + col0 ) FROM tab0
----
15
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1472
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 51 AND - - CAST( col2 AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 51 AND - - CAST ( col2 AS INTEGER )
----
query I rowsort
SELECT 35 * - col0 AS col0 FROM tab0
----
-3045
-3395
-525
onlyif mysql # aggregate syntax:
query I rowsort label-1474
SELECT - 49 * 2 - + COUNT( * ) FROM tab2
----
-101
skipif mysql # not compatible
query I rowsort label-1474
SELECT - 49 * 2 - + COUNT ( * ) FROM tab2
----
-101
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = - 63 + - 34
----
onlyif mysql # aggregate syntax:
query I rowsort label-1476
SELECT DISTINCT - COUNT( * ) * + ( + 35 ) AS col0 FROM tab1
----
-105
skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT - COUNT ( * ) * + ( + 35 ) AS col0 FROM tab1
----
-105
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1477
SELECT col1 / 17 - 98 * - col1 FROM tab0 WHERE col1 IN ( CAST( NULL AS SIGNED ) )
----
skipif mysql # not compatible
query I rowsort label-1477
SELECT col1 / 17 - 98 * - col1 FROM tab0 WHERE col1 IN ( CAST ( NULL AS INTEGER ) )
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1478
SELECT - COUNT( * ) DIV 5 col2 FROM tab0
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1478
SELECT - COUNT ( * ) / 5 col2 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 + 15 col1 FROM tab2 WHERE NOT NULL IN ( + col0 )
----
query I rowsort
SELECT + col1 * - 65 + col2 AS col0 FROM tab0
----
-1355
-5218
34
onlyif mysql # aggregate syntax:
query I rowsort label-1481
SELECT ALL - MIN( ALL - ( col2 ) ) * + COUNT( * ) col1 FROM tab0
----
297
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1481
SELECT ALL - MIN ( ALL - ( col2 ) ) * + COUNT ( * ) col1 FROM tab0
----
297
query I rowsort
SELECT ALL - col1 / 88 AS col2 FROM tab2 WHERE NULL NOT IN ( + 32 )
----
query I rowsort
SELECT ALL + 74 / col0 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT + ( 31 ) * col0 AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
2697
3007
465
query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 84 * + col1 ) >= - col1
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1486
SELECT CAST( 86 AS SIGNED ) + COUNT( * ) FROM tab0
----
89
skipif mysql # not compatible
query I rowsort label-1486
SELECT CAST ( 86 AS INTEGER ) + COUNT ( * ) FROM tab0
----
89
query I rowsort
SELECT col1 + + 72 FROM tab1
----
119
77
86
onlyif mysql # aggregate syntax:
query I rowsort label-1488
SELECT + COUNT( 61 ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-1488
SELECT + COUNT ( 61 ) FROM tab0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-1489
SELECT ALL - 57 + COUNT( * ) FROM tab0 WHERE NOT + col2 + 78 * - 8 <> col0 * - 37
----
-57
skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL - 57 + COUNT ( * ) FROM tab0 WHERE NOT + col2 + 78 * - 8 <> col0 * - 37
----
-57
onlyif mysql # aggregate syntax:
query I rowsort label-1490
SELECT ( + COUNT( * ) ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-1490
SELECT ( + COUNT ( * ) ) FROM tab0
----
3
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-1491
SELECT CAST( + ( 39 ) AS SIGNED ) DIV - 23 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1491
SELECT CAST ( + ( 39 ) AS INTEGER ) / - 23 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1492
SELECT ALL 28 DIV + ( COUNT( * ) ) FROM tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL 28 / + ( COUNT ( * ) ) FROM tab0 AS cor0
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-1493
SELECT ALL 67 * + MIN( DISTINCT col0 ) FROM tab1 AS cor0
----
3417
skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL 67 * + MIN ( DISTINCT col0 ) FROM tab1 AS cor0
----
3417
query I rowsort
SELECT ( 4 ) AS col2 FROM tab0 AS cor0
----
4
4
4
onlyif mysql # aggregate syntax:
query I rowsort label-1495
SELECT ALL + MAX( DISTINCT col2 ) FROM tab2 AS cor0 WHERE 69 IN ( ( col1 ) )
----
NULL
skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL + MAX ( DISTINCT col2 ) FROM tab2 AS cor0 WHERE 69 IN ( ( col1 ) )
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + ( - col1 ) ) IS NULL
----
query I rowsort
SELECT + 60 * col2 AS col1 FROM tab0 cor0
----
2820
5940
600
query I rowsort
SELECT ALL col0 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 ) < col1
----
138
65
90
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 <> NULL
----
query I rowsort
SELECT + + 84 * col2 + col2 AS col2 FROM tab2 AS cor0
----
1955
3400
4930
query I rowsort
SELECT col2 AS col0 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND 40 - col2 * + col1
----
query I rowsort
SELECT + col0 + + 9 AS col1 FROM tab0 AS cor0
----
106
24
96
query I rowsort
SELECT + 25 + - col0 * - 67 FROM tab0 AS cor0
----
1030
5854
6524
query I rowsort
SELECT - 22 + 97 FROM tab0 AS cor0 WHERE - col1 IN ( + 9 )
----
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 * col2 BETWEEN + col0 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1506
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 BETWEEN NULL AND 69 + CAST( - 32 AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-1506
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 BETWEEN NULL AND 69 + CAST ( - 32 AS INTEGER )
----
query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 AND ( 46 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1508
SELECT COUNT( * ) * - COUNT( * ) FROM tab2 WHERE NULL NOT IN ( - col1 * + col1 )
----
0
skipif mysql # not compatible
query I rowsort label-1508
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE NULL NOT IN ( - col1 * + col1 )
----
0
query I rowsort
SELECT ALL - 79 + - 98 AS col0 FROM tab1
----
-177
-177
-177
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1510
SELECT DISTINCT * FROM tab1 WHERE ( col0 ) NOT BETWEEN + CAST( NULL AS SIGNED ) - 79 AND + ( col0 ) + + col1
----
skipif mysql # not compatible
query III rowsort label-1510
SELECT DISTINCT * FROM tab1 WHERE ( col0 ) NOT BETWEEN + CAST ( NULL AS INTEGER ) - 79 AND + ( col0 ) + + col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-1511
SELECT ALL + ( COUNT( * ) ) * - 89 AS col1 FROM tab1
----
-267
skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL + ( COUNT ( * ) ) * - 89 AS col1 FROM tab1
----
-267
query I rowsort
SELECT ALL + col2 + - - col2 AS col1 FROM tab2
----
116
46
80
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1513
SELECT + MIN( DISTINCT + ( ( + CAST( NULL AS SIGNED ) ) ) ) * + 31 + COUNT( * ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1513
SELECT + MIN ( DISTINCT + ( ( + CAST ( NULL AS INTEGER ) ) ) ) * + 31 + COUNT ( * ) FROM tab1
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1514
SELECT ALL 20 + - + COUNT( - col2 ) AS col2 FROM tab0
----
17
skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL 20 + - + COUNT ( - col2 ) AS col2 FROM tab0
----
17
query III rowsort
SELECT ALL * FROM tab1 WHERE 45 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1516
SELECT ALL - ( + SUM( ALL col1 ) ) FROM tab0
----
-103
skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL - ( + SUM ( ALL col1 ) ) FROM tab0
----
-103
onlyif mysql # aggregate syntax:
query I rowsort label-1517
SELECT MAX( col1 ) FROM tab2 cor0
----
77
skipif mysql # not compatible
query I rowsort label-1517
SELECT MAX ( col1 ) FROM tab2 cor0
----
77
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1518
SELECT - col2 / + CAST( NULL AS SIGNED ) - - 6 * + col0 FROM tab0 AS cor0 WHERE col2 > NULL
----
skipif mysql # not compatible
query I rowsort label-1518
SELECT - col2 / + CAST ( NULL AS INTEGER ) - - 6 * + col0 FROM tab0 AS cor0 WHERE col2 > NULL
----
query I rowsort
SELECT DISTINCT + + 81 AS col0 FROM tab0 AS cor0
----
81
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > - col0 * - col1
----
query I rowsort
SELECT ALL - + 51 * + ( - col1 ) FROM tab2 AS cor0
----
2601
3417
3927
query I rowsort
SELECT DISTINCT + col0 - + col2 AS col2 FROM tab2 AS cor0
----
17
23
24
query I rowsort
SELECT ALL + - col1 * - 3 AS col1 FROM tab1 cor0
----
141
15
42
onlyif mysql # aggregate syntax:
query I rowsort label-1524
SELECT ALL 92 + MIN( ALL + col2 ) FROM tab0 AS cor0 WHERE NULL < NULL AND NOT + col2 / - col1 = - 75
----
NULL
skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL 92 + MIN ( ALL + col2 ) FROM tab0 AS cor0 WHERE NULL < NULL AND NOT + col2 / - col1 = - 75
----
NULL
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN ( ( col0 ) ) AND + ( + col1 )
----
75
67
58
query III rowsort
SELECT * FROM tab2 WHERE + col1 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-1527
SELECT ALL - 14 + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-5
skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL - 14 + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-5
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1528
SELECT - + COUNT( * ) DIV - 23 AS col2 FROM tab2 WHERE NULL >= NULL
----
0
skipif mysql # not compatible
query I rowsort label-1528
SELECT - + COUNT ( * ) / - 23 AS col2 FROM tab2 WHERE NULL >= NULL
----
0
query I rowsort
SELECT - 27 + 92 + col0 - - col0 * - 59 AS col0 FROM tab1 AS cor0
----
-2893
-4865
-5213
onlyif mysql # aggregate syntax:
query I rowsort label-1530
SELECT MAX( + 25 ) FROM tab1 AS cor0 WHERE NOT col1 <= + col0
----
NULL
skipif mysql # not compatible
query I rowsort label-1530
SELECT MAX ( + 25 ) FROM tab1 AS cor0 WHERE NOT col1 <= + col0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1531
SELECT ALL COUNT( * ) + + 47 FROM tab2 AS cor0 WHERE NOT - col2 + - - col1 IS NOT NULL
----
47
skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL COUNT ( * ) + + 47 FROM tab2 AS cor0 WHERE NOT - col2 + - - col1 IS NOT NULL
----
47
query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NULL IN ( col1 + + + col0 )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN - col1 / - col2 AND - 29 * col0 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL OR NULL > - 49
----
query I rowsort
SELECT + 55 FROM tab1 AS cor0 WHERE NOT + col0 * 17 NOT IN ( + col1 )
----
onlyif mysql # DIV for integer division:
query I rowsort label-1536
SELECT ALL + 52 DIV col2 col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1536
SELECT ALL + 52 / col2 col0 FROM tab1
----
0
0
0
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 12 * + 84 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT - 91 * col0 AS col2, col2 AS col0 FROM tab1
----
-4641
96
-7735
59
-8281
68
onlyif mysql # aggregate syntax:
query I rowsort label-1539
SELECT - COUNT( * ) * ( 26 ) FROM tab2
----
-78
skipif mysql # not compatible
query I rowsort label-1539
SELECT - COUNT ( * ) * ( 26 ) FROM tab2
----
-78
query I rowsort
SELECT DISTINCT 38 * + 63 AS col0 FROM tab1
----
2394
query I rowsort
SELECT ALL + col1 * + + ( + 19 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
266
893
95
query I rowsort
SELECT + ( - col0 ) * + 10 AS col1 FROM tab2
----
-460
-640
-750
onlyif mysql # aggregate syntax:
query I rowsort label-1543
SELECT - SUM( - ( + col1 ) ) FROM tab1 AS cor0
----
66
skipif mysql # not compatible
query I rowsort label-1543
SELECT - SUM ( - ( + col1 ) ) FROM tab1 AS cor0
----
66
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 + + ( - - col0 ) * - col1 ) IS NOT NULL
----
query I rowsort
SELECT DISTINCT 48 + - + col0 AS col0 FROM tab2 AS cor0
----
-16
-27
2
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN ( NULL ) AND - 61 + 28 )
----
onlyif mysql # DIV for integer division:
query I rowsort label-1547
SELECT - col2 + col1 DIV - 67 - - col2 + + col0 * col0 AS col0 FROM tab1
----
2601
7225
8281
skipif mysql # not compatible
query I rowsort label-1547
SELECT - col2 + col1 / - 67 - - col2 + + col0 * col0 AS col0 FROM tab1
----
2601
7225
8281
onlyif mysql # aggregate syntax:
query I rowsort label-1548
SELECT COUNT( 67 ) + SUM( ALL - + col0 ) - 98 * - 40 AS col2 FROM tab0
----
3724
skipif mysql # not compatible
query I rowsort label-1548
SELECT COUNT ( 67 ) + SUM ( ALL - + col0 ) - 98 * - 40 AS col2 FROM tab0
----
3724
query I rowsort
SELECT col2 * - col0 + - col0 * - ( col1 ) AS col2 FROM tab2
----
1288
2368
675
query I rowsort
SELECT ALL + 79 + - col1 FROM tab1
----
32
65
74
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1551
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( - 69 / - CAST( col1 AS SIGNED ) )
----
skipif mysql # not compatible
query III rowsort label-1551
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( - 69 / - CAST ( col1 AS INTEGER ) )
----
query I rowsort
SELECT ALL ( col2 ) * + + 69 FROM tab0 AS cor0
----
3243
6831
690
query I rowsort
SELECT - 29 * + 91 + - - col0 FROM tab1 cor0
----
-2548
-2554
-2588
onlyif mysql # DIV for integer division:
query I rowsort label-1554
SELECT DISTINCT - col1 DIV + + col0 + - ( + 10 ) FROM tab0 cor0
----
-10
-15
skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT - col1 / + + col0 + - ( + 10 ) FROM tab0 cor0
----
-10
-15
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 6 ) + + - col1 >= NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-1556
SELECT DISTINCT - col2 DIV + - 27 AS col1 FROM tab0 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT - col2 / + - 27 AS col1 FROM tab0 AS cor0
----
0
1
3
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * col1 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1558
SELECT + CAST( 86 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
86
86
86
skipif mysql # not compatible
query I rowsort label-1558
SELECT + CAST ( 86 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
86
86
86
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1559
SELECT - - CAST( - - 27 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
27
27
27
skipif mysql # not compatible
query I rowsort label-1559
SELECT - - CAST ( - - 27 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
27
27
27
query II rowsort
SELECT ALL - + col0, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68
onlyif mysql # aggregate syntax:
query I rowsort label-1561
SELECT ALL - - SUM( DISTINCT - - col0 ) col1 FROM tab2 AS cor0
----
185
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1561
SELECT ALL - - SUM ( DISTINCT - - col0 ) col1 FROM tab2 AS cor0
----
185
onlyif mysql # aggregate syntax:
query I rowsort label-1562
SELECT DISTINCT + 0 + - + SUM( 11 ) AS col0 FROM tab0 AS cor0
----
-33
skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT + 0 + - + SUM ( 11 ) AS col0 FROM tab0 AS cor0
----
-33
onlyif mysql # aggregate syntax:
query I rowsort label-1563
SELECT - MIN( ALL - - 18 ) FROM tab1 cor0
----
-18
skipif mysql # not compatible
query I rowsort label-1563
SELECT - MIN ( ALL - - 18 ) FROM tab1 cor0
----
-18
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 + col1 * - col1 <> ( - col1 - ( - col0 ) )
----
97
1
99
query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE - col2 NOT IN ( - 71 )
----
15
87
97
onlyif mysql # DIV for integer division:
query I rowsort label-1566
SELECT 70 DIV 41 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1566
SELECT 70 / 41 FROM tab0
----
1
1
1
onlyif mysql # DIV for integer division:
query I rowsort label-1567
SELECT - 44 DIV + col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1567
SELECT - 44 / + col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL col2 + + + 98 * - - col2 FROM tab2
----
2277
3960
5742
onlyif mysql # aggregate syntax:
query I rowsort label-1569
SELECT DISTINCT - MAX( ALL - 86 ) + - ( - + MIN( ALL + + 2 ) ) FROM tab1
----
88
skipif mysql # not compatible
query I rowsort label-1569
SELECT DISTINCT - MAX ( ALL - 86 ) + - ( - + MIN ( ALL + + 2 ) ) FROM tab1
----
88
query I rowsort
SELECT + 62 - + col0 + + ( - col1 ) AS col0 FROM tab2
----
-35
-79
-80
query I rowsort
SELECT - col0 FROM tab1 WHERE col0 * + col2 - + 31 > - col1
----
-51
-85
-91
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1572
SELECT * FROM tab1 WHERE + - 13 - + col1 * col0 - - CAST( 61 AS SIGNED ) + - col2 / 56 >= + col2 * col1 + + 61
----
skipif mysql # not compatible
query III rowsort label-1572
SELECT * FROM tab1 WHERE + - 13 - + col1 * col0 - - CAST ( 61 AS INTEGER ) + - col2 / 56 >= + col2 * col1 + + 61
----
query I rowsort
SELECT ALL + ( col2 ) + + - col1 AS col0 FROM tab2 cor0
----
-28
-37
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + - 59 col2, - col2 col0 FROM tab1 AS cor0 WHERE + 31 IS NULL
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 93 * + col2 + + 80 / + col1 = ( NULL )
----
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-1576
SELECT + col1 DIV col2 + col0 AS col0 FROM tab0 AS cor0 WHERE 26 + - CAST( NULL AS SIGNED ) IS NULL
----
16
89
97
skipif mysql # not compatible
query I rowsort label-1576
SELECT + col1 / col2 + col0 AS col0 FROM tab0 AS cor0 WHERE 26 + - CAST ( NULL AS INTEGER ) IS NULL
----
16
89
97
query I rowsort
SELECT - + 69 + col0 * - - col1 AS col1 FROM tab0 cor0
----
1146
1758
28
onlyif mysql # aggregate syntax:
query I rowsort label-1578
SELECT DISTINCT SUM( ( col1 ) ) col0 FROM tab2 AS cor0
----
195
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1578
SELECT DISTINCT SUM ( ( col1 ) ) col0 FROM tab2 AS cor0
----
195
onlyif mysql # DIV for integer division:
query I rowsort label-1579
SELECT - col2 * col1 DIV + + col0 col1 FROM tab2 AS cor0
----
-25
-48
-51
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1579
SELECT - col2 * col1 / + + col0 col1 FROM tab2 AS cor0
----
-25
-48
-51
query II rowsort
SELECT - + col0 AS col0, col1 AS col2 FROM tab1 cor0
----
-51
14
-85
5
-91
47
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 22 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-1582
SELECT DISTINCT col1 * - - col0 + CAST( 6 AS DECIMAL ) AS col0 FROM tab2 WHERE - col2 IS NULL
----
skipif mysql # not compatible
query I rowsort label-1582
SELECT DISTINCT col1 * - - col0 + CAST ( 6 AS REAL ) AS col0 FROM tab2 WHERE - col2 IS NULL
----
query I rowsort
SELECT ALL - 14 FROM tab1 WHERE col0 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1584
SELECT ALL - CAST( NULL AS SIGNED ) * + + 40 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1584
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 40 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 44 FROM tab0 cor0
----
44
44
44
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 * - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL + + 85 AS col1 FROM tab0 AS cor0
----
85
85
85
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1588
SELECT ALL + CAST( 92 AS SIGNED ) AS col1 FROM tab1
----
92
92
92
skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL + CAST ( 92 AS INTEGER ) AS col1 FROM tab1
----
92
92
92
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= ( 70 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1590
SELECT - + COUNT( * ) FROM tab2 WHERE NOT + col1 < + - col2
----
-3
skipif mysql # not compatible
query I rowsort label-1590
SELECT - + COUNT ( * ) FROM tab2 WHERE NOT + col1 < + - col2
----
-3
query I rowsort
SELECT + col1 * - col2 * - col2 AS col2 FROM tab0
----
178929
2100
9801
query I rowsort
SELECT - 74 * + 91 AS col0 FROM tab2
----
-6734
-6734
-6734
onlyif mysql # aggregate syntax:
query I rowsort label-1593
SELECT 70 - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
70
skipif mysql # not compatible
query I rowsort label-1593
SELECT 70 - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
70
query I rowsort
SELECT DISTINCT + col0 * - + col0 + 86 AS col2 FROM tab2 AS cor0
----
-2030
-4010
-5539
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 67 + 7 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
onlyif mysql # aggregate syntax:
query I rowsort label-1596
SELECT + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-1596
SELECT + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1597
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1597
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0
----
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-1598
SELECT DISTINCT ( MAX( + - col1 ) ) DIV 29 AS col1, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0
-3
skipif mysql # not compatible
query II rowsort label-1598
SELECT DISTINCT ( MAX ( + - col1 ) ) / 29 AS col1, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0
-3
query I rowsort
SELECT - - ( - 6 ) + + col2 + - ( - 62 ) FROM tab1 AS cor0
----
115
124
152
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1600
SELECT + - col2 * col2 + col2 * - - CAST( NULL AS SIGNED ), - 53 AS col0 FROM tab0 cor0
----
NULL
-53
NULL
-53
NULL
-53
skipif mysql # not compatible
query II rowsort label-1600
SELECT + - col2 * col2 + col2 * - - CAST ( NULL AS INTEGER ), - 53 AS col0 FROM tab0 cor0
----
NULL
-53
NULL
-53
NULL
-53
onlyif mysql # DIV for integer division:
query I rowsort label-1601
SELECT DISTINCT - + 90 DIV - col1 AS col2 FROM tab1 cor0
----
1
18
6
skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT - + 90 / - col1 AS col2 FROM tab1 cor0
----
1
18
6
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * col0 BETWEEN NULL AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL col2 + + 91 AS col1 FROM tab1 AS cor0
----
150
159
187
query III rowsort
SELECT * FROM tab0 WHERE + col0 >= NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1605
SELECT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1605
SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
query I rowsort
SELECT - 29 FROM tab0 WHERE ( col2 ) IN ( 39 - - col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1607
SELECT ( - COUNT( * ) ) AS col0 FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-1607
SELECT ( - COUNT ( * ) ) AS col0 FROM tab0
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, + col2 col0 FROM tab2
----
23
23
40
40
58
58
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * + - col1 - + 40 <= - + 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab1 WHERE - 83 NOT BETWEEN NULL AND ( + col0 + - col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1611
SELECT SUM( col2 ) AS col1 FROM tab2
----
121
skipif mysql # not compatible
query I rowsort label-1611
SELECT SUM ( col2 ) AS col1 FROM tab2
----
121
query I rowsort
SELECT - col0 FROM tab2 WHERE + + col0 BETWEEN NULL AND + + col0
----
query III rowsort
SELECT * FROM tab1 WHERE + col0 - col0 IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col1 col1 FROM tab0
----
-100
-128
-31
onlyif mysql # aggregate syntax:
query I rowsort label-1615
SELECT ALL + SUM( - + ( + + col0 ) ) AS col1 FROM tab0 cor0
----
-199
skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL + SUM ( - + ( + + col0 ) ) AS col1 FROM tab0 cor0
----
-199
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + - 84 IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 52 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 col2, col0 * 67 FROM tab2 AS cor0
----
23
3082
40
4288
58
5025
onlyif mysql # DIV for integer division:
query I rowsort label-1619
SELECT 15 DIV col1 col2 FROM tab1
----
0
1
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1619
SELECT 15 / col1 col2 FROM tab1
----
0
1
3
query I rowsort
SELECT + + col2 AS col0 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND NULL
----
query I rowsort
SELECT + 46 AS col1 FROM tab1 WHERE NOT - - col0 + 14 IS NOT NULL
----
query I rowsort
SELECT - 4 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-1624
SELECT ALL - COUNT( * ) - - ( 19 ) - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
19
skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL - COUNT ( * ) - - ( 19 ) - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
19
onlyif mysql # aggregate syntax:
query I rowsort label-1625
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE col2 - + 22 / - + col1 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE col2 - + 22 / - + col1 IS NULL
----
0
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + 29 * - col0 * + - col1 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1627
SELECT DISTINCT COUNT( * ) col1 FROM tab2 cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1627
SELECT DISTINCT COUNT ( * ) col1 FROM tab2 cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-1628
SELECT ALL - COUNT( ALL + col0 ) FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL - COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
-3
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-1629
SELECT 70 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1629
SELECT 70 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( - 64 ) col2 FROM tab1
----
-3264
-5440
-5824
onlyif mysql # DIV for integer division:
query I rowsort label-1631
SELECT col2 * + col2 DIV + col2 AS col2 FROM tab1
----
59
68
96
skipif mysql # not compatible
query I rowsort label-1631
SELECT col2 * + col2 / + col2 AS col2 FROM tab1
----
59
68
96
onlyif mysql # aggregate syntax:
query I rowsort label-1632
SELECT DISTINCT - COUNT( ALL 34 ) FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT - COUNT ( ALL 34 ) FROM tab2
----
-3
query I rowsort
SELECT DISTINCT + 68 * col1 FROM tab1
----
3196
340
952
query I rowsort
SELECT 78 * + ( - 50 ) FROM tab2
----
-3900
-3900
-3900
query I rowsort
SELECT DISTINCT - + col0 + + col0 FROM tab1 WHERE NULL <= NULL
----
query I rowsort
SELECT DISTINCT 83 * 79 AS col1 FROM tab0
----
6557
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----
query I rowsort
SELECT + - 75 AS col1 FROM tab0 AS cor0
----
-75
-75
-75
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - col0 ) = NULL
----
query II rowsort
SELECT DISTINCT - ( + 52 ), - 47 AS col2 FROM tab2 AS cor0
----
-52
-47
onlyif mysql # aggregate syntax:
query II rowsort label-1641
SELECT DISTINCT - SUM( + col0 ) AS col0, + SUM( - + col0 ) AS col1 FROM tab2 AS cor0
----
-185
-185
skipif mysql # not compatible
query II rowsort label-1641
SELECT DISTINCT - SUM ( + col0 ) AS col0, + SUM ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-185
-185
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1642
SELECT col2 / + col2 AS col2 FROM tab1 WHERE NULL BETWEEN - col1 AND + CAST( - col2 AS SIGNED ) * - col1 * + - 25
----
skipif mysql # not compatible
query I rowsort label-1642
SELECT col2 / + col2 AS col2 FROM tab1 WHERE NULL BETWEEN - col1 AND + CAST ( - col2 AS INTEGER ) * - col1 * + - 25
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1643
SELECT CAST( 56 AS SIGNED ) * + - COUNT( * ) col1 FROM tab0 WHERE - ( - col1 ) IN ( - col2 + col1 + col0 - - - col1 - 38 * col1 )
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1643
SELECT CAST ( 56 AS INTEGER ) * + - COUNT ( * ) col1 FROM tab0 WHERE - ( - col1 ) IN ( - col2 + col1 + col0 - - - col1 - 38 * col1 )
----
0
query I rowsort
SELECT DISTINCT ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10
47
99
onlyif mysql # aggregate syntax:
query I rowsort label-1645
SELECT + - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-1645
SELECT + - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( - col2 ) >= ( NULL ) )
----
query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND - col2
----
51
67
77
query II rowsort
SELECT + - ( - 29 ) * 53 AS col2, 67 FROM tab1 AS cor0
----
1537
67
1537
67
1537
67
query I rowsort
SELECT + col2 * + col2 + - - col2 + col1 + ( - + col2 ) * + + col2 FROM tab2 cor0
----
117
125
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 * - - 6 * + col2 * + col2 col2 FROM tab2 AS cor0
----
-1836744
-288834
-873600
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1651
SELECT ALL 36 * CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-108
skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL 36 * CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-108
query I rowsort
SELECT ( - col2 ) + 88 FROM tab2
----
30
48
65
query I rowsort
SELECT DISTINCT + 74 * + - col0 FROM tab2
----
-3404
-4736
-5550
query III rowsort
SELECT * FROM tab0 WHERE + + col1 + + - col0 IN ( col2, ( 62 ) - + col1 )
----
query I rowsort
SELECT DISTINCT 90 + - col0 FROM tab0
----
-7
3
75
query I rowsort
SELECT DISTINCT 79 * - - col1 + col1 FROM tab0
----
1680
6480
80
query III rowsort
SELECT * FROM tab1 WHERE - ( + 10 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT ALL col2 + 95 AS col0, 68 FROM tab2
----
118
68
135
68
153
68
query I rowsort
SELECT ALL col2 - + 50 + col0 FROM tab0 AS cor0
----
12
146
47
onlyif mysql # aggregate syntax:
query I rowsort label-1660
SELECT ALL + + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL + + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - 95 + + 99 ) NOT BETWEEN col2 AND 13 + + 78 + + col1
----
query II rowsort
SELECT + ( + col0 ) AS col1, - 38 - col2 FROM tab2 AS cor0
----
46
-61
64
-78
75
-96
onlyif mysql # aggregate syntax:
query I rowsort label-1663
SELECT ALL - + MIN( ALL col2 ) FROM tab2 cor0
----
-23
skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL - + MIN ( ALL col2 ) FROM tab2 cor0
----
-23
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <= ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1665
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 col0 FROM tab2 AS cor0
----
-87
-87
-87
onlyif mysql # DIV for integer division:
query II rowsort label-1667
SELECT col0 DIV - ( + 20 ) AS col2, + 2 AS col1 FROM tab0 AS cor0
----
-4
2
-4
2
0
2
skipif mysql # not compatible
query II rowsort label-1667
SELECT col0 / - ( + 20 ) AS col2, + 2 AS col1 FROM tab0 AS cor0
----
-4
2
-4
2
0
2
query I rowsort
SELECT ALL - - col2 * - 99 + + ( - - ( - col0 ) ) + - col1 - - 89 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
query I rowsort
SELECT + - 37 AS col2 FROM tab1 AS cor0
----
-37
-37
-37
query II rowsort
SELECT - + 39 AS col1, - 96 FROM tab1 cor0
----
-39
-96
-39
-96
-39
-96
onlyif mysql # aggregate syntax:
query I rowsort label-1671
SELECT + MAX( DISTINCT - + col1 ) AS col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-1671
SELECT + MAX ( DISTINCT - + col1 ) AS col2 FROM tab0 AS cor0
----
-1
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-1673
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-1674
SELECT DISTINCT + SUM( ALL col0 ) AS col0 FROM tab2 AS cor0
----
185
skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT + SUM ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
185
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1675
SELECT DISTINCT + - 65 AS col0 FROM tab1 WHERE + col2 NOT BETWEEN - 71 AND CAST( - - 67 AS SIGNED )
----
-65
skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT + - 65 AS col0 FROM tab1 WHERE + col2 NOT BETWEEN - 71 AND CAST ( - - 67 AS INTEGER )
----
-65
query I rowsort
SELECT ALL + + col2 AS col0 FROM tab0 WHERE + - 39 = - 55
----
query II rowsort
SELECT ALL col0 AS col1, col2 AS col2 FROM tab0 WHERE - + 27 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1678
SELECT ALL - SUM( + 10 ) AS col1 FROM tab1
----
-30
skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL - SUM ( + 10 ) AS col1 FROM tab1
----
-30
query I rowsort
SELECT 55 * - 20 FROM tab0
----
-1100
-1100
-1100
query I rowsort
SELECT + col0 * + col0 * + + col2 FROM tab2 AS cor0
----
163840
326250
48668
query II rowsort
SELECT DISTINCT + col0, 43 AS col2 FROM tab0 AS cor0
----
15
43
87
43
97
43
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col0 IS NULL )
----
query I rowsort
SELECT ALL + 62 + 42 AS col0 FROM tab1
----
104
104
104
query I rowsort
SELECT ALL - 46 * 45 * ( col1 ) FROM tab0 cor0
----
-167670
-2070
-43470
query I rowsort
SELECT col1 + + 54 + col0 + col2 * + col1 AS col2 FROM tab0 cor0
----
251
372
3957
query I rowsort
SELECT ALL + - ( + + 55 ) - + - 59 FROM tab1 AS cor0
----
4
4
4
query II rowsort
SELECT - + col1 + + - 65, col1 - + col1 AS col1 FROM tab0 AS cor0
----
-146
0
-66
0
-86
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 23 * - 10 + + - 17, col0 * + col1 + + - 72 col0 FROM tab1 AS cor0
----
213
353
213
4205
213
642
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 * - 11 col1 FROM tab0 cor0
----
-352
onlyif mysql # DIV for integer division:
query I rowsort label-1691
SELECT - col0 DIV - 3 FROM tab0
----
29
32
5
skipif mysql # not compatible
query I rowsort label-1691
SELECT - col0 / - 3 FROM tab0
----
29
32
5
onlyif mysql # aggregate syntax:
query I rowsort label-1692
SELECT - ( - + ( MIN( + col0 ) ) ) FROM tab2
----
46
skipif mysql # not compatible
query I rowsort label-1692
SELECT - ( - + ( MIN ( + col0 ) ) ) FROM tab2
----
46
query II rowsort
SELECT + 36, + 93 AS col0 FROM tab2
----
36
93
36
93
36
93
onlyif mysql # DIV for integer division:
query I rowsort label-1694
SELECT ALL - + col2 * - col2 DIV col2 + - - col0 * - col2 * + 21 col0 FROM tab0 WHERE - col0 DIV + + 86 - - - 24 IS NOT NULL
----
-14758
-18260
-201564
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1694
SELECT ALL - + col2 * - col2 / col2 + - - col0 * - col2 * + 21 col0 FROM tab0 WHERE - col0 / + + 86 - - - 24 IS NOT NULL
----
-14758
-18260
-201564
onlyif mysql # aggregate syntax:
query II rowsort label-1695
SELECT DISTINCT - 36, - COUNT( * ) AS col2 FROM tab1
----
-36
-3
skipif mysql # not compatible
query II rowsort label-1695
SELECT DISTINCT - 36, - COUNT ( * ) AS col2 FROM tab1
----
-36
-3
query I rowsort
SELECT ALL + ( col1 ) * col2 AS col0 FROM tab2
----
1173
3080
3886
onlyif mysql # DIV for integer division:
query I rowsort label-1697
SELECT DISTINCT + ( - col0 ) DIV + 80 FROM tab2 cor0
----
0
skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT + ( - col0 ) / + 80 FROM tab2 cor0
----
0
query I rowsort
SELECT + col1 * + - ( - col1 ) + + - col2 AS col2 FROM tab0 AS cor0
----
-98
431
6514
onlyif mysql # DIV for integer division:
query I rowsort label-1699
SELECT ALL - col0 DIV - col1 AS col2 FROM tab1
----
1
17
3
skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL - col0 / - col1 AS col2 FROM tab1
----
1
17
3
query I rowsort
SELECT DISTINCT - 19 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-19
query II rowsort
SELECT - 6 * 20 AS col1, - col2 - col2 AS col2 FROM tab0
----
-120
-198
-120
-20
-120
-94
query I rowsort
SELECT DISTINCT - 71 AS col2 FROM tab0
----
-71
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1703
SELECT CAST( - 66 AS SIGNED ) col2 FROM tab0
----
-66
-66
-66
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1703
SELECT CAST ( - 66 AS INTEGER ) col2 FROM tab0
----
-66
-66
-66
query I rowsort
SELECT DISTINCT + col2 + col0 / + 99 * + col2 FROM tab0 AS cor0 WHERE NOT NULL = col2 + + col2
----
query I rowsort
SELECT 32 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( NOT ( NULL ) IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1707
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + col0 - + col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col0 - + col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col0 FROM tab1 AS cor0 WHERE NOT ( - 35 * col2 ) < 32
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( NOT + 15 * 25 + + col1 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL col0 + + - 13 + col2 AS col2 FROM tab1
----
131
134
146
onlyif mysql # aggregate syntax:
query I rowsort label-1712
SELECT ALL + ( SUM( DISTINCT - ( - col1 ) ) ) + 37 FROM tab1
----
103
skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL + ( SUM ( DISTINCT - ( - col1 ) ) ) + 37 FROM tab1
----
103
onlyif mysql # aggregate syntax:
query I rowsort label-1713
SELECT DISTINCT 52 * + MAX( - col1 ) AS col0 FROM tab0
----
-52
skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT 52 * + MAX ( - col1 ) AS col0 FROM tab0
----
-52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 38 col0 FROM tab1
----
1938
3230
3458
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 60 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query III rowsort label-1716
SELECT * FROM tab0 AS cor0 WHERE - + col1 * - 90 + - CAST( + col1 AS SIGNED ) IS NULL AND - CAST( NULL AS DECIMAL ) * + + 85 + + - col0 * + + col0 / - - col1 * - + 94 - + col0 > - + col1
----
skipif mysql # not compatible
query III rowsort label-1716
SELECT * FROM tab0 AS cor0 WHERE - + col1 * - 90 + - CAST ( + col1 AS INTEGER ) IS NULL AND - CAST ( NULL AS REAL ) * + + 85 + + - col0 * + + col0 / - - col1 * - + 94 - + col0 > - + col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-1717
SELECT + COUNT( * ) + + ( + 63 ) FROM tab2 AS cor0
----
66
skipif mysql # not compatible
query I rowsort label-1717
SELECT + COUNT ( * ) + + ( + 63 ) FROM tab2 AS cor0
----
66
query I rowsort
SELECT + + 15 + + col0 AS col2 FROM tab1 AS cor0
----
100
106
66
query I rowsort
SELECT - + col2 + + 40 FROM tab0 AS cor0
----
-59
-7
30
onlyif mysql # aggregate syntax:
query I rowsort label-1720
SELECT DISTINCT COUNT( * ) col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1720
SELECT DISTINCT COUNT ( * ) col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9
onlyif mysql # aggregate syntax:
query II rowsort label-1721
SELECT DISTINCT - - COUNT( + - 2 ) col0, + 57 FROM tab2 AS cor0
----
3
57
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1721
SELECT DISTINCT - - COUNT ( + - 2 ) col0, + 57 FROM tab2 AS cor0
----
3
57
onlyif mysql # aggregate syntax:
query I rowsort label-1722
SELECT ALL - MIN( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 <> NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL - MIN ( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 <> NULL
----
NULL
query I rowsort
SELECT ALL col1 - - 73 FROM tab2 cor0
----
124
140
150
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1724
SELECT DISTINCT - col0 - + + CAST( col2 AS SIGNED ) - + + col0 FROM tab1 AS cor0
----
-198
-229
-250
skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT - col0 - + + CAST ( col2 AS INTEGER ) - + + col0 FROM tab1 AS cor0
----
-198
-229
-250
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 91 BETWEEN - - col1 AND + col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-1726
SELECT DISTINCT + - COUNT( * ) * COUNT( * ) + 43 FROM tab0 AS cor0
----
34
skipif mysql # not compatible
query I rowsort label-1726
SELECT DISTINCT + - COUNT ( * ) * COUNT ( * ) + 43 FROM tab0 AS cor0
----
34
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT + col1 + ( - 60 ) AS col2 FROM tab1
----
-13
-46
-55
query I rowsort
SELECT DISTINCT - - ( - col0 ) AS col0 FROM tab1 WHERE NOT ( col0 ) * + + col1 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1730
SELECT DISTINCT 26 * + ( + MIN( 92 ) ) + 21 AS col1 FROM tab2 WHERE 43 IS NOT NULL
----
2413
skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT 26 * + ( + MIN ( 92 ) ) + 21 AS col1 FROM tab2 WHERE 43 IS NOT NULL
----
2413
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 IS NOT NULL
----
query I rowsort
SELECT - 97 * col1 FROM tab0
----
-2037
-7857
-97
onlyif mysql # aggregate syntax:
query I rowsort label-1733
SELECT DISTINCT 22 - ( + 87 ) * COUNT( * ) + SUM( DISTINCT + col1 ) * 72 * AVG ( ALL - col0 ) FROM tab2 WHERE NOT 2 IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT 22 - ( + 87 ) * COUNT ( * ) + SUM ( DISTINCT + col1 ) * 72 * AVG ( ALL - col0 ) FROM tab2 WHERE NOT 2 IS NOT NULL
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 86 ) col1 FROM tab2
----
86
86
86
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-1735
SELECT - COUNT( DISTINCT + + 74 ), + COUNT( * ) DIV - 39 AS col2 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query II rowsort label-1735
SELECT - COUNT ( DISTINCT + + 74 ), + COUNT ( * ) / - 39 AS col2 FROM tab0 AS cor0
----
-1
0
onlyif mysql # DIV for integer division:
query I rowsort label-1736
SELECT 12 DIV + col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1736
SELECT 12 / + col2 FROM tab1
----
0
0
0
query I rowsort
SELECT 45 * + col2 AS col0 FROM tab0
----
2115
4455
450
query I rowsort
SELECT DISTINCT + - ( - col0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75
query I rowsort
SELECT DISTINCT 97 * - 92 * - 33 + col0 AS col1 FROM tab1 AS cor0
----
294543
294577
294583
query I rowsort
SELECT DISTINCT ( - col1 ) * + col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT - 85 + - ( - 16 ) + - - col0 * + 70 FROM tab1 AS cor0
----
3501
5881
6301
onlyif mysql # aggregate syntax:
query I rowsort label-1742
SELECT DISTINCT + MIN( DISTINCT - + ( - col0 ) ) FROM tab2 AS cor0
----
46
skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT + MIN ( DISTINCT - + ( - col0 ) ) FROM tab2 AS cor0
----
46
query I rowsort
SELECT DISTINCT 17 FROM tab0, tab1 cor0
----
17
query III rowsort
SELECT * FROM tab2 WHERE - + col0 >= NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-1745
SELECT - col0 + + - 43 DIV 31 FROM tab1
----
-52
-86
-92
skipif mysql # not compatible
query I rowsort label-1745
SELECT - col0 + + - 43 / 31 FROM tab1
----
-52
-86
-92
query I rowsort
SELECT DISTINCT - 42 * + 65 + + 34 FROM tab2
----
-2696
query I rowsort
SELECT ALL col0 + - 90 FROM tab2
----
-15
-26
-44
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1748
SELECT DISTINCT + + 72, col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 <> + CAST( NULL AS SIGNED ) - - + col2
----
skipif mysql # not compatible
query II rowsort label-1748
SELECT DISTINCT + + 72, col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 <> + CAST ( NULL AS INTEGER ) - - + col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-1749
SELECT ALL - ( - MAX( ALL - col1 ) ) col0 FROM tab1 AS cor0 WHERE NOT 49 >= - col0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1749
SELECT ALL - ( - MAX ( ALL - col1 ) ) col0 FROM tab1 AS cor0 WHERE NOT 49 >= - col0
----
NULL
query I rowsort
SELECT DISTINCT + + 41 FROM tab2 cor0
----
41
onlyif mysql # aggregate syntax:
query I rowsort label-1751
SELECT COUNT( * ) + - - 60 col1 FROM tab1
----
63
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1751
SELECT COUNT ( * ) + - - 60 col1 FROM tab1
----
63
query I rowsort
SELECT ALL - col2 - + col2 AS col0 FROM tab2 cor0
----
-116
-46
-80
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1753
SELECT ( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1753
SELECT ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1754
SELECT DISTINCT + MAX( ALL + + 22 ) FROM tab2 AS cor0
----
22
skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT + MAX ( ALL + + 22 ) FROM tab2 AS cor0
----
22
onlyif mysql # aggregate syntax:
query I rowsort label-1755
SELECT COUNT( + col1 ) AS col1 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-1755
SELECT COUNT ( + col1 ) AS col1 FROM tab1
----
3
query II rowsort
SELECT DISTINCT col1, 87 AS col0 FROM tab2
----
51
87
67
87
77
87
query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91
onlyif mysql # aggregate syntax:
query I rowsort label-1758
SELECT COUNT( ALL - + col2 ) FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-1758
SELECT COUNT ( ALL - + col2 ) FROM tab1
----
3
query II rowsort
SELECT DISTINCT col2, ( + col1 ) AS col2 FROM tab0
----
10
21
47
81
99
1
onlyif mysql # aggregate syntax:
query I rowsort label-1760
SELECT MAX( ALL + - col1 ) FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-1760
SELECT MAX ( ALL + - col1 ) FROM tab0
----
-1
query I rowsort
SELECT DISTINCT + - 76 FROM tab2 WHERE NULL BETWEEN - col2 AND - col1 OR NOT col0 + + col1 * - 49 + + col1 IS NULL
----
-76
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1762
SELECT col0 * + - CAST( 97 AS SIGNED ) AS col0 FROM tab2
----
-4462
-6208
-7275
skipif mysql # not compatible
query I rowsort label-1762
SELECT col0 * + - CAST ( 97 AS INTEGER ) AS col0 FROM tab2
----
-4462
-6208
-7275
query I rowsort
SELECT DISTINCT + 78 * - 89 FROM tab2 AS cor0
----
-6942
onlyif mysql # aggregate syntax:
query I rowsort label-1764
SELECT + - ( - COUNT( DISTINCT + col1 ) ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-1764
SELECT + - ( - COUNT ( DISTINCT + col1 ) ) FROM tab1 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-1765
SELECT - COUNT( * ) col0 FROM tab1 cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1765
SELECT - COUNT ( * ) col0 FROM tab1 cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-1766
SELECT ALL 40 * + COUNT( col2 ) * 89 FROM tab2
----
10680
skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL 40 * + COUNT ( col2 ) * 89 FROM tab2
----
10680
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1767
SELECT - CAST( NULL AS SIGNED ) + col2 + + + col2 col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1767
SELECT - CAST ( NULL AS INTEGER ) + col2 + + + col2 col0 FROM tab2
----
NULL
NULL
NULL
query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e
query I rowsort
SELECT + - col0 + + - col2 + col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-195
-76
19
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query II rowsort label-1770
SELECT + COUNT( * ) DIV COUNT( * ) AS col1, CAST( + - 89 AS SIGNED ) FROM tab1 AS cor0
----
1
-89
skipif mysql # not compatible
query II rowsort label-1770
SELECT + COUNT ( * ) / COUNT ( * ) AS col1, CAST ( + - 89 AS INTEGER ) FROM tab1 AS cor0
----
1
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 85 col1 FROM tab2 cor0
----
85
85
85
query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 * - col0 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1773
SELECT + ( SUM( col0 ) ) AS col0 FROM tab1 AS cor0
----
227
skipif mysql # not compatible
query I rowsort label-1773
SELECT + ( SUM ( col0 ) ) AS col0 FROM tab1 AS cor0
----
227
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1774
SELECT * FROM tab1 cor0 WHERE 42 / - CAST( - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-1774
SELECT * FROM tab1 cor0 WHERE 42 / - CAST ( - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 69 > + - col1 + 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col2 FROM tab1
----
-43
-43
-43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 + - 20 col0 FROM tab2
----
71
71
71
onlyif mysql # aggregate syntax:
query I rowsort label-1778
SELECT DISTINCT + COUNT( * ) + + 11 AS col2 FROM tab2
----
14
skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT + COUNT ( * ) + + 11 AS col2 FROM tab2
----
14
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1779
SELECT CAST( NULL AS SIGNED ) + + 8 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1779
SELECT CAST ( NULL AS INTEGER ) + + 8 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1780
SELECT DISTINCT - MIN( - 61 ) FROM tab2 cor0
----
61
skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT - MIN ( - 61 ) FROM tab2 cor0
----
61
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1781
SELECT ALL * FROM tab0 WHERE NOT + 50 * - ( - CAST( NULL AS SIGNED ) ) + + col1 BETWEEN - col2 AND - col1
----
skipif mysql # not compatible
query III rowsort label-1781
SELECT ALL * FROM tab0 WHERE NOT + 50 * - ( - CAST ( NULL AS INTEGER ) ) + + col1 BETWEEN - col2 AND - col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-1782
SELECT + MIN( ALL - col1 ) AS col2 FROM tab1 WHERE - 54 <= NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-1782
SELECT + MIN ( ALL - col1 ) AS col2 FROM tab1 WHERE - 54 <= NULL
----
NULL
query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE ( 6 ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1784
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3
skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-1785
SELECT ALL - SUM( - col1 ) FROM tab1 AS cor0
----
66
skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL - SUM ( - col1 ) FROM tab1 AS cor0
----
66
onlyif mysql # aggregate syntax:
query I rowsort label-1786
SELECT ALL + ( MIN( ALL + 85 ) ) FROM tab0 AS cor0
----
85
skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL + ( MIN ( ALL + 85 ) ) FROM tab0 AS cor0
----
85
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 > ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1788
SELECT + COUNT( * ) * - - MAX( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
288
skipif mysql # not compatible
query I rowsort label-1788
SELECT + COUNT ( * ) * - - MAX ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
288
query I rowsort
SELECT - - 46 * + col2 FROM tab1 AS cor0
----
2714
3128
4416
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - ( + col2 ) ) col0 FROM tab1 AS cor0
----
-59
-68
-96
query III rowsort
SELECT ALL * FROM tab1 WHERE 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-1792
SELECT DISTINCT MIN( ALL + col0 ) AS col0 FROM tab0
----
15
skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT MIN ( ALL + col0 ) AS col0 FROM tab0
----
15
query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 + - col2 = + - 81 - - col0 + + 96
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT - + 81 >= + - col0
----
46
64
75
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN ( NULL ) AND - col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1796
SELECT 51 * + + MAX( - + 90 ) + 80 FROM tab2 AS cor0
----
-4510
skipif mysql # not compatible
query I rowsort label-1796
SELECT 51 * + + MAX ( - + 90 ) + 80 FROM tab2 AS cor0
----
-4510
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 col0 FROM tab1 AS cor0
----
71
71
71
query I rowsort
SELECT + + 22 AS col2 FROM tab0 cor0
----
22
22
22
query I rowsort
SELECT + 58 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
onlyif mysql # aggregate syntax:
query II rowsort label-1800
SELECT - COUNT( * ) col2, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1800
SELECT - COUNT ( * ) col2, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
3
query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE - col0 IS NULL
----
query II rowsort
SELECT + ( col2 ) + - - col2 * - 44 AS col0, 21 - + 99 * - ( + + 87 ) FROM tab2 AS cor0
----
-1720
8634
-2494
8634
-989
8634
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT col0 / - 57 IS NOT NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1804
SELECT COUNT( + col2 ) FROM tab2 AS cor0 WHERE ( - - 92 + + + 8 > NULL )
----
0
skipif mysql # not compatible
query I rowsort label-1804
SELECT COUNT ( + col2 ) FROM tab2 AS cor0 WHERE ( - - 92 + + + 8 > NULL )
----
0
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 > NULL
----
query II rowsort
SELECT ALL col2 + + - col2 AS col0, - col0 - + col1 AS col1 FROM tab2
----
0
-141
0
-142
0
-97
query I rowsort
SELECT ALL col2 + + 22 FROM tab1
----
118
81
90
query II rowsort
SELECT 81 * + col2, + col1 FROM tab2
----
1863
51
3240
77
4698
67
onlyif mysql # DIV for integer division:
query I rowsort label-1809
SELECT DISTINCT col0 DIV - 68 + col0 * + col2 col2 FROM tab0
----
705
869
9602
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1809
SELECT DISTINCT col0 / - 68 + col0 * + col2 col2 FROM tab0
----
705
869
9602
query I rowsort
SELECT ALL col0 - - + 94 + - 16 FROM tab2
----
124
142
153
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-1811
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ), MAX( + col1 ) AS col1 FROM tab1
----
3
47
skipif mysql # not compatible
query II rowsort label-1811
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ), MAX ( + col1 ) AS col1 FROM tab1
----
3
47
query I rowsort
SELECT + - 77 AS col2 FROM tab2 AS cor0
----
-77
-77
-77
query I rowsort
SELECT ( - + col1 ) * - 47 + + 96 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1814
SELECT DISTINCT - + MIN( DISTINCT + ( + - 45 ) ) + + 48 AS col1 FROM tab1 AS cor0
----
93
skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT - + MIN ( DISTINCT + ( + - 45 ) ) + + 48 AS col1 FROM tab1 AS cor0
----
93
onlyif mysql # aggregate syntax:
query I rowsort label-1815
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 WHERE - - 42 IS NULL AND NOT NULL >= NULL
----
0
skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE - - 42 IS NULL AND NOT NULL >= NULL
----
0
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - ( col2 )
----
query I rowsort
SELECT ALL col1 * 36 AS col1 FROM tab0
----
2916
36
756
query I rowsort
SELECT DISTINCT + + 89 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
89
query I rowsort
SELECT ALL + col2 * - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1820
SELECT DISTINCT 52 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
156
skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT 52 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
156
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1821
SELECT * FROM tab0 AS cor0 WHERE NOT - 97 * - col2 BETWEEN - 98 + + CAST( NULL AS SIGNED ) AND + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-1821
SELECT * FROM tab0 AS cor0 WHERE NOT - 97 * - col2 BETWEEN - 98 + + CAST ( NULL AS INTEGER ) AND + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-1822
SELECT ALL - COUNT( * ) * + 87 FROM tab0 cor0
----
-261
skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL - COUNT ( * ) * + 87 FROM tab0 cor0
----
-261
onlyif mysql # aggregate syntax:
query II rowsort label-1823
SELECT ALL + COUNT( + col2 ) AS col1, + ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
3
skipif mysql # not compatible
query II rowsort label-1823
SELECT ALL + COUNT ( + col2 ) AS col1, + ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
3
query I rowsort
SELECT + 87 AS col2 FROM tab1 WHERE NOT - 8 * + 22 * 79 IS NULL
----
87
87
87
onlyif mysql # DIV for integer division:
query I rowsort label-1825
SELECT - col0 * - - col0 DIV col0 AS col0 FROM tab0
----
-15
-87
-97
skipif mysql # not compatible
query I rowsort label-1825
SELECT - col0 * - - col0 / col0 AS col0 FROM tab0
----
-15
-87
-97
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1826
SELECT COUNT( - col2 ) DIV + 97 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-1826
SELECT COUNT ( - col2 ) / + 97 FROM tab0
----
0
query I rowsort
SELECT - 45 * + col2 * - col2 FROM tab1
----
156645
208080
414720
query I rowsort
SELECT DISTINCT - + 38 FROM tab0 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1829
SELECT DISTINCT ( + SUM( DISTINCT - 8 ) ) FROM tab2
----
-8
skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT ( + SUM ( DISTINCT - 8 ) ) FROM tab2
----
-8
query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT - 93 = ( + 89 )
----
-59
-68
-96
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + ( - col1 ) * - 23 + col1 AND NULL
----
query I rowsort
SELECT + 74 + - - 71 AS col2 FROM tab2 cor0
----
145
145
145
query III rowsort
SELECT * FROM tab1 WHERE - col1 * + ( + + col0 ) IN ( + col2 + - - col0 * + - 23 / + + col2 * - col2 * - - col1, 12 )
----
query I rowsort
SELECT 48 + 99 * + col2 FROM tab2
----
2325
4008
5790
query III rowsort
SELECT * FROM tab2 WHERE + - ( + - col0 ) NOT IN ( - ( + - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-1836
SELECT ALL + COUNT( * ) + + - 57 AS col1 FROM tab2
----
-54
skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL + COUNT ( * ) + + - 57 AS col1 FROM tab2
----
-54
query I rowsort
SELECT ALL + 27 AS col0 FROM tab1 AS cor0
----
27
27
27
query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) >= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1839
SELECT - 44 * + COUNT( * ) FROM tab1 AS cor0
----
-132
skipif mysql # not compatible
query I rowsort label-1839
SELECT - 44 * + COUNT ( * ) FROM tab1 AS cor0
----
-132
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL < NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-1841
SELECT ALL + + ( 28 ) * + + 78, COUNT( * ) col1 FROM tab2 AS cor0
----
2184
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1841
SELECT ALL + + ( 28 ) * + + 78, COUNT ( * ) col1 FROM tab2 AS cor0
----
2184
3
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) < col2
----
query I rowsort
SELECT - col0 - + - 88 FROM tab2 cor0
----
13
24
42
query III rowsort
SELECT * FROM tab0 WHERE - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-1845
SELECT ( - - COUNT( * ) ) - - - ( + + 79 ) AS col1 FROM tab0
----
-76
skipif mysql # not compatible
query I rowsort label-1845
SELECT ( - - COUNT ( * ) ) - - - ( + + 79 ) AS col1 FROM tab0
----
-76
query I rowsort
SELECT - 86 * - col2 - - col1 AS col2 FROM tab1
----
5079
5895
8270
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1847
SELECT DISTINCT - col1 * + col0 * + - col2 + + + 25 AS col0, 47 * - col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
18295
NULL
57130
NULL
9628
NULL
skipif mysql # not compatible
query II rowsort label-1847
SELECT DISTINCT - col1 * + col0 * + - col2 + + + 25 AS col0, 47 * - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
18295
NULL
57130
NULL
9628
NULL
query I rowsort
SELECT 42 - - 82 + + - 5 AS col2 FROM tab2
----
119
119
119
query I rowsort
SELECT DISTINCT 64 AS col1 FROM tab2, tab2 cor0
----
64
query I rowsort
SELECT 50 + + col2 AS col0 FROM tab0
----
149
60
97
query I rowsort
SELECT col0 + + - col2 AS col2 FROM tab0
----
-2
-32
77
query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE + + col1 < - col0
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1853
SELECT ALL + - CAST( NULL AS SIGNED ) - + 34 + ( - col0 ) / - 89 * - col2 AS col1, + 55 * 92 FROM tab2 cor0
----
NULL
5060
NULL
5060
NULL
5060
skipif mysql # not compatible
query II rowsort label-1853
SELECT ALL + - CAST ( NULL AS INTEGER ) - + 34 + ( - col0 ) / - 89 * - col2 AS col1, + 55 * 92 FROM tab2 cor0
----
NULL
5060
NULL
5060
NULL
5060
query I rowsort
SELECT DISTINCT - col2 * - col2 + col0 - col2 * - col0 AS col0 FROM tab1 AS cor0
----
10903
14163
8581
query I rowsort
SELECT ALL - col2 - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-100
-128
-31
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 34 IN ( + ( + - col1 ), col1 + - + 58, - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1857
SELECT DISTINCT - col0 * + col2 - + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1857
SELECT DISTINCT - col0 * + col2 - + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL < 15 + + + 13 * - col1
----
query I rowsort
SELECT - 98 AS col0 FROM tab1 cor0
----
-98
-98
-98
query I rowsort
SELECT DISTINCT 11 * - col1 + - col2 FROM tab0 AS cor0
----
-110
-241
-938
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 > NULL
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-1862
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / - 89 / ( - col2 ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT - CAST ( NULL AS REAL ) / - 89 / ( - col2 ) FROM tab1 cor0
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-1863
SELECT DISTINCT + + col2 DIV - + col2 + + 78 FROM tab1 AS cor0
----
77
skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT + + col2 / - + col2 + + 78 FROM tab1 AS cor0
----
77
query I rowsort
SELECT ALL + col2 * + - col1 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886
onlyif mysql # aggregate syntax:
query I rowsort label-1865
SELECT + MAX( DISTINCT + ( - - 79 ) ) * - - COUNT( * ) FROM tab1 AS cor0
----
237
skipif mysql # not compatible
query I rowsort label-1865
SELECT + MAX ( DISTINCT + ( - - 79 ) ) * - - COUNT ( * ) FROM tab1 AS cor0
----
237
onlyif mysql # aggregate syntax:
query I rowsort label-1866
SELECT + COUNT( * ) - + + 19 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
-19
skipif mysql # not compatible
query I rowsort label-1866
SELECT + COUNT ( * ) - + + 19 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
-19
query I rowsort
SELECT 52 AS col2 FROM tab2 cor0
----
52
52
52
query I rowsort
SELECT DISTINCT - ( - ( ( - 45 ) ) ) FROM tab2 WHERE NOT NULL IS NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 36 IS NOT NULL
----
query I rowsort
SELECT - - ( - 94 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-1871
SELECT + 30 DIV + col0 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1871
SELECT + 30 / + col0 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - 43 * - 14 FROM tab0
----
602
602
602
onlyif mysql # aggregate syntax:
query I rowsort label-1873
SELECT MIN( ALL + + 27 ) AS col0 FROM tab0
----
27
skipif mysql # not compatible
query I rowsort label-1873
SELECT MIN ( ALL + + 27 ) AS col0 FROM tab0
----
27
query I rowsort
SELECT ALL ( + - col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58
onlyif mysql # aggregate syntax:
query I rowsort label-1875
SELECT + ( + + MIN( ALL 43 ) ) AS col0 FROM tab2 cor0
----
43
skipif mysql # not compatible
query I rowsort label-1875
SELECT + ( + + MIN ( ALL 43 ) ) AS col0 FROM tab2 cor0
----
43
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1876
SELECT ALL + CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59
68
96
skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59
68
96
onlyif mysql # aggregate syntax:
query I rowsort label-1877
SELECT - MAX( - col0 ) AS col1 FROM tab2 AS cor0
----
46
skipif mysql # not compatible
query I rowsort label-1877
SELECT - MAX ( - col0 ) AS col1 FROM tab2 AS cor0
----
46
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 92 <> + - col1 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1879
SELECT + 94 FROM tab1 AS cor0 WHERE 44 + + col0 + + col0 * - CAST( NULL AS SIGNED ) IS NULL
----
94
94
94
skipif mysql # not compatible
query I rowsort label-1879
SELECT + 94 FROM tab1 AS cor0 WHERE 44 + + col0 + + col0 * - CAST ( NULL AS INTEGER ) IS NULL
----
94
94
94
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 - 59 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT + 6 - - + 92 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT + col1 + ( + - col0 ) AS col0 FROM tab2
----
-8
13
5
onlyif mysql # aggregate syntax:
query I rowsort label-1883
SELECT + COUNT( * ) + + - 8 AS col2 FROM tab2 AS cor0
----
-5
skipif mysql # not compatible
query I rowsort label-1883
SELECT + COUNT ( * ) + + - 8 AS col2 FROM tab2 AS cor0
----
-5
query II rowsort
SELECT DISTINCT 86 * + 92 AS col1, + col0 * + col2 FROM tab0 AS cor0
----
7912
705
7912
870
7912
9603
onlyif mysql # aggregate syntax:
query I rowsort label-1885
SELECT ALL - COUNT( ALL 94 ) AS col1 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL - COUNT ( ALL 94 ) AS col1 FROM tab0 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-1886
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-1886
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
query I rowsort
SELECT 70 * + - col0 FROM tab0
----
-1050
-6090
-6790
onlyif mysql # aggregate syntax:
query I rowsort label-1888
SELECT MAX( DISTINCT - - col2 ) * - 80 AS col2 FROM tab0
----
-7920
skipif mysql # not compatible
query I rowsort label-1888
SELECT MAX ( DISTINCT - - col2 ) * - 80 AS col2 FROM tab0
----
-7920
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query I rowsort label-1889
SELECT - + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab2 WHERE + - 93 <= + 67 * - + CAST( - - ( ( + col0 ) ) AS SIGNED ) * col2 * + 26 * + - col0 + - + 24
----
-1
skipif mysql # not compatible
query I rowsort label-1889
SELECT - + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab2 WHERE + - 93 <= + 67 * - + CAST ( - - ( ( + col0 ) ) AS INTEGER ) * col2 * + 26 * + - col0 + - + 24
----
-1
onlyif mysql # aggregate syntax:
query I rowsort label-1890
SELECT + MIN( DISTINCT col1 ) col2 FROM tab2
----
51
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1890
SELECT + MIN ( DISTINCT col1 ) col2 FROM tab2
----
51
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query I rowsort label-1891
SELECT ALL - COUNT( * ) DIV + - 50 + ( - CAST( - COUNT( * ) AS SIGNED ) ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL - COUNT ( * ) / + - 50 + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab2
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1892
SELECT DISTINCT + ( - - CAST( NULL AS SIGNED ) ) + - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT + ( - - CAST ( NULL AS INTEGER ) ) + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-1893
SELECT DISTINCT col1 * + - col0 + + col1 DIV - - 5 AS col2 FROM tab1
----
-424
-4268
-712
skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT col1 * + - col0 + + col1 / - - 5 AS col2 FROM tab1
----
-424
-4268
-712
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-1894
SELECT DISTINCT - MAX( + + col2 ) + + + CAST( NULL AS SIGNED ) col1, + 11 FROM tab1 AS cor0
----
NULL
11
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1894
SELECT DISTINCT - MAX ( + + col2 ) + + + CAST ( NULL AS INTEGER ) col1, + 11 FROM tab1 AS cor0
----
NULL
11
query I rowsort
SELECT ALL - 88 * col1 AS col2 FROM tab2 AS cor0
----
-4488
-5896
-6776
onlyif mysql # aggregate syntax:
query I rowsort label-1896
SELECT DISTINCT MAX( ALL + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 * - col0 IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT MAX ( ALL + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 * - col0 IS NOT NULL
----
NULL
query I rowsort
SELECT ( - col1 ) * - - col0 - col0 FROM tab1
----
-4368
-510
-765
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 26, - col2 col2 FROM tab0 AS cor0
----
26
-10
26
-47
26
-99
query I rowsort
SELECT DISTINCT + 44 * + col2 AS col1 FROM tab2 AS cor0
----
1012
1760
2552
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1900
SELECT + - col2 * + CAST( NULL AS SIGNED ) + 60 FROM tab2 AS cor0 WHERE NOT 46 IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-1900
SELECT + - col2 * + CAST ( NULL AS INTEGER ) + 60 FROM tab2 AS cor0 WHERE NOT 46 IS NOT NULL
----
query I rowsort
SELECT - ( - 94 ) FROM tab0 AS cor0
----
94
94
94
onlyif mysql # DIV for integer division:
query I rowsort label-1902
SELECT DISTINCT - - col2 DIV + col0 FROM tab2 cor0
----
0
skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT - - col2 / + col0 FROM tab2 cor0
----
0
query II rowsort
SELECT DISTINCT + col0 AS col2, 99 FROM tab1 AS cor0
----
51
99
85
99
91
99
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1904
SELECT - col1 AS col0, CAST( NULL AS SIGNED ) / + col1 AS col1 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL
skipif mysql # not compatible
query II rowsort label-1904
SELECT - col1 AS col0, CAST ( NULL AS INTEGER ) / + col1 AS col1 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-1905
SELECT ALL + 48 AS col2, COUNT( * ) * + 8 FROM tab2 AS cor0
----
48
24
skipif mysql # not compatible
query II rowsort label-1905
SELECT ALL + 48 AS col2, COUNT ( * ) * + 8 FROM tab2 AS cor0
----
48
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 93 col1, + ( - - 38 ) * + col0 * + + col1 FROM tab1 AS cor0
----
93
16150
93
162526
93
27132
onlyif mysql # aggregate syntax:
query I rowsort label-1907
SELECT - MAX( ALL + col0 ) FROM tab2 AS cor0
----
-75
skipif mysql # not compatible
query I rowsort label-1907
SELECT - MAX ( ALL + col0 ) FROM tab2 AS cor0
----
-75
query I rowsort
SELECT ALL ( - 51 ) AS col2 FROM tab0
----
-51
-51
-51
onlyif mysql # aggregate syntax:
query I rowsort label-1909
SELECT DISTINCT + 58 * + COUNT( * ) AS col2 FROM tab2
----
174
skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT + 58 * + COUNT ( * ) AS col2 FROM tab2
----
174
query I rowsort
SELECT ALL col0 * + 6 * 39 + col0 FROM tab0
----
20445
22795
3525
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 * + col2 col0 FROM tab1
----
354
408
576
onlyif mysql # aggregate syntax:
query I rowsort label-1912
SELECT + MAX( - + col2 ) AS col0 FROM tab0
----
-10
skipif mysql # not compatible
query I rowsort label-1912
SELECT + MAX ( - + col2 ) AS col0 FROM tab0
----
-10
query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( NULL NOT IN ( - col0 ) ) )
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1914
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN NULL AND + - 12 / + col0 - ( - + col2 ) * + + ( 22 )
----
skipif mysql # not compatible
query III rowsort label-1914
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN NULL AND + - 12 / + col0 - ( - + col2 ) * + + ( 22 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1915
SELECT DISTINCT CAST( NULL AS SIGNED ) / 91 / col2 AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 91 / col2 AS col0 FROM tab0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1916
SELECT ALL SUM( DISTINCT 82 ) AS col0 FROM tab2 cor0
----
82
skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL SUM ( DISTINCT 82 ) AS col0 FROM tab2 cor0
----
82
onlyif mysql # DIV for integer division:
query I rowsort label-1917
SELECT DISTINCT - 11 DIV + 16 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT - 11 / + 16 FROM tab1 AS cor0
----
0
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 - col2 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1919
SELECT + ( col0 ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1919
SELECT + ( col0 ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 81 * + - col2 + col1 + - 62 AS col0 FROM tab0
----
-3788
-8080
-851
onlyif mysql # aggregate syntax:
query II rowsort label-1921
SELECT - - COUNT( * ) AS col1, + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9
skipif mysql # not compatible
query II rowsort label-1921
SELECT - - COUNT ( * ) AS col1, + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 = NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1923
SELECT ALL + CAST( NULL AS SIGNED ) - + col0 + 87 * - ( - col0 ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1923
SELECT ALL + CAST ( NULL AS INTEGER ) - + col0 + 87 * - ( - col0 ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT + + 50 AS col0 FROM tab2 AS cor0
----
50
query I rowsort
SELECT DISTINCT - + ( - - 34 ) FROM tab1 AS cor0
----
-34
onlyif mysql # DIV for integer division:
query I rowsort label-1927
SELECT + + 58 DIV + - col2 - 20 AS col2 FROM tab2 AS cor0
----
-21
-21
-22
skipif mysql # not compatible
query I rowsort label-1927
SELECT + + 58 / + - col2 - 20 AS col2 FROM tab2 AS cor0
----
-21
-21
-22
onlyif mysql # aggregate syntax:
query II rowsort label-1928
SELECT ALL - COUNT( * ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
-3
3
skipif mysql # not compatible
query II rowsort label-1928
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
-3
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col2 - col1 + - 32 col2 FROM tab0 AS cor0
----
-145
-35
24
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1930
SELECT CAST( + + 51 AS SIGNED ) - - 87, + col0 * - col2 AS col1 FROM tab1 AS cor0
----
138
-4896
138
-5015
138
-6188
skipif mysql # not compatible
query II rowsort label-1930
SELECT CAST ( + + 51 AS INTEGER ) - - 87, + col0 * - col2 AS col1 FROM tab1 AS cor0
----
138
-4896
138
-5015
138
-6188
onlyif mysql # aggregate syntax:
query I rowsort label-1931
SELECT + COUNT( * ) + - + 6 AS col2 FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-1931
SELECT + COUNT ( * ) + - + 6 AS col2 FROM tab2
----
-3
query III rowsort
SELECT * FROM tab2 WHERE NULL <> - - col1
----
query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + col0 >= col0 * 12
----
85
5
59
onlyif mysql # aggregate syntax:
query I rowsort label-1934
SELECT + ( - - MIN( + col2 ) ) FROM tab1 AS cor0
----
59
skipif mysql # not compatible
query I rowsort label-1934
SELECT + ( - - MIN ( + col2 ) ) FROM tab1 AS cor0
----
59
query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT ALL 19 + - 31 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1937
SELECT * FROM tab1 WHERE NOT - CAST( - 21 AS SIGNED ) <> NULL
----
skipif mysql # not compatible
query III rowsort label-1937
SELECT * FROM tab1 WHERE NOT - CAST ( - 21 AS INTEGER ) <> NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1938
SELECT - CAST( - 74 AS SIGNED ) FROM tab1 AS cor0
----
74
74
74
skipif mysql # not compatible
query I rowsort label-1938
SELECT - CAST ( - 74 AS INTEGER ) FROM tab1 AS cor0
----
74
74
74
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT - col1, + 1 AS col1 FROM tab2 AS cor0
----
-51
1
-67
1
-77
1
query I rowsort
SELECT - 76 * - col0 AS col0 FROM tab2 AS cor0
----
3496
4864
5700
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1942
SELECT ALL + MAX( ALL - + col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + + CAST( NULL AS SIGNED )
----
NULL
skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL + MAX ( ALL - + col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + + CAST ( NULL AS INTEGER )
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1943
SELECT - MIN( ( - ( + 51 ) ) ) FROM tab0 cor0
----
51
skipif mysql # not compatible
query I rowsort label-1943
SELECT - MIN ( ( - ( + 51 ) ) ) FROM tab0 cor0
----
51
query I rowsort
SELECT ALL + ( - 56 ) AS col0 FROM tab0 AS cor0
----
-56
-56
-56
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1945
SELECT * FROM tab2 WHERE NOT col0 + - 10 NOT BETWEEN - - CAST( + col0 AS SIGNED ) AND + col0
----
skipif mysql # not compatible
query III rowsort label-1945
SELECT * FROM tab2 WHERE NOT col0 + - 10 NOT BETWEEN - - CAST ( + col0 AS INTEGER ) AND + col0
----
query I rowsort
SELECT ALL + ( col2 ) + - - col0 FROM tab1
----
144
147
159
query I rowsort
SELECT ALL + col0 * + - col2 * + 35 * + 31 AS col2 FROM tab0
----
-10419255
-764925
-943950
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1948
SELECT COUNT( * ) * - - CAST( + - 73 AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1948
SELECT COUNT ( * ) * - - CAST ( + - 73 AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-1949
SELECT DISTINCT - col0 DIV - - 24 + - col1 FROM tab2
----
-52
-70
-79
skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT - col0 / - - 24 + - col1 FROM tab2
----
-52
-70
-79
query I rowsort
SELECT ( + 35 ) FROM tab0
----
35
35
35
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1951
SELECT ALL CAST( + SUM( DISTINCT 75 ) AS SIGNED ) col0 FROM tab1
----
75
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1951
SELECT ALL CAST ( + SUM ( DISTINCT 75 ) AS INTEGER ) col0 FROM tab1
----
75
query III rowsort
SELECT * FROM tab0 WHERE - col2 IN ( col2 + - col2 + - + col1, - ( + col2 ) - + col0 )
----
query I rowsort
SELECT col1 AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT ALL + + ( - 75 ) FROM tab0 AS cor0
----
-75
-75
-75
onlyif mysql # aggregate syntax:
query I rowsort label-1955
SELECT + MAX( DISTINCT col0 ) * - MAX( - + col0 ) AS col1 FROM tab0 AS cor0
----
1455
skipif mysql # not compatible
query I rowsort label-1955
SELECT + MAX ( DISTINCT col0 ) * - MAX ( - + col0 ) AS col1 FROM tab0 AS cor0
----
1455
query I rowsort
SELECT DISTINCT + col0 * + - col2 AS col0 FROM tab1 cor0
----
-4896
-5015
-6188
onlyif mysql # aggregate syntax:
query I rowsort label-1957
SELECT + COUNT( * ) * - + 53 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 6 + + + 73 IS NULL
----
-477
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1957
SELECT + COUNT ( * ) * - + 53 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 6 + + + 73 IS NULL
----
-477
query I rowsort
SELECT col1 + - ( + col1 ) + - - 77 AS col0 FROM tab1
----
77
77
77
query I rowsort
SELECT + - col2 + - + col0 FROM tab1 AS cor0
----
-144
-147
-159
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1960
SELECT + + col2 + - col0 + - + col0 * - CAST( NULL AS SIGNED ) + - 5 + + ( + col0 ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1960
SELECT + + col2 + - col0 + - + col0 * - CAST ( NULL AS INTEGER ) + - 5 + + ( + col0 ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col2 - 87 AS col0 FROM tab1 AS cor0
----
-19
-28
9
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 43 IS NOT NULL
----
query I rowsort
SELECT + 45 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
45
45
45
onlyif mysql # aggregate syntax:
query I rowsort label-1964
SELECT + ( - + MAX( 9 ) ) FROM tab2 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-1964
SELECT + ( - + MAX ( 9 ) ) FROM tab2 AS cor0
----
-9
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1965
SELECT ALL + - CAST( NULL AS SIGNED ) + + col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----
skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL + - CAST ( NULL AS INTEGER ) + + col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-1966
SELECT DISTINCT COUNT( * ), COUNT( * ) FROM tab1
----
3
3
skipif mysql # not compatible
query II rowsort label-1966
SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab1
----
3
3
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * - 87 + 75 * - ( + col2 ) NOT BETWEEN NULL AND + col0
----
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-1969
SELECT DISTINCT + COUNT( * ) AS col1, 68 * + 42 FROM tab0
----
3
2856
skipif mysql # not compatible
query II rowsort label-1969
SELECT DISTINCT + COUNT ( * ) AS col1, 68 * + 42 FROM tab0
----
3
2856
onlyif mysql # aggregate syntax:
query I rowsort label-1970
SELECT DISTINCT + MAX( DISTINCT + 52 ) FROM tab2
----
52
skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT + MAX ( DISTINCT + 52 ) FROM tab2
----
52
onlyif mysql # DIV for integer division:
query I rowsort label-1971
SELECT - col0 DIV col1 col2 FROM tab2
----
-1
0
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1971
SELECT - col0 / col1 col2 FROM tab2
----
-1
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-1972
SELECT + ( - + COUNT( * ) ) AS col2 FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-1972
SELECT + ( - + COUNT ( * ) ) AS col2 FROM tab0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-1973
SELECT ALL + COUNT( * ) * + 27 AS col1 FROM tab2
----
81
skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL + COUNT ( * ) * + 27 AS col1 FROM tab2
----
81
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query I rowsort label-1974
SELECT DISTINCT + COUNT( * ) DIV CAST( - CAST( 39 AS SIGNED ) AS SIGNED ) FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT + COUNT ( * ) / CAST ( - CAST ( 39 AS INTEGER ) AS INTEGER ) FROM tab1
----
0
query I rowsort
SELECT DISTINCT + ( + 20 ) FROM tab0
----
20
query III rowsort
SELECT ALL * FROM tab0 WHERE 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-1977
SELECT + - COUNT( DISTINCT + ( + 51 ) ) FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-1977
SELECT + - COUNT ( DISTINCT + ( + 51 ) ) FROM tab0 AS cor0
----
-1
onlyif mysql # DIV for integer division:
query II rowsort label-1978
SELECT DISTINCT + 79 AS col0, col0 + col1 DIV - col0 * col1 FROM tab1 AS cor0
----
79
51
79
85
79
91
skipif mysql # not compatible
query II rowsort label-1978
SELECT DISTINCT + 79 AS col0, col0 + col1 / - col0 * col1 FROM tab1 AS cor0
----
79
51
79
85
79
91
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1979
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 - CAST( + + CAST( + 58 AS SIGNED ) AS SIGNED ) > - CAST( NULL AS SIGNED ) * - + 26
----
skipif mysql # not compatible
query III rowsort label-1979
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 - CAST ( + + CAST ( + 58 AS INTEGER ) AS INTEGER ) > - CAST ( NULL AS INTEGER ) * - + 26
----
query I rowsort
SELECT 70 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1981
SELECT ALL MAX( ALL col0 ) + - COUNT( * ) col1 FROM tab1 WHERE NOT ( + col0 * 15 + + col0 * - col1 ) IS NULL
----
88
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1981
SELECT ALL MAX ( ALL col0 ) + - COUNT ( * ) col1 FROM tab1 WHERE NOT ( + col0 * 15 + + col0 * - col1 ) IS NULL
----
88
query I rowsort
SELECT ALL - col1 * 78 AS col2 FROM tab1 WHERE NOT NULL = - ( col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1983
SELECT + MAX( + 6 ) AS col1 FROM tab0
----
6
skipif mysql # not compatible
query I rowsort label-1983
SELECT + MAX ( + 6 ) AS col1 FROM tab0
----
6
query I rowsort
SELECT col2 * 57 AS col0 FROM tab1 WHERE NOT + col2 * col0 IS NULL
----
3363
3876
5472
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1985
SELECT ALL CAST( 68 AS SIGNED ) FROM tab1
----
68
68
68
skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL CAST ( 68 AS INTEGER ) FROM tab1
----
68
68
68
onlyif mysql # aggregate syntax:
query I rowsort label-1986
SELECT 45 + COUNT( * ) AS col0 FROM tab2 WHERE NOT - col1 * - col0 IS NOT NULL
----
45
skipif mysql # not compatible
query I rowsort label-1986
SELECT 45 + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col1 * - col0 IS NOT NULL
----
45
query I rowsort
SELECT DISTINCT 82 - + col0 AS col2 FROM tab0 WHERE NULL BETWEEN + col2 + + 4 AND NULL
----
query I rowsort
SELECT ALL + col1 - col0 AS col2 FROM tab0
----
-66
-96
66
query I rowsort
SELECT ALL - 5 + col2 AS col0 FROM tab2
----
18
35
53
onlyif mysql # DIV for integer division:
query I rowsort label-1990
SELECT DISTINCT - ( - 76 ) - + 8 DIV col2 AS col1 FROM tab1
----
76
skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT - ( - 76 ) - + 8 / col2 AS col1 FROM tab1
----
76
onlyif mysql # aggregate syntax:
query I rowsort label-1991
SELECT + COUNT( ALL - col0 ) AS col0 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-1991
SELECT + COUNT ( ALL - col0 ) AS col0 FROM tab2
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-1992
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) = col1 * + col2
----
0
skipif mysql # not compatible
query I rowsort label-1992
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) = col1 * + col2
----
0
query I rowsort
SELECT ALL col2 FROM tab1 WHERE + 29 IS NOT NULL
----
59
68
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab0 WHERE - 31 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1995
SELECT ALL - COUNT( * ) * 42 FROM tab0 WHERE ( - 83 ) <> NULL
----
0
skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL - COUNT ( * ) * 42 FROM tab0 WHERE ( - 83 ) <> NULL
----
0
query I rowsort
SELECT DISTINCT col2 + 68 FROM tab2
----
108
126
91
query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * col1 NOT BETWEEN 37 + col1 AND 91 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 col2 FROM tab0
----
-11
-34
98
query I rowsort
SELECT col2 + 15 * - col0 AS col2 FROM tab0
----
-1295
-1356
-178
onlyif mysql # aggregate syntax:
query I rowsort label-2000
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT - 62 > col0
----
3
skipif mysql # not compatible
query I rowsort label-2000
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT - 62 > col0
----
3
query I rowsort
SELECT - col1 + - col0 FROM tab1 WHERE NULL <= 83 + col0 * + 24
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 87 ) IN ( + col0 * - 20 + + 13 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2003
SELECT + 15 AS col1 FROM tab2 WHERE col2 < CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + col1
----
skipif mysql # not compatible
query I rowsort label-2003
SELECT + 15 AS col1 FROM tab2 WHERE col2 < CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-2004
SELECT MIN( DISTINCT 7 ) * 58 AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-2004
SELECT MIN ( DISTINCT 7 ) * 58 AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( + col2 / + col2 + - col1 )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + col0 < + 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab1 WHERE col1 + 84 <= NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 + col0 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-2009
SELECT COUNT( * ) + COUNT( * ) AS col1 FROM tab1
----
6
skipif mysql # not compatible
query I rowsort label-2009
SELECT COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1
----
6
onlyif mysql # aggregate syntax:
query I rowsort label-2010
SELECT SUM( ALL col0 ) col2 FROM tab1
----
227
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2010
SELECT SUM ( ALL col0 ) col2 FROM tab1
----
227
query I rowsort
SELECT DISTINCT - 92 * 28 AS col0 FROM tab1
----
-2576
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2012
SELECT DISTINCT + COUNT( * ) - SUM( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2012
SELECT DISTINCT + COUNT ( * ) - SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT + col1 + + 99 * - 38 AS col0 FROM tab1
----
-3715
-3748
-3757
onlyif mysql # aggregate syntax:
query I rowsort label-2014
SELECT - 11 * - COUNT( - 87 ) FROM tab1
----
33
skipif mysql # not compatible
query I rowsort label-2014
SELECT - 11 * - COUNT ( - 87 ) FROM tab1
----
33
query I rowsort
SELECT 2 * col0 + - 85 AS col2 FROM tab2
----
43
65
7
query I rowsort
SELECT + 0 * ( + col0 ) AS col0 FROM tab1
----
0
0
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2017
SELECT ALL - col1 * - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + 5 * + 4 IN ( + 94 * + 69 + 4 )
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL - col1 * - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + 5 * + 4 IN ( + 94 * + 69 + 4 )
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2018
SELECT ALL 13 * + MIN( ALL - 21 ) FROM tab0 AS cor0
----
-273
skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL 13 * + MIN ( ALL - 21 ) FROM tab0 AS cor0
----
-273
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > - 44
----
query I rowsort
SELECT col1 + 46 FROM tab2 AS cor0
----
113
123
97
onlyif mysql # DIV for integer division:
query I rowsort label-2022
SELECT - 46 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2022
SELECT - 46 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 71 * - col2 AS col1 FROM tab1 AS cor0
----
-4189
-4828
-6816
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 WHERE NOT ( + 5 ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187
query I rowsort
SELECT DISTINCT 89 FROM tab0 AS cor0 CROSS JOIN tab2
----
89
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-2026
SELECT ALL * FROM tab1 WHERE NOT NULL = CAST( - 72 AS DECIMAL ) + 59
----
skipif mysql # not compatible
query III rowsort label-2026
SELECT ALL * FROM tab1 WHERE NOT NULL = CAST ( - 72 AS REAL ) + 59
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 16 col0 FROM tab1
----
21
30
63
query I rowsort
SELECT ALL + col2 * + col2 FROM tab0 AS cor0 WHERE - 7 IS NOT NULL
----
100
2209
9801
onlyif mysql # aggregate syntax:
query I rowsort label-2029
SELECT DISTINCT - - COUNT( * ) - COUNT( - col0 + 66 / col0 ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT - - COUNT ( * ) - COUNT ( - col0 + 66 / col0 ) FROM tab0 AS cor0
----
0
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + col1 = ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - col0 col2 FROM tab0 AS cor0
----
-174
-194
-30
query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE 72 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2033
SELECT + - COUNT( * ) * 60 - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-183
skipif mysql # not compatible
query I rowsort label-2033
SELECT + - COUNT ( * ) * 60 - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-183
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( 60 * col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-2035
SELECT + SUM( ALL - 87 ) + ( + COUNT( * ) - 8 / AVG ( - 43 ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-2035
SELECT + SUM ( ALL - 87 ) + ( + COUNT ( * ) - 8 / AVG ( - 43 ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL
query I rowsort
SELECT - 30 * ( 7 * ( + col2 ) ) FROM tab1 AS cor0
----
-12390
-14280
-20160
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2038
SELECT + col1 * + col0 + CAST( NULL AS SIGNED ) * - col2 FROM tab0 WHERE NOT ( 70 ) IS NULL
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2038
SELECT + col1 * + col0 + CAST ( NULL AS INTEGER ) * - col2 FROM tab0 WHERE NOT ( 70 ) IS NULL
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * col0 * + ( - col0 ) AS col2 FROM tab2
----
-107916
-315392
-376875
query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 80 ) IS NOT NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2041
SELECT DISTINCT MAX( - - CAST( col2 AS SIGNED ) ) FROM tab0
----
99
skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT MAX ( - - CAST ( col2 AS INTEGER ) ) FROM tab0
----
99
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2042
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-2042
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL - col1 * - - 65 FROM tab1
----
-3055
-325
-910
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col1 FROM tab2 AS cor0
----
-18
-18
-18
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> 5 * - col0
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 BETWEEN 54 AND ( col0 )
----
query I rowsort
SELECT ALL + 79 * + 49 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5eabfbd605886d82b38cfe1f2a749b90
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - 46
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 ) >= NULL
----
query I rowsort
SELECT - 20 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 col0 FROM tab0
----
74
74
74
query I rowsort
SELECT ALL - - 98 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT 15 FROM tab1 AS cor0 WHERE NOT col0 + - col2 <> - col2 / col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-2054
SELECT ALL + - MAX( + ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-58
skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL + - MAX ( + ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-58
query I rowsort
SELECT 38 * 72 + + col0 FROM tab2 AS cor0
----
2782
2800
2811
onlyif mysql # aggregate syntax:
query I rowsort label-2056
SELECT + + COUNT( * ) + - - 94 FROM tab2 AS cor0
----
97
skipif mysql # not compatible
query I rowsort label-2056
SELECT + + COUNT ( * ) + - - 94 FROM tab2 AS cor0
----
97
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 > ( col1 )
----
97
1
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 13 + col2 + col0 col2 FROM tab2 cor0
----
-594
-738
-897
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 * - col1 ) NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2061
SELECT + CAST( NULL AS SIGNED ) + ( - 50 ) - ( - col1 + col1 * - ( col0 ) ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2061
SELECT + CAST ( NULL AS INTEGER ) + ( - 50 ) - ( - col1 + col1 * - ( col0 ) ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2062
SELECT ALL - - COUNT( col0 ) FROM tab2 cor0
----
3
skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL - - COUNT ( col0 ) FROM tab2 cor0
----
3
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - ( - 2 ) * - ( + col0 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2064
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( - CAST( NULL AS SIGNED ) )
----
skipif mysql # not compatible
query III rowsort label-2064
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( - CAST ( NULL AS INTEGER ) )
----
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-2065
SELECT ALL + 92 * 43 + + - col1 + ( - CAST( - col1 AS SIGNED ) ) DIV + col1 AS col0 FROM tab1 AS cor0
----
3910
3943
3952
skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL + 92 * 43 + + - col1 + ( - CAST ( - col1 AS INTEGER ) ) / + col1 AS col0 FROM tab1 AS cor0
----
3910
3943
3952
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 12 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 ) IS NULL
----
query I rowsort
SELECT + 14 AS col0 FROM tab1
----
14
14
14
query I rowsort
SELECT ALL - 89 * + col1 * - 18 FROM tab2 AS cor0
----
107334
123354
81702
query I rowsort
SELECT + + 89 * + col1 AS col2 FROM tab0 AS cor0
----
1869
7209
89
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - - col2 ) IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 33 )
----
query I rowsort
SELECT ALL - - col0 * + col2 * col1 + - 54 - col0 FROM tab2 AS cor0
----
197002
291321
53858
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a
onlyif mysql # aggregate syntax:
query I rowsort label-2075
SELECT + 33 + + SUM( DISTINCT - + 71 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-2075
SELECT + 33 + + SUM ( DISTINCT - + 71 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL
query II rowsort
SELECT - col0 + - col0 - col1, + 79 + + col1 AS col2 FROM tab2
----
-143
130
-205
156
-217
146
query I rowsort
SELECT col1 + + col0 + + col1 + + col0 AS col1 FROM tab1
----
130
180
276
query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NULL < col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-2079
SELECT 48 * - + MAX( - col0 ) col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2079
SELECT 48 * - + MAX ( - col0 ) col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
NULL
query I rowsort
SELECT ALL + - 4 FROM tab1 cor0
----
-4
-4
-4
query I rowsort
SELECT ALL col2 * + - col2 AS col0 FROM tab0 AS cor0
----
-100
-2209
-9801
query I rowsort
SELECT DISTINCT + ( 13 ) * + col0 * + + col0 AS col2 FROM tab2 AS cor0
----
27508
53248
73125
query I rowsort
SELECT DISTINCT - col0 * - 53 AS col2 FROM tab0 AS cor0
----
4611
5141
795
query I rowsort
SELECT ALL + - col2 * + 98 AS col2 FROM tab0 cor0
----
-4606
-9702
-980
query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT col2 - - col2 IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-2087
SELECT DISTINCT + MAX( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL <= - col0 * 92
----
NULL
skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT + MAX ( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL <= - col0 * 92
----
NULL
query I rowsort
SELECT DISTINCT + col2 * - col2 * + + 28 FROM tab2 AS cor0
----
-14812
-44800
-94192
onlyif mysql # DIV for integer division:
query I rowsort label-2089
SELECT + col1 DIV - col1 FROM tab1 WHERE NOT + + 4 * + col2 IN ( - col1 )
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2089
SELECT + col1 / - col1 FROM tab1 WHERE NOT + + 4 * + col2 IN ( - col1 )
----
-1
-1
-1
query I rowsort
SELECT ALL 56 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 26 col0, - col1 AS col2 FROM tab0
----
-26
-1
-26
-21
-26
-81
query I rowsort
SELECT ALL + 67 AS col1 FROM tab2
----
67
67
67
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2093
SELECT DISTINCT + 53 * 61 DIV COUNT( * ) FROM tab0
----
1077
skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT + 53 * 61 / COUNT ( * ) FROM tab0
----
1077
onlyif mysql # aggregate syntax:
query I rowsort label-2094
SELECT + MIN( ALL + 44 ) FROM tab2
----
44
skipif mysql # not compatible
query I rowsort label-2094
SELECT + MIN ( ALL + 44 ) FROM tab2
----
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * + 27, ( + 51 ) * + - col1 + ( - col2 ) * + 23 col0 FROM tab0
----
-2349
-1301
-2619
-2328
-405
-5212
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2096
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - CAST( NULL AS SIGNED ) * + - col2 * + col0
----
skipif mysql # not compatible
query III rowsort label-2096
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - CAST ( NULL AS INTEGER ) * + - col2 * + col0
----
query I rowsort
SELECT DISTINCT - 11 * + 33 AS col1 FROM tab1 AS cor0
----
-363
onlyif mysql # aggregate syntax:
query I rowsort label-2098
SELECT DISTINCT COUNT( * ) + 96 AS col2 FROM tab1 AS cor0
----
99
skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT COUNT ( * ) + 96 AS col2 FROM tab1 AS cor0
----
99
query I rowsort
SELECT 92 * col2 + col0 FROM tab2
----
2162
3744
5411
onlyif mysql # aggregate syntax:
query I rowsort label-2100
SELECT DISTINCT SUM( ALL col2 ) + - + COUNT( * ) col1 FROM tab1
----
220
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2100
SELECT DISTINCT SUM ( ALL col2 ) + - + COUNT ( * ) col1 FROM tab1
----
220
onlyif mysql # aggregate syntax:
query I rowsort label-2101
SELECT ALL + COUNT( * ) * - - COUNT( * ) + + 56 FROM tab0
----
65
skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) + + 56 FROM tab0
----
65
query III rowsort
SELECT * FROM tab2 WHERE - 86 < NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-2103
SELECT ALL - col0 * 3 + + col0 DIV - col1 FROM tab1 cor0
----
-156
-272
-274
skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL - col0 * 3 + + col0 / - col1 FROM tab1 cor0
----
-156
-272
-274
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2105
SELECT ALL - SUM( ALL - - col1 ) AS col0 FROM tab2 AS cor0
----
-195
skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL - SUM ( ALL - - col1 ) AS col0 FROM tab2 AS cor0
----
-195
query I rowsort
SELECT ALL - col0 + + col1 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-8
13
5
onlyif mysql # aggregate syntax:
query I rowsort label-2107
SELECT ALL - MIN( DISTINCT + col2 ) + ( - - 37 ) FROM tab0 AS cor0
----
27
skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL - MIN ( DISTINCT + col2 ) + ( - - 37 ) FROM tab0 AS cor0
----
27
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2108
SELECT ALL 6 DIV - COUNT( * ) FROM tab0
----
-2
skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL 6 / - COUNT ( * ) FROM tab0
----
-2
query I rowsort
SELECT ALL + col1 * - - 15 + + - 84 * - col2 AS col2 FROM tab2
----
2697
4515
5877
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 = ( NULL )
----
onlyif mysql # DIV for integer division:
query I rowsort label-2111
SELECT - col0 DIV + + col1 + - ( col2 ) AS col0 FROM tab1
----
-69
-76
-99
skipif mysql # not compatible
query I rowsort label-2111
SELECT - col0 / + + col1 + - ( col2 ) AS col0 FROM tab1
----
-69
-76
-99
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT 84 + - - col0 AS col2 FROM tab1
----
135
169
175
query III rowsort
SELECT * FROM tab0 WHERE - 27 NOT BETWEEN + col0 / col0 * - col1 / col1 + - + col0 * col0 AND ( NULL )
----
query I rowsort
SELECT 13 AS col1 FROM tab1 cor0 WHERE 36 IN ( col1 / 12 - col2 + + col1 )
----
query I rowsort
SELECT ALL 36 * - col2 - - 67 * 50 * 89 AS col2 FROM tab1 AS cor0
----
294694
295702
296026
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 89 NOT BETWEEN 79 AND + ( - 4 ) + + - col0 * + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-2118
SELECT ALL + SUM( DISTINCT - - col2 ) FROM tab2 AS cor0
----
121
skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL + SUM ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
121
onlyif mysql # aggregate syntax:
query II rowsort label-2119
SELECT - COUNT( * ) AS col2, COUNT( * ) FROM tab2 AS cor0
----
-3
3
skipif mysql # not compatible
query II rowsort label-2119
SELECT - COUNT ( * ) AS col2, COUNT ( * ) FROM tab2 AS cor0
----
-3
3
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2120
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 + 49, + 20 * + 85 * - CAST( + CAST( col1 AS SIGNED ) AS SIGNED ) + 4 * + col0 )
----
skipif mysql # not compatible
query III rowsort label-2120
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 + 49, + 20 * + 85 * - CAST ( + CAST ( col1 AS INTEGER ) AS INTEGER ) + 4 * + col0 )
----
query I rowsort
SELECT + - 12 * col2 AS col2 FROM tab1 AS cor0
----
-1152
-708
-816
query I rowsort
SELECT ALL - + 16 AS col1 FROM tab0 AS cor0
----
-16
-16
-16
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2123
SELECT ALL + col0 + - - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL + col0 + - - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2124
SELECT + col1 * - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2124
SELECT + col1 * - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2125
SELECT COUNT( - + col0 ) FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-2125
SELECT COUNT ( - + col0 ) FROM tab2 AS cor0
----
3
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 9 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # DIV for integer division:
query I rowsort label-2127
SELECT DISTINCT - 44 * + + col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
-44
skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT - 44 * + + col2 / + col2 AS col0 FROM tab0 AS cor0
----
-44
query I rowsort
SELECT 66 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT ALL - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= + col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-2130
SELECT DISTINCT - SUM( DISTINCT - - col2 ) FROM tab1
----
-223
skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT - SUM ( DISTINCT - - col2 ) FROM tab1
----
-223
query I rowsort
SELECT col0 FROM tab1 WHERE NOT col1 <> NULL
----
query II rowsort
SELECT DISTINCT - col1, col0 FROM tab0
----
-1
97
-21
87
-81
15
query I rowsort
SELECT + col1 * + + 63 AS col0 FROM tab1
----
2961
315
882
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - + col1 ) IS NOT NULL
----
query I rowsort
SELECT ALL - 66 * - 27 FROM tab1
----
1782
1782
1782
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2136
SELECT 72 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2136
SELECT 72 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-2137
SELECT DISTINCT CAST( col1 AS SIGNED ) DIV - ( col0 ) + - col1 AS col0 FROM tab1
----
-14
-47
-5
skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT CAST ( col1 AS INTEGER ) / - ( col0 ) + - col1 AS col0 FROM tab1
----
-14
-47
-5
query II rowsort
SELECT 9 * - col1 + - + 74, col0 FROM tab2 AS cor0
----
-533
46
-677
75
-767
64
query I rowsort
SELECT DISTINCT + - 22 AS col2 FROM tab2 AS cor0
----
-22
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-2140
SELECT + col0 AS col1, - CAST( NULL AS SIGNED ) * - + col2 AS col1 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL
skipif mysql # not compatible
query II rowsort label-2140
SELECT + col0 AS col1, - CAST ( NULL AS INTEGER ) * - + col2 AS col1 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2141
SELECT ALL - + COUNT( ALL + + 15 ) AS col0 FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL - + COUNT ( ALL + + 15 ) AS col0 FROM tab1 AS cor0
----
-3
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 77 IS NOT NULL
----
query I rowsort
SELECT DISTINCT 48 * + 17 + - col0 * + ( + 81 ) * + 53 * - 58 + - 6 - col0 AS col1 FROM tab2
----
11454488
15936362
18675285
query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75
query II rowsort
SELECT ALL - - 96 AS col2, col2 AS col0 FROM tab1 AS cor0
----
96
59
96
68
96
96
query I rowsort
SELECT DISTINCT - 7 * + col0 + col0 * + 98 + + - col0 + + col1 AS col2 FROM tab1 AS cor0
----
4604
7655
8237
query I rowsort
SELECT DISTINCT - ( - ( + col1 ) ) FROM tab0 AS cor0
----
1
21
81
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2148
SELECT MIN( - + col1 ) * 66 + + SUM( + 12 ) - 7 * COUNT( * ) DIV - - COUNT( * ) + + COUNT( * ) FROM tab0 cor0
----
-5314
skipif mysql # not compatible
query I rowsort label-2148
SELECT MIN ( - + col1 ) * 66 + + SUM ( + 12 ) - 7 * COUNT ( * ) / - - COUNT ( * ) + + COUNT ( * ) FROM tab0 cor0
----
-5314
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND - + col1 / + - 68 * col1
----
query I rowsort
SELECT - + col1 + - 12 FROM tab1 AS cor0
----
-17
-26
-59
query I rowsort
SELECT 3 + + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-2343
-4925
-5022
onlyif mysql # DIV for integer division:
query I rowsort label-2152
SELECT DISTINCT + ( + 80 ) DIV + col2 AS col2 FROM tab0 AS cor0
----
0
1
8
skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT + ( + 80 ) / + col2 AS col2 FROM tab0 AS cor0
----
0
1
8
query II rowsort
SELECT DISTINCT - + col2 AS col0, 73 * + col1 * - 30 AS col2 FROM tab1 AS cor0
----
-59
-10950
-68
-102930
-96
-30660
query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE ( ( ( col0 ) NOT BETWEEN NULL AND + 16 ) )
----
1
21
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-2155
SELECT ALL + col1 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - CAST( + + col1 AS DECIMAL )
----
skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL + col1 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - CAST ( + + col1 AS REAL )
----
onlyif mysql # DIV for integer division:
query I rowsort label-2156
SELECT DISTINCT + col0 DIV + + 25 + - col1 AS col1 FROM tab2
----
-50
-64
-75
skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT + col0 / + + 25 + - col1 AS col1 FROM tab2
----
-50
-64
-75
query I rowsort
SELECT ALL - col1 * - col2 + + 89 AS col0 FROM tab1
----
1433
3285
384
query I rowsort
SELECT + 62 AS col1 FROM tab1 WHERE NULL < + col0
----
query I rowsort
SELECT ( + - col2 ) AS col2 FROM tab0
----
-10
-47
-99
onlyif mysql # aggregate syntax:
query I rowsort label-2160
SELECT ALL MAX( col1 ) + 92 FROM tab2 AS cor0
----
169
skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL MAX ( col1 ) + 92 FROM tab2 AS cor0
----
169
query I rowsort
SELECT col2 * - - 48 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= + 54 + - 87
----
onlyif mysql # aggregate syntax:
query II rowsort label-2163
SELECT + COUNT( * ) AS col0, 6 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
6
skipif mysql # not compatible
query II rowsort label-2163
SELECT + COUNT ( * ) AS col0, 6 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
6
query I rowsort
SELECT ALL col2 + col2 AS col2 FROM tab1 AS cor0 WHERE + col1 * + - col1 NOT IN ( 90 + + col0 )
----
118
136
192
onlyif mysql # aggregate syntax:
query I rowsort label-2165
SELECT ALL COUNT( ALL - col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL > ( col0 + 84 )
----
0
skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL COUNT ( ALL - col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL > ( col0 + 84 )
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-2166
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0
query II rowsort
SELECT ALL + col0 AS col0, + col2 FROM tab0 cor0
----
15
47
87
10
97
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2, - 46 col1 FROM tab2 AS cor0
----
23
-46
40
-46
58
-46
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-2169
SELECT + + 47, - CAST( + 61 AS SIGNED ) * + + 7 + - + col0 AS col1 FROM tab0 AS cor0
----
47
-442
47
-514
47
-524
skipif mysql # not compatible
query II rowsort label-2169
SELECT + + 47, - CAST ( + 61 AS INTEGER ) * + + 7 + - + col0 AS col1 FROM tab0 AS cor0
----
47
-442
47
-514
47
-524
query I rowsort
SELECT - 21 * col2 * 98 FROM tab0
----
-203742
-20580
-96726
onlyif mysql # aggregate syntax:
query I rowsort label-2171
SELECT - COUNT( * ) * + + COUNT( * ) * + COUNT( * ) AS col2 FROM tab0
----
-27
skipif mysql # not compatible
query I rowsort label-2171
SELECT - COUNT ( * ) * + + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0
----
-27
query I rowsort
SELECT DISTINCT 9 * + ( + col2 ) AS col2 FROM tab1
----
531
612
864
query II rowsort
SELECT ALL - 32 * col0 AS col2, + ( - col0 ) FROM tab0
----
-2784
-87
-3104
-97
-480
-15
query I rowsort
SELECT DISTINCT 36 * - col1 FROM tab0
----
-2916
-36
-756
onlyif mysql # aggregate syntax:
query I rowsort label-2175
SELECT - 23 * - MIN( col1 ) AS col1 FROM tab0
----
23
skipif mysql # not compatible
query I rowsort label-2175
SELECT - 23 * - MIN ( col1 ) AS col1 FROM tab0
----
23
query I rowsort
SELECT + 55 * + + ( 41 ) FROM tab1
----
2255
2255
2255
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2177
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col1 FROM tab2
----
NULL
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 76 IS NOT NULL
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 49 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1 )
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----
query I rowsort
SELECT col1 * - - 78 * 90 + + + col1 + 23 FROM tab0 AS cor0
----
147464
568724
7044
query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 87 NOT BETWEEN ( NULL ) AND NULL
----
query II rowsort
SELECT DISTINCT + 59 + - ( - 30 ) AS col0, + col0 AS col1 FROM tab2
----
89
46
89
64
89
75
query III rowsort
SELECT * FROM tab0 WHERE ( - col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 80 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2187
SELECT ALL + CAST( - - 54 AS SIGNED ) FROM tab1 AS cor0
----
54
54
54
skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL + CAST ( - - 54 AS INTEGER ) FROM tab1 AS cor0
----
54
54
54
onlyif mysql # aggregate syntax:
query I rowsort label-2188
SELECT + - COUNT( * ) * - 31 + + COUNT( * ) FROM tab0 AS cor0
----
96
skipif mysql # not compatible
query I rowsort label-2188
SELECT + - COUNT ( * ) * - 31 + + COUNT ( * ) FROM tab0 AS cor0
----
96
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * - + 13 NOT BETWEEN NULL AND + col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-2190
SELECT ALL + - COUNT( * ) FROM tab0 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL + - COUNT ( * ) FROM tab0 cor0
----
-3
query I rowsort
SELECT DISTINCT + + ( - - 89 ) FROM tab0 AS cor0
----
89
query I rowsort
SELECT DISTINCT - 63 + + col2 + - 87 AS col0 FROM tab1 AS cor0
----
-54
-82
-91
query I rowsort
SELECT ALL + col1 FROM tab1 cor0 WHERE 35 < NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2194
SELECT + 94 + + COUNT( * ) AS col0 FROM tab0
----
97
skipif mysql # not compatible
query I rowsort label-2194
SELECT + 94 + + COUNT ( * ) AS col0 FROM tab0
----
97
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2195
SELECT * FROM tab0 WHERE + col2 = - + CAST( 13 AS SIGNED ) / - 20 * - 75
----
skipif mysql # not compatible
query III rowsort label-2195
SELECT * FROM tab0 WHERE + col2 = - + CAST ( 13 AS INTEGER ) / - 20 * - 75
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2196
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2196
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab1
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2197
SELECT - COUNT( * ) + COUNT( * ) AS col2 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-2197
SELECT - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2
----
0
query I rowsort
SELECT + 60 + - 40 + 42 + + 29 * - 79 * 38 * + col1 AS col0 FROM tab0
----
-1828156
-7051636
-86996
query I rowsort
SELECT ALL + col0 + + - col0 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE + 19 * + 47 / + 76 IS NULL
----
query I rowsort
SELECT + + 79 AS col2 FROM tab0 AS cor0
----
79
79
79
query I rowsort
SELECT DISTINCT - - ( ( - - col1 ) ) AS col0 FROM tab0 AS cor0
----
1
21
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 77 col1 FROM tab1 AS cor0
----
3927
6545
7007
query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 IN ( + - 26 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2206
SELECT ALL * FROM tab2 WHERE NOT + - 52 BETWEEN - col1 AND - + col0 * - col0 + - CAST( NULL AS SIGNED )
----
46
51
23
skipif mysql # not compatible
query III rowsort label-2206
SELECT ALL * FROM tab2 WHERE NOT + - 52 BETWEEN - col1 AND - + col0 * - col0 + - CAST ( NULL AS INTEGER )
----
46
51
23
onlyif mysql # DIV for integer division:
query I rowsort label-2207
SELECT + col1 DIV 78 + - col2 DIV col0 AS col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2207
SELECT + col1 / 78 + - col2 / col0 AS col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL + ( - 42 ) AS col1 FROM tab0 AS cor0
----
-42
-42
-42
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2209
SELECT ALL - CAST( + 44 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-44
-44
-44
skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL - CAST ( + 44 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-44
-44
-44
query I rowsort
SELECT DISTINCT + 31 AS col2 FROM tab2
----
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 col2 FROM tab1
----
-88
-88
-88
query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT - - col2 < + col1
----
14
47
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 3 col2 FROM tab2
----
43
61
72
query I rowsort
SELECT DISTINCT + 29 AS col0 FROM tab0
----
29
query I rowsort
SELECT + col0 * - 71 AS col2 FROM tab1 AS cor0
----
-3621
-6035
-6461
onlyif mysql # aggregate syntax:
query I rowsort label-2216
SELECT - - MAX( + col1 ) FROM tab1 AS cor0
----
47
skipif mysql # not compatible
query I rowsort label-2216
SELECT - - MAX ( + col1 ) FROM tab1 AS cor0
----
47
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND col2 + col0
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2218
SELECT - - CAST( + col0 AS SIGNED ) * + col1 * col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----
skipif mysql # not compatible
query I rowsort label-2218
SELECT - - CAST ( + col0 AS INTEGER ) * + col1 * col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * 77 IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 0 col0 FROM tab2
----
46
64
75
query I rowsort
SELECT DISTINCT 5 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
5
query I rowsort
SELECT DISTINCT - - col1 FROM tab1 cor0 WHERE ( NULL ) <> + + col1
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2223
SELECT DISTINCT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * - + 33 / + COUNT( * ) AS col1 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - + 33 / + COUNT ( * ) AS col1 FROM tab2 cor0
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT + 64 + + + col1 AS col0 FROM tab1
----
111
69
78
query II rowsort
SELECT ALL col2 * 1 * - col2, 71 AS col2 FROM tab2
----
-1600
71
-3364
71
-529
71
query I rowsort
SELECT col2 * col1 * + col0 * - col2 FROM tab0
----
-182700
-2683935
-950697
onlyif mysql # aggregate syntax:
query I rowsort label-2228
SELECT ALL ( - COUNT( * ) ) AS col0 FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL ( - COUNT ( * ) ) AS col0 FROM tab0
----
-3
onlyif mysql # DIV for integer division:
query I rowsort label-2229
SELECT col0 DIV - 69 AS col1 FROM tab2
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2229
SELECT col0 / - 69 AS col1 FROM tab2
----
-1
0
0
query I rowsort
SELECT DISTINCT - 88 * - + 23 * + col2 AS col0 FROM tab2
----
117392
46552
80960
query I rowsort
SELECT ALL - col2 * ( + + col2 ) FROM tab0 AS cor0
----
-100
-2209
-9801
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col1
----
onlyif mysql # DIV for integer division:
query I rowsort label-2233
SELECT ALL 10 DIV col0 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL 10 / col0 AS col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, col1 * + - col1 col0 FROM tab0
----
15
-6561
87
-441
97
-1
query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * 35 IS NOT NULL
----
query I rowsort
SELECT + 92 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> - 77
----
onlyif mysql # DIV for integer division:
query I rowsort label-2239
SELECT DISTINCT - col0 DIV + col2 FROM tab2 cor0
----
-1
-2
skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT - col0 / + col2 FROM tab2 cor0
----
-1
-2
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> ( col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-2241
SELECT DISTINCT + - 19 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-57
skipif mysql # not compatible
query I rowsort label-2241
SELECT DISTINCT + - 19 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-57
query I rowsort
SELECT DISTINCT - - 86 AS col1 FROM tab1 AS cor0
----
86
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-2243
SELECT ALL col1 + - + CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2243
SELECT ALL col1 + - + CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2244
SELECT + + COUNT( DISTINCT + col1 ) DIV COUNT( * ) * + 24 FROM tab0 cor0
----
24
skipif mysql # not compatible
query I rowsort label-2244
SELECT + + COUNT ( DISTINCT + col1 ) / COUNT ( * ) * + 24 FROM tab0 cor0
----
24
query I rowsort
SELECT col2 * + col0 * - col1 AS col1 FROM tab2
----
-197120
-291450
-53958
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2246
SELECT DISTINCT - col2 * - - col2 + CAST( + col1 AS SIGNED ) FROM tab1
----
-3476
-4577
-9202
skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT - col2 * - - col2 + CAST ( + col1 AS INTEGER ) FROM tab1
----
-3476
-4577
-9202
query I rowsort
SELECT DISTINCT col2 + + + col0 AS col1 FROM tab1
----
144
147
159
query I rowsort
SELECT ALL - 54 * + col1 + - col0 FROM tab0
----
-1221
-151
-4389
query I rowsort
SELECT - + col0 FROM tab1 WHERE + col2 IS NOT NULL
----
-51
-85
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 col1 FROM tab1
----
77
77
77
query I rowsort
SELECT ALL - col2 + - - col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-2252
SELECT - COUNT( ALL 37 ) FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----
0
skipif mysql # not compatible
query I rowsort label-2252
SELECT - COUNT ( ALL 37 ) FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----
0
onlyif mysql # aggregate syntax:
query II rowsort label-2253
SELECT - COUNT( * ) + - + COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab0 cor0
----
-6
3
skipif mysql # not compatible
query II rowsort label-2253
SELECT - COUNT ( * ) + - + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 cor0
----
-6
3
onlyif mysql # aggregate syntax:
query I rowsort label-2254
SELECT DISTINCT + 32 + - - SUM( 79 ) AS col1 FROM tab2
----
269
skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT + 32 + - - SUM ( 79 ) AS col1 FROM tab2
----
269
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2255
SELECT - - 72 FROM tab2 WHERE ( - - col0 ) <= col2 + - 34 * - - CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-2255
SELECT - - 72 FROM tab2 WHERE ( - - col0 ) <= col2 + - 34 * - - CAST ( NULL AS INTEGER )
----
query I rowsort
SELECT DISTINCT col2 - + - col2 FROM tab2 cor0
----
116
46
80
query I rowsort
SELECT DISTINCT ( + ( - col2 ) ) + col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + 76 - + col2 FROM tab1 AS cor0
----
-20
17
8
query I rowsort
SELECT ALL - col1 - - 57 FROM tab1 AS cor0
----
10
43
52
query I rowsort
SELECT DISTINCT + - col2 - - 69 FROM tab0 AS cor0
----
-30
22
59
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2261
SELECT ALL col2 * + - col0 - + - CAST( NULL AS SIGNED ) - - 57 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL col2 * + - col0 - + - CAST ( NULL AS INTEGER ) - - 57 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2262
SELECT COUNT( * ) - - 64 FROM tab2 AS cor0
----
67
skipif mysql # not compatible
query I rowsort label-2262
SELECT COUNT ( * ) - - 64 FROM tab2 AS cor0
----
67
query I rowsort
SELECT ALL - col0 - + - col2 + col0 * + col0 * col0 FROM tab2 AS cor0
----
262120
421858
97313
onlyif mysql # aggregate syntax:
query I rowsort label-2264
SELECT ALL + SUM( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-227
skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL + SUM ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-227
query I rowsort
SELECT DISTINCT - - col1 FROM tab0 WHERE NOT - + 33 IS NOT NULL
----
query I rowsort
SELECT ALL - 25 AS col0 FROM tab0
----
-25
-25
-25
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query II rowsort label-2267
SELECT DISTINCT - COUNT( * ) AS col2, + CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab2 AS cor0
----
-9
NULL
skipif mysql # not compatible
query II rowsort label-2267
SELECT DISTINCT - COUNT ( * ) AS col2, + CAST ( NULL AS REAL ) AS col2 FROM tab2, tab2 AS cor0
----
-9
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2268
SELECT COUNT( * ) DIV + + MIN( + + 71 ) FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-2268
SELECT COUNT ( * ) / + + MIN ( + + 71 ) FROM tab1
----
0
query I rowsort
SELECT DISTINCT + col1 * - - 14 + col2 * + + col1 AS col2 FROM tab0 AS cor0
----
113
4941
504
query I rowsort
SELECT ALL 63 FROM tab1 AS cor0 WHERE col0 IS NULL
----
query I rowsort
SELECT DISTINCT - 4 * + 92 * - col1 * + ( - col2 ) FROM tab1 AS cor0
----
-108560
-1176128
-494592
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
225
7569
9409
onlyif mysql # DIV for integer division:
query I rowsort label-2273
SELECT DISTINCT - 95 DIV - - 91 + + col2 + - col1 - + 88 * 86 FROM tab0 AS cor0
----
-7471
-7580
-7603
skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT - 95 / - - 91 + + col2 + - col1 - + 88 * 86 FROM tab0 AS cor0
----
-7471
-7580
-7603
query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 BETWEEN NULL AND NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2275
SELECT DISTINCT CAST( NULL AS SIGNED ) * 28 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 28 AS col2 FROM tab1 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-2276
SELECT - COUNT( * ), COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT ( - 72 IS NULL )
----
-3
3
skipif mysql # not compatible
query II rowsort label-2276
SELECT - COUNT ( * ), COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT ( - 72 IS NULL )
----
-3
3
onlyif mysql # aggregate syntax:
query I rowsort label-2277
SELECT ALL - SUM( + + col2 ) AS col1 FROM tab2 AS cor0
----
-121
skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL - SUM ( + + col2 ) AS col1 FROM tab2 AS cor0
----
-121
onlyif mysql # DIV for integer division:
query I rowsort label-2278
SELECT - - 74 DIV - 91 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2278
SELECT - - 74 / - 91 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # DIV for integer division:
query II rowsort label-2279
SELECT DISTINCT col2 AS col1, col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1
skipif mysql # not compatible
query II rowsort label-2279
SELECT DISTINCT col2 AS col1, col0 / - col0 AS col0 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1
query II rowsort
SELECT 75 + - 14 - + col2 AS col2, - col0 FROM tab1 AS cor0
----
-35
-51
-7
-91
2
-85
query I rowsort
SELECT ( col2 ) + - + col0 * - col2 FROM tab2 AS cor0
----
1081
2600
4408
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 31 < + + col0
----
query I rowsort
SELECT + col1 * + + col2 - + - 4 + col1 AS col0 FROM tab0 AS cor0
----
104
235
3892
query I rowsort
SELECT col2 FROM tab1 WHERE - - 15 IS NOT NULL
----
59
68
96
query III rowsort
SELECT * FROM tab0 WHERE + 79 IS NULL OR - + 62 IN ( ( col2 ) )
----
query II rowsort
SELECT + col0 AS col0, col0 FROM tab0
----
15
15
87
87
97
97
query I rowsort
SELECT ( + - 11 ) * + col2 * 74 AS col2 FROM tab0
----
-38258
-80586
-8140
query I rowsort
SELECT ALL - col1 + + 31 AS col2 FROM tab0
----
-50
10
30
onlyif mysql # aggregate syntax:
query II rowsort label-2289
SELECT - 50 AS col1, - ( - COUNT( * ) ) * + COUNT( * ) FROM tab2 AS cor0
----
-50
9
skipif mysql # not compatible
query II rowsort label-2289
SELECT - 50 AS col1, - ( - COUNT ( * ) ) * + COUNT ( * ) FROM tab2 AS cor0
----
-50
9
onlyif mysql # aggregate syntax:
query I rowsort label-2290
SELECT - SUM( 46 ) AS col2 FROM tab0 AS cor0 WHERE col2 * 60 = NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-2290
SELECT - SUM ( 46 ) AS col2 FROM tab0 AS cor0 WHERE col2 * 60 = NULL
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-2291
SELECT - 22 DIV - + 33 col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2291
SELECT - 22 / - + 33 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + 50 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
query I rowsort
SELECT - col2 + + + 11 FROM tab1
----
-48
-57
-85
query I rowsort
SELECT + 58 * 14 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to af386fdd423e5cb6a51133a34e7fb39b
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) * - col2 + col1 + col2 * - col2 NOT BETWEEN col2 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-2296
SELECT - ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-2296
SELECT - ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0
query II rowsort
SELECT + + 66 AS col0, + col0 AS col1 FROM tab2 cor0 WHERE NOT + col1 IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * 82 / - col2 >= NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-2299
SELECT DISTINCT - ( + - 66 ) AS col0, - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
66
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2299
SELECT DISTINCT - ( + - 66 ) AS col0, - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
66
NULL
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + 24 ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2301
SELECT COUNT( * ) + - SUM( + + col0 ) FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-2301
SELECT COUNT ( * ) + - SUM ( + + col0 ) FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 39 col1 FROM tab2 AS cor0
----
-39
-39
-39
query I rowsort
SELECT DISTINCT + - 34 FROM tab2 cor0
----
-34
onlyif mysql # aggregate syntax:
query I rowsort label-2304
SELECT - MIN( DISTINCT + col0 ) FROM tab2
----
-46
skipif mysql # not compatible
query I rowsort label-2304
SELECT - MIN ( DISTINCT + col0 ) FROM tab2
----
-46
query I rowsort
SELECT + col2 * + - col1 FROM tab2
----
-1173
-3080
-3886
query I rowsort
SELECT + col0 * + - 10 FROM tab2
----
-460
-640
-750
query II rowsort
SELECT col0 AS col0, col1 + col2 AS col0 FROM tab1
----
51
110
85
64
91
115
onlyif mysql # aggregate syntax:
query I rowsort label-2308
SELECT ALL COUNT( * ) * MAX( + - col2 ) FROM tab0
----
-30
skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL COUNT ( * ) * MAX ( + - col2 ) FROM tab0
----
-30
onlyif mysql # aggregate syntax:
query I rowsort label-2309
SELECT DISTINCT SUM( + + 61 ) col0 FROM tab1
----
183
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2309
SELECT DISTINCT SUM ( + + 61 ) col0 FROM tab1
----
183
onlyif mysql # aggregate syntax:
query II rowsort label-2310
SELECT DISTINCT COUNT( * ), COUNT( * ) + - + COUNT( DISTINCT - col2 ) AS col0 FROM tab2 cor0
----
3
0
skipif mysql # not compatible
query II rowsort label-2310
SELECT DISTINCT COUNT ( * ), COUNT ( * ) + - + COUNT ( DISTINCT - col2 ) AS col0 FROM tab2 cor0
----
3
0
query II rowsort
SELECT ALL col1 AS col2, + col0 AS col1 FROM tab1 AS cor0
----
14
51
47
91
5
85
query I rowsort
SELECT ALL col0 * + 28 AS col1 FROM tab0 cor0
----
2436
2716
420
onlyif mysql # aggregate syntax:
query I rowsort label-2313
SELECT DISTINCT - + COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9
skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9
query III rowsort
SELECT * FROM tab0 cor0 WHERE - 86 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= col2
----
query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE + 95 * ( - col2 ) / - + col2 + - + col1 + - 75 IS NULL
----
query I rowsort
SELECT 64 * - col0 AS col0 FROM tab0 AS cor0
----
-5568
-6208
-960
query I rowsort
SELECT DISTINCT col2 + + - 78 - + col1 FROM tab1 AS cor0
----
-24
-57
4
query I rowsort
SELECT + - 99 AS col1 FROM tab2 AS cor0
----
-99
-99
-99
onlyif mysql # DIV for integer division:
query I rowsort label-2320
SELECT 59 DIV + col1 FROM tab0
----
0
2
59
skipif mysql # not compatible
query I rowsort label-2320
SELECT 59 / + col1 FROM tab0
----
0
2
59
query I rowsort
SELECT DISTINCT 23 + + 81 + + col0 - col2 * - col2 * col0 AS col0 FROM tab0
----
33254
8891
950898
query I rowsort
SELECT + col2 * + col1 - + col0 FROM tab1 WHERE - 12 >= NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-2323
SELECT - COUNT( * ) + + COUNT( + col0 ), - 27 AS col0 FROM tab2
----
0
-27
skipif mysql # not compatible
query II rowsort label-2323
SELECT - COUNT ( * ) + + COUNT ( + col0 ), - 27 AS col0 FROM tab2
----
0
-27
onlyif mysql # DIV for integer division:
query III rowsort label-2324
SELECT ALL + 93 AS col1, - col0 DIV col0 col1, - col0 FROM tab1
----
9 values hashing to 981c90a1b8834e4ccd4b164f847aa592
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2324
SELECT ALL + 93 AS col1, - col0 / col0 col1, - col0 FROM tab1
----
9 values hashing to 981c90a1b8834e4ccd4b164f847aa592
query I rowsort
SELECT col0 FROM tab2 WHERE - 25 NOT BETWEEN 10 AND NULL
----
46
64
75
query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2327
SELECT DISTINCT * FROM tab0 WHERE - - 7 * + - 20 NOT IN ( col0 * - - CAST( col2 AS SIGNED ) / + + col1 - - 8, col0, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-2327
SELECT DISTINCT * FROM tab0 WHERE - - 7 * + - 20 NOT IN ( col0 * - - CAST ( col2 AS INTEGER ) / + + col1 - - 8, col0, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT + - 23 + 14 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a
onlyif mysql # aggregate syntax:
query III rowsort label-2329
SELECT 8, COUNT( * ) * - COUNT( - col2 ) col1, COUNT( * ) col1 FROM tab1 AS cor0
----
8
-9
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2329
SELECT 8, COUNT ( * ) * - COUNT ( - col2 ) col1, COUNT ( * ) col1 FROM tab1 AS cor0
----
8
-9
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2330
SELECT + - ( - col1 ) AS col0 FROM tab0 cor0 WHERE NOT + CAST( + col2 AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-2330
SELECT + - ( - col1 ) AS col0 FROM tab0 cor0 WHERE NOT + CAST ( + col2 AS INTEGER ) IS NOT NULL
----
query I rowsort
SELECT + 90 * + col1 FROM tab1 AS cor0 WHERE NOT + ( + col2 ) IS NULL
----
1260
4230
450
query I rowsort
SELECT ALL + ( + 41 ) AS col0 FROM tab2 AS cor0
----
41
41
41
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2333
SELECT + + COUNT( CAST( + col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-2333
SELECT + + COUNT ( CAST ( + col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-2334
SELECT DISTINCT + - ( + + COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT + - ( + + COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3
onlyif mysql # aggregate syntax:
query II rowsort label-2335
SELECT DISTINCT - - 51 AS col0, MAX( DISTINCT + + ( - - col2 ) ) FROM tab2 AS cor0
----
51
58
skipif mysql # not compatible
query II rowsort label-2335
SELECT DISTINCT - - 51 AS col0, MAX ( DISTINCT + + ( - - col2 ) ) FROM tab2 AS cor0
----
51
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col0 FROM tab1 cor0 WHERE NOT NULL >= 36 + + + col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-2337
SELECT ALL - + SUM( DISTINCT - - 8 ) FROM tab1 AS cor0
----
-8
skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL - + SUM ( DISTINCT - - 8 ) FROM tab1 AS cor0
----
-8
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-2338
SELECT + CAST( + 38 AS SIGNED ) AS col1, + 53 + - - COUNT( + - 43 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
38
59
skipif mysql # not compatible
query II rowsort label-2338
SELECT + CAST ( + 38 AS INTEGER ) AS col1, + 53 + - - COUNT ( + - 43 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
38
59
query I rowsort
SELECT DISTINCT 41 * - 77 AS col2 FROM tab1
----
-3157
query I rowsort
SELECT ALL 80 * col1 FROM tab2
----
4080
5360
6160
query II rowsort
SELECT - ( - col0 ), 47 * col0 AS col2 FROM tab0
----
15
705
87
4089
97
4559
onlyif mysql # aggregate syntax:
query I rowsort label-2342
SELECT DISTINCT - SUM( DISTINCT + + ( col0 ) ) AS col2 FROM tab1
----
-227
skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT - SUM ( DISTINCT + + ( col0 ) ) AS col2 FROM tab1
----
-227
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * col0 - + col1 + - + col1 + - 47 - - col1 / + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 * + ( - col2 ) col0 FROM tab0
----
1287
130
611
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 col2 FROM tab2
----
81
81
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 17 col0 FROM tab2 AS cor0
----
-17
query I rowsort
SELECT DISTINCT - + ( + 1 ) AS col1 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT + ( + + col2 ) AS col1 FROM tab2 cor0
----
23
40
58
onlyif mysql # aggregate syntax:
query I rowsort label-2349
SELECT + - MIN( DISTINCT + 99 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-99
skipif mysql # not compatible
query I rowsort label-2349
SELECT + - MIN ( DISTINCT + 99 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-99
query I rowsort
SELECT DISTINCT - col1 - - col0 FROM tab0 WHERE + + col0 + - col1 <> NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2351
SELECT ALL - COUNT( * ) + COUNT( * ) FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL - COUNT ( * ) + COUNT ( * ) FROM tab1
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-2352
SELECT DISTINCT - + COUNT( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT - + COUNT ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
-3
onlyif mysql # DIV for integer division:
query I rowsort label-2353
SELECT - + ( + + col2 ) * 50 + 59 - col2 + + + 36 DIV - col1 + col2 AS col2 FROM tab1 AS cor0
----
-2898
-3341
-4743
skipif mysql # not compatible
query I rowsort label-2353
SELECT - + ( + + col2 ) * 50 + 59 - col2 + + + 36 / - col1 + col2 AS col2 FROM tab1 AS cor0
----
-2898
-3341
-4743
onlyif mysql # aggregate syntax:
query I rowsort label-2354
SELECT DISTINCT - + 58 * + SUM( DISTINCT + + col2 ) FROM tab0 AS cor0
----
-9048
skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT - + 58 * + SUM ( DISTINCT + + col2 ) FROM tab0 AS cor0
----
-9048
onlyif mysql # aggregate syntax:
query I rowsort label-2355
SELECT DISTINCT COUNT( * ) * - - MIN( - + 2 ) AS col2 FROM tab0
----
-6
skipif mysql # not compatible
query I rowsort label-2355
SELECT DISTINCT COUNT ( * ) * - - MIN ( - + 2 ) AS col2 FROM tab0
----
-6
query I rowsort
SELECT DISTINCT col2 + + - col1 + + col2 AS col1 FROM tab2
----
-5
3
49
onlyif mysql # aggregate syntax:
query I rowsort label-2357
SELECT + COUNT( * ) * 20 FROM tab2
----
60
skipif mysql # not compatible
query I rowsort label-2357
SELECT + COUNT ( * ) * 20 FROM tab2
----
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab0 WHERE NULL <= + col1
----
query III rowsort
SELECT * FROM tab0 WHERE + + 28 NOT BETWEEN NULL AND NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-2360
SELECT ALL 85 + + 44 DIV - 62 AS col0 FROM tab0
----
85
85
85
skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL 85 + + 44 / - 62 AS col0 FROM tab0
----
85
85
85
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-2361
SELECT * FROM tab2 WHERE - col2 * CAST( NULL AS DECIMAL ) NOT IN ( - col2 )
----
skipif mysql # not compatible
query III rowsort label-2361
SELECT * FROM tab2 WHERE - col2 * CAST ( NULL AS REAL ) NOT IN ( - col2 )
----
onlyif mysql # DIV for integer division:
query II rowsort label-2362
SELECT ALL col2 * col0 - col1 + - 73 AS col2, - col1 + + col2 DIV + ( + - col1 ) col2 FROM tab2
----
2410
-77
4210
-67
934
-51
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2362
SELECT ALL col2 * col0 - col1 + - 73 AS col2, - col1 + + col2 / + ( + - col1 ) col2 FROM tab2
----
2410
-77
4210
-67
934
-51
query I rowsort
SELECT DISTINCT - 99 + + col0 + - col2 AS col0 FROM tab2
----
-75
-76
-82
onlyif mysql # aggregate syntax:
query I rowsort label-2364
SELECT - COUNT( * ) * + COUNT( + 68 ) AS col2 FROM tab1
----
-9
skipif mysql # not compatible
query I rowsort label-2364
SELECT - COUNT ( * ) * + COUNT ( + 68 ) AS col2 FROM tab1
----
-9
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 + - + 86 NOT BETWEEN - 73 AND - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL 82 - - col1 - col0 AS col0 FROM tab1 AS cor0
----
2
38
45
query I rowsort
SELECT + - col2 - 31 FROM tab2 AS cor0
----
-54
-71
-89
query I rowsort
SELECT DISTINCT - col0 * col1 - + + 75 FROM tab1 AS cor0
----
-4352
-500
-789
query I rowsort
SELECT ALL col2 * + 13 * + col0 AS col0 FROM tab1 AS cor0
----
63648
65195
80444
onlyif mysql # aggregate syntax:
query I rowsort label-2370
SELECT DISTINCT + 15 + + COUNT( * ) FROM tab2
----
18
skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT + 15 + + COUNT ( * ) FROM tab2
----
18
onlyif mysql # aggregate syntax:
query I rowsort label-2371
SELECT - ( COUNT( * ) ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-2371
SELECT - ( COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 IN ( - - ( - + col1 ), + col2, + col2 + - - col1 )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - + 33 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT ALL 31 AS col0, + col2 FROM tab0 cor0
----
31
10
31
47
31
99
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 62 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + 13
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2378
SELECT DISTINCT - 92 DIV MIN( ALL - 45 ) * - 12 col1 FROM tab0
----
-24
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2378
SELECT DISTINCT - 92 / MIN ( ALL - 45 ) * - 12 col1 FROM tab0
----
-24
onlyif mysql # aggregate syntax:
query I rowsort label-2379
SELECT DISTINCT - MIN( DISTINCT + + col0 ) FROM tab2
----
-46
skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT - MIN ( DISTINCT + + col0 ) FROM tab2
----
-46
query II rowsort
SELECT col0 AS col2, col1 - + col0 AS col1 FROM tab2
----
46
5
64
13
75
-8
query II rowsort
SELECT - 93, + ( col0 ) AS col2 FROM tab0
----
-93
15
-93
87
-93
97
query II rowsort
SELECT ALL col0, col1 * - 47 FROM tab1
----
51
-658
85
-235
91
-2209
query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE col1 + + col0 IS NOT NULL
----
14
47
5
query II rowsort
SELECT DISTINCT + col1, + col0 FROM tab1 AS cor0
----
14
51
47
91
5
85
query I rowsort
SELECT col1 * - col2 + + col2 * col0 - - col0 FROM tab0 cor0
----
-3087
747
9601
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2386
SELECT DISTINCT CAST( + 42 AS SIGNED ) FROM tab0 cor0
----
42
skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT CAST ( + 42 AS INTEGER ) FROM tab0 cor0
----
42
onlyif mysql # aggregate syntax:
query I rowsort label-2387
SELECT + COUNT( * ) + + 56 AS col0 FROM tab1 cor0
----
59
skipif mysql # not compatible
query I rowsort label-2387
SELECT + COUNT ( * ) + + 56 AS col0 FROM tab1 cor0
----
59
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-2388
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) + + col2 <> - 77
----
skipif mysql # not compatible
query III rowsort label-2388
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) + + col2 <> - 77
----
query III rowsort
SELECT * FROM tab2 WHERE col2 * - - 10 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2390
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + col1 FROM tab0 WHERE + 40 IS NULL
----
skipif mysql # not compatible
query I rowsort label-2390
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + col1 FROM tab0 WHERE + 40 IS NULL
----
query I rowsort
SELECT DISTINCT - 37 + col2 FROM tab1 AS cor0
----
22
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 42 col2 FROM tab2 AS cor0
----
42
42
42
query I rowsort
SELECT DISTINCT + ( - + col1 ) * + ( - - col1 ) FROM tab2 AS cor0
----
-2601
-4489
-5929
query I rowsort
SELECT + col2 - + col0 + - col1 AS col2 FROM tab1 AS cor0
----
-31
-70
31
onlyif mysql # DIV for integer division:
query II rowsort label-2395
SELECT ALL - 57 DIV - col0 + + + col2, col2 * col0 AS col1 FROM tab0
----
10
870
50
705
99
9603
skipif mysql # not compatible
query II rowsort label-2395
SELECT ALL - 57 / - col0 + + + col2, col2 * col0 AS col1 FROM tab0
----
10
870
50
705
99
9603
onlyif mysql # aggregate syntax:
query I rowsort label-2396
SELECT - 96 + COUNT( * ) FROM tab0
----
-93
skipif mysql # not compatible
query I rowsort label-2396
SELECT - 96 + COUNT ( * ) FROM tab0
----
-93
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2397
SELECT DISTINCT - - ( + col2 ) / - ( + - col0 ) * ( + - CAST( NULL AS SIGNED ) ) FROM tab2 WHERE 59 + 51 IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT - - ( + col2 ) / - ( + - col0 ) * ( + - CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE 59 + 51 IS NOT NULL
----
NULL
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2398
SELECT ALL - MAX( DISTINCT + + col1 ) + COUNT( * ) + - MAX( + CAST( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL - MAX ( DISTINCT + + col1 ) + COUNT ( * ) + - MAX ( + CAST ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab2
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2399
SELECT ALL ( 59 ) + COUNT( * ) AS col0 FROM tab2
----
62
skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL ( 59 ) + COUNT ( * ) AS col0 FROM tab2
----
62
query III rowsort
SELECT * FROM tab1 WHERE - + 73 NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT + 76 + + col2 + ( + col1 ) * - 7 * + col1 AS col2 FROM tab2
----
-18108
-31289
-41387
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2402
SELECT ALL 16 + - col0 + col2 * + CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
1143
3032
3827
skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL 16 + - col0 + col2 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
1143
3032
3827
query I rowsort
SELECT ALL 82 + 22 FROM tab2
----
104
104
104
query I rowsort
SELECT DISTINCT col2 - col2 AS col0 FROM tab1 AS cor0
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-2405
SELECT ALL - - col1 - + - ( - - 30 ) + col1 + + col0 DIV - 43 + 63 FROM tab0 AS cor0
----
133
255
93
skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL - - col1 - + - ( - - 30 ) + col1 + + col0 / - 43 + 63 FROM tab0 AS cor0
----
133
255
93
query I rowsort
SELECT ALL + + col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND + col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
16
query I rowsort
SELECT ALL + + 25 * - - col0 + + - col2 * 92 - col0 FROM tab0 AS cor0
----
-3964
-6780
1168
query I rowsort
SELECT DISTINCT - col1 * ( - ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929
onlyif mysql # DIV for integer division:
query I rowsort label-2410
SELECT DISTINCT - col0 DIV - 70 AS col0 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT - col0 / - 70 AS col0 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT DISTINCT + col2 * - 56 + col0 AS col1 FROM tab2 AS cor0
----
-1242
-2176
-3173
query II rowsort
SELECT ( - - col0 ) AS col2, - 76 FROM tab1 AS cor0
----
51
-76
85
-76
91
-76
onlyif mysql # DIV for integer division:
query I rowsort label-2413
SELECT ALL - 32 DIV - col0 col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2413
SELECT ALL - 32 / - col0 col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL ( - 59 ) AS col0 FROM tab1
----
-59
-59
-59
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2415
SELECT DISTINCT - COUNT( * ) / CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT - COUNT ( * ) / CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 90 NOT BETWEEN - 73 AND NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + + ( - - col0 ) NOT BETWEEN + col2 + - + col0 AND + col2
----
onlyif mysql # aggregate syntax:
query II rowsort label-2418
SELECT ( + - COUNT( * ) ) * - - COUNT( * ), 80 AS col1 FROM tab1 AS cor0
----
-9
80
skipif mysql # not compatible
query II rowsort label-2418
SELECT ( + - COUNT ( * ) ) * - - COUNT ( * ), 80 AS col1 FROM tab1 AS cor0
----
-9
80
onlyif mysql # DIV for integer division:
query I rowsort label-2419
SELECT + + ( + col1 ) DIV + col1 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2419
SELECT + + ( + col1 ) / + col1 AS col1 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # aggregate syntax:
query I rowsort label-2420
SELECT COUNT( * ) col0 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2420
SELECT COUNT ( * ) col0 FROM tab2 AS cor0
----
3
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 > NULL
----
query I rowsort
SELECT ALL 23 * + col2 + - col2 FROM tab2
----
1276
506
880
query I rowsort
SELECT 42 + - 56 FROM tab0
----
-14
-14
-14
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( 72 ) + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-2425
SELECT DISTINCT COUNT( * ) - + 47 * - 73 AS col0 FROM tab2 AS cor0
----
3434
skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT COUNT ( * ) - + 47 * - 73 AS col0 FROM tab2 AS cor0
----
3434
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 AS cor0 WHERE ( + 29 ) BETWEEN NULL AND col2
----
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query II rowsort label-2427
SELECT + 7 + + 40 + - col2 DIV CAST( + 73 AS SIGNED ) + - col0, col2 FROM tab0 AS cor0
----
-40
10
-51
99
32
47
skipif mysql # not compatible
query II rowsort label-2427
SELECT + 7 + + 40 + - col2 / CAST ( + 73 AS INTEGER ) + - col0, col2 FROM tab0 AS cor0
----
-40
10
-51
99
32
47
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2429
SELECT - + col1 + - 65 - - col1 * - CAST( - - col0 AS SIGNED ) + - - ( col2 ) AS col0 FROM tab1 cor0
----
-4321
-436
-697
skipif mysql # not compatible
query I rowsort label-2429
SELECT - + col1 + - 65 - - col1 * - CAST ( - - col0 AS INTEGER ) + - - ( col2 ) AS col0 FROM tab1 cor0
----
-4321
-436
-697
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2430
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + 1 * - + col1 + 87 FROM tab2 WHERE NOT ( col2 / + col0 IS NULL )
----
NULL
skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + 1 * - + col1 + 87 FROM tab2 WHERE NOT ( col2 / + col0 IS NULL )
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 34 col0, 17 AS col1 FROM tab0 WHERE + + 7 / + - col0 IS NOT NULL
----
-34
17
-34
17
-34
17
query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab1
----
79
query III rowsort
SELECT ALL * FROM tab2 WHERE + 92 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2434
SELECT + ( COUNT( * ) ) AS col2 FROM tab2 WHERE + 89 >= + col0
----
3
skipif mysql # not compatible
query I rowsort label-2434
SELECT + ( COUNT ( * ) ) AS col2 FROM tab2 WHERE + 89 >= + col0
----
3
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col2 IS NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-2436
SELECT 36 - - MAX( DISTINCT + 29 ) + + SUM( ALL + - col2 ) AS col0, CAST( NULL AS SIGNED ) FROM tab2
----
-56
NULL
skipif mysql # not compatible
query II rowsort label-2436
SELECT 36 - - MAX ( DISTINCT + 29 ) + + SUM ( ALL + - col2 ) AS col0, CAST ( NULL AS INTEGER ) FROM tab2
----
-56
NULL
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2438
SELECT DISTINCT - 97 * + + COUNT( - 63 ) * - + SUM( - - col2 ) + - 30 FROM tab1 AS cor0
----
64863
skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT - 97 * + + COUNT ( - 63 ) * - + SUM ( - - col2 ) + - 30 FROM tab1 AS cor0
----
64863
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col1 col0 FROM tab2 cor0 WHERE NOT + 66 + - + col2 + - - col2 * - + 64 * col1 IS NULL
----
28
37
9
onlyif mysql # aggregate syntax:
query I rowsort label-2440
SELECT ALL + ( - ( + + 64 ) ) * 68 + + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-4355
skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL + ( - ( + + 64 ) ) * 68 + + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-4355
query I rowsort
SELECT DISTINCT 35 FROM tab2 WHERE NOT NULL IS NOT NULL
----
35
onlyif mysql # aggregate syntax:
query I rowsort label-2442
SELECT - COUNT( * ) * - MAX( + 13 ) FROM tab2
----
39
skipif mysql # not compatible
query I rowsort label-2442
SELECT - COUNT ( * ) * - MAX ( + 13 ) FROM tab2
----
39
onlyif mysql # aggregate syntax:
query I rowsort label-2443
SELECT DISTINCT 98 * - COUNT( * ) FROM tab2
----
-294
skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT 98 * - COUNT ( * ) FROM tab2
----
-294
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2444
SELECT ALL col2 * - - 27 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL col2 * - - 27 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 49 * - col2 AS col0 FROM tab1 AS cor0
----
-2891
-3332
-4704
onlyif mysql # aggregate syntax:
query I rowsort label-2446
SELECT COUNT( - - col1 ) AS col0 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-2446
SELECT COUNT ( - - col1 ) AS col0 FROM tab1 AS cor0
----
3
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 54 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2448
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
query I rowsort
SELECT - ( + + 20 ) FROM tab0 AS cor0
----
-20
-20
-20
query I rowsort
SELECT ALL + ( + + col0 ) + col2 - - col0 AS col0 FROM tab0 cor0
----
184
293
77
onlyif mysql # aggregate syntax:
query I rowsort label-2451
SELECT DISTINCT - COUNT( * ) * + - 76 AS col1 FROM tab0
----
228
skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT - COUNT ( * ) * + - 76 AS col1 FROM tab0
----
228
query III rowsort
SELECT ALL * FROM tab0 WHERE + 48 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2453
SELECT + 77 * - COUNT( * ) AS col1 FROM tab2
----
-231
skipif mysql # not compatible
query I rowsort label-2453
SELECT + 77 * - COUNT ( * ) AS col1 FROM tab2
----
-231
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) * - col1 col1 FROM tab2
----
-1173
-3080
-3886
onlyif mysql # aggregate syntax:
query I rowsort label-2455
SELECT DISTINCT MIN( DISTINCT ( - col2 ) ) col0 FROM tab1
----
-96
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2455
SELECT DISTINCT MIN ( DISTINCT ( - col2 ) ) col0 FROM tab1
----
-96
query II rowsort
SELECT ALL 31 + + + col2 * 89 * col1 AS col2, ( - + col1 ) AS col1 FROM tab1
----
119647
-14
26286
-5
284475
-47
onlyif mysql # aggregate syntax:
query I rowsort label-2457
SELECT DISTINCT + 28 + + COUNT( * ) AS col0 FROM tab1
----
31
skipif mysql # not compatible
query I rowsort label-2457
SELECT DISTINCT + 28 + + COUNT ( * ) AS col0 FROM tab1
----
31
onlyif mysql # aggregate syntax:
query I rowsort label-2458
SELECT ALL + COUNT( * ) AS col0 FROM tab0 WHERE NOT - 87 BETWEEN NULL AND col1
----
0
skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE NOT - 87 BETWEEN NULL AND col1
----
0
query I rowsort
SELECT + - col1 + col2 + - 94 AS col0 FROM tab1 AS cor0
----
-12
-40
-73
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2460
SELECT CAST( - col0 AS SIGNED ) + - - col1 AS col1 FROM tab0 AS cor0
----
-66
-96
66
skipif mysql # not compatible
query I rowsort label-2460
SELECT CAST ( - col0 AS INTEGER ) + - - col1 AS col1 FROM tab0 AS cor0
----
-66
-96
66
query I rowsort
SELECT DISTINCT 95 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
95
query I rowsort
SELECT ALL col0 + - col1 - - - 91 AS col2 FROM tab1
----
-11
-47
-54
query I rowsort
SELECT DISTINCT + - 29 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-29
onlyif mysql # aggregate syntax:
query I rowsort label-2464
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0
query I rowsort
SELECT DISTINCT + + 12 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 < 22 + + + col2 + + col0 / - col0
----
query I rowsort
SELECT DISTINCT - col0 - col1 - + col1 FROM tab0 AS cor0
----
-129
-177
-99
query I rowsort
SELECT col1 - 88 FROM tab1 AS cor0
----
-41
-74
-83
query I rowsort
SELECT DISTINCT + 59 AS col1 FROM tab2 AS cor0 WHERE NOT 14 IS NOT NULL
----
query I rowsort
SELECT + 94 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
94
94
94
query I rowsort
SELECT 35 - - col2 AS col1 FROM tab1 AS cor0
----
103
131
94
onlyif mysql # aggregate syntax:
query I rowsort label-2471
SELECT - + 93 * + 4 - - + 16 + + COUNT( * ) AS col2 FROM tab1 cor0
----
-353
skipif mysql # not compatible
query I rowsort label-2471
SELECT - + 93 * + 4 - - + 16 + + COUNT ( * ) AS col2 FROM tab1 cor0
----
-353
onlyif mysql # aggregate syntax:
query I rowsort label-2472
SELECT DISTINCT + COUNT( + col1 ) - + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT + COUNT ( + col1 ) - + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-2473
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( + + col2 * + col0, col2 * + col0 / + col1 )
----
0
skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( + + col2 * + col0, col2 * + col0 / + col1 )
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-2474
SELECT ALL - COUNT( * ) col0 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2474
SELECT ALL - COUNT ( * ) col0 FROM tab0 AS cor0
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 + + 15 col0 FROM tab1
----
4911
5030
6203
query I rowsort
SELECT col2 + - + col2 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT col2 + 11 FROM tab1
----
107
70
79
onlyif mysql # aggregate syntax:
query I rowsort label-2478
SELECT DISTINCT MAX( + 39 ) FROM tab1
----
39
skipif mysql # not compatible
query I rowsort label-2478
SELECT DISTINCT MAX ( + 39 ) FROM tab1
----
39
onlyif mysql # aggregate syntax:
query I rowsort label-2479
SELECT ALL MIN( col0 ) * + COUNT( * ) AS col2 FROM tab0
----
45
skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL MIN ( col0 ) * + COUNT ( * ) AS col2 FROM tab0
----
45
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2480
SELECT * FROM tab1 WHERE NOT - CAST( 21 AS SIGNED ) * + col2 + 99 BETWEEN 93 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-2480
SELECT * FROM tab1 WHERE NOT - CAST ( 21 AS INTEGER ) * + col2 + 99 BETWEEN 93 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL + 95 * col1 FROM tab0
----
1995
7695
95
query II rowsort
SELECT DISTINCT 68 AS col1, - col0 + + + col2 AS col2 FROM tab2
----
68
-17
68
-23
68
-24
query I rowsort
SELECT DISTINCT + col2 * - - col1 FROM tab0 AS cor0
----
210
3807
99
onlyif mysql # aggregate syntax:
query I rowsort label-2484
SELECT DISTINCT + MIN( col1 ) FROM tab1 AS cor0
----
5
skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT + MIN ( col1 ) FROM tab1 AS cor0
----
5
query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NULL < NULL
----
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 23 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a
onlyif mysql # DIV for integer division:
query I rowsort label-2487
SELECT ALL + 69 DIV + + 67 - + 51 AS col0 FROM tab2 AS cor0
----
-50
-50
-50
skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL + 69 / + + 67 - + 51 AS col0 FROM tab2 AS cor0
----
-50
-50
-50
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2488
SELECT DISTINCT * FROM tab1 cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-2488
SELECT DISTINCT * FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT 60 * - col2 AS col0 FROM tab2 AS cor0
----
-1380
-2400
-3480
onlyif mysql # DIV for integer division:
query I rowsort label-2490
SELECT 61 DIV 27 + + 86 * + + 86 FROM tab1 AS cor0
----
7398
7398
7398
skipif mysql # not compatible
query I rowsort label-2490
SELECT 61 / 27 + + 86 * + + 86 FROM tab1 AS cor0
----
7398
7398
7398
onlyif mysql # aggregate syntax:
query I rowsort label-2491
SELECT 96 + + - COUNT( ALL - col2 ) FROM tab0 cor0
----
93
skipif mysql # not compatible
query I rowsort label-2491
SELECT 96 + + - COUNT ( ALL - col2 ) FROM tab0 cor0
----
93
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 44 < col1 + + col1
----
51
14
96
85
5
59
onlyif mysql # aggregate syntax:
query I rowsort label-2493
SELECT - ( - - COUNT( * ) ) + + 67 AS col2 FROM tab1 AS cor0
----
64
skipif mysql # not compatible
query I rowsort label-2493
SELECT - ( - - COUNT ( * ) ) + + 67 AS col2 FROM tab1 AS cor0
----
64
query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab1 WHERE + 35 * - - 45 * col2 >= col0 - - - 83 - + col0
----
-14
-47
-5
query I rowsort
SELECT DISTINCT - col1 * - - 37 FROM tab0
----
-2997
-37
-777
onlyif mysql # aggregate syntax:
query I rowsort label-2496
SELECT DISTINCT 92 * COUNT( * ) - - - 2 AS col2 FROM tab2 WHERE NOT + col1 IS NULL
----
274
skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT 92 * COUNT ( * ) - - - 2 AS col2 FROM tab2 WHERE NOT + col1 IS NULL
----
274
query I rowsort
SELECT ALL - col2 * col1 * - col2 FROM tab1
----
129024
17405
217328
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - 37 col0 FROM tab2 cor0
----
-1480
-2146
-851
onlyif mysql # aggregate syntax:
query I rowsort label-2500
SELECT + + COUNT( * ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-2500
SELECT + + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 + - 55 col1 FROM tab0 AS cor0
----
34
query I rowsort
SELECT + - col1 * + 88 AS col1 FROM tab1 AS cor0
----
-1232
-4136
-440
onlyif mysql # aggregate syntax:
query I rowsort label-2503
SELECT ALL - + MIN( - 53 ) AS col0 FROM tab1 AS cor0
----
53
skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL - + MIN ( - 53 ) AS col0 FROM tab1 AS cor0
----
53
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query I rowsort label-2504
SELECT col0 * CAST( - CAST( NULL AS DECIMAL ) / col1 AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2504
SELECT col0 * CAST ( - CAST ( NULL AS REAL ) / col1 AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2505
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND - 99 + - CAST( ( col1 ) + col2 AS SIGNED ) * 97
----
skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND - 99 + - CAST ( ( col1 ) + col2 AS INTEGER ) * 97
----
query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE ( + 62 ) NOT IN ( - col0 )
----
59
68
96
query I rowsort
SELECT - col1 * + 44 AS col1 FROM tab1
----
-2068
-220
-616
query I rowsort
SELECT col0 * 61 AS col1 FROM tab2
----
2806
3904
4575
onlyif mysql # aggregate syntax:
query I rowsort label-2509
SELECT DISTINCT - MIN( col2 ) AS col1 FROM tab1
----
-59
skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT - MIN ( col2 ) AS col1 FROM tab1
----
-59
onlyif mysql # DIV for integer division:
query I rowsort label-2510
SELECT DISTINCT + col1 DIV 75 + col1 FROM tab0
----
1
21
82
skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT + col1 / 75 + col1 FROM tab0
----
1
21
82
query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NOT NULL >= ( col0 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2512
SELECT ALL CAST( NULL AS SIGNED ) / + 22 + - col0 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL CAST ( NULL AS INTEGER ) / + 22 + - col0 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 - col2 FROM tab0 WHERE NOT NULL <> col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-2514
SELECT ALL + COUNT( * ) * 10 AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL + COUNT ( * ) * 10 AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-2515
SELECT ALL + MIN( + col2 ) + COUNT( * ) FROM tab2
----
26
skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL + MIN ( + col2 ) + COUNT ( * ) FROM tab2
----
26
onlyif mysql # aggregate syntax:
query I rowsort label-2516
SELECT - COUNT( * ) * 91 FROM tab2
----
-273
skipif mysql # not compatible
query I rowsort label-2516
SELECT - COUNT ( * ) * 91 FROM tab2
----
-273
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2517
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) >= CAST( + col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-2517
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) >= CAST ( + col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab2 WHERE NULL = 76 / col1
----
query I rowsort
SELECT + col2 * - 64 FROM tab0
----
-3008
-6336
-640
onlyif mysql # DIV for integer division:
query I rowsort label-2520
SELECT DISTINCT - 16 DIV col0 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT - 16 / col0 FROM tab2
----
0
query I rowsort
SELECT - col1 * + 61 - - 44 AS col0 FROM tab2
----
-3067
-4043
-4653
query I rowsort
SELECT - col2 FROM tab2 WHERE ( col2 + + col1 * col2 ) NOT IN ( - 10 * col0 )
----
-23
-40
-58
onlyif mysql # aggregate syntax:
query I rowsort label-2523
SELECT DISTINCT MIN( DISTINCT - col0 ) * + 67 FROM tab1
----
-6097
skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT MIN ( DISTINCT - col0 ) * + 67 FROM tab1
----
-6097
query III rowsort
SELECT * FROM tab1 WHERE col1 * - col2 IS NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN col0 AND ( NULL )
----
query I rowsort
SELECT DISTINCT 54 * ( col2 ) + col0 AS col2 FROM tab1
----
3271
3763
5235
onlyif mysql # DIV for integer division:
query I rowsort label-2527
SELECT col2 DIV col0 + - 58 DIV + col1 FROM tab1
----
-1
-11
-3
skipif mysql # not compatible
query I rowsort label-2527
SELECT col2 / col0 + - 58 / + col1 FROM tab1
----
-1
-11
-3
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2528
SELECT * FROM tab1 WHERE - ( - 6 ) + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-2528
SELECT * FROM tab1 WHERE - ( - 6 ) + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT col1 + 25 AS col0 FROM tab0
----
106
26
46
onlyif mysql # aggregate syntax:
query I rowsort label-2530
SELECT COUNT( * ) + + COUNT( * ) FROM tab1
----
6
skipif mysql # not compatible
query I rowsort label-2530
SELECT COUNT ( * ) + + COUNT ( * ) FROM tab1
----
6
query I rowsort
SELECT + 91 AS col2 FROM tab1
----
91
91
91
query I rowsort
SELECT - 2 FROM tab2 WHERE - col0 >= ( NULL )
----
query I rowsort
SELECT ALL 96 FROM tab0 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2534
SELECT ALL ( + COUNT( * ) ) AS col1 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL ( + COUNT ( * ) ) AS col1 FROM tab0
----
3
query I rowsort
SELECT ALL + 92 + - col0 AS col2 FROM tab2
----
17
28
46
query I rowsort
SELECT ALL + 3 AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----
query I rowsort
SELECT ALL 73 - - col2 FROM tab0 AS cor0 WHERE 96 BETWEEN + col1 * col0 AND + 92
----
query III rowsort
SELECT * FROM tab0 WHERE NOT + 89 <> NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2539
SELECT ALL + - SUM( 70 ) FROM tab0 cor0
----
-210
skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL + - SUM ( 70 ) FROM tab0 cor0
----
-210
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + col2 * 14 IS NOT NULL
----
query I rowsort
SELECT DISTINCT - ( 28 ) FROM tab2 cor0
----
-28
onlyif mysql # aggregate syntax:
query I rowsort label-2542
SELECT ALL - 39 + - COUNT( * ) * SUM( DISTINCT 70 ) FROM tab1 AS cor0
----
-249
skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL - 39 + - COUNT ( * ) * SUM ( DISTINCT 70 ) FROM tab1 AS cor0
----
-249
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 / + col1 + col2 col0 FROM tab1 AS cor0 WHERE 24 * - col2 > 54 * 92
----
query I rowsort
SELECT col0 + + 85 FROM tab0 cor0 WHERE ( + col2 * + 76 ) >= NULL
----
query I rowsort
SELECT DISTINCT ( col0 ) + 96 FROM tab0 AS cor0
----
111
183
193
query III rowsort
SELECT * FROM tab2 cor0 WHERE 16 * + col0 < col0 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-2547
SELECT + - SUM( col0 ) AS col1 FROM tab2 AS cor0
----
-185
skipif mysql # not compatible
query I rowsort label-2547
SELECT + - SUM ( col0 ) AS col1 FROM tab2 AS cor0
----
-185
query I rowsort
SELECT DISTINCT ( col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
21
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col0 FROM tab1
----
39
39
39
query I rowsort
SELECT DISTINCT col0 * + col2 * - ( - col0 ) FROM tab0
----
10575
75690
931491
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 <= - col2 - - 46
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2552
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NULL BETWEEN col0 * + col1 + col1 * CAST( NULL AS SIGNED ) AND NULL
----
0
skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NULL BETWEEN col0 * + col1 + col1 * CAST ( NULL AS INTEGER ) AND NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-2553
SELECT + SUM( - col1 ) + - COUNT( * ) col2 FROM tab1
----
-69
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2553
SELECT + SUM ( - col1 ) + - COUNT ( * ) col2 FROM tab1
----
-69
query I rowsort
SELECT 61 * 93 FROM tab0 WHERE ( 39 ) BETWEEN + 25 AND col2 * - col2
----
query I rowsort
SELECT + col0 - - 44 FROM tab1 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2556
SELECT ALL COUNT( - col1 ) + 37 FROM tab0
----
40
skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL COUNT ( - col1 ) + 37 FROM tab0
----
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 * - 69 col1 FROM tab0
----
-3162
-669
-6830
onlyif mysql # aggregate syntax:
query I rowsort label-2558
SELECT DISTINCT MIN( - - col2 ) FROM tab2
----
23
skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT MIN ( - - col2 ) FROM tab2
----
23
query I rowsort
SELECT ALL - col1 + 42 FROM tab0
----
-39
21
41
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = ( - col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-2561
SELECT ALL COUNT( DISTINCT 78 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( - col2 ) NOT IN ( + col2 )
----
0
skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL COUNT ( DISTINCT 78 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( - col2 ) NOT IN ( + col2 )
----
0
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-2562
SELECT + ( CAST( + col1 AS SIGNED ) ) + 59 DIV + col1 FROM tab0 AS cor0
----
23
60
81
skipif mysql # not compatible
query I rowsort label-2562
SELECT + ( CAST ( + col1 AS INTEGER ) ) + 59 / + col1 FROM tab0 AS cor0
----
23
60
81
onlyif mysql # aggregate syntax:
query I rowsort label-2563
SELECT COUNT( * ) * COUNT( 61 ) FROM tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-2563
SELECT COUNT ( * ) * COUNT ( 61 ) FROM tab0 AS cor0
----
9
query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 )
----
query I rowsort
SELECT ALL col2 * + col2 * col0 + col0 FROM tab2
----
102464
24380
252375
query III rowsort
SELECT * FROM tab2 WHERE ( ( - ( col2 ) ) NOT BETWEEN NULL AND col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-2567
SELECT - ( COUNT( * ) ) * 23 FROM tab0 WHERE ( - ( col1 ) * col1 ) IN ( - col1 )
----
-23
skipif mysql # not compatible
query I rowsort label-2567
SELECT - ( COUNT ( * ) ) * 23 FROM tab0 WHERE ( - ( col1 ) * col1 ) IN ( - col1 )
----
-23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
query I rowsort
SELECT col2 * 64 FROM tab1 AS cor0 WHERE NOT + 1 <> + 48
----
query I rowsort
SELECT - + 15 * - ( + 3 ) FROM tab2 cor0
----
45
45
45
query I rowsort
SELECT DISTINCT 34 AS col2 FROM tab2 cor0 WHERE NOT - 27 * + col2 * col2 IS NULL
----
34
query I rowsort
SELECT + 96 * + col1 * + - col1 FROM tab0 AS cor0
----
-42336
-629856
-96
query II rowsort
SELECT DISTINCT - col2 AS col0, - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1
query I rowsort
SELECT DISTINCT + col2 * 5 + - col0 * + col0 FROM tab2 AS cor0 WHERE NOT ( 7 + + 4 ) IN ( 58 * col1 )
----
-2001
-3896
-5335
onlyif mysql # aggregate syntax:
query I rowsort label-2575
SELECT ALL + - COUNT( - + 47 ) col0 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2575
SELECT ALL + - COUNT ( - + 47 ) col0 FROM tab2 AS cor0
----
-3
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - 36
----
query I rowsort
SELECT ALL col2 * - + col0 AS col0 FROM tab2
----
-1058
-2560
-4350
query I rowsort
SELECT DISTINCT ( - col1 ) * - - col1 + + ( - col1 ) AS col2 FROM tab1
----
-210
-2256
-30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 * ( - - col2 ) col1 FROM tab1
----
5369
6188
8736
query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-2581
SELECT + MAX( ALL + col2 ) + 68 col2 FROM tab2 WHERE NOT + col0 BETWEEN NULL AND ( + col2 )
----
126
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2581
SELECT + MAX ( ALL + col2 ) + 68 col2 FROM tab2 WHERE NOT + col0 BETWEEN NULL AND ( + col2 )
----
126
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-2582
SELECT - col0 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( + + CAST( NULL AS DECIMAL ) * 36 - ( 71 ) )
----
skipif mysql # not compatible
query I rowsort label-2582
SELECT - col0 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( + + CAST ( NULL AS REAL ) * 36 - ( 71 ) )
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2583
SELECT ALL 96 DIV - COUNT( * ) FROM tab0
----
-32
skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL 96 / - COUNT ( * ) FROM tab0
----
-32
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( - col1 ) NOT IN ( col2 ) )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2585
SELECT 39 + + col0 * - 85 FROM tab0 AS cor0 WHERE NOT + col2 >= + - 57 * - - ( CAST( NULL AS SIGNED ) ) / + col1 + col0 * + col0
----
skipif mysql # not compatible
query I rowsort label-2585
SELECT 39 + + col0 * - 85 FROM tab0 AS cor0 WHERE NOT + col2 >= + - 57 * - - ( CAST ( NULL AS INTEGER ) ) / + col1 + col0 * + col0
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 17 + - - col2 ) <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - 71 + col0 col1 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
-1404
-5736
26
query I rowsort
SELECT ( - 39 ) FROM tab2
----
-39
-39
-39
onlyif mysql # aggregate syntax:
query I rowsort label-2589
SELECT ALL - SUM( ALL + 47 ) FROM tab2
----
-141
skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL - SUM ( ALL + 47 ) FROM tab2
----
-141
onlyif mysql # aggregate syntax:
query I rowsort label-2590
SELECT DISTINCT + SUM( - - col1 ) AS col0 FROM tab1 AS cor0
----
66
skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT + SUM ( - - col1 ) AS col0 FROM tab1 AS cor0
----
66
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2591
SELECT + + 11 + + COUNT( * ) * ( - - COUNT( DISTINCT - col0 ) ) DIV + 69 AS col1 FROM tab2 AS cor0
----
11
skipif mysql # not compatible
query I rowsort label-2591
SELECT + + 11 + + COUNT ( * ) * ( - - COUNT ( DISTINCT - col0 ) ) / + 69 AS col1 FROM tab2 AS cor0
----
11
query I rowsort
SELECT col2 + + + col0 + - - 51 AS col2 FROM tab2 AS cor0
----
120
155
184
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2593
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE col0 * + - col1 IS NULL
----
skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE col0 * + - col1 IS NULL
----
query I rowsort
SELECT + col2 + - - 60 AS col1 FROM tab0 AS cor0
----
107
159
70
onlyif mysql # aggregate syntax:
query I rowsort label-2595
SELECT - COUNT( * ) + 73 AS col1 FROM tab1 AS cor0
----
70
skipif mysql # not compatible
query I rowsort label-2595
SELECT - COUNT ( * ) + 73 AS col1 FROM tab1 AS cor0
----
70
query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE col0 / + col0 + - 65 IS NULL
----
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd
query I rowsort
SELECT ALL ( + - col0 ) FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97
query I rowsort
SELECT ALL - col1 FROM tab2 WHERE - 24 + + - 4 IN ( col1 )
----
query III rowsort
SELECT * FROM tab1 WHERE + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT - - 3 FROM tab2 WHERE + col2 IS NOT NULL
----
3
3
3
query I rowsort
SELECT DISTINCT + col2 * - - col2 + - col2 FROM tab2
----
1560
3306
506
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-2603
SELECT + CAST( NULL AS SIGNED ), + col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91
skipif mysql # not compatible
query II rowsort label-2603
SELECT + CAST ( NULL AS INTEGER ), + col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2604
SELECT ALL * FROM tab2 WHERE NULL = - CAST( NULL AS SIGNED ) + - col2
----
skipif mysql # not compatible
query III rowsort label-2604
SELECT ALL * FROM tab2 WHERE NULL = - CAST ( NULL AS INTEGER ) + - col2
----
query I rowsort
SELECT ALL - 17 - - col1 * - col2 FROM tab0
----
-116
-227
-3824
query I rowsort
SELECT DISTINCT + col2 * + ( - ( col2 ) ) AS col0 FROM tab2
----
-1600
-3364
-529
onlyif mysql # aggregate syntax:
query I rowsort label-2607
SELECT - MIN( - 5 ) FROM tab0
----
5
skipif mysql # not compatible
query I rowsort label-2607
SELECT - MIN ( - 5 ) FROM tab0
----
5
query II rowsort
SELECT ALL - 12 AS col0, col1 * + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-12
1344
-12
295
-12
3196
query I rowsort
SELECT ( ( - - 8 ) ) - - col1 * - col0 FROM tab1 cor0
----
-417
-4269
-706
query I rowsort
SELECT - 20 + + 71 * - 7 AS col1 FROM tab1 AS cor0
----
-517
-517
-517
query II rowsort
SELECT + 66 AS col0, + 18 AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
18 values hashing to 26ce52f4c742287a4293ad701193406e
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 - + 28 IS NULL
----
query I rowsort
SELECT ALL - + ( + col1 ) * + ( col2 ) AS col0 FROM tab0 AS cor0
----
-210
-3807
-99
onlyif mysql # aggregate syntax:
query I rowsort label-2614
SELECT ALL 74 * - + MAX( ALL ( col1 ) ) FROM tab0 AS cor0
----
-5994
skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL 74 * - + MAX ( ALL ( col1 ) ) FROM tab0 AS cor0
----
-5994
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-2615
SELECT ALL - col0 * - col2 col1, + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
705
-81
870
-21
9603
-1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2615
SELECT ALL - col0 * - col2 col1, + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
705
-81
870
-21
9603
-1
onlyif mysql # aggregate syntax:
query I rowsort label-2616
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( - col1 ) IN ( + col0 + col1 * - col1 )
----
3
skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( - col1 ) IN ( + col0 + col1 * - col1 )
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + ( ( + col0 ) ) + col2 col0 FROM tab1 AS cor0
----
-4800
-4956
-6120
query I rowsort
SELECT col1 / col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 - - 7 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT col2 * + - 62 FROM tab2
----
-1426
-2480
-3596
onlyif mysql # aggregate syntax:
query I rowsort label-2621
SELECT ( + - COUNT( * ) ) FROM tab0 WHERE NOT col1 + + - ( + col2 ) IS NULL
----
-3
skipif mysql # not compatible
query I rowsort label-2621
SELECT ( + - COUNT ( * ) ) FROM tab0 WHERE NOT col1 + + - ( + col2 ) IS NULL
----
-3
query II rowsort
SELECT + col1 AS col0, + col2 + + 17 AS col1 FROM tab0
----
1
116
21
27
81
64
query I rowsort
SELECT - col0 * 38 AS col0 FROM tab0
----
-3306
-3686
-570
onlyif mysql # aggregate syntax:
query I rowsort label-2624
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT + + col2 * 76 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-2624
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT + + col2 * 76 IS NOT NULL
----
0
query I rowsort
SELECT + col1 * - + 3 * - 30 * - col0 AS col2 FROM tab1
----
-38250
-384930
-64260
query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - + 25 ) + + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # DIV for integer division:
query I rowsort label-2627
SELECT col0 DIV 25 AS col0 FROM tab1
----
2
3
3
skipif mysql # not compatible
query I rowsort label-2627
SELECT col0 / 25 AS col0 FROM tab1
----
2
3
3
query I rowsort
SELECT DISTINCT - ( - + col2 ) AS col0 FROM tab0
----
10
47
99
onlyif mysql # aggregate syntax:
query I rowsort label-2629
SELECT ALL COUNT( DISTINCT + 78 ) AS col0 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL COUNT ( DISTINCT + 78 ) AS col0 FROM tab0
----
1
onlyif mysql # aggregate syntax:
query I rowsort label-2630
SELECT ALL MAX( DISTINCT col0 ) AS col1 FROM tab2
----
75
skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL MAX ( DISTINCT col0 ) AS col1 FROM tab2
----
75
query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 <= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2632
SELECT DISTINCT - 92 * + COUNT( * ) FROM tab2 AS cor0
----
-276
skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT - 92 * + COUNT ( * ) FROM tab2 AS cor0
----
-276
query I rowsort
SELECT ALL + 17 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT col1 + + + col1 FROM tab2
----
102
134
154
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + + col2 col2, 20 FROM tab2
----
116
20
46
20
80
20
query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2637
SELECT + 54 + - CAST( NULL AS SIGNED ) - + - 87 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2637
SELECT + 54 + - CAST ( NULL AS INTEGER ) - + - 87 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + 46 = NULL
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <> NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 <> NULL
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN NULL AND + col2 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col1 + + ( + 93 ) )
----
query I rowsort
SELECT DISTINCT - + 80 AS col0 FROM tab1 cor0
----
-80
query I rowsort
SELECT + col0 * - col0 * - 99 AS col0 FROM tab2 AS cor0
----
209484
405504
556875
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 ) IN ( 24 * + 13, 98 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-2646
SELECT DISTINCT + MAX( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT + MAX ( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-1
query I rowsort
SELECT - 70 + 35 AS col0 FROM tab0 AS cor0
----
-35
-35
-35
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2648
SELECT ALL COUNT( * ) + - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL COUNT ( * ) + - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query III rowsort
SELECT * FROM tab0 WHERE + 95 * + col0 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT 36 * col1 + + col2 * + col0 FROM tab0
----
1626
3621
9639
onlyif mysql # DIV for integer division:
query I rowsort label-2651
SELECT col0 DIV 41 * - 3 DIV - col0 * 38 + col2 AS col1 FROM tab2
----
23
40
58
skipif mysql # not compatible
query I rowsort label-2651
SELECT col0 / 41 * - 3 / - col0 * 38 + col2 AS col1 FROM tab2
----
23
40
58
onlyif mysql # aggregate syntax:
query I rowsort label-2652
SELECT DISTINCT COUNT( * ) + - ( + + 21 ) + + 79 FROM tab2
----
61
skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT COUNT ( * ) + - ( + + 21 ) + + 79 FROM tab2
----
61
query II rowsort
SELECT ALL - col2, - ( - - col2 ) AS col0 FROM tab2
----
-23
-23
-40
-40
-58
-58
onlyif mysql # aggregate syntax:
query I rowsort label-2654
SELECT DISTINCT - + 61 * + - ( - + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-183
skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT - + 61 * + - ( - + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-183
onlyif mysql # DIV for integer division:
query I rowsort label-2655
SELECT DISTINCT - col0 DIV - + col1 FROM tab1 AS cor0
----
1
17
3
skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT - col0 / - + col1 FROM tab1 AS cor0
----
1
17
3
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-2656
SELECT col1, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL
skipif mysql # not compatible
query II rowsort label-2656
SELECT col1, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2657
SELECT - 13 + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL <> + ( + 63 )
----
-13
skipif mysql # not compatible
query I rowsort label-2657
SELECT - 13 + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL <> + ( + 63 )
----
-13
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2658
SELECT - CAST( + + 37 AS SIGNED ) * + COUNT( * ) FROM tab2 AS cor0
----
-111
skipif mysql # not compatible
query I rowsort label-2658
SELECT - CAST ( + + 37 AS INTEGER ) * + COUNT ( * ) FROM tab2 AS cor0
----
-111
onlyif mysql # aggregate syntax:
query II rowsort label-2659
SELECT ALL - COUNT( * ) AS col0, 25 AS col1 FROM tab1 AS cor0
----
-3
25
skipif mysql # not compatible
query II rowsort label-2659
SELECT ALL - COUNT ( * ) AS col0, 25 AS col1 FROM tab1 AS cor0
----
-3
25
query I rowsort
SELECT ALL 4 AS col2 FROM tab2 cor0 WHERE + 38 NOT IN ( col2 + col2 )
----
4
4
4
onlyif mysql # aggregate syntax:
query II rowsort label-2661
SELECT ALL + COUNT( + + 92 ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
3
skipif mysql # not compatible
query II rowsort label-2661
SELECT ALL + COUNT ( + + 92 ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
3
query II rowsort
SELECT - + 38, + col1 FROM tab2 cor0
----
-38
51
-38
67
-38
77
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 IS NOT NULL
----
query I rowsort
SELECT ALL - 86 FROM tab2 WHERE NULL IS NULL
----
-86
-86
-86
query II rowsort
SELECT ALL col0 * - col2, + ( + col0 ) AS col0 FROM tab0
----
-705
15
-870
87
-9603
97
query II rowsort
SELECT - 48, 67 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-48
67
-48
67
-48
67
query I rowsort
SELECT DISTINCT - ( ( - + 10 ) ) AS col2 FROM tab0
----
10
onlyif mysql # aggregate syntax:
query II rowsort label-2668
SELECT DISTINCT - - COUNT( * ), COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9
9
skipif mysql # not compatible
query II rowsort label-2668
SELECT DISTINCT - - COUNT ( * ), COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - + col0 ) col0 FROM tab1 AS cor0
----
51
85
91
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2670
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 WHERE - ( col1 ) + col2 NOT IN ( + CAST( NULL AS SIGNED ) )
----
skipif mysql # not compatible
query I rowsort label-2670
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 WHERE - ( col1 ) + col2 NOT IN ( + CAST ( NULL AS INTEGER ) )
----
query I rowsort
SELECT ALL - 56 + - col0 AS col2 FROM tab1 AS cor0
----
-107
-141
-147
query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-2673
SELECT COUNT( + col2 ) AS col2 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-2673
SELECT COUNT ( + col2 ) AS col2 FROM tab0 AS cor0
----
3
query I rowsort
SELECT - 80 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-2675
SELECT DISTINCT + + COUNT( * ), - COUNT( * ) AS col2 FROM tab1 cor0
----
3
-3
skipif mysql # not compatible
query II rowsort label-2675
SELECT DISTINCT + + COUNT ( * ), - COUNT ( * ) AS col2 FROM tab1 cor0
----
3
-3
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2676
SELECT DISTINCT MIN( ALL - 12 ) * + 88 + + + 22 DIV - - 59 AS col1 FROM tab0 AS cor0
----
-1056
skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT MIN ( ALL - 12 ) * + 88 + + + 22 / - - 59 AS col1 FROM tab0 AS cor0
----
-1056
onlyif mysql # aggregate syntax:
query I rowsort label-2677
SELECT DISTINCT - COUNT( DISTINCT 74 ) col1 FROM tab0
----
-1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2677
SELECT DISTINCT - COUNT ( DISTINCT 74 ) col1 FROM tab0
----
-1
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> 93 * - - 90 + + + 89
----
query I rowsort
SELECT DISTINCT - col0 + - + col1 AS col0 FROM tab1
----
-138
-65
-90
query I rowsort
SELECT ALL - col1 * + 53 + + + col2 + + + col0 + + col0 * col1 FROM tab1
----
119
1945
304
query I rowsort
SELECT ALL - col0 - - col1 AS col1 FROM tab0
----
-66
-96
66
onlyif mysql # aggregate syntax:
query I rowsort label-2682
SELECT MAX( ALL col2 ) AS col1 FROM tab0
----
99
skipif mysql # not compatible
query I rowsort label-2682
SELECT MAX ( ALL col2 ) AS col1 FROM tab0
----
99
query I rowsort
SELECT 19 - - 66 FROM tab2
----
85
85
85
query I rowsort
SELECT DISTINCT - 22 - 17 * + col0 + + col2 * 80 FROM tab2
----
1036
2090
3343
query III rowsort
SELECT * FROM tab1 WHERE + - col2 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT - 22 - - - col1 AS col0 FROM tab1
----
-27
-36
-69
query I rowsort
SELECT ALL - 66 AS col2 FROM tab0 AS cor0 WHERE - 36 BETWEEN - col2 + + - col1 AND + ( col2 )
----
-66
-66
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 IS NULL
----
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 91 IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 col0 FROM tab2 AS cor0
----
36
onlyif mysql # aggregate syntax:
query II rowsort label-2692
SELECT DISTINCT + 37 AS col2, + COUNT( - - col0 ) FROM tab2 AS cor0
----
37
3
skipif mysql # not compatible
query II rowsort label-2692
SELECT DISTINCT + 37 AS col2, + COUNT ( - - col0 ) FROM tab2 AS cor0
----
37
3
query I rowsort
SELECT 36 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( 78 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2695
SELECT - - col0 FROM tab2 AS cor0 WHERE NOT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) IS NULL
----
skipif mysql # not compatible
query I rowsort label-2695
SELECT - - col0 FROM tab2 AS cor0 WHERE NOT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, col0 col1 FROM tab1 AS cor0
----
14
51
47
91
5
85
query I rowsort
SELECT ALL - - 26 FROM tab0 cor0
----
26
26
26
onlyif mysql # aggregate syntax:
query I rowsort label-2698
SELECT DISTINCT - SUM( DISTINCT - col1 ) AS col0 FROM tab0 cor0
----
103
skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT - SUM ( DISTINCT - col1 ) AS col0 FROM tab0 cor0
----
103
onlyif mysql # aggregate syntax:
query I rowsort label-2699
SELECT SUM( 27 ) AS col1 FROM tab0 AS cor0
----
81
skipif mysql # not compatible
query I rowsort label-2699
SELECT SUM ( 27 ) AS col1 FROM tab0 AS cor0
----
81
query I rowsort
SELECT 51 * col1 AS col1 FROM tab1
----
2397
255
714
query I rowsort
SELECT DISTINCT 0 * + 58 * col1 AS col2 FROM tab1
----
0
query I rowsort
SELECT 92 * + + col0 * - + ( col2 ) AS col0 FROM tab1
----
-450432
-461380
-569296
query II rowsort
SELECT col1 AS col2, col2 FROM tab0
----
1
99
21
10
81
47
query II rowsort
SELECT 23 AS col1, col0 AS col0 FROM tab0
----
23
15
23
87
23
97
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2705
SELECT * FROM tab1 WHERE NOT ( - + col1 ) IN ( + CAST( NULL AS SIGNED ) * col2, col1 + - col0, - 25 + col0 )
----
skipif mysql # not compatible
query III rowsort label-2705
SELECT * FROM tab1 WHERE NOT ( - + col1 ) IN ( + CAST ( NULL AS INTEGER ) * col2, col1 + - col0, - 25 + col0 )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - col2, 65, + 15 + + col0 )
----
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-2707
SELECT ALL + MIN( DISTINCT + - 42 ) * + 18 * COUNT( - CAST( NULL AS DECIMAL ) ) * + + 53 * - COUNT( * ) FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL + MIN ( DISTINCT + - 42 ) * + 18 * COUNT ( - CAST ( NULL AS REAL ) ) * + + 53 * - COUNT ( * ) FROM tab1 cor0
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2708
SELECT ALL ( - + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-2709
SELECT DISTINCT - MAX( DISTINCT + col0 ) AS col2, CAST( + + MIN( DISTINCT + col1 ) AS SIGNED ) col2 FROM tab0
----
-97
1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2709
SELECT DISTINCT - MAX ( DISTINCT + col0 ) AS col2, CAST ( + + MIN ( DISTINCT + col1 ) AS INTEGER ) col2 FROM tab0
----
-97
1
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2710
SELECT DISTINCT + + 7 * - - CAST( - - 38 AS SIGNED ) * - col0 - + + 39 AS col2 FROM tab2 AS cor0
----
-12275
-17063
-19989
skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT + + 7 * - - CAST ( - - 38 AS INTEGER ) * - col0 - + + 39 AS col2 FROM tab2 AS cor0
----
-12275
-17063
-19989
onlyif mysql # aggregate syntax:
query I rowsort label-2711
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-2711
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3
query I rowsort
SELECT DISTINCT - col1 * col2 - - col1 FROM tab1 cor0
----
-1330
-290
-3149
query I rowsort
SELECT ALL - col2 * + col0 - - col1 - col0 AS col2 FROM tab0 AS cor0
----
-639
-936
-9699
query I rowsort
SELECT ALL - 26 * 82 AS col1 FROM tab2 AS cor0
----
-2132
-2132
-2132
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - - col2 + - + col2 <= NULL AND NULL IS NULL
----
query III rowsort
SELECT * FROM tab1 WHERE - - col1 > col0
----
query I rowsort
SELECT col2 + 6 FROM tab1
----
102
65
74
query II rowsort
SELECT 12 * - col0 * + col1 AS col1, - 64 AS col2 FROM tab2 WHERE ( NOT - col2 + - 83 IS NOT NULL )
----
query I rowsort
SELECT DISTINCT + ( + - col1 ) * + - col1 AS col2 FROM tab2 WHERE ( NOT NULL >= NULL )
----
query I rowsort
SELECT ALL + 97 * + 62 * + 84 + + + col2 AS col1 FROM tab2
----
505199
505216
505234
query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NULL ) >= + 95 )
----
query I rowsort
SELECT DISTINCT - - col0 * - ( + - col1 ) FROM tab0 WHERE + 95 IS NULL
----
query I rowsort
SELECT - col1 * col2 + + - col2 FROM tab2 AS cor0
----
-1196
-3120
-3944
onlyif mysql # aggregate syntax:
query I rowsort label-2724
SELECT DISTINCT - ( + COUNT( * ) ) FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-2725
SELECT DISTINCT SUM( DISTINCT + col1 ) AS col1 FROM tab1
----
66
skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT SUM ( DISTINCT + col1 ) AS col1 FROM tab1
----
66
query I rowsort
SELECT ALL + ( 4 ) AS col0 FROM tab1 AS cor0
----
4
4
4
query I rowsort
SELECT ALL ( - 88 ) AS col1 FROM tab0 AS cor0
----
-88
-88
-88
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-2728
SELECT - ( + + CAST( - col1 AS SIGNED ) ) * - 62, + col1 FROM tab1 AS cor0
----
-2914
47
-310
5
-868
14
skipif mysql # not compatible
query II rowsort label-2728
SELECT - ( + + CAST ( - col1 AS INTEGER ) ) * - 62, + col1 FROM tab1 AS cor0
----
-2914
47
-310
5
-868
14
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2729
SELECT COUNT( * ) DIV - + 46 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2729
SELECT COUNT ( * ) / - + 46 FROM tab0 AS cor0
----
0
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT col2 + col2 + col2 * + col1 FROM tab0 cor0
----
230
297
3901
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 39 BETWEEN - - 83 * + + ( - col0 ) + - col2 AND NULL
----
query I rowsort
SELECT - - col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91
query I rowsort
SELECT ALL + 28 + + col0 FROM tab1
----
113
119
79
query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT + + col0 + 12 NOT IN ( + col2, col1 * + col1 + + - 42 + - col2, + col1, - col2, + - 65 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 45 * - 25 * - 16 col1 FROM tab0
----
1566000
1746000
270000
onlyif mysql # aggregate syntax:
query I rowsort label-2738
SELECT - MIN( ALL + 54 ) AS col2 FROM tab1
----
-54
skipif mysql # not compatible
query I rowsort label-2738
SELECT - MIN ( ALL + 54 ) AS col2 FROM tab1
----
-54
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2739
SELECT + CAST( 6 AS SIGNED ) * - - col1 FROM tab0 AS cor0
----
126
486
6
skipif mysql # not compatible
query I rowsort label-2739
SELECT + CAST ( 6 AS INTEGER ) * - - col1 FROM tab0 AS cor0
----
126
486
6
query I rowsort
SELECT - col2 * + + 42 FROM tab1 cor0
----
-2478
-2856
-4032
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND col1
----
onlyif mysql # DIV for integer division:
query I rowsort label-2742
SELECT - + col2 DIV - - 35 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-2742
SELECT - + col2 / - - 35 FROM tab0 AS cor0
----
-1
-2
0
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2743
SELECT DISTINCT COUNT( * ) * - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2743
SELECT DISTINCT COUNT ( * ) * - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
query I rowsort
SELECT 66 AS col2 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT + col0 * col2 + - - col2 AS col1 FROM tab1
----
4992
5074
6256
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - 51 AND NULL
----
query I rowsort
SELECT DISTINCT + 50 + + + ( col0 ) FROM tab1
----
101
135
141
onlyif mysql # aggregate syntax:
query I rowsort label-2748
SELECT DISTINCT + 97 * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-873
skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT + 97 * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-873
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 67 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL + 17 - + + col2 FROM tab0 AS cor0
----
-30
-82
7
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col0 * + 34 IS NOT NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2752
SELECT DISTINCT + COUNT( * ) DIV 80 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT + COUNT ( * ) / 80 FROM tab0 AS cor0
----
0
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 59 IS NOT NULL
----
query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 + - - 63 >= - + 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT - 22 + - col1 AS col0 FROM tab2
----
-73
-89
-99
onlyif mysql # aggregate syntax:
query I rowsort label-2756
SELECT DISTINCT 2 * - COUNT( * ) FROM tab1
----
-6
skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT 2 * - COUNT ( * ) FROM tab1
----
-6
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2757
SELECT DISTINCT - ( - CAST( + COUNT( * ) AS SIGNED ) ) col2 FROM tab1 WHERE NOT NULL IS NULL
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2757
SELECT DISTINCT - ( - CAST ( + COUNT ( * ) AS INTEGER ) ) col2 FROM tab1 WHERE NOT NULL IS NULL
----
0
query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE NOT NULL < - col2
----
onlyif mysql # DIV for integer division:
query II rowsort label-2759
SELECT - col0 DIV + 9 col2, col1 AS col1 FROM tab1
----
-10
47
-5
14
-9
5
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2759
SELECT - col0 / + 9 col2, col1 AS col1 FROM tab1
----
-10
47
-5
14
-9
5
query I rowsort
SELECT - ( + ( - col0 ) ) * - 36 FROM tab2
----
-1656
-2304
-2700
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2761
SELECT ALL CAST( + 20 AS SIGNED ) AS col1 FROM tab2
----
20
20
20
skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL CAST ( + 20 AS INTEGER ) AS col1 FROM tab2
----
20
20
20
onlyif mysql # aggregate syntax:
query II rowsort label-2762
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * ) FROM tab2
----
3
3
skipif mysql # not compatible
query II rowsort label-2762
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) FROM tab2
----
3
3
query I rowsort
SELECT - 87 * - - 3 FROM tab1
----
-261
-261
-261
onlyif mysql # DIV for integer division:
query I rowsort label-2764
SELECT col2 DIV + + col1 FROM tab1
----
1
11
6
skipif mysql # not compatible
query I rowsort label-2764
SELECT col2 / + + col1 FROM tab1
----
1
11
6
query II rowsort
SELECT - col2, col0 AS col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51
query II rowsort
SELECT ALL + - col0 AS col2, col2 AS col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2767
SELECT DISTINCT col2 + + + CAST( NULL AS SIGNED ) * + - col0 * - 87 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2767
SELECT DISTINCT col2 + + + CAST ( NULL AS INTEGER ) * + - col0 * - 87 FROM tab1 AS cor0
----
NULL
query II rowsort
SELECT + col1 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
14
96
47
68
5
59
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-2769
SELECT ALL CAST( 83 AS SIGNED ) + - col1 + - - col1 + col0 DIV 14 FROM tab1
----
86
89
89
skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL CAST ( 83 AS INTEGER ) + - col1 + - - col1 + col0 / 14 FROM tab1
----
86
89
89
onlyif mysql # aggregate syntax:
query II rowsort label-2770
SELECT SUM( 93 ) col2, - 98 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
NULL
-98
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2770
SELECT SUM ( 93 ) col2, - 98 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
NULL
-98
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2771
SELECT ALL - col0 * + ( - col1 ) + CAST( + col1 AS SIGNED ) FROM tab0
----
1296
1848
98
skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL - col0 * + ( - col1 ) + CAST ( + col1 AS INTEGER ) FROM tab0
----
1296
1848
98
onlyif mysql # aggregate syntax:
query I rowsort label-2772
SELECT - ( - + MIN( + - col0 ) ) FROM tab2
----
-75
skipif mysql # not compatible
query I rowsort label-2772
SELECT - ( - + MIN ( + - col0 ) ) FROM tab2
----
-75
onlyif mysql # DIV for integer division:
query I rowsort label-2773
SELECT 90 DIV + col0 + col0 FROM tab0
----
21
88
97
skipif mysql # not compatible
query I rowsort label-2773
SELECT 90 / + col0 + col0 FROM tab0
----
21
88
97
query II rowsort
SELECT - ( - col1 ) AS col2, + col1 AS col1 FROM tab2 WHERE NULL <= col0
----
query I rowsort
SELECT ALL + - 26 AS col1 FROM tab2 AS cor0
----
-26
-26
-26
query II rowsort
SELECT + col1 + 30 AS col1, + col0 AS col0 FROM tab2 AS cor0
----
107
64
81
46
97
75
onlyif mysql # aggregate syntax:
query I rowsort label-2777
SELECT + COUNT( * ) + - MIN( + col2 ) FROM tab0 AS cor0
----
-7
skipif mysql # not compatible
query I rowsort label-2777
SELECT + COUNT ( * ) + - MIN ( + col2 ) FROM tab0 AS cor0
----
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 * - col0 col2 FROM tab0 AS cor0
----
306
7590
9410
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-2779
SELECT ALL + col2 * CAST( NULL AS DECIMAL ) * 34 + - 17 - col2 * col0 col0, col0 * + - ( - ( - col1 ) ) col2 FROM tab1
----
NULL
-425
NULL
-4277
NULL
-714
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2779
SELECT ALL + col2 * CAST ( NULL AS REAL ) * 34 + - 17 - col2 * col0 col0, col0 * + - ( - ( - col1 ) ) col2 FROM tab1
----
NULL
-425
NULL
-4277
NULL
-714
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 - - + ( 82 ) col1 FROM tab2
----
165
165
165
onlyif mysql # DIV for integer division:
query I rowsort label-2781
SELECT DISTINCT col0 + - - 97 + - col1 + - ( - - col0 ) DIV + col2 AS col2 FROM tab1 AS cor0
----
134
140
176
skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT col0 + - - 97 + - col1 + - ( - - col0 ) / + col2 AS col2 FROM tab1 AS cor0
----
134
140
176
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( - col2 * - + col1, col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-2783
SELECT - COUNT( * ) - - + 41 * 38 - + 5 AS col2 FROM tab1 AS cor0
----
1550
skipif mysql # not compatible
query I rowsort label-2783
SELECT - COUNT ( * ) - - + 41 * 38 - + 5 AS col2 FROM tab1 AS cor0
----
1550
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 - - - col2 col2 FROM tab0 cor0
----
-98
431
6514
query I rowsort
SELECT DISTINCT + col0 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( ( + col0 - - col0 ) IS NOT NULL )
----
onlyif mysql # aggregate syntax:
query II rowsort label-2786
SELECT DISTINCT - + COUNT( * ) AS col1, + 4 AS col1 FROM tab2 AS cor0
----
-3
4
skipif mysql # not compatible
query II rowsort label-2786
SELECT DISTINCT - + COUNT ( * ) AS col1, + 4 AS col1 FROM tab2 AS cor0
----
-3
4
query I rowsort
SELECT - 91 + 86 AS col1 FROM tab1 AS cor0
----
-5
-5
-5
onlyif mysql # aggregate syntax:
query I rowsort label-2788
SELECT DISTINCT - COUNT( * ) * 62 AS col2 FROM tab2 AS cor0
----
-186
skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT - COUNT ( * ) * 62 AS col2 FROM tab2 AS cor0
----
-186
query I rowsort
SELECT - col0 * - - 17 * - + col1 * + col0 FROM tab2 AS cor0
----
1834572
5361664
6406875
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 / - col2 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2791
SELECT - - SUM( col0 ) FROM tab1 AS cor0 WHERE NOT - col0 + + + col2 * + - col1 IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-2791
SELECT - - SUM ( col0 ) FROM tab1 AS cor0 WHERE NOT - col0 + + + col2 * + - col1 IS NOT NULL
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-2792
SELECT ALL col2 * - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * ( col1 ), col2 * + + 7 AS col2 FROM tab1 AS cor0
----
NULL
413
NULL
476
NULL
672
skipif mysql # not compatible
query II rowsort label-2792
SELECT ALL col2 * - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * ( col1 ), col2 * + + 7 AS col2 FROM tab1 AS cor0
----
NULL
413
NULL
476
NULL
672
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 * 18 col2 FROM tab0
----
1494
1494
1494
onlyif mysql # aggregate syntax:
query I rowsort label-2794
SELECT ALL COUNT( ALL col0 ) AS col1 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL COUNT ( ALL col0 ) AS col1 FROM tab2
----
3
query I rowsort
SELECT DISTINCT col0 * 13 AS col0 FROM tab1
----
1105
1183
663
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 31 BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL col2 * - 91 AS col0 FROM tab1
----
-5369
-6188
-8736
query I rowsort
SELECT - + col2 - - 64 * - - ( + - col1 ) * col0 * - col1 + + - col0 FROM tab1 WHERE NOT NULL >= + - col0
----
query I rowsort
SELECT - col0 * + col1 AS col2 FROM tab2 WHERE NOT + col1 < + col0
----
-2346
-4928
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-2800
SELECT + CAST( + - COUNT( * ) AS SIGNED ) * + COUNT( * ) * + - CAST( - + SUM( DISTINCT + col0 ) AS SIGNED ), 78 AS col2 FROM tab0 AS cor0
----
-1791
78
skipif mysql # not compatible
query II rowsort label-2800
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) * + - CAST ( - + SUM ( DISTINCT + col0 ) AS INTEGER ), 78 AS col2 FROM tab0 AS cor0
----
-1791
78
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2801
SELECT DISTINCT - 86 * 18 - + 32 col0 FROM tab1 AS cor0 WHERE NULL <> col1 * + col1 * + CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2801
SELECT DISTINCT - 86 * 18 - + 32 col0 FROM tab1 AS cor0 WHERE NULL <> col1 * + col1 * + CAST ( NULL AS INTEGER )
----
onlyif mysql # DIV for integer division:
query II rowsort label-2802
SELECT ALL + ( col1 ) * col2 + + + col1 AS col1, + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
1358
1
300
1
3243
1
skipif mysql # not compatible
query II rowsort label-2802
SELECT ALL + ( col1 ) * col2 + + + col1 AS col1, + col0 / col0 AS col1 FROM tab1 AS cor0
----
1358
1
300
1
3243
1
onlyif mysql # DIV for integer division:
query I rowsort label-2803
SELECT DISTINCT + col2 DIV + col0 + + + 99 FROM tab0 AS cor0
----
100
102
99
skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT + col2 / + col0 + + + 99 FROM tab0 AS cor0
----
100
102
99
onlyif mysql # DIV for integer division:
query II rowsort label-2804
SELECT col1, - 90 DIV 11 DIV col1 AS col2 FROM tab2 AS cor0
----
51
0
67
0
77
0
skipif mysql # not compatible
query II rowsort label-2804
SELECT col1, - 90 / 11 / col1 AS col2 FROM tab2 AS cor0
----
51
0
67
0
77
0
onlyif mysql # DIV for integer division:
query I rowsort label-2805
SELECT ALL + col2 DIV - col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL + col2 / - col1 FROM tab2 AS cor0
----
0
0
0
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 60 + 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-2807
SELECT DISTINCT + - SUM( + + 86 ) AS col2 FROM tab2 cor0
----
-258
skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT + - SUM ( + + 86 ) AS col2 FROM tab2 cor0
----
-258
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2808
SELECT ALL + - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2808
SELECT ALL + - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - ( 97 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b
query I rowsort
SELECT - col0 * + + col1 FROM tab0 AS cor0
----
-1215
-1827
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 col0 FROM tab2 AS cor0
----
99
99
99
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query II rowsort label-2812
SELECT CAST( NULL AS SIGNED ) + + 80 AS col2, + COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL
-1
skipif mysql # not compatible
query II rowsort label-2812
SELECT CAST ( NULL AS INTEGER ) + + 80 AS col2, + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL
-1
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-2813
SELECT DISTINCT 81 DIV + CAST( 71 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2813
SELECT DISTINCT 81 / + CAST ( 71 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT - + col2 + + col2 + col0 AS col2 FROM tab0 AS cor0
----
15
87
97
query I rowsort
SELECT DISTINCT - col0 * + + 55 + 96 FROM tab2 AS cor0
----
-2434
-3424
-4029
query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 * + 32 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2817
SELECT + + COUNT( * ) * + + 38 * + - 37 + - ( COUNT( * ) ) FROM tab2 cor0
----
-4221
skipif mysql # not compatible
query I rowsort label-2817
SELECT + + COUNT ( * ) * + + 38 * + - 37 + - ( COUNT ( * ) ) FROM tab2 cor0
----
-4221
query I rowsort
SELECT ALL col0 + + 27 + - col0 * + - 11 FROM tab2
----
579
795
927
onlyif mysql # DIV for integer division:
query II rowsort label-2819
SELECT + 79 AS col0, + col1 DIV + + 33 AS col2 FROM tab2 WHERE - - col1 IS NOT NULL
----
79
1
79
2
79
2
skipif mysql # not compatible
query II rowsort label-2819
SELECT + 79 AS col0, + col1 / + + 33 AS col2 FROM tab2 WHERE - - col1 IS NOT NULL
----
79
1
79
2
79
2
query I rowsort
SELECT + col2 * col1 * ( + + col2 ) * + + col1 FROM tab2
----
1375929
15100996
9486400
onlyif mysql # DIV for integer division:
query I rowsort label-2821
SELECT ALL col0 DIV + 82 AS col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL col0 / + 82 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT + ( + - 53 ) FROM tab1 AS cor0
----
-53
-53
-53
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2823
SELECT + - CAST( NULL AS SIGNED ) * SUM( - 15 ) * + 91 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2823
SELECT + - CAST ( NULL AS INTEGER ) * SUM ( - 15 ) * + 91 FROM tab2 cor0
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2824
SELECT ALL CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81
skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81
query I rowsort
SELECT - ( + - col2 ) FROM tab0 AS cor0 WHERE 78 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2826
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> ( - 36 )
----
0
skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> ( - 36 )
----
0
query I rowsort
SELECT DISTINCT - ( 97 ) AS col1 FROM tab1 AS cor0
----
-97
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query II rowsort label-2829
SELECT ALL - 27 * + ( COUNT( * ) ) - 57 AS col1, COUNT( * ) AS col2 FROM tab0
----
-138
3
skipif mysql # not compatible
query II rowsort label-2829
SELECT ALL - 27 * + ( COUNT ( * ) ) - 57 AS col1, COUNT ( * ) AS col2 FROM tab0
----
-138
3
onlyif mysql # aggregate syntax:
query I rowsort label-2830
SELECT SUM( DISTINCT - - col2 ) AS col1 FROM tab0
----
156
skipif mysql # not compatible
query I rowsort label-2830
SELECT SUM ( DISTINCT - - col2 ) AS col1 FROM tab0
----
156
onlyif mysql # aggregate syntax:
query I rowsort label-2831
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-2832
SELECT ALL col1 - - CAST( NULL AS DECIMAL ) AS col2, col0 + + + 93 AS col1 FROM tab2 AS cor0
----
NULL
139
NULL
157
NULL
168
skipif mysql # not compatible
query II rowsort label-2832
SELECT ALL col1 - - CAST ( NULL AS REAL ) AS col2, col0 + + + 93 AS col1 FROM tab2 AS cor0
----
NULL
139
NULL
157
NULL
168
onlyif mysql # aggregate syntax:
query I rowsort label-2833
SELECT ALL - SUM( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-185
skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL - SUM ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-185
query I rowsort
SELECT col0 + - col2 * 2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-16
-41
0
query II rowsort
SELECT ( + + col2 ) AS col0, col1 AS col1 FROM tab2 cor0
----
23
51
40
77
58
67
onlyif mysql # aggregate syntax:
query I rowsort label-2836
SELECT - - MAX( ALL 77 ) AS col2 FROM tab2 AS cor0
----
77
skipif mysql # not compatible
query I rowsort label-2836
SELECT - - MAX ( ALL 77 ) AS col2 FROM tab2 AS cor0
----
77
onlyif mysql # aggregate syntax:
query I rowsort label-2837
SELECT - MAX( ALL col0 ) AS col2 FROM tab1
----
-91
skipif mysql # not compatible
query I rowsort label-2837
SELECT - MAX ( ALL col0 ) AS col2 FROM tab1
----
-91
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query I rowsort label-2838
SELECT CAST( NULL AS DECIMAL ) * CAST( + col2 AS SIGNED ) + + + col1 col0 FROM tab0 WHERE NOT - col0 = + + col1
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2838
SELECT CAST ( NULL AS REAL ) * CAST ( + col2 AS INTEGER ) + + + col1 col0 FROM tab0 WHERE NOT - col0 = + + col1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 89 / col1 * - col0 * col1 FROM tab2 WHERE NOT NULL IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 * + - col1 col1 FROM tab2
----
-2652
-3484
-4004
query II rowsort
SELECT ALL - col2, + col0 AS col0 FROM tab2
----
-23
46
-40
64
-58
75
onlyif mysql # aggregate syntax:
query I rowsort label-2842
SELECT + COUNT( * ) FROM tab2, tab1 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-2842
SELECT + COUNT ( * ) FROM tab2, tab1 AS cor0
----
9
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 + 60 AND + 7
----
query II rowsort
SELECT DISTINCT col2, col0 + + 11 + - - col1 * - col2 + + - col0 * - - col0 AS col2 FROM tab2 WHERE NOT - 17 IS NOT NULL
----
query I rowsort
SELECT DISTINCT col0 * - col1 + + ( - - ( + col2 ) ) AS col0 FROM tab2
----
-2323
-4888
-4967
onlyif mysql # aggregate syntax:
query I rowsort label-2846
SELECT ALL MAX( + 72 ) FROM tab2 AS cor0
----
72
skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL MAX ( + 72 ) FROM tab2 AS cor0
----
72
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + 18 IS NULL )
----
query I rowsort
SELECT DISTINCT + 34 * + col2 FROM tab1 AS cor0
----
2006
2312
3264
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( ( NOT NULL = - 98 + - col1 ) ) )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2850
SELECT ALL + CAST( NULL AS SIGNED ) / + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL + CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2851
SELECT - + MAX( DISTINCT - col0 ) FROM tab2 AS cor0
----
46
skipif mysql # not compatible
query I rowsort label-2851
SELECT - + MAX ( DISTINCT - col0 ) FROM tab2 AS cor0
----
46
query I rowsort
SELECT DISTINCT - ( - - 40 ) AS col1 FROM tab1 AS cor0
----
-40
query I rowsort
SELECT + col2 + + 3 AS col2 FROM tab2
----
26
43
61
query II rowsort
SELECT ALL col1 + - 11 AS col0, - col1 FROM tab2
----
40
-51
56
-67
66
-77
onlyif mysql # DIV for integer division:
query I rowsort label-2855
SELECT DISTINCT 81 + + ( + col0 ) DIV + 10 FROM tab0
----
82
89
90
skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT 81 + + ( + col0 ) / + 10 FROM tab0
----
82
89
90
query III rowsort
SELECT * FROM tab1 WHERE - + 40 > NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2857
SELECT ALL + COUNT( * ) - + COUNT( * ) AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab0
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-2858
SELECT DISTINCT + 84 DIV + col0 FROM tab0
----
0
5
skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT + 84 / + col0 FROM tab0
----
0
5
query I rowsort
SELECT - - 0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # aggregate syntax:
query II rowsort label-2860
SELECT DISTINCT + SUM( + ( col2 ) ) AS col0, + COUNT( * ) FROM tab1
----
223
3
skipif mysql # not compatible
query II rowsort label-2860
SELECT DISTINCT + SUM ( + ( col2 ) ) AS col0, + COUNT ( * ) FROM tab1
----
223
3
query I rowsort
SELECT 85 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
onlyif mysql # aggregate syntax:
query I rowsort label-2862
SELECT ALL + SUM( ALL col1 ) FROM tab0
----
103
skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL + SUM ( ALL col1 ) FROM tab0
----
103
query I rowsort
SELECT ALL - + 62 + + + 18 FROM tab2 AS cor0 WHERE + col1 * - col1 NOT BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2864
SELECT ALL + - COUNT( * ) col0 FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2864
SELECT ALL + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-3
query II rowsort
SELECT + col1 AS col0, + 12 + col2 FROM tab0 AS cor0
----
1
111
21
22
81
59
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) BETWEEN - col2 * + - col0 / col1 + + col2 AND + - col2 + + 12
----
query I rowsort
SELECT + ( - 6 ) AS col1 FROM tab0 AS cor0
----
-6
-6
-6
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2868
SELECT - + ( CAST( + - col0 AS SIGNED ) ) * + 82 FROM tab1 cor0
----
4182
6970
7462
skipif mysql # not compatible
query I rowsort label-2868
SELECT - + ( CAST ( + - col0 AS INTEGER ) ) * + 82 FROM tab1 cor0
----
4182
6970
7462
query I rowsort
SELECT - ( + - 35 ) FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----
query II rowsort
SELECT col0, col0 AS col0 FROM tab0 cor0
----
15
15
87
87
97
97
query I rowsort
SELECT DISTINCT + + ( - 67 ) AS col2 FROM tab0 AS cor0
----
-67
query I rowsort
SELECT + - 78 * col1 AS col2 FROM tab1 AS cor0
----
-1092
-3666
-390
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
query II rowsort
SELECT + col1 + + - 28 AS col1, - col0 AS col1 FROM tab0 WHERE NOT col1 * + col2 * + col0 BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL + - 3 FROM tab2 WHERE NOT - - col2 * + col0 * + - col1 IS NOT NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * + - 30 IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col0 FROM tab0 cor0
----
8
8
8
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 BETWEEN - 35 AND NULL )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 42 - + + 85 * - - col0 IS NULL
----
query II rowsort
SELECT ALL - col0 + + + 41 - - col0, - col0 AS col0 FROM tab0 AS cor0
----
41
-15
41
-87
41
-97
onlyif mysql # aggregate syntax:
query I rowsort label-2881
SELECT + + COUNT( * ) + ( - 67 ) AS col1 FROM tab2 AS cor0
----
-64
skipif mysql # not compatible
query I rowsort label-2881
SELECT + + COUNT ( * ) + ( - 67 ) AS col1 FROM tab2 AS cor0
----
-64
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 94 + - - 66 + - - ( + - 35 ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2883
SELECT ALL - MAX( - + col0 ) + - 81 + COUNT( col0 ) col1 FROM tab0
----
-63
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2883
SELECT ALL - MAX ( - + col0 ) + - 81 + COUNT ( col0 ) col1 FROM tab0
----
-63
query I rowsort
SELECT ALL col2 + + + 92 AS col2 FROM tab2
----
115
132
150
query I rowsort
SELECT + 95 AS col1 FROM tab0 WHERE NULL IS NULL
----
95
95
95
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2886
SELECT DISTINCT + CAST( NULL AS SIGNED ) / COUNT( * ) FROM tab1 WHERE col1 - + - 79 * + col0 + - 21 IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / COUNT ( * ) FROM tab1 WHERE col1 - + - 79 * + col0 + - 21 IS NOT NULL
----
NULL
query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE ( col1 + + 64 IS NOT NULL )
----
51
67
77
query I rowsort
SELECT DISTINCT col1 * + col0 - + 63 FROM tab1
----
362
4214
651
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query III rowsort label-2889
SELECT ALL + MAX( col2 ) + - 83 - + CAST( NULL AS DECIMAL ) * + MAX( - col2 ) * - - 62, + ( COUNT( * ) ) AS col1, 80 AS col2 FROM tab2
----
NULL
3
80
skipif mysql # not compatible
query III rowsort label-2889
SELECT ALL + MAX ( col2 ) + - 83 - + CAST ( NULL AS REAL ) * + MAX ( - col2 ) * - - 62, + ( COUNT ( * ) ) AS col1, 80 AS col2 FROM tab2
----
NULL
3
80
query II rowsort
SELECT ALL col1 AS col0, - col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15
query I rowsort
SELECT + col1 - col0 * + 48 FROM tab1 cor0
----
-2434
-4075
-4321
onlyif mysql # DIV for integer division:
query I rowsort label-2892
SELECT - + col0 DIV col2 + - col2 AS col0 FROM tab2 AS cor0
----
-25
-41
-59
skipif mysql # not compatible
query I rowsort label-2892
SELECT - + col0 / col2 + - col2 AS col0 FROM tab2 AS cor0
----
-25
-41
-59
onlyif mysql # aggregate syntax:
query I rowsort label-2893
SELECT + + COUNT( ALL col0 ) + + - 30 FROM tab2 AS cor0
----
-27
skipif mysql # not compatible
query I rowsort label-2893
SELECT + + COUNT ( ALL col0 ) + + - 30 FROM tab2 AS cor0
----
-27
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2894
SELECT * FROM tab2 WHERE NOT + + ( + col2 ) * col0 * - CAST( - + col0 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-2894
SELECT * FROM tab2 WHERE NOT + + ( + col2 ) * col0 * - CAST ( - + col0 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT 77, 30 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT ALL + - 10 AS col0 FROM tab1 AS cor0
----
-10
-10
-10
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT 36 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2899
SELECT ALL - + COUNT( * ) * + MIN( ALL + 64 ) FROM tab1 AS cor0
----
-192
skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL - + COUNT ( * ) * + MIN ( ALL + 64 ) FROM tab1 AS cor0
----
-192
query I rowsort
SELECT col1 * - 89 AS col1 FROM tab0 WHERE NOT col2 NOT BETWEEN + - 66 AND col0
----
-1869
query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 ) NOT BETWEEN ( - col2 ) + - 21 * + col1 AND NULL
----
query II rowsort
SELECT ALL - 85 AS col1, col0 AS col2 FROM tab1
----
-85
51
-85
85
-85
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 col0 FROM tab0
----
-1
-441
-6561
query II rowsort
SELECT 26 AS col0, col2 AS col1 FROM tab1
----
26
59
26
68
26
96
query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - col1 ) + + 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query II rowsort label-2906
SELECT - ( + + 90 ) * COUNT( * ) AS col2, + 35 FROM tab1
----
-270
35
skipif mysql # not compatible
query II rowsort label-2906
SELECT - ( + + 90 ) * COUNT ( * ) AS col2, + 35 FROM tab1
----
-270
35
query I rowsort
SELECT ALL 28 * + 8 AS col2 FROM tab1
----
224
224
224
query I rowsort
SELECT ALL - 24 AS col1 FROM tab0
----
-24
-24
-24
query I rowsort
SELECT + col1 FROM tab1 WHERE NOT + 8 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2910
SELECT - 29 * - COUNT( * ) FROM tab1
----
87
skipif mysql # not compatible
query I rowsort label-2910
SELECT - 29 * - COUNT ( * ) FROM tab1
----
87
query I rowsort
SELECT ALL - col2 + - col2 AS col1 FROM tab2 cor0
----
-116
-46
-80
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2912
SELECT - + CAST( NULL AS SIGNED ) + col0 * + CAST( - col0 AS SIGNED ) + + + col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2912
SELECT - + CAST ( NULL AS INTEGER ) + col0 * + CAST ( - col0 AS INTEGER ) + + + col1 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-2913
SELECT COUNT( DISTINCT col2 ) + - 17 AS col1, - 79 FROM tab1 AS cor0
----
-14
-79
skipif mysql # not compatible
query II rowsort label-2913
SELECT COUNT ( DISTINCT col2 ) + - 17 AS col1, - 79 FROM tab1 AS cor0
----
-14
-79
onlyif mysql # aggregate syntax:
query I rowsort label-2914
SELECT DISTINCT 1 + - ( + - MAX( DISTINCT - 31 ) ) FROM tab2
----
-30
skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT 1 + - ( + - MAX ( DISTINCT - 31 ) ) FROM tab2
----
-30
query I rowsort
SELECT ( + col2 ) FROM tab0 WHERE ( - col0 ) - + + col1 >= + - 23
----
onlyif mysql # aggregate syntax:
query I rowsort label-2916
SELECT DISTINCT + SUM( - - col2 ) + COUNT( * ) * - MAX( + ( + col2 ) ) FROM tab1
----
-65
skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + SUM ( - - col2 ) + COUNT ( * ) * - MAX ( + ( + col2 ) ) FROM tab1
----
-65
query I rowsort
SELECT ALL - + 79 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
query I rowsort
SELECT + - 62 AS col1 FROM tab2 WHERE NULL = 73 * 18 * + - col2 + + + 72
----
query I rowsort
SELECT DISTINCT - col1 + + ( - col1 ) FROM tab1 cor0
----
-10
-28
-94
query II rowsort
SELECT ALL - - ( - 20 ) AS col0, + 13 * 78 - - col0 * + 45 * col0 FROM tab2 AS cor0
----
-20
185334
-20
254139
-20
96234
query I rowsort
SELECT - col0 - - - col1 FROM tab1 AS cor0
----
-138
-65
-90
query I rowsort
SELECT col0 - - + col0 AS col2 FROM tab1 AS cor0
----
102
170
182
query II rowsort
SELECT ALL ( - 56 ) + + col0 AS col1, 44 + + col2 FROM tab2
----
-10
67
19
102
8
84
onlyif mysql # aggregate syntax:
query I rowsort label-2924
SELECT DISTINCT 34 + COUNT( * ) AS col2 FROM tab1
----
37
skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT 34 + COUNT ( * ) AS col2 FROM tab1
----
37
onlyif mysql # aggregate syntax:
query I rowsort label-2925
SELECT - COUNT( * ) + - 54 FROM tab1
----
-57
skipif mysql # not compatible
query I rowsort label-2925
SELECT - COUNT ( * ) + - 54 FROM tab1
----
-57
query I rowsort
SELECT 49 AS col1 FROM tab1 WHERE col2 IS NOT NULL
----
49
49
49
query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE + + ( col1 ) = - col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-2928
SELECT DISTINCT COUNT( * ) + + 42 AS col0 FROM tab0
----
45
skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT COUNT ( * ) + + 42 AS col0 FROM tab0
----
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + col1 * + col2 col1 FROM tab2
----
-1122
-3003
-3819
onlyif mysql # aggregate syntax:
query I rowsort label-2930
SELECT ALL - COUNT( col1 ) - - 75 AS col1 FROM tab1
----
72
skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL - COUNT ( col1 ) - - 75 AS col1 FROM tab1
----
72
onlyif mysql # aggregate syntax:
query I rowsort label-2931
SELECT - MAX( - col2 ) col0 FROM tab2 AS cor0
----
23
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2931
SELECT - MAX ( - col2 ) col0 FROM tab2 AS cor0
----
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, 9 + - + 36 + - + col1 + + - ( + 8 ) - + col1 col2 FROM tab1 AS cor0
----
51
-63
85
-45
91
-129
query I rowsort
SELECT ALL 8 * 10 FROM tab0 AS cor0
----
80
80
80
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2934
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( + 38 AS SIGNED ) < NULL
----
skipif mysql # not compatible
query III rowsort label-2934
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( + 38 AS INTEGER ) < NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT - - 52 IS NOT NULL
----
query II rowsort
SELECT ALL col2 AS col2, + col2 FROM tab2
----
23
23
40
40
58
58
query I rowsort
SELECT DISTINCT - ( + - col0 ) * col2 FROM tab2
----
1058
2560
4350
query I rowsort
SELECT + col0 * - col1 * + col1 * - col2 AS col0 FROM tab0 AS cor0
----
383670
4625505
9603
onlyif mysql # aggregate syntax:
query I rowsort label-2939
SELECT ( + COUNT( * ) ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-2939
SELECT ( + COUNT ( * ) ) FROM tab0 AS cor0
----
3
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL <= NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-2941
SELECT ALL - - col1 DIV col1 + + + col0 FROM tab0 AS cor0
----
16
88
98
skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL - - col1 / col1 + + + col0 FROM tab0 AS cor0
----
16
88
98
onlyif mysql # aggregate syntax:
query I rowsort label-2942
SELECT DISTINCT - - ( + 64 ) * + - 11 + - COUNT( * ) FROM tab0 AS cor0
----
-707
skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT - - ( + 64 ) * + - 11 + - COUNT ( * ) FROM tab0 AS cor0
----
-707
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-2943
SELECT 70 AS col2, CAST( + 66 AS SIGNED ) * - + col2 + + col2 * - + 59 FROM tab2 AS cor0
----
70
-2875
70
-5000
70
-7250
skipif mysql # not compatible
query II rowsort label-2943
SELECT 70 AS col2, CAST ( + 66 AS INTEGER ) * - + col2 + + col2 * - + 59 FROM tab2 AS cor0
----
70
-2875
70
-5000
70
-7250
onlyif mysql # aggregate syntax:
query I rowsort label-2944
SELECT DISTINCT COUNT( + + 44 ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT COUNT ( + + 44 ) FROM tab2
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2945
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE - 86 IS NOT NULL
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE - 86 IS NOT NULL
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-2946
SELECT - COUNT( * ) / + AVG ( DISTINCT ( col2 ) ) AS col1, COUNT( * ) AS col1 FROM tab0 WHERE NOT - + col1 IS NOT NULL
----
NULL
0
skipif mysql # not compatible
query II rowsort label-2946
SELECT - COUNT ( * ) / + AVG ( DISTINCT ( col2 ) ) AS col1, COUNT ( * ) AS col1 FROM tab0 WHERE NOT - + col1 IS NOT NULL
----
NULL
0
onlyif mysql # aggregate syntax:
query I rowsort label-2947
SELECT ALL SUM( DISTINCT 31 ) FROM tab2, tab1 cor0
----
31
skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL SUM ( DISTINCT 31 ) FROM tab2, tab1 cor0
----
31
query II rowsort
SELECT + col2 * + col2 AS col1, 90 AS col1 FROM tab2 AS cor0
----
1600
90
3364
90
529
90
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2949
SELECT 32 DIV MIN( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2949
SELECT 32 / MIN ( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-2950
SELECT + - 37 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-111
skipif mysql # not compatible
query I rowsort label-2950
SELECT + - 37 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-111
query I rowsort
SELECT - - col2 * - 97 FROM tab0 AS cor0
----
-4559
-9603
-970
query I rowsort
SELECT ALL + + 19 AS col0 FROM tab1 AS cor0
----
19
19
19
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2953
SELECT ALL + COUNT( * ) + - CAST( ( CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL + COUNT ( * ) + - CAST ( ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 29 ) + + 2 col2 FROM tab2
----
31
31
31
query I rowsort
SELECT col0 + - + 35 AS col1 FROM tab2
----
11
29
40
query I rowsort
SELECT DISTINCT - col0 + + 40 FROM tab1
----
-11
-45
-51
onlyif mysql # aggregate syntax:
query I rowsort label-2957
SELECT ALL + MAX( + 25 ) FROM tab0
----
25
skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL + MAX ( + 25 ) FROM tab0
----
25
query I rowsort
SELECT DISTINCT + 24 * 64 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1536
query I rowsort
SELECT + 12 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972
onlyif mysql # aggregate syntax:
query I rowsort label-2960
SELECT MAX( - col2 ) + - + COUNT( * ) AS col1 FROM tab0
----
-13
skipif mysql # not compatible
query I rowsort label-2960
SELECT MAX ( - col2 ) + - + COUNT ( * ) AS col1 FROM tab0
----
-13
query I rowsort
SELECT 91 + + col0 AS col1 FROM tab1 AS cor0
----
142
176
182
query I rowsort
SELECT ALL col1 + + - col2 AS col2 FROM tab2 AS cor0
----
28
37
9
query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----
query II rowsort
SELECT 70, 16 + - - ( ( 61 ) ) AS col0 FROM tab2 cor0
----
70
77
70
77
70
77
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-2965
SELECT * FROM tab1 AS cor0 WHERE 35 / - - col0 * - - ( - 97 ) NOT IN ( CAST( NULL AS DECIMAL ), - col0 )
----
skipif mysql # not compatible
query III rowsort label-2965
SELECT * FROM tab1 AS cor0 WHERE 35 / - - col0 * - - ( - 97 ) NOT IN ( CAST ( NULL AS REAL ), - col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-2966
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 cor0
----
3
skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 cor0
----
3
onlyif mysql # DIV for integer division:
query II rowsort label-2967
SELECT + 27 + + + col1 DIV col1, col1 FROM tab2 WHERE NULL IS NULL
----
28
51
28
67
28
77
skipif mysql # not compatible
query II rowsort label-2967
SELECT + 27 + + + col1 / col1, col1 FROM tab2 WHERE NULL IS NULL
----
28
51
28
67
28
77
onlyif mysql # aggregate syntax:
query I rowsort label-2968
SELECT ALL - MIN( ALL - + ( + + ( - ( col2 ) ) ) ) + - 12 FROM tab2
----
-35
skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL - MIN ( ALL - + ( + + ( - ( col2 ) ) ) ) + - 12 FROM tab2
----
-35
query I rowsort
SELECT col2 - - 37 + 74 AS col0 FROM tab1
----
170
179
207
onlyif mysql # aggregate syntax:
query I rowsort label-2970
SELECT + COUNT( col2 ) col2 FROM tab0 AS cor0 WHERE NOT 17 < NULL
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2970
SELECT + COUNT ( col2 ) col2 FROM tab0 AS cor0 WHERE NOT 17 < NULL
----
0
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 <> - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-2972
SELECT ALL - + col0 / + - CAST( NULL AS SIGNED ) AS col1, col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99
skipif mysql # not compatible
query II rowsort label-2972
SELECT ALL - + col0 / + - CAST ( NULL AS INTEGER ) AS col1, col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2973
SELECT - 10 + - CAST( NULL AS SIGNED ) * COUNT( + 66 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-2973
SELECT - 10 + - CAST ( NULL AS INTEGER ) * COUNT ( + 66 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2974
SELECT MIN( DISTINCT + 74 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-2974
SELECT MIN ( DISTINCT + 74 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-2975
SELECT DISTINCT + 73 AS col0, COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
73
9
skipif mysql # not compatible
query II rowsort label-2975
SELECT DISTINCT + 73 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
73
9
query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE + col1 = NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2977
SELECT CAST( - col1 AS SIGNED ) * + col1 * col1 * - col1 FROM tab2 cor0
----
20151121
35153041
6765201
skipif mysql # not compatible
query I rowsort label-2977
SELECT CAST ( - col1 AS INTEGER ) * + col1 * col1 * - col1 FROM tab2 cor0
----
20151121
35153041
6765201
query II rowsort
SELECT - col0 * - - ( + - 75 ) + + col2, col2 * + 49 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT DISTINCT + col2 * - - col1 * + col1 FROM tab2 AS cor0
----
237160
260362
59823
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2980
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
3
skipif mysql # not compatible
query I rowsort label-2980
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
3
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-2981
SELECT ALL + + col2 DIV + + CAST( col0 AS SIGNED ) + + 83 AS col1 FROM tab1 AS cor0
----
83
83
84
skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL + + col2 / + + CAST ( col0 AS INTEGER ) + + 83 AS col1 FROM tab1 AS cor0
----
83
83
84
query I rowsort
SELECT ALL col1 + + col2 + - 62 AS col2 FROM tab0
----
-31
38
66
query II rowsort
SELECT + 85 AS col2, col1 AS col0 FROM tab2
----
85
51
85
67
85
77
onlyif mysql # aggregate syntax:
query I rowsort label-2984
SELECT MIN( - + col1 ) AS col2 FROM tab2
----
-77
skipif mysql # not compatible
query I rowsort label-2984
SELECT MIN ( - + col1 ) AS col2 FROM tab2
----
-77
query I rowsort
SELECT - ( + col1 ) + 16 AS col2 FROM tab0
----
-5
-65
15
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query II rowsort label-2987
SELECT DISTINCT + 65 DIV + col1 col1, col0 FROM tab1 cor0
----
1
91
13
85
4
51
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2987
SELECT DISTINCT + 65 / + col1 col1, col0 FROM tab1 cor0
----
1
91
13
85
4
51
query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT ( NOT + col2 IS NULL )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / - - col2 <> + col0 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-2990
SELECT - COUNT( * ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2990
SELECT - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 98 col2 FROM tab0 AS cor0
----
-98
-98
-98
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2992
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + - CAST( NULL AS SIGNED ) ) * - col0 BETWEEN NULL AND - + col2
----
skipif mysql # not compatible
query III rowsort label-2992
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + - CAST ( NULL AS INTEGER ) ) * - col0 BETWEEN NULL AND - + col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-2993
SELECT 58 + - COUNT( * ) * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
67
skipif mysql # not compatible
query I rowsort label-2993
SELECT 58 + - COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
67
query I rowsort
SELECT + - 22 * + + col1 - col0 - col1 AS col2 FROM tab2 AS cor0
----
-1219
-1616
-1835
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2995
SELECT - - MIN( ALL - - col1 ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2995
SELECT - - MIN ( ALL - - col1 ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2996
SELECT - 97 * + COUNT( * ) + + - ( - + 96 ) AS col2 FROM tab1 AS cor0
----
-195
skipif mysql # not compatible
query I rowsort label-2996
SELECT - 97 * + COUNT ( * ) + + - ( - + 96 ) AS col2 FROM tab1 AS cor0
----
-195
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - ( + 64 ) col2 FROM tab2 AS cor0
----
-13
13
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 + + col0 + - ( - col1 ) col0 FROM tab2 AS cor0
----
118
119
74
query I rowsort
SELECT DISTINCT - 59 FROM tab1 WHERE NOT NULL IN ( + + col1, + col1 - - col0 - + col2, + 92 )
----
query I rowsort
SELECT col1 * - col0 + - + col1 FROM tab0
----
-1296
-1848
-98
onlyif mysql # aggregate syntax:
query I rowsort label-3001
SELECT ALL + SUM( ALL + col0 ) col2 FROM tab2
----
185
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3001
SELECT ALL + SUM ( ALL + col0 ) col2 FROM tab2
----
185
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = - 22 * 1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col1 ) * - col2, col0 col2 FROM tab0
----
210
87
3807
15
99
97
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-3004
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * 38 + - col2 AS col1, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97
skipif mysql # not compatible
query II rowsort label-3004
SELECT DISTINCT - - CAST ( NULL AS REAL ) * 38 + - col2 AS col1, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97
query I rowsort
SELECT ALL ( - 15 ) + - 9 FROM tab0
----
-24
-24
-24
query I rowsort
SELECT + 89 AS col2 FROM tab1
----
89
89
89
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN ( ( ( 22 ) ) ) AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 21 ) col0 FROM tab0
----
-21
query III rowsort
SELECT * FROM tab0 WHERE + 31 - col2 IS NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT 37 / 37 IS NOT NULL
----
query I rowsort
SELECT DISTINCT ( - 31 ) AS col2 FROM tab2
----
-31
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-3012
SELECT ALL + 5 FROM tab1 WHERE NOT col1 + CAST( - col0 AS DECIMAL ) <> NULL
----
skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL + 5 FROM tab1 WHERE NOT col1 + CAST ( - col0 AS REAL ) <> NULL
----
query III rowsort
SELECT * FROM tab2 WHERE 12 <> ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-3014
SELECT + SUM( col1 ) FROM tab0 WHERE NOT ( - col1 / - col0 ) = col0 + - col2
----
103
skipif mysql # not compatible
query I rowsort label-3014
SELECT + SUM ( col1 ) FROM tab0 WHERE NOT ( - col1 / - col0 ) = col0 + - col2
----
103
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3015
SELECT + col1 AS col2 FROM tab1 WHERE 14 <> col1 * ( - ( - CAST( col0 AS SIGNED ) ) )
----
14
47
5
skipif mysql # not compatible
query I rowsort label-3015
SELECT + col1 AS col2 FROM tab1 WHERE 14 <> col1 * ( - ( - CAST ( col0 AS INTEGER ) ) )
----
14
47
5
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3016
SELECT 34 + COUNT( * ) FROM tab1 WHERE NOT ( col0 * 1 ) <= ( + CAST( NULL AS SIGNED ) - - 80 )
----
34
skipif mysql # not compatible
query I rowsort label-3016
SELECT 34 + COUNT ( * ) FROM tab1 WHERE NOT ( col0 * 1 ) <= ( + CAST ( NULL AS INTEGER ) - - 80 )
----
34
query I rowsort
SELECT + 36 + - col0 AS col2 FROM tab1
----
-15
-49
-55
query I rowsort
SELECT ALL 1 AS col2 FROM tab2
----
1
1
1
query III rowsort
SELECT ALL * FROM tab0 WHERE 84 NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT - 92 + 42 AS col0 FROM tab2
----
-50
-50
-50
onlyif mysql # aggregate syntax:
query I rowsort label-3021
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NULL BETWEEN col2 AND col1 - 67
----
0
skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NULL BETWEEN col2 AND col1 - 67
----
0
query I rowsort
SELECT - ( col0 ) * 36 AS col0 FROM tab2
----
-1656
-2304
-2700
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3023
SELECT + 26 * CAST( 62 AS SIGNED ) AS col0 FROM tab1
----
1612
1612
1612
skipif mysql # not compatible
query I rowsort label-3023
SELECT + 26 * CAST ( 62 AS INTEGER ) AS col0 FROM tab1
----
1612
1612
1612
query I rowsort
SELECT + ( - col0 ) * - col1 AS col0 FROM tab2
----
2346
4928
5025
query I rowsort
SELECT col0 * + col1 FROM tab0 WHERE NOT + col0 BETWEEN 94 AND NULL
----
1215
1827
query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 + + 57 >= NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3027
SELECT col0 + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3027
SELECT col0 + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3028
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-3028
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-3029
SELECT DISTINCT MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
77
skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
77
query I rowsort
SELECT ALL - 85 AS col0 FROM tab2 AS cor0
----
-85
-85
-85
onlyif mysql # aggregate syntax:
query I rowsort label-3031
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( - 43 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-3033
SELECT MAX( - col2 ) + 50 FROM tab1
----
-9
skipif mysql # not compatible
query I rowsort label-3033
SELECT MAX ( - col2 ) + 50 FROM tab1
----
-9
onlyif mysql # aggregate syntax:
query I rowsort label-3034
SELECT DISTINCT ( COUNT( * ) ) + - 74 AS col0 FROM tab0
----
-71
skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT ( COUNT ( * ) ) + - 74 AS col0 FROM tab0
----
-71
query I rowsort
SELECT 41 + - ( - ( - 89 ) ) * - col1 FROM tab1
----
1287
4224
486
query I rowsort
SELECT - col1 * - col1 + col1 FROM tab2
----
2652
4556
6006
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 + + col1 col0 FROM tab2
----
140
156
166
query I rowsort
SELECT 76 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3039
SELECT DISTINCT + MIN( ALL + col1 ) - + 59 FROM tab1 AS cor0
----
-54
skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT + MIN ( ALL + col1 ) - + 59 FROM tab1 AS cor0
----
-54
query I rowsort
SELECT DISTINCT 39 - 19 AS col0 FROM tab0 AS cor0
----
20
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-3041
SELECT + + SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3041
SELECT + + SUM ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE ( + 25 * + col0 ) NOT BETWEEN 54 * + 43 + - 67 AND col0 / col0 - col1
----
10
47
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 col1 FROM tab1 cor0
----
33
33
33
query I rowsort
SELECT ALL - col2 * - ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1173
3080
3886
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-3047
SELECT DISTINCT - - MAX( ALL col0 ) AS col2 FROM tab2 cor0
----
75
skipif mysql # not compatible
query I rowsort label-3047
SELECT DISTINCT - - MAX ( ALL col0 ) AS col2 FROM tab2 cor0
----
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 AS cor0 WHERE NOT + col1 - col1 < + col2 * col1
----
query I rowsort
SELECT + 63 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - ( col2 ) AND - col2
----
query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 29 + + col1 ) < + 11 * + col1
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3051
SELECT ALL col2 FROM tab1 WHERE NOT NULL IN ( + CAST( col0 AS SIGNED ) )
----
skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL col2 FROM tab1 WHERE NOT NULL IN ( + CAST ( col0 AS INTEGER ) )
----
onlyif mysql # aggregate syntax:
query I rowsort label-3052
SELECT - 10 * - SUM( ALL col2 ) * ( + 14 + - 92 ) FROM tab2
----
-94380
skipif mysql # not compatible
query I rowsort label-3052
SELECT - 10 * - SUM ( ALL col2 ) * ( + 14 + - 92 ) FROM tab2
----
-94380
query III rowsort
SELECT * FROM tab2 WHERE NOT 59 * col1 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3054
SELECT DISTINCT CAST( - - col2 AS SIGNED ) FROM tab1
----
59
68
96
skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) FROM tab1
----
59
68
96
query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NOT ( - ( col1 ) / + ( col1 ) ) NOT IN ( + col2 * + 55 ) OR + 40 IS NOT NULL
----
23
40
58
query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 * + col0 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3057
SELECT ALL - MAX( ALL 83 ) FROM tab2 AS cor0
----
-83
skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL - MAX ( ALL 83 ) FROM tab2 AS cor0
----
-83
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-3058
SELECT DISTINCT CAST( - col2 AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE col0 * + 15 BETWEEN NULL AND ( NULL )
----
skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT CAST ( - col2 AS REAL ) AS col2 FROM tab2 AS cor0 WHERE col0 * + 15 BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT DISTINCT - ( - 62 ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
62
query I rowsort
SELECT + ( + + 38 ) * + + col2 AS col2 FROM tab0
----
1786
3762
380
onlyif mysql # DIV for integer division:
query I rowsort label-3061
SELECT - - 66 DIV - ( 86 ) - - 52 * + 26 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83db751d2ecf26e3c328a824fdf73985
skipif mysql # not compatible
query I rowsort label-3061
SELECT - - 66 / - ( 86 ) - - 52 * + 26 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83db751d2ecf26e3c328a824fdf73985
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3062
SELECT * FROM tab2 WHERE NOT + + col1 + + 52 > + col1 * + col2 + 75 * - CAST( + col2 AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-3062
SELECT * FROM tab2 WHERE NOT + + col1 + + 52 > + col1 * + col2 + 75 * - CAST ( + col2 AS INTEGER )
----
onlyif mysql # aggregate syntax:
query I rowsort label-3063
SELECT - COUNT( * ) * + - COUNT( * ) AS col0 FROM tab1
----
9
skipif mysql # not compatible
query I rowsort label-3063
SELECT - COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab1
----
9
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3064
SELECT col2 - CAST( NULL AS SIGNED ) col1 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3064
SELECT col2 - CAST ( NULL AS INTEGER ) col1 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-3065
SELECT DISTINCT COUNT( 83 ) FROM tab2 WHERE NOT ( NOT col2 IN ( col1 ) )
----
0
skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT COUNT ( 83 ) FROM tab2 WHERE NOT ( NOT col2 IN ( col1 ) )
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-3066
SELECT MIN( DISTINCT - 53 ) FROM tab2
----
-53
skipif mysql # not compatible
query I rowsort label-3066
SELECT MIN ( DISTINCT - 53 ) FROM tab2
----
-53
query II rowsort
SELECT DISTINCT 97 AS col0, col0 FROM tab1
----
97
51
97
85
97
91
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 9 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT col2 * - col1 * + col1 AS col1 FROM tab2 cor0 WHERE NULL = NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3071
SELECT + - MAX( DISTINCT 44 ) AS col2 FROM tab2 AS cor0
----
-44
skipif mysql # not compatible
query I rowsort label-3071
SELECT + - MAX ( DISTINCT 44 ) AS col2 FROM tab2 AS cor0
----
-44
query I rowsort
SELECT DISTINCT - ( - - col0 ) + + 53 AS col0 FROM tab0 AS cor0
----
-34
-44
38
query I rowsort
SELECT + col1 + - 21 + + col2 FROM tab2
----
104
53
96
query I rowsort
SELECT ALL + col2 + - + col0 AS col0 FROM tab1
----
-23
-26
45
onlyif mysql # DIV for integer division:
query II rowsort label-3075
SELECT col2 + + 74 AS col1, col0 DIV - col0 + - col2 FROM tab2
----
114
-41
132
-59
97
-24
skipif mysql # not compatible
query II rowsort label-3075
SELECT col2 + + 74 AS col1, col0 / - col0 + - col2 FROM tab2
----
114
-41
132
-59
97
-24
query I rowsort
SELECT ALL + col1 + - 9 AS col2 FROM tab0
----
-8
12
72
query I rowsort
SELECT DISTINCT + ( - + 96 ) + + col1 + + - col2 * - col0 AS col2 FROM tab0
----
690
795
9508
onlyif mysql # DIV for integer division:
query I rowsort label-3078
SELECT DISTINCT + 42 + 29 DIV - col1 + col1 - col1 FROM tab2
----
42
skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT + 42 + 29 / - col1 + col1 - col1 FROM tab2
----
42
query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE ( - + 59 * - col0 * + 61 + col2 ) IS NOT NULL
----
1
21
81
query I rowsort
SELECT col1 + - 41 + + 12 AS col2 FROM tab0
----
-28
-8
52
onlyif mysql # DIV for integer division:
query I rowsort label-3081
SELECT DISTINCT + - col2 + + + 35 - 83 + + - col0 + - 32 DIV col2 AS col0 FROM tab1 cor0
----
-192
-195
-207
skipif mysql # not compatible
query I rowsort label-3081
SELECT DISTINCT + - col2 + + + 35 - 83 + + - col0 + - 32 / col2 AS col0 FROM tab1 cor0
----
-192
-195
-207
query I rowsort
SELECT ALL + 6 - - col1 * - 72 * + - 98 * 28 FROM tab1 AS cor0
----
2765958
9285702
987846
query I rowsort
SELECT ALL - 37 * - - 62 + col2 + - col1 AS col0 FROM tab1 AS cor0
----
-2212
-2240
-2273
onlyif mysql # aggregate syntax:
query I rowsort label-3084
SELECT - MIN( + + col2 ) col2 FROM tab0 AS cor0
----
-10
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3084
SELECT - MIN ( + + col2 ) col2 FROM tab0 AS cor0
----
-10
query I rowsort
SELECT ALL - 68 * - col1 FROM tab1 AS cor0
----
3196
340
952
query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + col1 IS NULL
----
query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) IN ( 97 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 8 col1 FROM tab1 AS cor0
----
8
8
8
query II rowsort
SELECT DISTINCT - col2, col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14
onlyif mysql # aggregate syntax:
query I rowsort label-3090
SELECT DISTINCT + - COUNT( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-3090
SELECT DISTINCT + - COUNT ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-3
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > ( - 53 - 2 )
----
query I rowsort
SELECT DISTINCT - col0 * - ( + col0 ) FROM tab2 AS cor0
----
2116
4096
5625
onlyif mysql # DIV for integer division:
query I rowsort label-3093
SELECT ALL + + 52 DIV col1 + + + col0 + - - ( ( 41 ) ) AS col0 FROM tab1 AS cor0
----
133
136
95
skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL + + 52 / col1 + + + col0 + - - ( ( 41 ) ) AS col0 FROM tab1 AS cor0
----
133
136
95
onlyif mysql # aggregate syntax:
query I rowsort label-3094
SELECT COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN + col2 AND - col1
----
6
skipif mysql # not compatible
query I rowsort label-3094
SELECT COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN + col2 AND - col1
----
6
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 IN ( col1 / col2 / - 12 + + 68 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT 40 * 35 AS col1 FROM tab1
----
1400
1400
1400
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL IN ( + ( 37 ) ) )
----
onlyif mysql # DIV for integer division:
query I rowsort label-3098
SELECT DISTINCT col1 DIV col2 * - col1 col2 FROM tab0
----
-42
-81
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3098
SELECT DISTINCT col1 / col2 * - col1 col2 FROM tab0
----
-42
-81
0
query I rowsort
SELECT 48 * - col2 FROM tab0
----
-2256
-4752
-480
query II rowsort
SELECT ALL + col2, col0 AS col0 FROM tab1 AS cor0
----
59
85
68
91
96
51
query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IS NULL OR NOT 91 BETWEEN col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL col0 * 73 FROM tab0 AS cor0 WHERE 6 BETWEEN + col1 AND + col0 - - col1 * - 66
----
7081
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3103
SELECT ALL ( + CAST( col0 AS SIGNED ) ) AS col1 FROM tab1
----
51
85
91
skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL ( + CAST ( col0 AS INTEGER ) ) AS col1 FROM tab1
----
51
85
91
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3104
SELECT DISTINCT col0 + - ( - CAST( - col0 AS SIGNED ) ) FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT col0 + - ( - CAST ( - col0 AS INTEGER ) ) FROM tab1
----
0
query I rowsort
SELECT ALL + 36 + 14 - + 77 FROM tab2 WHERE ( NULL ) IN ( + 94 + col2 * - - col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-3106
SELECT + COUNT( * ) * + 84 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-3106
SELECT + COUNT ( * ) * + 84 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0
query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE 44 IS NOT NULL
----
15
87
97
onlyif mysql # aggregate syntax:
query I rowsort label-3108
SELECT ALL + SUM( - 52 ) AS col0 FROM tab1 AS cor0
----
-156
skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL + SUM ( - 52 ) AS col0 FROM tab1 AS cor0
----
-156
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > 36
----
query I rowsort
SELECT DISTINCT 3 + + col0 FROM tab1 AS cor0 WHERE 79 / ( 48 ) IS NOT NULL
----
54
88
94
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3111
SELECT DISTINCT + CAST( + CAST( - col2 AS SIGNED ) AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NOT ( - ( 9 ) < - ( 64 ) + col1 )
----
-59
-68
-96
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3111
SELECT DISTINCT + CAST ( + CAST ( - col2 AS INTEGER ) AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NOT ( - ( 9 ) < - ( 64 ) + col1 )
----
-59
-68
-96
query I rowsort
SELECT - col2 + - + col2 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-203
-227
-243
onlyif mysql # aggregate syntax:
query I rowsort label-3113
SELECT DISTINCT COUNT( * ) + MIN( ALL - + col2 ) FROM tab1 AS cor0
----
-93
skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT COUNT ( * ) + MIN ( ALL - + col2 ) FROM tab1 AS cor0
----
-93
query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT - col1 <= 67 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-3115
SELECT ALL + COUNT( DISTINCT 65 ) AS col0 FROM tab2 WHERE ( 44 - - 23 + + 94 / + col1 ) IN ( - col1 )
----
0
skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL + COUNT ( DISTINCT 65 ) AS col0 FROM tab2 WHERE ( 44 - - 23 + + 94 / + col1 ) IN ( - col1 )
----
0
query III rowsort
SELECT * FROM tab2 WHERE - 22 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-3117
SELECT + SUM( - + col1 ) AS col1 FROM tab2
----
-195
skipif mysql # not compatible
query I rowsort label-3117
SELECT + SUM ( - + col1 ) AS col1 FROM tab2
----
-195
onlyif mysql # aggregate syntax:
query I rowsort label-3118
SELECT ALL COUNT( * ) + - 65 AS col2 FROM tab1 WHERE + col1 NOT BETWEEN 77 AND ( - col1 )
----
-62
skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL COUNT ( * ) + - 65 AS col2 FROM tab1 WHERE + col1 NOT BETWEEN 77 AND ( - col1 )
----
-62
query I rowsort
SELECT DISTINCT - 36 AS col2 FROM tab0
----
-36
onlyif mysql # aggregate syntax:
query I rowsort label-3120
SELECT + MAX( - col2 ) FROM tab0
----
-10
skipif mysql # not compatible
query I rowsort label-3120
SELECT + MAX ( - col2 ) FROM tab0
----
-10
onlyif mysql # aggregate syntax:
query I rowsort label-3121
SELECT + COUNT( - col1 ) - - 96 FROM tab2 AS cor0
----
99
skipif mysql # not compatible
query I rowsort label-3121
SELECT + COUNT ( - col1 ) - - 96 FROM tab2 AS cor0
----
99
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND ( NULL ) IS NOT NULL
----
query I rowsort
SELECT DISTINCT - col2 * 26 AS col0 FROM tab2 AS cor0
----
-1040
-1508
-598
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL 97 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT ALL + + 67 AS col0 FROM tab1 AS cor0
----
67
67
67
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 >= + - 67 * 49
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query II rowsort label-3128
SELECT ALL + + 11 DIV - col2 + col2 DIV + col2 AS col0, + col0 + + col1 AS col0 FROM tab2 AS cor0
----
1
141
1
142
1
97
skipif mysql # not compatible
query II rowsort label-3128
SELECT ALL + + 11 / - col2 + col2 / + col2 AS col0, + col0 + + col1 AS col0 FROM tab2 AS cor0
----
1
141
1
142
1
97
query I rowsort
SELECT + col0 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 + + col2 NOT BETWEEN + 57 * + 87 AND NULL
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0, col1 * 34 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-3131
SELECT DISTINCT - + SUM( ALL + col1 ) FROM tab1 AS cor0 WHERE col0 / + col0 + - - 42 <> - + col2 + - 44
----
-66
skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT - + SUM ( ALL + col1 ) FROM tab1 AS cor0 WHERE col0 / + col0 + - - 42 <> - + col2 + - 44
----
-66
onlyif mysql # aggregate syntax:
query I rowsort label-3132
SELECT DISTINCT COUNT( * ) * 2 FROM tab1 AS cor0
----
6
skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT COUNT ( * ) * 2 FROM tab1 AS cor0
----
6
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3133
SELECT ALL - - MIN( ALL + col2 ) FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN col2 AND NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL - - MIN ( ALL + col2 ) FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN col2 AND NULL
----
NULL
query I rowsort
SELECT + 71 * + 20 AS col2 FROM tab2 AS cor0
----
1420
1420
1420
query I rowsort
SELECT ( col0 ) * + ( col2 ) FROM tab0
----
705
870
9603
query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( - col2 ) + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3138
SELECT ALL MIN( ALL + - col1 ) FROM tab1
----
-47
skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL MIN ( ALL + - col1 ) FROM tab1
----
-47
onlyif mysql # aggregate syntax:
query I rowsort label-3139
SELECT DISTINCT + COUNT( + col1 ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT + COUNT ( + col1 ) FROM tab0
----
3
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 <> + col1 * - 0
----
onlyif mysql # aggregate syntax:
query I rowsort label-3142
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 cor0
----
3
skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 cor0
----
3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3143
SELECT ALL - - 80 + CAST( + - MIN( DISTINCT - col0 ) AS SIGNED ) FROM tab1 cor0
----
171
skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL - - 80 + CAST ( + - MIN ( DISTINCT - col0 ) AS INTEGER ) FROM tab1 cor0
----
171
onlyif mysql # DIV for integer division:
query II rowsort label-3144
SELECT DISTINCT + + col0 col2, - col2 - col2 DIV - col0 + + + ( - + col1 ) * + 84 AS col1 FROM tab2 AS cor0
----
46
-4307
64
-6508
75
-5686
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3144
SELECT DISTINCT + + col0 col2, - col2 - col2 / - col0 + + + ( - + col1 ) * + 84 AS col1 FROM tab2 AS cor0
----
46
-4307
64
-6508
75
-5686
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col1, + col1 + 39 col2, - + 80 - + + col1 FROM tab1 AS cor0
----
9 values hashing to 05e3ce5080916fa40fd3a893df0cbf23
query I rowsort
SELECT - + 81 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
query II rowsort
SELECT + col1 AS col0, - col1 FROM tab0
----
1
-1
21
-21
81
-81
query II rowsort
SELECT ALL - 52 AS col0, 59 * 9 FROM tab1
----
-52
531
-52
531
-52
531
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT col2 + + col2 AS col2 FROM tab2 AS cor0 WHERE + col0 IN ( + + col2, - 22, - + col2, col2 + + 45 )
----
query I rowsort
SELECT 87 - + 94 AS col2 FROM tab2 AS cor0
----
-7
-7
-7
query II rowsort
SELECT ALL col0, - col2 * - col1 * col0 AS col2 FROM tab0 AS cor0
----
15
57105
87
18270
97
9603
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 + col2 col1 FROM tab1 AS cor0
----
30
39
67
onlyif mysql # aggregate syntax:
query I rowsort label-3154
SELECT ALL + + MIN( - 88 ) col2 FROM tab2 cor0
----
-88
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3154
SELECT ALL + + MIN ( - 88 ) col2 FROM tab2 cor0
----
-88
query I rowsort
SELECT + col2 + col0 - - - 65 FROM tab0 AS cor0
----
-3
131
32
onlyif mysql # aggregate syntax:
query I rowsort label-3156
SELECT 3 * + 44 + - - MAX( DISTINCT + + col2 ) * + SUM( + col0 ) AS col0 FROM tab1 AS cor0
----
21924
skipif mysql # not compatible
query I rowsort label-3156
SELECT 3 * + 44 + - - MAX ( DISTINCT + + col2 ) * + SUM ( + col0 ) AS col0 FROM tab1 AS cor0
----
21924
query I rowsort
SELECT DISTINCT + col0 + - 49 FROM tab1 AS cor0
----
2
36
42
query II rowsort
SELECT DISTINCT 88 + - col1 AS col1, ( col2 ) FROM tab0
----
67
10
7
47
87
99
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3159
SELECT DISTINCT * FROM tab0 WHERE ( - CAST( col2 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-3159
SELECT DISTINCT * FROM tab0 WHERE ( - CAST ( col2 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-3160
SELECT DISTINCT - COUNT( * ) + + ( - ( - 22 ) ) FROM tab0
----
19
skipif mysql # not compatible
query I rowsort label-3160
SELECT DISTINCT - COUNT ( * ) + + ( - ( - 22 ) ) FROM tab0
----
19
query III rowsort
SELECT * FROM tab0 WHERE col0 <> 19 * - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 BETWEEN NULL AND - col2
----
query I rowsort
SELECT ALL 17 - - col1 FROM tab0 AS cor0
----
18
38
98
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3164
SELECT + col1 * - CAST( - - 26 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
-1280
-1667
-1938
skipif mysql # not compatible
query I rowsort label-3164
SELECT + col1 * - CAST ( - - 26 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
-1280
-1667
-1938
query I rowsort
SELECT ALL - 2 + + 36 AS col2 FROM tab0 AS cor0
----
34
34
34
query I rowsort
SELECT ALL 70 - - + col0 + + col0 AS col0 FROM tab2 AS cor0
----
162
198
220
query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE - 84 - + 5 * col2 IN ( col2, - col1 * - col2 * - col1 * col2 * + col0 )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3168
SELECT + - CAST( NULL AS SIGNED ) * + - 95 - + MIN( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3168
SELECT + - CAST ( NULL AS INTEGER ) * + - 95 - + MIN ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
NULL
query II rowsort
SELECT - col2 AS col1, - 43 FROM tab0
----
-10
-43
-47
-43
-99
-43
query I rowsort
SELECT - 63 AS col2 FROM tab1 cor0
----
-63
-63
-63
onlyif mysql # aggregate syntax:
query I rowsort label-3171
SELECT ALL + MIN( - col0 ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - - col1 )
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3171
SELECT ALL + MIN ( - col0 ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - - col1 )
----
NULL
query II rowsort
SELECT DISTINCT + col2, + col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58
onlyif mysql # aggregate syntax:
query II rowsort label-3173
SELECT - 84 AS col1, COUNT( * ) col0 FROM tab0 AS cor0
----
-84
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3173
SELECT - 84 AS col1, COUNT ( * ) col0 FROM tab0 AS cor0
----
-84
3
query I rowsort
SELECT DISTINCT col1 * + col1 - - - col2 FROM tab2 AS cor0
----
2578
4431
5889
onlyif mysql # aggregate syntax:
query I rowsort label-3175
SELECT ALL - ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL - ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3
query I rowsort
SELECT + 7 * + col2 AS col0 FROM tab2
----
161
280
406
query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 21 * + - col0 + 74 - 83 ) = col2 * - - 44 * + 76
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 * - col0 * + + col2 col1 FROM tab1
----
-63648
-65195
-80444
query I rowsort
SELECT DISTINCT + col2 * + col2 * col2 AS col2 FROM tab0
----
1000
103823
970299
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 61 IS NOT NULL
----
query I rowsort
SELECT DISTINCT - ( - 47 ) FROM tab0 AS cor0
----
47
query I rowsort
SELECT col1 + col1 + + 59 FROM tab1
----
153
69
87
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-3183
SELECT ALL - CAST( NULL AS DECIMAL ) / + col1 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL - CAST ( NULL AS REAL ) / + col1 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - - col1 ) + - col0 col2 FROM tab1 AS cor0
----
-37
-44
-80
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3185
SELECT col1 + + 61 + col1 - + - CAST( NULL AS SIGNED ) / - col1 * - - ( - 68 ) * + col2 * - + col2 * 88 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3185
SELECT col1 + + 61 + col1 - + - CAST ( NULL AS INTEGER ) / - col1 * - - ( - 68 ) * + col2 * - + col2 * 88 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3186
SELECT - + COUNT( * ) + - 48 FROM tab1 AS cor0
----
-51
skipif mysql # not compatible
query I rowsort label-3186
SELECT - + COUNT ( * ) + - 48 FROM tab1 AS cor0
----
-51
onlyif mysql # aggregate syntax:
query I rowsort label-3187
SELECT MIN( ALL col2 ) * - MIN( + col0 ) AS col0 FROM tab2 AS cor0
----
-1058
skipif mysql # not compatible
query I rowsort label-3187
SELECT MIN ( ALL col2 ) * - MIN ( + col0 ) AS col0 FROM tab2 AS cor0
----
-1058
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-3188
SELECT - ( MIN( + + col0 ) ) FROM tab2 cor0 WHERE ( col0 ) * 86 * - CAST( - col1 AS DECIMAL ) - 65 + - col1 IS NOT NULL
----
-46
skipif mysql # not compatible
query I rowsort label-3188
SELECT - ( MIN ( + + col0 ) ) FROM tab2 cor0 WHERE ( col0 ) * 86 * - CAST ( - col1 AS REAL ) - 65 + - col1 IS NOT NULL
----
-46
onlyif mysql # aggregate syntax:
query I rowsort label-3189
SELECT + + COUNT( DISTINCT - - col0 ) FROM tab1 cor0
----
3
skipif mysql # not compatible
query I rowsort label-3189
SELECT + + COUNT ( DISTINCT - - col0 ) FROM tab1 cor0
----
3
query I rowsort
SELECT DISTINCT 1 * + col2 + - + col1 FROM tab2
----
-28
-37
-9
onlyif mysql # aggregate syntax:
query I rowsort label-3191
SELECT DISTINCT - COUNT( DISTINCT col1 ) AS col2 FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-3191
SELECT DISTINCT - COUNT ( DISTINCT col1 ) AS col2 FROM tab2
----
-3
query I rowsort
SELECT ALL + 74 + + + col2 FROM tab1
----
133
142
170
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 88 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT 99 + + col2 AS col1 FROM tab1
----
158
167
195
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-3195
SELECT ALL col2 * + + col0 + + CAST( - + col1 AS SIGNED ) AS col2, 60 FROM tab0
----
624
60
849
60
9602
60
skipif mysql # not compatible
query II rowsort label-3195
SELECT ALL col2 * + + col0 + + CAST ( - + col1 AS INTEGER ) AS col2, 60 FROM tab0
----
624
60
849
60
9602
60
query I rowsort
SELECT DISTINCT + 80 + col0 AS col2 FROM tab0
----
167
177
95
query I rowsort
SELECT ALL - 47 - - col0 AS col1 FROM tab2
----
-1
17
28
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3198
SELECT + COUNT( ALL - CAST( NULL AS SIGNED ) ) - 11 * + COUNT( ALL + - col1 ) FROM tab1
----
-33
skipif mysql # not compatible
query I rowsort label-3198
SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) - 11 * + COUNT ( ALL + - col1 ) FROM tab1
----
-33
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3199
SELECT - - col1 * - ( + col2 ) * + CAST( NULL AS SIGNED ) / + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3199
SELECT - - col1 * - ( + col2 ) * + CAST ( NULL AS INTEGER ) / + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3200
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-3202
SELECT + + col0 DIV - ( - 52 ) FROM tab1 cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3202
SELECT + + col0 / - ( - 52 ) FROM tab1 cor0
----
0
1
1
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3203
SELECT + + col2 * + col0 * + CAST( NULL AS SIGNED ) * + - col0 + 89 + col0 * col0 / col2 AS col1 FROM tab0 AS cor0 WHERE NOT - ( - 48 ) - - 9 IS NULL
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3203
SELECT + + col2 * + col0 * + CAST ( NULL AS INTEGER ) * + - col0 + 89 + col0 * col0 / col2 AS col1 FROM tab0 AS cor0 WHERE NOT - ( - 48 ) - - 9 IS NULL
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query II rowsort label-3204
SELECT col2 DIV col2, CAST( NULL AS SIGNED ) * - 50 * 80 col1 FROM tab0 AS cor0
----
1
NULL
1
NULL
1
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3204
SELECT col2 / col2, CAST ( NULL AS INTEGER ) * - 50 * 80 col1 FROM tab0 AS cor0
----
1
NULL
1
NULL
1
NULL
query I rowsort
SELECT DISTINCT 11 * 53 * + + col0 * - 94 AS col0 FROM tab2 AS cor0
----
-2520892
-3507328
-4110150
query I rowsort
SELECT ALL - 1 * - 61 + - 66 FROM tab1 AS cor0
----
-5
-5
-5
query I rowsort
SELECT ALL ( - + 4 ) AS col1 FROM tab0 AS cor0
----
-4
-4
-4
query II rowsort
SELECT DISTINCT - col1 AS col1, + col1 AS col0 FROM tab2
----
-51
51
-67
67
-77
77
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT + col0 * + col1 + col2 AS col0 FROM tab1 WHERE NOT NULL < NULL
----
query I rowsort
SELECT DISTINCT 90 + + + col1 FROM tab0
----
111
171
91
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query I rowsort label-3212
SELECT - CAST( NULL AS DECIMAL ) * + col1 / - ( - - col2 ) * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3212
SELECT - CAST ( NULL AS REAL ) * + col1 / - ( - - col2 ) * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-3213
SELECT col1 AS col1, - CAST( NULL AS SIGNED ) * - + col2 FROM tab1
----
14
NULL
47
NULL
5
NULL
skipif mysql # not compatible
query II rowsort label-3213
SELECT col1 AS col1, - CAST ( NULL AS INTEGER ) * - + col2 FROM tab1
----
14
NULL
47
NULL
5
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3214
SELECT DISTINCT COUNT( * ) * + 91 * - + ( 50 ) + + SUM( 22 ) AS col1 FROM tab0
----
-13584
skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT COUNT ( * ) * + 91 * - + ( 50 ) + + SUM ( 22 ) AS col1 FROM tab0
----
-13584
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + col2 * + + col1 + - col2 BETWEEN NULL AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-3216
SELECT - - MIN( + col2 ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + 30
----
NULL
skipif mysql # not compatible
query I rowsort label-3216
SELECT - - MIN ( + col2 ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + 30
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3217
SELECT + 71 + COUNT( * ) AS col1 FROM tab1
----
74
skipif mysql # not compatible
query I rowsort label-3217
SELECT + 71 + COUNT ( * ) AS col1 FROM tab1
----
74
onlyif mysql # DIV for integer division:
query I rowsort label-3218
SELECT DISTINCT ( + col1 ) DIV + ( col2 ) AS col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT ( + col1 ) / + ( col2 ) AS col2 FROM tab1
----
0
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 65 IS NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 17 - - ( + - col0 ) IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-3221
SELECT - 43 + col0 DIV col2 * + col2 AS col1 FROM tab0 AS cor0
----
-43
-43
37
skipif mysql # not compatible
query I rowsort label-3221
SELECT - 43 + col0 / col2 * + col2 AS col1 FROM tab0 AS cor0
----
-43
-43
37
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3223
SELECT - 23 * + COUNT( * ) AS col2 FROM tab0
----
-69
skipif mysql # not compatible
query I rowsort label-3223
SELECT - 23 * + COUNT ( * ) AS col2 FROM tab0
----
-69
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-3224
SELECT DISTINCT 10 + + COUNT( * ) DIV ( + 42 ), MAX( DISTINCT - col1 ) * - - 35 * 42 * + COUNT( * ) AS col2 FROM tab0
----
10
-4410
skipif mysql # not compatible
query II rowsort label-3224
SELECT DISTINCT 10 + + COUNT ( * ) / ( + 42 ), MAX ( DISTINCT - col1 ) * - - 35 * 42 * + COUNT ( * ) AS col2 FROM tab0
----
10
-4410
query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-3226
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + col0 AS col1, 85 FROM tab0
----
NULL
85
skipif mysql # not compatible
query II rowsort label-3226
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + col0 AS col1, 85 FROM tab0
----
NULL
85
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3227
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) * col0 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----
skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) * col0 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT + + 88 + + + col0 * col1 AS col1 FROM tab2 AS cor0
----
2434
5016
5113
onlyif mysql # aggregate syntax:
query I rowsort label-3229
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT 9 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-3229
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 9 IS NOT NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-3230
SELECT + + COUNT( * ) + - 79 + - COUNT( * ) FROM tab2 AS cor0
----
-79
skipif mysql # not compatible
query I rowsort label-3230
SELECT + + COUNT ( * ) + - 79 + - COUNT ( * ) FROM tab2 AS cor0
----
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 * col1 col1 FROM tab1
----
-2162
-230
-644
onlyif mysql # aggregate syntax:
query I rowsort label-3232
SELECT ALL + COUNT( * ) + 44 FROM tab2
----
47
skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL + COUNT ( * ) + 44 FROM tab2
----
47
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( + - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-3234
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( 31 ) NOT IN ( - 49, col1, + - col2 + + - 71 )
----
3
skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( 31 ) NOT IN ( - 49, col1, + - col2 + + - 71 )
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-3235
SELECT - SUM( - 11 ) + COUNT( * ) col1 FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3235
SELECT - SUM ( - 11 ) + COUNT ( * ) col1 FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL
query II rowsort
SELECT ALL - col0, col0 FROM tab2
----
-46
46
-64
64
-75
75
onlyif mysql # aggregate syntax:
query I rowsort label-3237
SELECT ALL + - ( ( COUNT( + 51 ) ) ) AS col1 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL + - ( ( COUNT ( + 51 ) ) ) AS col1 FROM tab0 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-3238
SELECT + MAX( DISTINCT - col2 ) FROM tab2 AS cor0
----
-23
skipif mysql # not compatible
query I rowsort label-3238
SELECT + MAX ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-23
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - + col2 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3240
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NULL = NULL
----
0
skipif mysql # not compatible
query I rowsort label-3240
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL = NULL
----
0
onlyif mysql # DIV for integer division:
query II rowsort label-3241
SELECT + col1 col1, - ( - col0 ) + - 5 DIV + - 46 * + 85 AS col1 FROM tab1 AS cor0
----
14
51
47
91
5
85
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3241
SELECT + col1 col1, - ( - col0 ) + - 5 / + - 46 * + 85 AS col1 FROM tab1 AS cor0
----
14
51
47
91
5
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col1, col2 col0 FROM tab2 AS cor0
----
23
23
40
40
58
58
onlyif mysql # DIV for integer division:
query I rowsort label-3243
SELECT - col1 * + - col1 * + 39 + col2 DIV - 43 FROM tab2 AS cor0
----
101439
175070
231231
skipif mysql # not compatible
query I rowsort label-3243
SELECT - col1 * + - col1 * + 39 + col2 / - 43 FROM tab2 AS cor0
----
101439
175070
231231
query I rowsort
SELECT col0 + + + 96 AS col2 FROM tab1 AS cor0
----
147
181
187
onlyif mysql # DIV for integer division:
query I rowsort label-3245
SELECT + col0 + - 85 DIV + + ( + col1 ) FROM tab1 AS cor0
----
45
68
90
skipif mysql # not compatible
query I rowsort label-3245
SELECT + col0 + - 85 / + + ( + col1 ) FROM tab1 AS cor0
----
45
68
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - ( - col2 ) col0 FROM tab2 AS cor0
----
-28
-37
-9
query I rowsort
SELECT ALL + - col0 + - - col2 + col2 FROM tab0 AS cor0
----
-67
101
79
query II rowsort
SELECT ( col1 ), 7 AS col1 FROM tab1
----
14
7
47
7
5
7
query II rowsort
SELECT + ( col0 ) * + + 61 AS col1, col2 FROM tab1 WHERE NOT + - col1 * - col0 < col2
----
3111
96
5185
59
5551
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 30 * 36, + 53 col0 FROM tab1
----
1080
53
query I rowsort
SELECT col0 * + 2 AS col0 FROM tab1
----
102
170
182
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 col2 FROM tab0
----
51
51
51
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3253
SELECT CAST( - - col0 AS SIGNED ) * - + col1 * - col2 AS col1 FROM tab2 AS cor0
----
197120
291450
53958
skipif mysql # not compatible
query I rowsort label-3253
SELECT CAST ( - - col0 AS INTEGER ) * - + col1 * - col2 AS col1 FROM tab2 AS cor0
----
197120
291450
53958
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + col1 col1, col1 + col0 * col0 AS col2 FROM tab2 cor0
----
102
2167
134
5692
154
4173
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > col0 / - col0
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 7 + col2 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + - 35 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-3258
SELECT + 10 * + col0 AS col2 FROM tab2 WHERE - + 28 NOT IN ( + 67, col2, col1, + + CAST( NULL AS DECIMAL ) * col2 * - col2 )
----
skipif mysql # not compatible
query I rowsort label-3258
SELECT + 10 * + col0 AS col2 FROM tab2 WHERE - + 28 NOT IN ( + 67, col2, col1, + + CAST ( NULL AS REAL ) * col2 * - col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-3259
SELECT DISTINCT MIN( DISTINCT + 94 ) - MAX( col2 ) AS col1 FROM tab0
----
-5
skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT MIN ( DISTINCT + 94 ) - MAX ( col2 ) AS col1 FROM tab0
----
-5
onlyif mysql # aggregate syntax:
query I rowsort label-3260
SELECT - MAX( ALL + 55 ) FROM tab0 AS cor0
----
-55
skipif mysql # not compatible
query I rowsort label-3260
SELECT - MAX ( ALL + 55 ) FROM tab0 AS cor0
----
-55
query I rowsort
SELECT - col1 * + - col1 FROM tab1 AS cor0
----
196
2209
25
query I rowsort
SELECT DISTINCT 95 * + col0 * col1 + + + col1 AS col0 FROM tab0 AS cor0
----
115506
173586
9216
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query II rowsort label-3263
SELECT + - CAST( + col2 AS SIGNED ) * col0 DIV col1 AS col1, - col1 FROM tab2 AS cor0
----
-20
-51
-33
-77
-64
-67
skipif mysql # not compatible
query II rowsort label-3263
SELECT + - CAST ( + col2 AS INTEGER ) * col0 / col1 AS col1, - col1 FROM tab2 AS cor0
----
-20
-51
-33
-77
-64
-67
query II rowsort
SELECT + 83 AS col0, - col1 * - 52 AS col2 FROM tab2 AS cor0
----
83
2652
83
3484
83
4004
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 <= - - col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-3266
SELECT ALL - MIN( DISTINCT ( + 44 ) ) FROM tab0 AS cor0
----
-44
skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL - MIN ( DISTINCT ( + 44 ) ) FROM tab0 AS cor0
----
-44
query I rowsort
SELECT DISTINCT 62 * + 52 AS col2 FROM tab0 AS cor0
----
3224
query I rowsort
SELECT DISTINCT ( - col0 ) * - 72 + + + 25 * + 62 FROM tab2 cor0
----
4862
6158
6950
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3269
SELECT - COUNT( * ) FROM tab1 WHERE NULL BETWEEN 0 AND + - CAST( col1 AS SIGNED )
----
0
skipif mysql # not compatible
query I rowsort label-3269
SELECT - COUNT ( * ) FROM tab1 WHERE NULL BETWEEN 0 AND + - CAST ( col1 AS INTEGER )
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-3270
SELECT ( - - ( + col0 ) ) DIV - - 18 FROM tab1
----
2
4
5
skipif mysql # not compatible
query I rowsort label-3270
SELECT ( - - ( + col0 ) ) / - - 18 FROM tab1
----
2
4
5
query I rowsort
SELECT + ( ( col1 ) ) FROM tab1
----
14
47
5
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( + 34 ) IS NOT NULL )
----
query I rowsort
SELECT col1 * 52 AS col0 FROM tab0
----
1092
4212
52
query III rowsort
SELECT * FROM tab1 WHERE NOT - - 6 IS NOT NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT 63 + + + col0 = 70
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT - - 57 * + + col0 FROM tab2 AS cor0
----
2622
3648
4275
onlyif mysql # DIV for integer division:
query I rowsort label-3277
SELECT + col0 DIV - - col1 FROM tab0 AS cor0
----
0
4
97
skipif mysql # not compatible
query I rowsort label-3277
SELECT + col0 / - - col1 FROM tab0 AS cor0
----
0
4
97
onlyif mysql # aggregate syntax:
query I rowsort label-3278
SELECT - COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT col1 < - col1
----
-3
skipif mysql # not compatible
query I rowsort label-3278
SELECT - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT col1 < - col1
----
-3
query I rowsort
SELECT DISTINCT + 78 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3280
SELECT SUM( + + col0 ) - - 39 FROM tab0 cor0 WHERE NOT ( NULL IS NOT NULL )
----
238
skipif mysql # not compatible
query I rowsort label-3280
SELECT SUM ( + + col0 ) - - 39 FROM tab0 cor0 WHERE NOT ( NULL IS NOT NULL )
----
238
query I rowsort
SELECT DISTINCT - 79 AS col2 FROM tab0 AS cor0
----
-79
onlyif mysql # aggregate syntax:
query I rowsort label-3282
SELECT - ( + + COUNT( * ) ) AS col1 FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-3282
SELECT - ( + + COUNT ( * ) ) AS col1 FROM tab0
----
-3
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 99 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT DISTINCT col1 AS col2, - col2 * - col0 FROM tab1
----
14
4896
47
6188
5
5015
onlyif mysql # aggregate syntax:
query I rowsort label-3285
SELECT DISTINCT COUNT( * ) + 60 AS col2 FROM tab1
----
63
skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT COUNT ( * ) + 60 AS col2 FROM tab1
----
63
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3286
SELECT + col2 + col1 + - CAST( + col1 AS SIGNED ) * - col0 AS col0 FROM tab2
----
2420
5045
5150
skipif mysql # not compatible
query I rowsort label-3286
SELECT + col2 + col1 + - CAST ( + col1 AS INTEGER ) * - col0 AS col0 FROM tab2
----
2420
5045
5150
query I rowsort
SELECT 91 + - col2 * - - col1 AS col1 FROM tab0
----
-119
-3716
-8
onlyif mysql # aggregate syntax:
query I rowsort label-3288
SELECT ALL - COUNT( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL - COUNT ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3289
SELECT DISTINCT + 79 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 * - col1 * - + CAST( NULL AS SIGNED ) + + + 87 * + ( 9 ) IN ( + - 93, 15 )
----
skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT + 79 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 * - col1 * - + CAST ( NULL AS INTEGER ) + + + 87 * + ( 9 ) IN ( + - 93, 15 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0, + col1, - col1, col0 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3291
SELECT DISTINCT + + CAST( - 81 AS SIGNED ) * + + 17 + + col1 FROM tab2 AS cor0
----
-1300
-1310
-1326
skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT + + CAST ( - 81 AS INTEGER ) * + + 17 + + col1 FROM tab2 AS cor0
----
-1300
-1310
-1326
onlyif mysql # aggregate syntax:
query I rowsort label-3292
SELECT ALL COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
query I rowsort
SELECT + - col0 - - - 55 AS col1 FROM tab2 AS cor0
----
-101
-119
-130
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 / + col2 > + col0
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3296
SELECT ALL + SUM( + - col2 ) * - 29 AS col1 FROM tab1 AS cor0
----
6467
skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL + SUM ( + - col2 ) * - 29 AS col1 FROM tab1 AS cor0
----
6467
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-3297
SELECT ALL - col0 * - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL - col0 * - + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3298
SELECT DISTINCT COUNT( * ) * + 73 * + COUNT( * ) AS col1 FROM tab2 cor0
----
657
skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT COUNT ( * ) * + 73 * + COUNT ( * ) AS col1 FROM tab2 cor0
----
657
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 13
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3300
SELECT ALL * FROM tab1 cor0 WHERE NOT CAST( + 67 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-3300
SELECT ALL * FROM tab1 cor0 WHERE NOT CAST ( + 67 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-3301
SELECT ALL MAX( ALL + col1 ) AS col1 FROM tab1
----
47
skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL MAX ( ALL + col1 ) AS col1 FROM tab1
----
47
query I rowsort
SELECT DISTINCT - + col1 + + 79 AS col0 FROM tab1 WHERE NOT - 80 IS NULL
----
32
65
74
query I rowsort
SELECT ALL col0 * ( col1 ) AS col0 FROM tab2
----
2346
4928
5025
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 88 ) BETWEEN NULL AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3305
SELECT ALL - CAST( 60 AS SIGNED ) * MIN( + 15 ) FROM tab2 AS cor0
----
-900
skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL - CAST ( 60 AS INTEGER ) * MIN ( + 15 ) FROM tab2 AS cor0
----
-900
query I rowsort
SELECT ALL - col1 + - - col1 FROM tab1 cor0 WHERE ( NOT ( NOT 30 IS NULL ) )
----
query I rowsort
SELECT ALL col2 * - 26 AS col1 FROM tab2 AS cor0 WHERE NULL >= 54
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + - + 55 BETWEEN NULL AND + col1 + + col1
----
query I rowsort
SELECT ALL + 66 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT 63 + - col0 AS col2 FROM tab1 AS cor0
----
-22
-28
12
onlyif mysql # aggregate syntax:
query I rowsort label-3311
SELECT ALL + MAX( + 72 ) AS col2 FROM tab1 AS cor0
----
72
skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL + MAX ( + 72 ) AS col2 FROM tab1 AS cor0
----
72
query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE - 20 IN ( col2, col2 )
----
query III rowsort
SELECT * FROM tab0 WHERE - 7 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3314
SELECT DISTINCT - - MAX( DISTINCT 58 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT - - MAX ( DISTINCT 58 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col0 FROM tab0 WHERE + - col0 IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) col1 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
-51
-67
-77
query I rowsort
SELECT DISTINCT - 8 - - col0 FROM tab2
----
38
56
67
query I rowsort
SELECT DISTINCT 46 * + 38 + - + 16 FROM tab2
----
1732
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + + 12 AND NULL
----
87
21
10
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3320
SELECT DISTINCT - CAST( + ( - COUNT( * ) ) AS SIGNED ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3320
SELECT DISTINCT - CAST ( + ( - COUNT ( * ) ) AS INTEGER ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 35 col0 FROM tab2 AS cor0
----
35
35
35
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3322
SELECT DISTINCT ( ( + 71 ) ) FROM tab2 AS cor0 WHERE CAST( - col0 AS SIGNED ) < col2 - - col1 + - - col1
----
71
skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT ( ( + 71 ) ) FROM tab2 AS cor0 WHERE CAST ( - col0 AS INTEGER ) < col2 - - col1 + - - col1
----
71
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > col0 * + 62
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-3324
SELECT DISTINCT - col1, CAST( 44 AS SIGNED ) + - col1 AS col2 FROM tab1 AS cor0
----
-14
30
-47
-3
-5
39
skipif mysql # not compatible
query II rowsort label-3324
SELECT DISTINCT - col1, CAST ( 44 AS INTEGER ) + - col1 AS col2 FROM tab1 AS cor0
----
-14
30
-47
-3
-5
39
onlyif mysql # aggregate syntax:
query II rowsort label-3325
SELECT COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
3
skipif mysql # not compatible
query II rowsort label-3325
SELECT COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
3
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-3326
SELECT + 34 AS col1, ( CAST( - col2 AS SIGNED ) ) + 99 FROM tab2 cor0
----
34
41
34
59
34
76
skipif mysql # not compatible
query II rowsort label-3326
SELECT + 34 AS col1, ( CAST ( - col2 AS INTEGER ) ) + 99 FROM tab2 cor0
----
34
41
34
59
34
76
query I rowsort
SELECT ALL + + ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE + col2 <> - col2 * - col0 * - col0 + + 50
----
-14
-47
-5
onlyif mysql # aggregate syntax:
query I rowsort label-3328
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
0
query I rowsort
SELECT - 17 FROM tab0 WHERE NOT 38 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-3330
SELECT + col1 DIV - 8 AS col2 FROM tab2
----
-6
-8
-9
skipif mysql # not compatible
query I rowsort label-3330
SELECT + col1 / - 8 AS col2 FROM tab2
----
-6
-8
-9
onlyif mysql # aggregate syntax:
query I rowsort label-3331
SELECT MIN( - col0 ) FROM tab0
----
-97
skipif mysql # not compatible
query I rowsort label-3331
SELECT MIN ( - col0 ) FROM tab0
----
-97
onlyif mysql # aggregate syntax:
query I rowsort label-3332
SELECT DISTINCT - MIN( - col1 ) FROM tab2
----
77
skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT - MIN ( - col1 ) FROM tab2
----
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 75 * col0 * + + 88 AS col1, - 67 col2 FROM tab1
----
-336600
-67
-561000
-67
-600600
-67
onlyif mysql # aggregate syntax:
query I rowsort label-3334
SELECT ALL - COUNT( * ) * - - ( - + 66 ) FROM tab0
----
198
skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL - COUNT ( * ) * - - ( - + 66 ) FROM tab0
----
198
query I rowsort
SELECT DISTINCT - - 16 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
16
onlyif mysql # aggregate syntax:
query I rowsort label-3336
SELECT + MIN( ALL + col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-3336
SELECT + MIN ( ALL + col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL
query II rowsort
SELECT ALL + col0 AS col1, col0 FROM tab2 cor0
----
46
46
64
64
75
75
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 90 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3339
SELECT DISTINCT - CAST( + 76 AS SIGNED ) FROM tab1 AS cor0
----
-76
skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT - CAST ( + 76 AS INTEGER ) FROM tab1 AS cor0
----
-76
query I rowsort
SELECT DISTINCT + ( + + col2 ) FROM tab1 AS cor0
----
59
68
96
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 97 + 96 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT ( - ( col0 ) ) FROM tab0
----
-15
-87
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 52 + - col1 col2, - ( 5 ) AS col2 FROM tab0
----
-29
-5
31
-5
51
-5
query I rowsort
SELECT ALL 62 * - 55 - col1 FROM tab0
----
-3411
-3431
-3491
onlyif mysql # DIV for integer division:
query I rowsort label-3345
SELECT DISTINCT - 44 DIV + + col1 - + - ( - - col2 ) + 13 - - + col2 * col1 FROM tab2
----
1209
3133
3957
skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT - 44 / + + col1 - + - ( - - col2 ) + 13 - - + col2 * col1 FROM tab2
----
1209
3133
3957
onlyif mysql # aggregate syntax:
query I rowsort label-3346
SELECT + + COUNT( * ) AS col0 FROM tab1 cor0
----
3
skipif mysql # not compatible
query I rowsort label-3346
SELECT + + COUNT ( * ) AS col0 FROM tab1 cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3347
SELECT DISTINCT + col2 * - col0 - + col2 * - 39 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT + col2 * - col0 - + col2 * - 39 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query II rowsort
SELECT - col0 * + col1, - col0 AS col0 FROM tab1 AS cor0
----
-425
-85
-4277
-91
-714
-51
onlyif mysql # aggregate syntax:
query I rowsort label-3349
SELECT COUNT( * ) * - 83 FROM tab2
----
-249
skipif mysql # not compatible
query I rowsort label-3349
SELECT COUNT ( * ) * - 83 FROM tab2
----
-249
onlyif mysql # aggregate syntax:
query I rowsort label-3350
SELECT ALL + SUM( ALL - - 80 ) FROM tab0
----
240
skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL + SUM ( ALL - - 80 ) FROM tab0
----
240
query I rowsort
SELECT ALL + + col2 * + col2 FROM tab1 WHERE - - 23 BETWEEN - + col0 AND col0
----
3481
4624
9216
query I rowsort
SELECT + ( 53 ) + - col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3353
SELECT DISTINCT MAX( col2 ) FROM tab0 AS cor0
----
99
skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT MAX ( col2 ) FROM tab0 AS cor0
----
99
query I rowsort
SELECT ALL 9 * 40 FROM tab2 AS cor0
----
360
360
360
query I rowsort
SELECT ALL ( + + col1 ) FROM tab2 AS cor0
----
51
67
77
query II rowsort
SELECT - - col1 AS col2, 34 FROM tab1 AS cor0
----
14
34
47
34
5
34
onlyif mysql # aggregate syntax:
query I rowsort label-3357
SELECT - MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
-99
skipif mysql # not compatible
query I rowsort label-3357
SELECT - MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-99
onlyif mysql # aggregate syntax:
query I rowsort label-3358
SELECT + - COUNT( DISTINCT + col1 ) FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-3358
SELECT + - COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-3359
SELECT + - COUNT( * ) col0 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3359
SELECT + - COUNT ( * ) col0 FROM tab0 AS cor0
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-3360
SELECT ALL CAST( - col0 AS SIGNED ) - + col2 AS col1, - col1 + - col2 AS col0 FROM tab0 AS cor0 WHERE + 3 IS NOT NULL
----
-196
-100
-62
-128
-97
-31
skipif mysql # not compatible
query II rowsort label-3360
SELECT ALL CAST ( - col0 AS INTEGER ) - + col2 AS col1, - col1 + - col2 AS col0 FROM tab0 AS cor0 WHERE + 3 IS NOT NULL
----
-196
-100
-62
-128
-97
-31
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3361
SELECT + 87 AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - CAST( + + col0 AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-3361
SELECT + 87 AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - CAST ( + + col0 AS INTEGER )
----
onlyif mysql # aggregate syntax:
query I rowsort label-3362
SELECT - COUNT( * ) * + 11 FROM tab1
----
-33
skipif mysql # not compatible
query I rowsort label-3362
SELECT - COUNT ( * ) * + 11 FROM tab1
----
-33
query I rowsort
SELECT col0 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75
query I rowsort
SELECT ALL 31 * 19 FROM tab0 AS cor0
----
589
589
589
query II rowsort
SELECT DISTINCT + col1, + 27 + - - col1 FROM tab2 AS cor0
----
51
78
67
94
77
104
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-3366
SELECT DISTINCT + CAST( NULL AS SIGNED ) col1, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3366
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81
onlyif mysql # aggregate syntax:
query I rowsort label-3367
SELECT + SUM( DISTINCT - - ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
66
skipif mysql # not compatible
query I rowsort label-3367
SELECT + SUM ( DISTINCT - - ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
66
query I rowsort
SELECT - 54 AS col1 FROM tab1 cor0
----
-54
-54
-54
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col0 / - + 87 + + col0 * + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT ALL col2 * + col0, ( - 25 ) AS col0 FROM tab1
----
4896
-25
5015
-25
6188
-25
query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NULL > + ( - col0 ) * + col2 + + col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 * + - col0 + 30 col2 FROM tab2 AS cor0
----
-4064
-5666
-6645
onlyif mysql # aggregate syntax:
query I rowsort label-3373
SELECT - + COUNT( ALL col0 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6
skipif mysql # not compatible
query I rowsort label-3373
SELECT - + COUNT ( ALL col0 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6
query I rowsort
SELECT ALL 89 * - col2 + col0 - + col1 * - + col1 AS col1 FROM tab0 AS cor0
----
-362
-8713
2393
query II rowsort
SELECT + col2 * - col2, 28 * + + col0 AS col2 FROM tab0 AS cor0
----
-100
2436
-2209
420
-9801
2716
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3376
SELECT ALL + + col1 + + 46 - col1 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL + + col1 + + 46 - col1 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3377
SELECT ALL + - COUNT( - ( + 6 ) ) + + 56 AS col1 FROM tab0 WHERE - + 92 BETWEEN + col1 AND NULL
----
56
skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL + - COUNT ( - ( + 6 ) ) + + 56 AS col1 FROM tab0 WHERE - + 92 BETWEEN + col1 AND NULL
----
56
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-3378
SELECT CAST( NULL AS DECIMAL ), col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81
skipif mysql # not compatible
query II rowsort label-3378
SELECT CAST ( NULL AS REAL ), col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81
query I rowsort
SELECT + col2 - - col1 + - + col2 AS col0 FROM tab1
----
14
47
5
query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab2 WHERE 19 * + + col0 + - 99 * - - 50 < NULL
----
query I rowsort
SELECT ALL + ( + - col1 ) - col2 FROM tab0
----
-100
-128
-31
onlyif mysql # aggregate syntax:
query I rowsort label-3382
SELECT + - COUNT( * ) - - - 72 FROM tab1 AS cor0
----
-75
skipif mysql # not compatible
query I rowsort label-3382
SELECT + - COUNT ( * ) - - - 72 FROM tab1 AS cor0
----
-75
query I rowsort
SELECT DISTINCT + - 37 * col2 + col1 FROM tab0 AS cor0
----
-1658
-349
-3662
query II rowsort
SELECT ALL - + 59, + col0 AS col0 FROM tab2 AS cor0
----
-59
46
-59
64
-59
75
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3385
SELECT + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3385
SELECT + CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 + - col2 IS NOT NULL
----
query II rowsort
SELECT + ( + - 88 ), 7 AS col2 FROM tab1
----
-88
7
-88
7
-88
7
query I rowsort
SELECT + + ( - + col1 ) FROM tab1 AS cor0
----
-14
-47
-5
onlyif mysql # aggregate syntax:
query I rowsort label-3389
SELECT ALL + MAX( - - col0 ) FROM tab0 AS cor0
----
97
skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL + MAX ( - - col0 ) FROM tab0 AS cor0
----
97
query I rowsort
SELECT DISTINCT 91 AS col0 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
91
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 27 NOT BETWEEN + col0 * 47 + + - col2 + + col0 * + + col2 AND + col2 - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL - 86 FROM tab2 cor0
----
-86
-86
-86
query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > col0 + + col0
----
query I rowsort
SELECT DISTINCT - ( + + col0 ) AS col0 FROM tab2
----
-46
-64
-75
onlyif mysql # aggregate syntax:
query II rowsort label-3396
SELECT ALL + 10 col2, COUNT( DISTINCT col2 ) * - COUNT( * ) * - 38 FROM tab0
----
10
342
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3396
SELECT ALL + 10 col2, COUNT ( DISTINCT col2 ) * - COUNT ( * ) * - 38 FROM tab0
----
10
342
query I rowsort
SELECT col0 * - col0 * + - col2 FROM tab2
----
163840
326250
48668
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3398
SELECT CAST( CAST( - col1 AS SIGNED ) AS SIGNED ) AS col1 FROM tab0
----
-1
-21
-81
skipif mysql # not compatible
query I rowsort label-3398
SELECT CAST ( CAST ( - col1 AS INTEGER ) AS INTEGER ) AS col1 FROM tab0
----
-1
-21
-81
onlyif mysql # aggregate syntax:
query II rowsort label-3399
SELECT DISTINCT COUNT( * ), - 6 + - COUNT( * ) AS col2 FROM tab0
----
3
-9
skipif mysql # not compatible
query II rowsort label-3399
SELECT DISTINCT COUNT ( * ), - 6 + - COUNT ( * ) AS col2 FROM tab0
----
3
-9
query I rowsort
SELECT col2 * - 59 AS col1 FROM tab0
----
-2773
-5841
-590
query I rowsort
SELECT DISTINCT - ( 42 ) FROM tab0
----
-42
query I rowsort
SELECT col1 * + - col1 AS col2 FROM tab1
----
-196
-2209
-25
onlyif mysql # aggregate syntax:
query I rowsort label-3403
SELECT DISTINCT - SUM( - col1 ) FROM tab1 AS cor0
----
66
skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT - SUM ( - col1 ) FROM tab1 AS cor0
----
66
query I rowsort
SELECT ALL - 54 + - + col1 FROM tab2 AS cor0
----
-105
-121
-131
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT IN ( + 17 - - col0, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT + 8 + + 65 FROM tab1
----
73
query I rowsort
SELECT DISTINCT - col2 * col0 + + 10 FROM tab0
----
-695
-860
-9593
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-3408
SELECT - - CAST( NULL AS SIGNED ) AS col0, COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL
3
skipif mysql # not compatible
query II rowsort label-3408
SELECT - - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL
3
query I rowsort
SELECT - 79 - col2 AS col0 FROM tab1 AS cor0
----
-138
-147
-175
onlyif mysql # aggregate syntax:
query I rowsort label-3410
SELECT DISTINCT 82 - COUNT( * ) AS col0 FROM tab2 AS cor0
----
79
skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT 82 - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
79
query I rowsort
SELECT - - 17 - - 63 FROM tab1 AS cor0 WHERE NULL > 20
----
query II rowsort
SELECT ALL + - col2 * - col0, + col1 FROM tab0 AS cor0
----
705
81
870
21
9603
1
query I rowsort
SELECT ( - col1 ) + + 43 FROM tab2
----
-24
-34
-8
query III rowsort
SELECT ALL * FROM tab1 WHERE + - col2 IS NULL
----
query I rowsort
SELECT ( - col0 ) + + - col0 FROM tab2
----
-128
-150
-92
query I rowsort
SELECT - 99 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7
query I rowsort
SELECT col2 * 53 + + col2 AS col0 FROM tab2
----
1242
2160
3132
query II rowsort
SELECT + col0 * col1 + col2 AS col1, col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT ALL col1 * - col1 + - col2 + + + col1 + + - col1 + col2 FROM tab2 AS cor0
----
-2601
-4489
-5929
onlyif mysql # aggregate syntax:
query I rowsort label-3420
SELECT MAX( ALL + col1 ) col0 FROM tab1 AS cor0
----
47
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3420
SELECT MAX ( ALL + col1 ) col0 FROM tab1 AS cor0
----
47
onlyif mysql # aggregate syntax:
query I rowsort label-3421
SELECT ALL + + ( + - 78 ) * COUNT( * ) + 23 AS col0 FROM tab2 AS cor0
----
-211
skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL + + ( + - 78 ) * COUNT ( * ) + 23 AS col0 FROM tab2 AS cor0
----
-211
onlyif mysql # aggregate syntax:
query I rowsort label-3422
SELECT - COUNT( * ) * ( - 61 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
549
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3422
SELECT - COUNT ( * ) * ( - 61 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
549
query I rowsort
SELECT DISTINCT ( 97 ) FROM tab1
----
97
query I rowsort
SELECT ALL - + 58 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0
onlyif mysql # aggregate syntax:
query I rowsort label-3425
SELECT DISTINCT - MAX( - 52 ) FROM tab2 AS cor0
----
52
skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT - MAX ( - 52 ) FROM tab2 AS cor0
----
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col0 col2 FROM tab1 cor0
----
14
51
47
91
5
85
query II rowsort
SELECT + col2 AS col0, + 82 FROM tab0 AS cor0
----
10
82
47
82
99
82
onlyif mysql # aggregate syntax:
query I rowsort label-3428
SELECT + MAX( + col1 ) AS col2 FROM tab1 AS cor0
----
47
skipif mysql # not compatible
query I rowsort label-3428
SELECT + MAX ( + col1 ) AS col2 FROM tab1 AS cor0
----
47
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-3429
SELECT + ( ( CAST( NULL AS DECIMAL ) ) ) AS col2, col1 + - col0 FROM tab1 AS cor0
----
NULL
-37
NULL
-44
NULL
-80
skipif mysql # not compatible
query II rowsort label-3429
SELECT + ( ( CAST ( NULL AS REAL ) ) ) AS col2, col1 + - col0 FROM tab1 AS cor0
----
NULL
-37
NULL
-44
NULL
-80
onlyif mysql # aggregate syntax:
query I rowsort label-3430
SELECT DISTINCT - + COUNT( - col0 ) FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT - + COUNT ( - col0 ) FROM tab0 AS cor0
----
-3
onlyif mysql # DIV for integer division:
query I rowsort label-3431
SELECT ALL + col1 DIV 24 + - 95 FROM tab1 AS cor0
----
-94
-95
-95
skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL + col1 / 24 + - 95 FROM tab1 AS cor0
----
-94
-95
-95
query I rowsort
SELECT ALL 25 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT ( + - col2 ) FROM tab1 AS cor0
----
-59
-68
-96
query III rowsort
SELECT * FROM tab1 WHERE NOT 4 IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 53 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # DIV for integer division:
query I rowsort label-3436
SELECT col1 DIV col2 * - col1 FROM tab2
----
-102
-67
-77
skipif mysql # not compatible
query I rowsort label-3436
SELECT col1 / col2 * - col1 FROM tab2
----
-102
-67
-77
query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 81 BETWEEN NULL AND - - col2 * col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-3439
SELECT DISTINCT COUNT( * ) col2 FROM tab2, tab2 AS cor0
----
9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3439
SELECT DISTINCT COUNT ( * ) col2 FROM tab2, tab2 AS cor0
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-3440
SELECT ALL 65 * COUNT( * ) FROM tab1 AS cor0
----
195
skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL 65 * COUNT ( * ) FROM tab1 AS cor0
----
195
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-3441
SELECT - 26 DIV + 17 + - + 64 * SUM( - col2 ) FROM tab1 AS cor0
----
14271
skipif mysql # not compatible
query I rowsort label-3441
SELECT - 26 / + 17 + - + 64 * SUM ( - col2 ) FROM tab1 AS cor0
----
14271
onlyif mysql # aggregate syntax:
query I rowsort label-3442
SELECT MAX( ALL - + col0 ) AS col0 FROM tab2 cor0
----
-46
skipif mysql # not compatible
query I rowsort label-3442
SELECT MAX ( ALL - + col0 ) AS col0 FROM tab2 cor0
----
-46
onlyif mysql # aggregate syntax:
query I rowsort label-3443
SELECT ALL MIN( + col0 ) FROM tab1 AS cor0
----
51
skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL MIN ( + col0 ) FROM tab1 AS cor0
----
51
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 88 * + col1 NOT IN ( - col0 * + col2 )
----
onlyif mysql # DIV for integer division:
query II rowsort label-3445
SELECT ALL + 12 * + - col2 * - col0, - ( col1 ) * - + 1 + - - 37 DIV col2 AS col0 FROM tab2 AS cor0
----
12696
52
30720
77
52200
67
skipif mysql # not compatible
query II rowsort label-3445
SELECT ALL + 12 * + - col2 * - col0, - ( col1 ) * - + 1 + - - 37 / col2 AS col0 FROM tab2 AS cor0
----
12696
52
30720
77
52200
67
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3446
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
skipif mysql # not compatible
query III rowsort label-3446
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3447
SELECT ALL CAST( - col2 AS SIGNED ) * - 29 FROM tab2 AS cor0
----
1160
1682
667
skipif mysql # not compatible
query I rowsort label-3447
SELECT ALL CAST ( - col2 AS INTEGER ) * - 29 FROM tab2 AS cor0
----
1160
1682
667
query I rowsort
SELECT DISTINCT - ( - + 68 ) * - 42 + - - col0 AS col0 FROM tab1 AS cor0
----
-2765
-2771
-2805
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + - 47 NOT BETWEEN NULL AND + 60 * + col2 + + 34 - 48 * - - ( - col0 ) * - col2
----
query I rowsort
SELECT ALL - ( - - 13 ) + + 71 FROM tab0
----
58
58
58
query I rowsort
SELECT DISTINCT + col0 + - + col0 + - col2 * col2 + - + 31 + - col1 AS col1 FROM tab2
----
-1708
-3462
-611
query I rowsort
SELECT col1 - col1 + 13 AS col0 FROM tab0
----
13
13
13
query II rowsort
SELECT DISTINCT col2 AS col2, - 87 FROM tab1
----
59
-87
68
-87
96
-87
query II rowsort
SELECT DISTINCT col2 AS col1, col2 AS col2 FROM tab0
----
10
10
47
47
99
99
query I rowsort
SELECT - ( - - col0 ) FROM tab0
----
-15
-87
-97
query I rowsort
SELECT ALL + 70 * + col2 FROM tab2
----
1610
2800
4060
onlyif mysql # aggregate syntax:
query I rowsort label-3457
SELECT DISTINCT - COUNT( * ) col2 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3457
SELECT DISTINCT - COUNT ( * ) col2 FROM tab0 AS cor0
----
-3
query II rowsort
SELECT - col2 AS col2, col2 * - col1 FROM tab2 AS cor0
----
-23
-1173
-40
-3080
-58
-3886
query I rowsort
SELECT ALL 87 * + col1 FROM tab2 AS cor0
----
4437
5829
6699
query I rowsort
SELECT DISTINCT + 32 * - - 10 * - ( + 46 ) * - + col2 AS col2 FROM tab1 AS cor0
----
1000960
1413120
868480
query II rowsort
SELECT ALL + col1, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81
onlyif mysql # aggregate syntax:
query II rowsort label-3462
SELECT 21 * - 1 AS col1, MAX( + col1 ) AS col2 FROM tab0
----
-21
81
skipif mysql # not compatible
query II rowsort label-3462
SELECT 21 * - 1 AS col1, MAX ( + col1 ) AS col2 FROM tab0
----
-21
81
onlyif mysql # aggregate syntax:
query I rowsort label-3463
SELECT + MAX( DISTINCT - col2 ) * - - 66 * + COUNT( * ) FROM tab1
----
-11682
skipif mysql # not compatible
query I rowsort label-3463
SELECT + MAX ( DISTINCT - col2 ) * - - 66 * + COUNT ( * ) FROM tab1
----
-11682
query I rowsort
SELECT ALL + col1 * + - 44 * - - col2 FROM tab2
----
-135520
-170984
-51612
onlyif mysql # aggregate syntax:
query I rowsort label-3465
SELECT MIN( DISTINCT col0 ) * - 20 FROM tab0
----
-300
skipif mysql # not compatible
query I rowsort label-3465
SELECT MIN ( DISTINCT col0 ) * - 20 FROM tab0
----
-300
query I rowsort
SELECT ALL + - 41 * + - col0 + col1 AS col1 FROM tab0 AS cor0
----
3588
3978
696
onlyif mysql # aggregate syntax:
query I rowsort label-3467
SELECT ( - - SUM( - 29 ) ) AS col2 FROM tab2 cor0
----
-87
skipif mysql # not compatible
query I rowsort label-3467
SELECT ( - - SUM ( - 29 ) ) AS col2 FROM tab2 cor0
----
-87
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 44 = NULL
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-3469
SELECT - col0 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) + - - ( - col0 ) NOT BETWEEN - + 38 - - col2 AND NULL
----
skipif mysql # not compatible
query I rowsort label-3469
SELECT - col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) + - - ( - col0 ) NOT BETWEEN - + 38 - - col2 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3470
SELECT DISTINCT - MAX( DISTINCT + col0 ) * 57 FROM tab1 AS cor0 WHERE + col2 * + col0 * + + 44 / + + col1 = NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT - MAX ( DISTINCT + col0 ) * 57 FROM tab1 AS cor0 WHERE + col2 * + col0 * + + 44 / + + col1 = NULL
----
NULL
query I rowsort
SELECT DISTINCT - 59 + + + 70 * col0 FROM tab2 AS cor0
----
3161
4421
5191
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3472
SELECT ALL CAST( + col1 AS SIGNED ) AS col1 FROM tab2 WHERE ( col0 * - col1 * + - 76 ) IS NOT NULL
----
51
67
77
skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 WHERE ( col0 * - col1 * + - 76 ) IS NOT NULL
----
51
67
77
query I rowsort
SELECT DISTINCT - col2 * col2 + + - col0 FROM tab2
----
-1664
-3439
-575
query II rowsort
SELECT - col2 AS col0, + 38 * - - 49 FROM tab2
----
-23
1862
-40
1862
-58
1862
query III rowsort
SELECT * FROM tab1 WHERE ( NOT - col0 IS NOT NULL )
----
query I rowsort
SELECT ALL col0 + - 14 FROM tab1
----
37
71
77
onlyif mysql # DIV for integer division:
query II rowsort label-3477
SELECT ALL col2 * 88 * + 32 AS col2, 40 DIV - - 26 + 89 AS col2 FROM tab0
----
132352
90
278784
90
28160
90
skipif mysql # not compatible
query II rowsort label-3477
SELECT ALL col2 * 88 * + 32 AS col2, 40 / - - 26 + 89 AS col2 FROM tab0
----
132352
90
278784
90
28160
90
query III rowsort
SELECT * FROM tab0 WHERE ( ( NULL ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - col2 * + col2 + + col2 FROM tab0
----
-2162
-90
-9702
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query I rowsort label-3481
SELECT ALL col0 DIV - - 57 AS col0 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL col0 / - - 57 AS col0 FROM tab2 AS cor0
----
0
1
1
onlyif mysql # aggregate syntax:
query I rowsort label-3482
SELECT - + SUM( 15 ) * 61 FROM tab0 AS cor0
----
-2745
skipif mysql # not compatible
query I rowsort label-3482
SELECT - + SUM ( 15 ) * 61 FROM tab0 AS cor0
----
-2745
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * + col0 <> - col1
----
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + 77 * 11
----
query I rowsort
SELECT ALL - col2 * 2 AS col0 FROM tab0
----
-198
-20
-94
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3487
SELECT CAST( col1 AS SIGNED ) col1 FROM tab2
----
51
67
77
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3487
SELECT CAST ( col1 AS INTEGER ) col1 FROM tab2
----
51
67
77
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 IN ( - col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + - col0 < ( NULL )
----
query I rowsort
SELECT col1 FROM tab2 WHERE col2 BETWEEN - col2 AND col0
----
51
67
77
onlyif mysql # DIV for integer division:
query I rowsort label-3491
SELECT col1 DIV + ( col0 ) FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3491
SELECT col1 / + ( col0 ) FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - col1 * 51 FROM tab2 WHERE NULL NOT BETWEEN col1 AND NULL
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-3493
SELECT col2 * + ( ( + CAST( NULL AS DECIMAL ) ) ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3493
SELECT col2 * + ( ( + CAST ( NULL AS REAL ) ) ) AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-3494
SELECT DISTINCT + col2 DIV + ( - 45 ) FROM tab2
----
-1
0
skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT + col2 / + ( - 45 ) FROM tab2
----
-1
0
query I rowsort
SELECT 52 * col1 AS col1 FROM tab0
----
1092
4212
52
onlyif mysql # aggregate syntax:
query I rowsort label-3496
SELECT MAX( DISTINCT 39 ) * - ( 89 ) AS col0 FROM tab0
----
-3471
skipif mysql # not compatible
query I rowsort label-3496
SELECT MAX ( DISTINCT 39 ) * - ( 89 ) AS col0 FROM tab0
----
-3471
query III rowsort
SELECT * FROM tab1 WHERE ( - 80 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-3498
SELECT ALL SUM( DISTINCT - 7 ) DIV - 99 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL SUM ( DISTINCT - 7 ) / - 99 FROM tab0
----
0
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 18 + col2 IS NOT NULL
----
query I rowsort
SELECT DISTINCT + 3 FROM tab2 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3502
SELECT + AVG ( col1 ) * - AVG ( + CAST( NULL AS SIGNED ) ) col0 FROM tab0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3502
SELECT + AVG ( col1 ) * - AVG ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL
query I rowsort
SELECT + 13 * - col1 AS col0 FROM tab2
----
-1001
-663
-871
query I rowsort
SELECT 39 * col1 FROM tab2 WHERE NOT 80 >= col0 * 79
----
1989
2613
3003
onlyif mysql # DIV for integer division:
query I rowsort label-3505
SELECT - 5 DIV + 70 + col2 FROM tab0
----
10
47
99
skipif mysql # not compatible
query I rowsort label-3505
SELECT - 5 / + 70 + col2 FROM tab0
----
10
47
99
onlyif mysql # aggregate syntax:
query I rowsort label-3506
SELECT MIN( + 49 ) FROM tab1
----
49
skipif mysql # not compatible
query I rowsort label-3506
SELECT MIN ( + 49 ) FROM tab1
----
49
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-3507
SELECT ALL SUM( - 75 ) DIV - COUNT( * ) AS col1 FROM tab1 WHERE NOT ( col1 DIV 52 ) IS NULL
----
75
skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL SUM ( - 75 ) / - COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( col1 / 52 ) IS NULL
----
75
query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----
query I rowsort
SELECT ALL + col0 + 39 AS col1 FROM tab0 cor0 WHERE - col1 IS NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 NOT IN ( 43 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-3511
SELECT SUM( 55 ) FROM tab0 AS cor0
----
165
skipif mysql # not compatible
query I rowsort label-3511
SELECT SUM ( 55 ) FROM tab0 AS cor0
----
165
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 * + col0 ) NOT IN ( - col2 + 11 * col2 )
----
query I rowsort
SELECT ALL - 90 * + col0 FROM tab2 cor0
----
-4140
-5760
-6750
onlyif mysql # aggregate syntax:
query I rowsort label-3516
SELECT + COUNT( * ) + COUNT( col2 ) FROM tab1 AS cor0
----
6
skipif mysql # not compatible
query I rowsort label-3516
SELECT + COUNT ( * ) + COUNT ( col2 ) FROM tab1 AS cor0
----
6
query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( 18 * + col0 ) >= - col0 * + col1
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 7 + - col0 IS NOT NULL
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-3519
SELECT 31 * + CAST( NULL AS DECIMAL ) + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3519
SELECT 31 * + CAST ( NULL AS REAL ) + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3520
SELECT + - SUM( 60 ) FROM tab0 AS cor0
----
-180
skipif mysql # not compatible
query I rowsort label-3520
SELECT + - SUM ( 60 ) FROM tab0 AS cor0
----
-180
onlyif mysql # aggregate syntax:
query I rowsort label-3521
SELECT + COUNT( * ) * - 33 AS col0 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND - col1 + + col0 * + col0
----
0
skipif mysql # not compatible
query I rowsort label-3521
SELECT + COUNT ( * ) * - 33 AS col0 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND - col1 + + col0 * + col0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-3522
SELECT ALL ( COUNT( * ) ) + - 85 FROM tab1
----
-82
skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL ( COUNT ( * ) ) + - 85 FROM tab1
----
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 1 ) col0 FROM tab0
----
1
1
1
onlyif mysql # aggregate syntax:
query I rowsort label-3524
SELECT DISTINCT 97 + COUNT( * ) AS col2 FROM tab0
----
100
skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT 97 + COUNT ( * ) AS col2 FROM tab0
----
100
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT - col2 - - 22 AS col1 FROM tab2 AS cor0
----
-1
-18
-36
query I rowsort
SELECT ALL - 77 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
query I rowsort
SELECT - - 22 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT col0 FROM tab2 WHERE NULL BETWEEN NULL AND - + 94
----
query I rowsort
SELECT ALL + ( - - 97 ) + - col1 FROM tab2
----
20
30
46
query I rowsort
SELECT DISTINCT col1 - + + col1 + - - 56 + + 65 FROM tab0 AS cor0
----
121
query II rowsort
SELECT - 60 AS col1, - col0 + - col1 * + 16 FROM tab0 AS cor0
----
-60
-113
-60
-1311
-60
-423
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3533
SELECT + COUNT( - CAST( + 30 AS SIGNED ) ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-3533
SELECT + COUNT ( - CAST ( + 30 AS INTEGER ) ) FROM tab1 AS cor0
----
3
query I rowsort
SELECT - 33 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 96 col1 FROM tab1 AS cor0
----
96
96
96
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 27 * + col2 + col0 > col1 + 2 * - 94
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-3538
SELECT DISTINCT 23 AS col2, - CAST( NULL AS SIGNED ) * ( SUM( DISTINCT 37 ) ) FROM tab1 cor0
----
23
NULL
skipif mysql # not compatible
query II rowsort label-3538
SELECT DISTINCT 23 AS col2, - CAST ( NULL AS INTEGER ) * ( SUM ( DISTINCT 37 ) ) FROM tab1 cor0
----
23
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3539
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3539
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 cor0
----
-3
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 <> + + col1
----
query III rowsort
SELECT * FROM tab0 WHERE NULL IS NULL AND NOT - + col2 IS NOT NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT - 87 + - 70 > col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - ( 72 ) * + col0 + + - 35 * col1 AS col0 FROM tab1
----
-4162
-6295
-8197
query I rowsort
SELECT ALL - col1 * - col2 + + col1 AS col0 FROM tab2 WHERE NOT NULL > NULL
----
query I rowsort
SELECT ALL 23 AS col0 FROM tab2
----
23
23
23
onlyif mysql # aggregate syntax:
query I rowsort label-3546
SELECT ( MAX( ALL + 3 ) ) col1 FROM tab0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3546
SELECT ( MAX ( ALL + 3 ) ) col1 FROM tab0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3547
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT + 82 NOT IN ( - + CAST( + col2 AS SIGNED ) )
----
skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT + 82 NOT IN ( - + CAST ( + col2 AS INTEGER ) )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 BETWEEN NULL AND 75 / col0
----
query I rowsort
SELECT + 67 * - 17 AS col2 FROM tab0
----
-1139
-1139
-1139
query I rowsort
SELECT + 0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3551
SELECT CAST( - col0 AS SIGNED ) FROM tab1
----
-51
-85
-91
skipif mysql # not compatible
query I rowsort label-3551
SELECT CAST ( - col0 AS INTEGER ) FROM tab1
----
-51
-85
-91
query I rowsort
SELECT ALL - ( - col1 ) * - 97 FROM tab2 WHERE NOT ( 14 ) IS NULL
----
-4947
-6499
-7469
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 col1 FROM tab2 cor0
----
-6
-6
-6
query II rowsort
SELECT ALL + col1 * 55 AS col1, - col2 FROM tab1 AS cor0
----
2585
-68
275
-59
770
-96
query III rowsort
SELECT ALL * FROM tab0 WHERE col0 / col2 / - col2 IS NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 = col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT + 10 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
10
onlyif mysql # aggregate syntax:
query I rowsort label-3558
SELECT ALL ( - + COUNT( * ) ) col2 FROM tab2
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3558
SELECT ALL ( - + COUNT ( * ) ) col2 FROM tab2
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3559
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT + ( + - CAST( col2 AS SIGNED ) ) IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT + ( + - CAST ( col2 AS INTEGER ) ) IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + - + col1 + + - col2 / + 2 * - 16 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-3561
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, + col1 AS col2 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5
skipif mysql # not compatible
query II rowsort label-3561
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + col1 AS col2 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 > NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3563
SELECT DISTINCT + 30 * MAX( DISTINCT - 44 ) * - 3 + + CAST( - COUNT( col2 ) AS SIGNED ) FROM tab2 AS cor0
----
3957
skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT + 30 * MAX ( DISTINCT - 44 ) * - 3 + + CAST ( - COUNT ( col2 ) AS INTEGER ) FROM tab2 AS cor0
----
3957
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 + 73 - - - 80 col2, + col1 * - col1 * col2 FROM tab2 AS cor0
----
-53
-59823
-71
-237160
-82
-260362
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab1 WHERE - - ( + col2 ) >= ( + - col0 )
----
14
47
5
query I rowsort
SELECT DISTINCT + 93 + + ( - + 15 ) AS col0 FROM tab1
----
78
query I rowsort
SELECT DISTINCT + 92 * + - col1 + - col2 + + col0 + 30 FROM tab0
----
-1825
-64
-7454
onlyif mysql # aggregate syntax:
query I rowsort label-3568
SELECT DISTINCT - 49 + - - COUNT( * ) + + 24 col0 FROM tab1
----
-22
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3568
SELECT DISTINCT - 49 + - - COUNT ( * ) + + 24 col0 FROM tab1
----
-22
query I rowsort
SELECT DISTINCT col1 + - ( + col0 ) FROM tab0
----
-66
-96
66
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3570
SELECT - 67 * - CAST( NULL AS SIGNED ) FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3570
SELECT - 67 * - CAST ( NULL AS INTEGER ) FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * + col2 = NULL
----
query I rowsort
SELECT - col1 + + + col2 FROM tab1
----
21
54
82
query I rowsort
SELECT col0 + - col2 + - 28 * col0 AS col0 FROM tab0 WHERE + col1 IS NOT NULL
----
-2359
-2718
-452
query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + + 40 * + + 46 + - - 27 / col0 / col0 )
----
query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( 54 )
----
query III rowsort
SELECT * FROM tab0 WHERE ( 41 + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - col2 FROM tab1 WHERE ( col0 - + 72 ) IS NULL
----
query I rowsort
SELECT - - col0 * - 37 AS col0 FROM tab0 WHERE - col2 / - 92 + + col1 IS NOT NULL
----
-3219
-3589
-555
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 65 + - 74 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3581
SELECT + 25 * COUNT( ALL - ( - + col1 ) ) AS col0 FROM tab2 AS cor0
----
75
skipif mysql # not compatible
query I rowsort label-3581
SELECT + 25 * COUNT ( ALL - ( - + col1 ) ) AS col0 FROM tab2 AS cor0
----
75
query I rowsort
SELECT - col2 * + - 36 + - col1 AS col1 FROM tab2 AS cor0
----
1363
2021
777
query I rowsort
SELECT DISTINCT - + col1 * + ( + col0 ) FROM tab1 AS cor0
----
-425
-4277
-714
query I rowsort
SELECT DISTINCT - 60 * + col0 AS col2 FROM tab1 AS cor0
----
-3060
-5100
-5460
query I rowsort
SELECT col2 * - 22 - - 94 AS col2 FROM tab0
----
-126
-2084
-940
query I rowsort
SELECT 20 + - ( + 50 - + col2 * - col2 ) AS col1 FROM tab1 WHERE 67 NOT BETWEEN - + ( - 44 ) + - col1 AND + - col0 * col1 + - col2
----
-3511
-4654
-9246
query I rowsort
SELECT ALL + col2 * - + 34 - + + 24 AS col0 FROM tab0
----
-1622
-3390
-364
onlyif mysql # aggregate syntax:
query I rowsort label-3588
SELECT ALL MIN( col0 ) FROM tab2
----
46
skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL MIN ( col0 ) FROM tab2
----
46
onlyif mysql # aggregate syntax:
query I rowsort label-3589
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
query I rowsort
SELECT DISTINCT - 84 AS col0 FROM tab1 AS cor0 WHERE + col1 IS NULL
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - col0 * col2
----
query I rowsort
SELECT - - ( - 14 ) * + - col2 FROM tab2 AS cor0
----
322
560
812
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-3594
SELECT ALL - MAX( - ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
51
skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL - MAX ( - ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
51
query I rowsort
SELECT DISTINCT + - 39 AS col1 FROM tab0 AS cor0
----
-39
query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-3597
SELECT - COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
-9
skipif mysql # not compatible
query I rowsort label-3597
SELECT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
-9
query I rowsort
SELECT - col1 * + - ( - - col1 ) FROM tab0
----
1
441
6561
query II rowsort
SELECT 25 AS col1, - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
25
-15
25
-87
25
-97
onlyif mysql # aggregate syntax:
query II rowsort label-3600
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * ) AS col0 FROM tab2
----
3
3
skipif mysql # not compatible
query II rowsort label-3600
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab2
----
3
3
query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 NOT BETWEEN 50 * col1 AND NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 NOT IN ( - col1, - col2 + + - col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-3603
SELECT ALL ( - COUNT( * ) ) FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL ( - COUNT ( * ) ) FROM tab1
----
-3
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( 25, col2 )
----
onlyif mysql # aggregate syntax:
query II rowsort label-3605
SELECT - COUNT( * ) col0, 54 FROM tab1
----
-3
54
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3605
SELECT - COUNT ( * ) col0, 54 FROM tab1
----
-3
54
onlyif mysql # aggregate syntax:
query I rowsort label-3606
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT ( - - col1 * - col0 / col2 * - 51 * + - col0 * 54 + - col0 - col2 * col2 ) <> NULL
----
0
skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( - - col1 * - col0 / col2 * - 51 * + - col0 * 54 + - col0 - col2 * col2 ) <> NULL
----
0
query II rowsort
SELECT ALL - col1 AS col2, + 78 FROM tab2 AS cor0
----
-51
78
-67
78
-77
78
onlyif mysql # aggregate syntax:
query I rowsort label-3608
SELECT DISTINCT + MIN( - col2 ) FROM tab1 AS cor0
----
-96
skipif mysql # not compatible
query I rowsort label-3608
SELECT DISTINCT + MIN ( - col2 ) FROM tab1 AS cor0
----
-96
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3609
SELECT ALL AVG ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT - 88 > NULL )
----
NULL
skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT - 88 > NULL )
----
NULL
query I rowsort
SELECT + 9 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
onlyif mysql # aggregate syntax:
query I rowsort label-3611
SELECT DISTINCT - ( + MAX( ALL - + col2 ) ) AS col0 FROM tab1
----
59
skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT - ( + MAX ( ALL - + col2 ) ) AS col0 FROM tab1
----
59
query I rowsort
SELECT DISTINCT + ( + 49 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
49
query I rowsort
SELECT col0 * col1 + col2 + - 28 * + col1 FROM tab0 AS cor0
----
-1006
1249
168
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-3614
SELECT - COUNT( * ) + + 35 DIV + - COUNT( * ) FROM tab1 AS cor0
----
-14
skipif mysql # not compatible
query I rowsort label-3614
SELECT - COUNT ( * ) + + 35 / + - COUNT ( * ) FROM tab1 AS cor0
----
-14
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 22 * + col0 <> + - col1
----
query I rowsort
SELECT DISTINCT + + 33 FROM tab1 cor0
----
33
query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3618
SELECT COUNT( - col2 ) FROM tab1 cor0
----
3
skipif mysql # not compatible
query I rowsort label-3618
SELECT COUNT ( - col2 ) FROM tab1 cor0
----
3
query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE ( col0 ) IS NOT NULL
----
-23
-40
-58
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3620
SELECT * FROM tab2 WHERE + + col1 + col0 NOT IN ( + - col2 * + + col2 - CAST( - + col0 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-3620
SELECT * FROM tab2 WHERE + + col1 + col0 NOT IN ( + - col2 * + + col2 - CAST ( - + col0 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 85
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3622
SELECT ALL + col0 + CAST( NULL AS SIGNED ) - + - col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) - + - col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-3623
SELECT ALL + 82 AS col1 FROM tab0 WHERE - CAST( + - col2 AS DECIMAL ) = NULL
----
skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL + 82 AS col1 FROM tab0 WHERE - CAST ( + - col2 AS REAL ) = NULL
----
query III rowsort
SELECT * FROM tab0 WHERE 75 IS NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( 12 )
----
query I rowsort
SELECT - col0 * + + col0 * + 61 - + 24 AS col1 FROM tab2
----
-129100
-249880
-343149
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3627
SELECT ALL + ( + col1 ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL + ( + col1 ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 65 + + - col0 + 15 AS col2 FROM tab1 AS cor0
----
-11
-5
29
query I rowsort
SELECT ALL - col1 - col2 + + col1 + - + ( - - 27 ) * + 66 FROM tab0 cor0
----
-1792
-1829
-1881
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3630
SELECT * FROM tab2 AS cor0 WHERE ( 99 + - 89 ) <> ( CAST( NULL AS SIGNED ) )
----
skipif mysql # not compatible
query III rowsort label-3630
SELECT * FROM tab2 AS cor0 WHERE ( 99 + - 89 ) <> ( CAST ( NULL AS INTEGER ) )
----
query I rowsort
SELECT DISTINCT + 10 * + 22 FROM tab0
----
220
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type:
query I rowsort label-3632
SELECT + SUM( CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-3632
SELECT + SUM ( CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) ) FROM tab0
----
NULL
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-3633
SELECT - CAST( NULL AS SIGNED ), COUNT( * ) AS col0 FROM tab2
----
NULL
3
skipif mysql # not compatible
query II rowsort label-3633
SELECT - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col0 FROM tab2
----
NULL
3
query I rowsort
SELECT col0 * - - col1 AS col2 FROM tab2
----
2346
4928
5025
query I rowsort
SELECT ALL + + ( col1 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77
query II rowsort
SELECT - 7 AS col0, col2 FROM tab1
----
-7
59
-7
68
-7
96
onlyif mysql # aggregate syntax:
query II rowsort label-3637
SELECT - COUNT( * ) AS col0, - COUNT( * ) FROM tab2 AS cor0
----
-3
-3
skipif mysql # not compatible
query II rowsort label-3637
SELECT - COUNT ( * ) AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
-3
-3
onlyif mysql # aggregate syntax:
query I rowsort label-3638
SELECT DISTINCT - MAX( - - col1 ) AS col1 FROM tab0 AS cor0
----
-81
skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT - MAX ( - - col1 ) AS col1 FROM tab0 AS cor0
----
-81
query I rowsort
SELECT ALL - - col1 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 * - col0 col1 FROM tab1 AS cor0
----
-3468
-5780
-6188
onlyif mysql # aggregate syntax:
query I rowsort label-3641
SELECT DISTINCT - 28 * 44 * + COUNT( * ) FROM tab1 cor0
----
-3696
skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT - 28 * 44 * + COUNT ( * ) FROM tab1 cor0
----
-3696
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3642
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( 88 AS SIGNED ) IN ( col1, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-3642
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( 88 AS INTEGER ) IN ( col1, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 20 / + col0 + - 46 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE NOT col2 = NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3645
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( CAST( col2 AS SIGNED ) )
----
skipif mysql # not compatible
query III rowsort label-3645
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( CAST ( col2 AS INTEGER ) )
----
query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE ( - - ( + col0 ) * col2 - ( ( - + 46 ) ) + - col0 + 20 + - - col0 / col2 ) <> col0
----
46
64
75
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query III rowsort label-3647
SELECT * FROM tab1 WHERE NOT col2 NOT BETWEEN 88 * + + 41 + + col1 AND + CAST( + - 57 AS SIGNED ) * + col1 + - + CAST( - + col0 AS DECIMAL ) + - + 44 + + col2 * - col2 + - col0
----
skipif mysql # not compatible
query III rowsort label-3647
SELECT * FROM tab1 WHERE NOT col2 NOT BETWEEN 88 * + + 41 + + col1 AND + CAST ( + - 57 AS INTEGER ) * + col1 + - + CAST ( - + col0 AS REAL ) + - + 44 + + col2 * - col2 + - col0
----
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-3648
SELECT ALL + ( - COUNT( * ) ), 89 DIV 3 col0 FROM tab1
----
-3
29
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3648
SELECT ALL + ( - COUNT ( * ) ), 89 / 3 col0 FROM tab1
----
-3
29
query I rowsort
SELECT - + col1 AS col0 FROM tab2 WHERE NOT ( NOT NULL = - col2 - + col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 col1 FROM tab0
----
35
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-3651
SELECT - CAST( NULL AS DECIMAL ) / - MAX( - ( 22 ) ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-3651
SELECT - CAST ( NULL AS REAL ) / - MAX ( - ( 22 ) ) FROM tab1
----
NULL
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT col1 NOT IN ( - 38 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + 41 ) * - 65 col0 FROM tab2
----
-2665
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > col0 - + col2
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3656
SELECT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN + col1 AND col2
----
NULL
skipif mysql # not compatible
query I rowsort label-3656
SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN + col1 AND col2
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3657
SELECT + MIN( DISTINCT + col1 ) AS col1 FROM tab1
----
5
skipif mysql # not compatible
query I rowsort label-3657
SELECT + MIN ( DISTINCT + col1 ) AS col1 FROM tab1
----
5
onlyif mysql # aggregate syntax:
query I rowsort label-3658
SELECT + 73 * COUNT( col0 ) FROM tab2
----
219
skipif mysql # not compatible
query I rowsort label-3658
SELECT + 73 * COUNT ( col0 ) FROM tab2
----
219
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - ( col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - col0 * + ( - 11 ) AS col1 FROM tab1
----
1001
561
935
query I rowsort
SELECT + 21 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
onlyif mysql # aggregate syntax:
query I rowsort label-3662
SELECT DISTINCT + - COUNT( * ) col2 FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3662
SELECT DISTINCT + - COUNT ( * ) col2 FROM tab1 AS cor0
----
-3
query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 <> NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3664
SELECT + + CAST( NULL AS SIGNED ) + + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3664
SELECT + + CAST ( NULL AS INTEGER ) + + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - - col0 * + - 53 + - col0
----
query I rowsort
SELECT ALL + col1 * - col1 * + 2 FROM tab2 AS cor0
----
-11858
-5202
-8978
query II rowsort
SELECT DISTINCT col0 * col2, + col1 FROM tab1
----
4896
14
5015
5
6188
47
query I rowsort
SELECT 56 + - col2 - ( 73 ) + + col0 FROM tab1
----
-62
6
9
query I rowsort
SELECT ALL col0 + + 2 AS col2 FROM tab0
----
17
89
99
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3670
SELECT DISTINCT 46 * - CAST( NULL AS SIGNED ) * - 70 - + - SUM( ALL + - col1 ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT 46 * - CAST ( NULL AS INTEGER ) * - 70 - + - SUM ( ALL + - col1 ) FROM tab1
----
NULL
query I rowsort
SELECT ALL - 71 + + + 72 FROM tab1
----
1
1
1
query I rowsort
SELECT col2 + - col1 * col2 + + col1 FROM tab2 WHERE NULL <> + ( - 71 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 - + - 25 col0 FROM tab2 AS cor0
----
100
100
100
query I rowsort
SELECT DISTINCT - - ( ( + + col0 ) ) - - + col0 FROM tab1 AS cor0
----
102
170
182
query I rowsort
SELECT + col0 * + ( 22 ) AS col2 FROM tab2 cor0
----
1012
1408
1650
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT + col0 * + + col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625
query I rowsort
SELECT DISTINCT col1 * + - 95 * col1 * col1 + - col1 FROM tab0 AS cor0
----
-50486976
-879816
-96
onlyif mysql # DIV for integer division:
query I rowsort label-3679
SELECT ALL 20 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL 20 / col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query II rowsort
SELECT ALL + 25, - col0 + + + col2 AS col0 FROM tab0 AS cor0
----
25
-77
25
2
25
32
query I rowsort
SELECT col2 * + 1 + col0 AS col2 FROM tab2 AS cor0
----
104
133
69
query II rowsort
SELECT DISTINCT col2 AS col2, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96
query I rowsort
SELECT 67 * + col0 * - col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1, - col1 )
----
query II rowsort
SELECT + col2, - col0 AS col1 FROM tab0
----
10
-87
47
-15
99
-97
query I rowsort
SELECT ALL + ( 67 ) FROM tab2 WHERE NOT ( col1 * + + col0 ) IS NULL
----
67
67
67
onlyif mysql # aggregate syntax:
query I rowsort label-3686
SELECT ALL - COUNT( ALL col0 ) FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL - COUNT ( ALL col0 ) FROM tab0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-3687
SELECT DISTINCT 18 + - COUNT( * ) FROM tab2
----
15
skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT 18 + - COUNT ( * ) FROM tab2
----
15
onlyif mysql # aggregate syntax:
query I rowsort label-3688
SELECT ALL + MAX( DISTINCT + 30 ) AS col2 FROM tab1
----
30
skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL + MAX ( DISTINCT + 30 ) AS col2 FROM tab1
----
30
query I rowsort
SELECT DISTINCT - 38 * col1 FROM tab0
----
-3078
-38
-798
query I rowsort
SELECT DISTINCT + col1 * - 11 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3691
SELECT ALL COUNT( * ) + - COUNT( DISTINCT - col2 ) col1 FROM tab1
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3691
SELECT ALL COUNT ( * ) + - COUNT ( DISTINCT - col2 ) col1 FROM tab1
----
0
query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col1 + col0 ) <> col1 + col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-3693
SELECT + 52 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-156
skipif mysql # not compatible
query I rowsort label-3693
SELECT + 52 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-156
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-3694
SELECT AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3694
SELECT AVG ( DISTINCT CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - ( ( + col2 ) ) FROM tab1 AS cor0
----
-59
-68
-96
query I rowsort
SELECT + col0 + 95 AS col1 FROM tab2
----
141
159
170
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + + 45 col0, - col1 FROM tab2
----
103
-67
68
-51
85
-77
onlyif mysql # DIV for integer division:
query I rowsort label-3698
SELECT col2 DIV 3 + + + col0 + + col1 AS col0 FROM tab0
----
111
111
131
skipif mysql # not compatible
query I rowsort label-3698
SELECT col2 / 3 + + + col0 + + col1 AS col0 FROM tab0
----
111
111
131
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= col1
----
query II rowsort
SELECT - - 56 + 2 AS col2, + col2 + 84 * + col2 FROM tab0 AS cor0
----
58
3995
58
8415
58
850
query I rowsort
SELECT - + col2 * - - 61 FROM tab0 AS cor0
----
-2867
-6039
-610
onlyif mysql # aggregate syntax:
query I rowsort label-3702
SELECT DISTINCT 11 - COUNT( - 26 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
5
skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT 11 - COUNT ( - 26 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
5
query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 - + + col2 IS NULL
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + 48 * + + col2 + - col2 AND + - 17 * col2 * + col0 * + 91 * - col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-3705
SELECT COUNT( * ) AS col0 FROM tab0 cor0
----
3
skipif mysql # not compatible
query I rowsort label-3705
SELECT COUNT ( * ) AS col0 FROM tab0 cor0
----
3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3706
SELECT - - ( COUNT( * ) ) * + 20 FROM tab0 AS cor0 WHERE + col1 - + 86 * + CAST( - col2 AS SIGNED ) IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-3706
SELECT - - ( COUNT ( * ) ) * + 20 FROM tab0 AS cor0 WHERE + col1 - + 86 * + CAST ( - col2 AS INTEGER ) IS NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-3707
SELECT ALL + ( + MAX( DISTINCT + + col0 ) ) AS col1 FROM tab0 AS cor0
----
97
skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL + ( + MAX ( DISTINCT + + col0 ) ) AS col1 FROM tab0 AS cor0
----
97
query I rowsort
SELECT ALL - col1 + - - col2 AS col1 FROM tab2 cor0
----
-28
-37
-9
onlyif mysql # DIV for integer division:
query I rowsort label-3709
SELECT col2 * - 92 - - + 83 DIV 69 FROM tab0
----
-4323
-9107
-919
skipif mysql # not compatible
query I rowsort label-3709
SELECT col2 * - 92 - - + 83 / 69 FROM tab0
----
-4323
-9107
-919
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 + + col0 col1 FROM tab0
----
-23
49
59
query I rowsort
SELECT + + col2 FROM tab1 WHERE NULL > NULL
----
query I rowsort
SELECT 94 - col1 AS col2 FROM tab2
----
17
27
43
query I rowsort
SELECT DISTINCT col0 + - ( + col1 ) + - col0 - + col0 FROM tab2
----
-141
-142
-97
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-3714
SELECT - 94 DIV - col0 - + col1 + + CAST( - + col1 AS SIGNED ) + + col2 * - + 53 FROM tab0
----
-2647
-5249
-571
skipif mysql # not compatible
query I rowsort label-3714
SELECT - 94 / - col0 - + col1 + + CAST ( - + col1 AS INTEGER ) + + col2 * - + 53 FROM tab0
----
-2647
-5249
-571
onlyif mysql # aggregate syntax:
query I rowsort label-3715
SELECT ( + MAX( + col1 ) ) - - - 28 FROM tab1
----
19
skipif mysql # not compatible
query I rowsort label-3715
SELECT ( + MAX ( + col1 ) ) - - - 28 FROM tab1
----
19
query I rowsort
SELECT + AVG ( ALL + ( + 8 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 51 <> + 3 / + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-3718
SELECT DISTINCT + COUNT( * ) * - 46 AS col2 FROM tab2 cor0
----
-138
skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT + COUNT ( * ) * - 46 AS col2 FROM tab2 cor0
----
-138
query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * col1 + + 68 + + ( 32 ) * - col2 <= + - col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-3720
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) FROM tab2
----
-9
skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) FROM tab2
----
-9
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 96 BETWEEN NULL AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + - col2 IN ( - + col2, + col0 + + col0, ( + - col2 ) )
----
97
1
99
onlyif mysql # aggregate syntax:
query I rowsort label-3723
SELECT - - COUNT( * ) FROM tab2 cor0
----
3
skipif mysql # not compatible
query I rowsort label-3723
SELECT - - COUNT ( * ) FROM tab2 cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3724
SELECT ALL - CAST( + col1 AS SIGNED ) * + col0 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714
skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL - CAST ( + col1 AS INTEGER ) * + col0 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) > - 52
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 89 col1 FROM tab0 AS cor0
----
-89
onlyif mysql # aggregate syntax:
query I rowsort label-3727
SELECT ALL COUNT( * ) * 17 FROM tab0
----
51
skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL COUNT ( * ) * 17 FROM tab0
----
51
query I rowsort
SELECT ALL + 77 + 57 + + col2 AS col2 FROM tab0
----
144
181
233
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col0 ) * + 97 + + - col0 + + col0 col1 FROM tab2
----
-4462
-6208
-7275
query I rowsort
SELECT DISTINCT + 28 * - - col0 AS col1 FROM tab2
----
1288
1792
2100
query III rowsort
SELECT * FROM tab0 WHERE NOT + + ( + 88 ) <> NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3732
SELECT + col2 + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3732
SELECT + col2 + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-3733
SELECT COUNT( * ) + + 57 DIV - COUNT( * ) FROM tab2
----
-16
skipif mysql # not compatible
query I rowsort label-3733
SELECT COUNT ( * ) + + 57 / - COUNT ( * ) FROM tab2
----
-16
onlyif mysql # DIV for integer division:
query I rowsort label-3734
SELECT + 95 + col1 + + col0 DIV - col2 FROM tab0
----
108
176
96
skipif mysql # not compatible
query I rowsort label-3734
SELECT + 95 + col1 + + col0 / - col2 FROM tab0
----
108
176
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - col0 + + - col1 col2 FROM tab0
----
1134
1806
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 col1 FROM tab1
----
1344
295
3196
onlyif mysql # aggregate syntax:
query I rowsort label-3737
SELECT ALL + 10 + - ( SUM( ALL col0 ) ) * - COUNT( * ) * 57 FROM tab0 AS cor0
----
34039
skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL + 10 + - ( SUM ( ALL col0 ) ) * - COUNT ( * ) * 57 FROM tab0 AS cor0
----
34039
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 86 ) + + col1 > NULL
----
query I rowsort
SELECT DISTINCT col0 + - + 1 FROM tab0
----
14
86
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - 9 * - col0 col2 FROM tab1
----
-363
-706
-751
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3741
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND CAST( - + col1 AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-3741
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND CAST ( - + col1 AS INTEGER )
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 - - + col1 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3743
SELECT DISTINCT ( - + COUNT( * ) ) FROM tab2 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT ( - + COUNT ( * ) ) FROM tab2 cor0
----
-3
query I rowsort
SELECT - col1 + + col1 + col1 AS col2 FROM tab1 AS cor0
----
14
47
5
onlyif mysql # aggregate syntax:
query I rowsort label-3745
SELECT DISTINCT + MAX( col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
97
skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT + MAX ( col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
97
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-3746
SELECT DISTINCT - CAST( NULL AS SIGNED ), + ( + 32 ) AS col0 FROM tab1 AS cor0
----
NULL
32
skipif mysql # not compatible
query II rowsort label-3746
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + ( + 32 ) AS col0 FROM tab1 AS cor0
----
NULL
32
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-3747
SELECT DISTINCT 86 DIV - 24 + - 92 + - - MAX( + col2 ) FROM tab0
----
4
skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT 86 / - 24 + - 92 + - - MAX ( + col2 ) FROM tab0
----
4
query I rowsort
SELECT col1 + + ( + + 21 ) - col1 * + - col2 FROM tab1
----
1379
321
3264
onlyif mysql # aggregate syntax:
query I rowsort label-3749
SELECT ALL ( - COUNT( * ) ) FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL ( - COUNT ( * ) ) FROM tab2
----
-3
query I rowsort
SELECT DISTINCT - - 24 FROM tab1 cor0
----
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 col0 FROM tab2 AS cor0
----
10
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 56 / col2 / - 69 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - 77 AS col0 FROM tab1 cor0
----
-77
-77
-77
query I rowsort
SELECT DISTINCT + 12 AS col1 FROM tab1 cor0
----
12
onlyif mysql # DIV for integer division:
query I rowsort label-3755
SELECT ALL - col0 DIV + 99 * col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL - col0 / + 99 * col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-3756
SELECT ALL - MAX( ALL - - ( + col2 ) ) AS col2 FROM tab1 WHERE NOT col0 / - col0 IS NULL
----
-96
skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL - MAX ( ALL - - ( + col2 ) ) AS col2 FROM tab1 WHERE NOT col0 / - col0 IS NULL
----
-96
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3757
SELECT ALL + CAST( - 35 AS SIGNED ) FROM tab0
----
-35
-35
-35
skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL + CAST ( - 35 AS INTEGER ) FROM tab0
----
-35
-35
-35
query I rowsort
SELECT 82 FROM tab2 AS cor0 WHERE NOT col2 + - col2 IS NOT NULL
----
query I rowsort
SELECT ALL + - 43 + - col1 FROM tab0 cor0 WHERE NOT col1 + ( + - col0 ) * col0 * + + col1 * + - col2 <= + 53
----
-124
-44
-64
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3760
SELECT + col0 * + CAST( NULL AS SIGNED ) - + col2 + 65 / 24 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3760
SELECT + col0 * + CAST ( NULL AS INTEGER ) - + col2 + 65 / 24 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query II rowsort
SELECT DISTINCT - 4 AS col2, - 79 FROM tab2 AS cor0
----
-4
-79
query I rowsort
SELECT + + 52 + - 58 FROM tab1 AS cor0
----
-6
-6
-6
onlyif mysql # DIV for integer division:
query I rowsort label-3763
SELECT 22 DIV + - 92 + - + 87 FROM tab2 AS cor0
----
-87
-87
-87
skipif mysql # not compatible
query I rowsort label-3763
SELECT 22 / + - 92 + - + 87 FROM tab2 AS cor0
----
-87
-87
-87
query I rowsort
SELECT DISTINCT ( - col1 ) AS col0 FROM tab0 cor0
----
-1
-21
-81
query II rowsort
SELECT ALL - 19 AS col0, + 43 + + 64 FROM tab1 AS cor0
----
-19
107
-19
107
-19
107
query I rowsort
SELECT ALL 39 + - 22 AS col0 FROM tab1
----
17
17
17
query I rowsort
SELECT ALL - 43 + + col0 FROM tab0
----
-28
44
54
query I rowsort
SELECT - col2 FROM tab0 WHERE - col0 + + - 23 + - col2 * - 38 IS NULL
----
query I rowsort
SELECT - col1 * + col0 * - + col0 AS col1 FROM tab0 AS cor0
----
158949
18225
9409
query I rowsort
SELECT ALL + + 77 + - 74 FROM tab0 AS cor0
----
3
3
3
query III rowsort
SELECT * FROM tab1 WHERE - + col1 - + + col0 > NULL
----
query I rowsort
SELECT ALL + col0 - - 44 FROM tab2 AS cor0
----
108
119
90
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 78 IS NULL
----
query I rowsort
SELECT 94 * + col1 AS col0 FROM tab1 AS cor0
----
1316
4418
470
query I rowsort
SELECT 74 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3776
SELECT DISTINCT - COUNT( * ) - + + COUNT( * ) FROM tab1 AS cor0
----
-6
skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT - COUNT ( * ) - + + COUNT ( * ) FROM tab1 AS cor0
----
-6
query I rowsort
SELECT DISTINCT + col1 * + ( col2 ) * 4 FROM tab0 AS cor0
----
15228
396
840
onlyif mysql # DIV for integer division:
query I rowsort label-3778
SELECT ALL - - col2 DIV + 78 - - col0 FROM tab0 cor0
----
15
87
98
skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL - - col2 / + 78 - - col0 FROM tab0 cor0
----
15
87
98
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query II rowsort label-3780
SELECT COUNT( * ) AS col2, 69 FROM tab0
----
3
69
skipif mysql # not compatible
query II rowsort label-3780
SELECT COUNT ( * ) AS col2, 69 FROM tab0
----
3
69
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-3782
SELECT MAX( - - col1 ) AS col1 FROM tab2
----
77
skipif mysql # not compatible
query I rowsort label-3782
SELECT MAX ( - - col1 ) AS col1 FROM tab2
----
77
query II rowsort
SELECT DISTINCT col2, 89 AS col0 FROM tab0
----
10
89
47
89
99
89
query III rowsort
SELECT * FROM tab0 WHERE NOT 91 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-3785
SELECT - MAX( DISTINCT + col0 ) + + COUNT( * ) AS col2 FROM tab2 WHERE NOT col2 IS NULL
----
-72
skipif mysql # not compatible
query I rowsort label-3785
SELECT - MAX ( DISTINCT + col0 ) + + COUNT ( * ) AS col2 FROM tab2 WHERE NOT col2 IS NULL
----
-72
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3786
SELECT - ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3786
SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-3787
SELECT DISTINCT ( + - col2 ) DIV - col1 col2 FROM tab2
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3787
SELECT DISTINCT ( + - col2 ) / - col1 col2 FROM tab2
----
0
onlyif mysql # DIV for integer division:
query II rowsort label-3788
SELECT ALL + 50 AS col2, - col0 DIV + col2 FROM tab1
----
50
-1
50
-1
50
0
skipif mysql # not compatible
query II rowsort label-3788
SELECT ALL + 50 AS col2, - col0 / + col2 FROM tab1
----
50
-1
50
-1
50
0
onlyif mysql # aggregate syntax:
query II rowsort label-3789
SELECT - COUNT( * ) AS col1, 59 FROM tab0
----
-3
59
skipif mysql # not compatible
query II rowsort label-3789
SELECT - COUNT ( * ) AS col1, 59 FROM tab0
----
-3
59
onlyif mysql # aggregate syntax:
query I rowsort label-3790
SELECT MAX( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
99
skipif mysql # not compatible
query I rowsort label-3790
SELECT MAX ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
99
query I rowsort
SELECT ( + 92 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT - 68 AS col2 FROM tab2
----
-68
-68
-68
onlyif mysql # aggregate syntax:
query I rowsort label-3793
SELECT DISTINCT + + 49 * - ( - ( COUNT( * ) ) ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
441
skipif mysql # not compatible
query I rowsort label-3793
SELECT DISTINCT + + 49 * - ( - ( COUNT ( * ) ) ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
441
query I rowsort
SELECT - 37 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
query I rowsort
SELECT - 21 FROM tab0 AS cor0 WHERE NOT col2 = + + ( - - col2 ) / + col0
----
-21
-21
-21
onlyif mysql # aggregate syntax:
query I rowsort label-3796
SELECT ALL - MAX( DISTINCT - - col0 ) - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) > - 85 + 50
----
NULL
skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL - MAX ( DISTINCT - - col0 ) - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) > - 85 + 50
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 col0, 18 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 + + col0, - 57 * + + col1 * - 45 )
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 45 IS NULL
----
query I rowsort
SELECT ( + - ( - col2 ) ) FROM tab2 AS cor0
----
23
40
58
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3800
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * - + col0 NOT BETWEEN + + 78 / + col0 * + + col2 + + col0 / CAST( NULL AS SIGNED ) AND - CAST( NULL AS SIGNED ) * - ( col1 ) - + col1
----
skipif mysql # not compatible
query III rowsort label-3800
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * - + col0 NOT BETWEEN + + 78 / + col0 * + + col2 + + col0 / CAST ( NULL AS INTEGER ) AND - CAST ( NULL AS INTEGER ) * - ( col1 ) - + col1
----
query II rowsort
SELECT DISTINCT col1, + ( - col1 ) AS col0 FROM tab1
----
14
-14
47
-47
5
-5
onlyif mysql # aggregate syntax:
query I rowsort label-3802
SELECT DISTINCT - ( - - 75 ) * + COUNT( * ) * 73 + COUNT( ALL - col0 ) AS col2 FROM tab0
----
-16422
skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT - ( - - 75 ) * + COUNT ( * ) * 73 + COUNT ( ALL - col0 ) AS col2 FROM tab0
----
-16422
query II rowsort
SELECT col2 + col0 * 26, + col1 + + col1 AS col1 FROM tab2
----
1219
102
1704
154
2008
134
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query II rowsort label-3804
SELECT ALL + 82 DIV + + 31 + - - 10 col2, CAST( + col2 AS SIGNED ) FROM tab0
----
12
10
12
47
12
99
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3804
SELECT ALL + 82 / + + 31 + - - 10 col2, CAST ( + col2 AS INTEGER ) FROM tab0
----
12
10
12
47
12
99
onlyif mysql # aggregate syntax:
query I rowsort label-3805
SELECT DISTINCT 88 + - ( - COUNT( * ) ) - + 80 AS col2 FROM tab2
----
11
skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT 88 + - ( - COUNT ( * ) ) - + 80 AS col2 FROM tab2
----
11
onlyif mysql # DIV for integer division:
query I rowsort label-3806
SELECT 15 DIV - col2 + + - col1 FROM tab2
----
-51
-67
-77
skipif mysql # not compatible
query I rowsort label-3806
SELECT 15 / - col2 + + - col1 FROM tab2
----
-51
-67
-77
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3807
SELECT - CAST( COUNT( * ) AS SIGNED ) + 11 col2 FROM tab0
----
8
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3807
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + 11 col2 FROM tab0
----
8
onlyif mysql # aggregate syntax:
query I rowsort label-3808
SELECT - 3 + COUNT( * ) FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-3808
SELECT - 3 + COUNT ( * ) FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 + + 45 + - 74 col1 FROM tab0
----
10
10
10
query III rowsort
SELECT * FROM tab0 WHERE NULL = + col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-3811
SELECT ALL - COUNT( * ) col2 FROM tab1 cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3811
SELECT ALL - COUNT ( * ) col2 FROM tab1 cor0
----
-3
query I rowsort
SELECT DISTINCT + col1 * - - 85 FROM tab0 AS cor0
----
1785
6885
85
query I rowsort
SELECT DISTINCT col0 + + ( + + 89 ) * - 97 AS col0 FROM tab2 AS cor0
----
-8558
-8569
-8587
onlyif mysql # aggregate syntax:
query I rowsort label-3814
SELECT ALL + 62 + - + SUM( - col0 ) FROM tab1 AS cor0
----
289
skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL + 62 + - + SUM ( - col0 ) FROM tab1 AS cor0
----
289
query III rowsort
SELECT ALL * FROM tab0 WHERE + - 12 <= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL 40 - - col0 AS col1 FROM tab1
----
125
131
91
query I rowsort
SELECT DISTINCT + 20 - - col1 FROM tab0 AS cor0
----
101
21
41
query I rowsort
SELECT + - col0 + - col1 + + col2 AS col1 FROM tab2 AS cor0
----
-101
-74
-84
query I rowsort
SELECT + 21 * - + col1 FROM tab1 AS cor0
----
-105
-294
-987
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3820
SELECT ALL - 92 * - - CAST( + + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1288
-4324
-460
skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL - 92 * - - CAST ( + + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1288
-4324
-460
onlyif mysql # aggregate syntax:
query I rowsort label-3821
SELECT DISTINCT 29 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-87
skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT 29 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-87
query I rowsort
SELECT + col1 * + 37 + - 46 FROM tab1 cor0
----
139
1693
472
onlyif mysql # DIV for integer division:
query I rowsort label-3823
SELECT 54 DIV + ( col1 ) AS col0 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3823
SELECT 54 / + ( col1 ) AS col0 FROM tab2 AS cor0
----
0
0
1
onlyif mysql # DIV for integer division:
query I rowsort label-3824
SELECT DISTINCT - 3 DIV + 5 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT - 3 / + 5 AS col2 FROM tab0 AS cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-3825
SELECT + COUNT( * ) * - MAX( + col1 ) AS col2 FROM tab0
----
-243
skipif mysql # not compatible
query I rowsort label-3825
SELECT + COUNT ( * ) * - MAX ( + col1 ) AS col2 FROM tab0
----
-243
query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91
query I rowsort
SELECT DISTINCT - col0 + + - 79 * + col1 AS col2 FROM tab0 WHERE NOT - - col2 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3828
SELECT + COUNT( ALL - 81 ) FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-3828
SELECT + COUNT ( ALL - 81 ) FROM tab1
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-3829
SELECT DISTINCT ( + ( - SUM( ALL - ( + col0 ) ) ) ) AS col0 FROM tab1
----
227
skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT ( + ( - SUM ( ALL - ( + col0 ) ) ) ) AS col0 FROM tab1
----
227
onlyif mysql # aggregate syntax:
query I rowsort label-3830
SELECT ALL - + COUNT( * ) + 6 - - MAX( ALL + + 93 ) AS col0 FROM tab0 WHERE NOT + + 99 IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL - + COUNT ( * ) + 6 - - MAX ( ALL + + 93 ) AS col0 FROM tab0 WHERE NOT + + 99 IS NOT NULL
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3831
SELECT + COUNT( col1 ) AS col1 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-3831
SELECT + COUNT ( col1 ) AS col1 FROM tab0
----
3
query I rowsort
SELECT DISTINCT 13 * 92 AS col2 FROM tab2
----
1196
query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT ( NULL < NULL )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3834
SELECT ALL - ( SUM( CAST( col0 AS SIGNED ) ) ) FROM tab2
----
-185
skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL - ( SUM ( CAST ( col0 AS INTEGER ) ) ) FROM tab2
----
-185
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( - 19 + - col2, + ( - col0 ) + - ( - - col1 ) )
----
onlyif mysql # aggregate syntax:
query I rowsort label-3836
SELECT COUNT( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT NULL > + 35 * + col2
----
0
skipif mysql # not compatible
query I rowsort label-3836
SELECT COUNT ( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT NULL > + 35 * + col2
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-3837
SELECT MAX( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
96
skipif mysql # not compatible
query I rowsort label-3837
SELECT MAX ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
96
query I rowsort
SELECT - ( + - col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN col2 * + - col0 + col1 AND - col2
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 77 NOT BETWEEN 8 AND NULL
----
query I rowsort
SELECT DISTINCT + - col2 * + + 80 * - - col1 FROM tab2 AS cor0
----
-246400
-310880
-93840
query I rowsort
SELECT - ( + col1 ) + - - col2 FROM tab1 AS cor0
----
21
54
82
query I rowsort
SELECT - + ( col2 ) + + 76 + - col0 + ( - + col1 ) + - col2 * + ( - ( + 29 ) ) AS col0 FROM tab0 AS cor0
----
1296
248
2750
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-3844
SELECT DISTINCT - 48 + + + MIN( DISTINCT + ( + + col0 ) ) col2, CAST( - ( MIN( DISTINCT 71 ) ) AS SIGNED ) FROM tab0 AS cor0
----
-33
-71
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3844
SELECT DISTINCT - 48 + + + MIN ( DISTINCT + ( + + col0 ) ) col2, CAST ( - ( MIN ( DISTINCT 71 ) ) AS INTEGER ) FROM tab0 AS cor0
----
-33
-71
onlyif mysql # aggregate syntax:
query I rowsort label-3845
SELECT ( + 66 ) + + + COUNT( * ) FROM tab0 AS cor0 WHERE - col1 IN ( col2 )
----
66
skipif mysql # not compatible
query I rowsort label-3845
SELECT ( + 66 ) + + + COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 IN ( col2 )
----
66
onlyif mysql # aggregate syntax:
query I rowsort label-3846
SELECT + MAX( + - col0 ) AS col0 FROM tab1 AS cor0
----
-51
skipif mysql # not compatible
query I rowsort label-3846
SELECT + MAX ( + - col0 ) AS col0 FROM tab1 AS cor0
----
-51
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3847
SELECT DISTINCT + ( - CAST( - COUNT( * ) AS SIGNED ) ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab0 AS cor0
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 col0 FROM tab0 WHERE NULL IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-3849
SELECT ALL col2 + - col2 AS col2, CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
0
-15
0
-87
0
-97
skipif mysql # not compatible
query II rowsort label-3849
SELECT ALL col2 + - col2 AS col2, CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
0
-15
0
-87
0
-97
onlyif mysql # aggregate syntax:
query I rowsort label-3850
SELECT ALL COUNT( * ) + + + 37 AS col2 FROM tab0
----
40
skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL COUNT ( * ) + + + 37 AS col2 FROM tab0
----
40
query I rowsort
SELECT ALL col2 - + 85 + - + col1 + - 85 AS col0 FROM tab1
----
-116
-149
-88
onlyif mysql # aggregate syntax:
query I rowsort label-3852
SELECT DISTINCT MIN( DISTINCT col2 ) - + ( - + COUNT( * ) ) + 34 AS col1 FROM tab1
----
96
skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT MIN ( DISTINCT col2 ) - + ( - + COUNT ( * ) ) + 34 AS col1 FROM tab1
----
96
onlyif mysql # aggregate syntax:
query I rowsort label-3853
SELECT 49 - MAX( + col1 ) FROM tab2 cor0
----
-28
skipif mysql # not compatible
query I rowsort label-3853
SELECT 49 - MAX ( + col1 ) FROM tab2 cor0
----
-28
onlyif mysql # aggregate syntax:
query I rowsort label-3854
SELECT DISTINCT + + 8 * - - COUNT( + - col1 ) AS col2 FROM tab0 AS cor0
----
24
skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT + + 8 * - - COUNT ( + - col1 ) AS col2 FROM tab0 AS cor0
----
24
query III rowsort
SELECT * FROM tab1 WHERE - 2 IS NULL
----
query I rowsort
SELECT + ( - 31 ) AS col0 FROM tab2
----
-31
-31
-31
onlyif mysql # aggregate syntax:
query II rowsort label-3857
SELECT DISTINCT + COUNT( * ) AS col2, COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
9
skipif mysql # not compatible
query II rowsort label-3857
SELECT DISTINCT + COUNT ( * ) AS col2, COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
9
onlyif mysql # aggregate syntax:
query II rowsort label-3858
SELECT + COUNT( * ) AS col1, + COUNT( * ) * + 26 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
234
skipif mysql # not compatible
query II rowsort label-3858
SELECT + COUNT ( * ) AS col1, + COUNT ( * ) * + 26 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
234
query II rowsort
SELECT - col1 AS col0, - 4 FROM tab1
----
-14
-4
-47
-4
-5
-4
query II rowsort
SELECT + col0, col2 + - 72 AS col1 FROM tab1 AS cor0
----
51
24
85
-13
91
-4
query I rowsort
SELECT DISTINCT - col1 * + - col2 FROM tab0 AS cor0
----
210
3807
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 * + + 85 col1 FROM tab1 AS cor0
----
7990
7990
7990
onlyif mysql # aggregate syntax:
query II rowsort label-3863
SELECT ALL - - 13, - COUNT( * ) col1 FROM tab0 cor0
----
13
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3863
SELECT ALL - - 13, - COUNT ( * ) col1 FROM tab0 cor0
----
13
-3
onlyif mysql # aggregate syntax:
query I rowsort label-3864
SELECT DISTINCT - + MIN( ALL + 83 ) * - 51 + 82 AS col2 FROM tab0 AS cor0
----
4315
skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT - + MIN ( ALL + 83 ) * - 51 + 82 AS col2 FROM tab0 AS cor0
----
4315
query I rowsort
SELECT - col2 * + col0 * + 71 + col2 - + + 97 + - col2 * col2 AS col2 FROM tab1 AS cor0
----
-356833
-359584
-444001
query II rowsort
SELECT DISTINCT - col1 AS col2, + col0 FROM tab2 cor0
----
-51
46
-67
75
-77
64
query I rowsort
SELECT col0 * - - 12 AS col2 FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
1020
1092
612
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col2 FROM tab1
----
-73
-73
-73
query II rowsort
SELECT col1 * + 94, + col1 FROM tab1
----
1316
14
4418
47
470
5
onlyif mysql # DIV for integer division:
query I rowsort label-3870
SELECT col2 DIV + + col1 col2 FROM tab1
----
1
11
6
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3870
SELECT col2 / + + col1 col2 FROM tab1
----
1
11
6
query I rowsort
SELECT DISTINCT col1 * + 40 FROM tab0
----
3240
40
840
query II rowsort
SELECT col2 * col2, col2 AS col1 FROM tab1
----
3481
59
4624
68
9216
96
onlyif mysql # aggregate syntax:
query II rowsort label-3873
SELECT - 36 * - COUNT( * ) AS col1, COUNT( + col0 ) + COUNT( * ) * + 23 FROM tab0
----
108
72
skipif mysql # not compatible
query II rowsort label-3873
SELECT - 36 * - COUNT ( * ) AS col1, COUNT ( + col0 ) + COUNT ( * ) * + 23 FROM tab0
----
108
72
query I rowsort
SELECT DISTINCT - + 61 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col2 AND NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3875
SELECT ALL + + 42 + - CAST( col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
-25
-35
-9
skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL + + 42 + - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
-25
-35
-9
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3876
SELECT DISTINCT + COUNT( * ) * - - ( CAST( NULL AS SIGNED ) ) + - 42 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT + COUNT ( * ) * - - ( CAST ( NULL AS INTEGER ) ) + - 42 FROM tab1
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3877
SELECT + ( + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-3877
SELECT + ( + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT + + col0 IS NULL
----
-46
-64
-75
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3879
SELECT ALL + col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL + col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 9 AS col2 FROM tab0 cor0
----
9
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3881
SELECT col2 * + 5 FROM tab0 AS cor0 WHERE - col2 * + ( 78 ) + - - CAST( - CAST( - 62 AS SIGNED ) AS SIGNED ) IS NULL
----
skipif mysql # not compatible
query I rowsort label-3881
SELECT col2 * + 5 FROM tab0 AS cor0 WHERE - col2 * + ( 78 ) + - - CAST ( - CAST ( - 62 AS INTEGER ) AS INTEGER ) IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3882
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-3882
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= - col2 / col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-3884
SELECT ALL - + SUM( + - col2 ) FROM tab2 cor0
----
121
skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL - + SUM ( + - col2 ) FROM tab2 cor0
----
121
query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3886
SELECT - col2 * CAST( - 93 AS SIGNED ) + - col2 AS col2 FROM tab1 AS cor0
----
5428
6256
8832
skipif mysql # not compatible
query I rowsort label-3886
SELECT - col2 * CAST ( - 93 AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0
----
5428
6256
8832
query I rowsort
SELECT ALL - - col2 + 80 AS col0 FROM tab0 AS cor0
----
127
179
90
onlyif mysql # DIV for integer division:
query I rowsort label-3888
SELECT + - col1 + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
-13
-4
-46
skipif mysql # not compatible
query I rowsort label-3888
SELECT + - col1 + col0 / col0 AS col0 FROM tab1 AS cor0
----
-13
-4
-46
onlyif mysql # aggregate syntax:
query I rowsort label-3889
SELECT 82 + + COUNT( * ) AS col0 FROM tab2
----
85
skipif mysql # not compatible
query I rowsort label-3889
SELECT 82 + + COUNT ( * ) AS col0 FROM tab2
----
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 + ( col0 ) col0 FROM tab1
----
141
175
181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col2 + + col0 col0 FROM tab2
----
1664
3439
575
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 30 col2 FROM tab0
----
111
31
51
onlyif mysql # aggregate syntax:
query I rowsort label-3893
SELECT DISTINCT COUNT( * ) + 20 FROM tab0
----
23
skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT COUNT ( * ) + 20 FROM tab0
----
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 + + - 9 col0 FROM tab1
----
22
22
22
query I rowsort
SELECT col2 + - + col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 57 col0, 63 FROM tab1
----
-57
63
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT ALL - + col2, col2 FROM tab0 cor0
----
-10
10
-47
47
-99
99
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + col0 IN ( - - 65, - col1, + 35 * - col1 * + + 25, + col2, + col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col2, col0 AS col1 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15
query I rowsort
SELECT DISTINCT - - 43 FROM tab2 cor0
----
43
query II rowsort
SELECT ALL + col1 AS col1, 1 FROM tab1 AS cor0
----
14
1
47
1
5
1
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT ALL - 26 * + 91 FROM tab0 AS cor0
----
-2366
-2366
-2366
query I rowsort
SELECT - - col1 * + + col2 AS col1 FROM tab0 AS cor0
----
210
3807
99
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( col2 ) IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 col0 FROM tab1 AS cor0
----
-95
-95
-95
query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
51
85
91
query I rowsort
SELECT col0 + + col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT + - ( + 76 ) FROM tab1 AS cor0
----
-76
-76
-76
onlyif mysql # aggregate syntax:
query I rowsort label-3912
SELECT - MIN( - + 63 ) * + 67 FROM tab1 AS cor0
----
4221
skipif mysql # not compatible
query I rowsort label-3912
SELECT - MIN ( - + 63 ) * + 67 FROM tab1 AS cor0
----
4221
onlyif mysql # aggregate syntax:
query I rowsort label-3913
SELECT - ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-3913
SELECT - ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3
onlyif mysql # DIV for integer division:
query I rowsort label-3914
SELECT + col0 * - + 12 * + col0 * - col0 + - col2 DIV + - ( 5 ) col2 FROM tab2 AS cor0
----
1168036
3145736
5062511
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3914
SELECT + col0 * - + 12 * + col0 * - col0 + - col2 / + - ( 5 ) col2 FROM tab2 AS cor0
----
1168036
3145736
5062511
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, col2 + + ( - col1 ) FROM tab0
----
-10
-11
-47
-34
-99
98
query II rowsort
SELECT 99 AS col2, 67 FROM tab2
----
99
67
99
67
99
67
onlyif mysql # aggregate syntax:
query I rowsort label-3917
SELECT ALL MAX( + + col0 ) FROM tab0
----
97
skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL MAX ( + + col0 ) FROM tab0
----
97
onlyif mysql # aggregate syntax:
query I rowsort label-3918
SELECT ALL + COUNT( ALL + - col2 ) col2 FROM tab2
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3918
SELECT ALL + COUNT ( ALL + - col2 ) col2 FROM tab2
----
3
query II rowsort
SELECT - - 27 AS col1, - col1 - + ( - - col1 ) * 43 * col2 AS col1 FROM tab0 AS cor0
----
27
-163782
27
-4258
27
-9051
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - 96 col2 FROM tab0 AS cor0
----
-4512
-9504
-960
query II rowsort
SELECT - col1 AS col0, - col2 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40
query I rowsort
SELECT - col0 + - - col0 - - col0 * + 38 - - + col1 * + + 36 FROM tab1 AS cor0 WHERE NOT + col0 * col2 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3923
SELECT + MIN( DISTINCT + col2 ) FROM tab1 cor0
----
59
skipif mysql # not compatible
query I rowsort label-3923
SELECT + MIN ( DISTINCT + col2 ) FROM tab1 cor0
----
59
query III rowsort
SELECT * FROM tab1 WHERE + col1 = NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query I rowsort label-3925
SELECT CAST( + COUNT( * ) AS SIGNED ) DIV - 38 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0
skipif mysql # not compatible
query I rowsort label-3925
SELECT CAST ( + COUNT ( * ) AS INTEGER ) / - 38 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-3926
SELECT DISTINCT 73 / CAST( NULL AS DECIMAL ), col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5
skipif mysql # not compatible
query II rowsort label-3926
SELECT DISTINCT 73 / CAST ( NULL AS REAL ), col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5
query I rowsort
SELECT col1 + + + col1 FROM tab2 AS cor0
----
102
134
154
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 col0 FROM tab1 AS cor0
----
-54
-54
-54
query I rowsort
SELECT 1 * 32 * - col2 AS col2 FROM tab0 AS cor0
----
-1504
-3168
-320
query I rowsort
SELECT - 61 * - - col0 * - col1 FROM tab1 AS cor0
----
25925
260897
43554
query I rowsort
SELECT DISTINCT - 9 + col1 FROM tab1 AS cor0
----
-4
38
5
query I rowsort
SELECT + 77 * + col2 + - - 85 * 46 FROM tab2 AS cor0 WHERE ( + col2 ) = NULL
----
query I rowsort
SELECT DISTINCT - - 22 * - - 90 * + + col1 AS col2 FROM tab1 cor0
----
27720
93060
9900
query II rowsort
SELECT - 1, + col0 FROM tab2 WHERE col2 <= + + ( - + 11 ) * - col1 * + - col1
----
query I rowsort
SELECT ALL col0 - 20 FROM tab1
----
31
65
71
query I rowsort
SELECT + 58 - col1 FROM tab1
----
11
44
53
query I rowsort
SELECT ALL - col0 + - 81 FROM tab1
----
-132
-166
-172
query I rowsort
SELECT ALL col0 - - 98 + - col0 - + + 4 * + col2 AS col2 FROM tab0
----
-298
-90
58
onlyif mysql # aggregate syntax:
query I rowsort label-3939
SELECT DISTINCT - MIN( - col2 ) + 50 FROM tab0
----
149
skipif mysql # not compatible
query I rowsort label-3939
SELECT DISTINCT - MIN ( - col2 ) + 50 FROM tab0
----
149
query I rowsort
SELECT + ( col0 ) * + col2 + + - col1 + - - col2 AS col2 FROM tab2 AS cor0
----
1030
2523
4341
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - col2 + - col2 col1 FROM tab0 AS cor0
----
-13
-197
1
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 + - - col2 + - col2 AND + 52
----
query I rowsort
SELECT col0 * + - 77 FROM tab1
----
-3927
-6545
-7007
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col0, + 13, - + 99 + + col1 * - - 12, + + ( + col1 ) )
----
query II rowsort
SELECT DISTINCT + 79 AS col0, 54 AS col0 FROM tab2
----
79
54
query II rowsort
SELECT + - col1 AS col2, col0 + + 8 FROM tab1 AS cor0
----
-14
59
-47
99
-5
93
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-3948
SELECT + - ( - MIN( DISTINCT 95 ) ) FROM tab1 AS cor0
----
95
skipif mysql # not compatible
query I rowsort label-3948
SELECT + - ( - MIN ( DISTINCT 95 ) ) FROM tab1 AS cor0
----
95
query I rowsort
SELECT ALL - - col0 AS col1 FROM tab1 AS cor0 WHERE - 85 IS NOT NULL
----
51
85
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 col0, - col2 * + 5 FROM tab1 AS cor0
----
-14
-480
-47
-340
-5
-295
query I rowsort
SELECT DISTINCT - 84 AS col0 FROM tab2 cor0
----
-84
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-3952
SELECT ALL col1, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL
skipif mysql # not compatible
query II rowsort label-3952
SELECT ALL col1, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-3953
SELECT DISTINCT - + COUNT( * ), - ( COUNT( * ) ) FROM tab1 cor0
----
-3
-3
skipif mysql # not compatible
query II rowsort label-3953
SELECT DISTINCT - + COUNT ( * ), - ( COUNT ( * ) ) FROM tab1 cor0
----
-3
-3
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 27 AND NULL
----
query II rowsort
SELECT ALL - col0, - col0 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3956
SELECT + col2 AS col1 FROM tab1 WHERE NOT CAST( 78 AS SIGNED ) < NULL
----
skipif mysql # not compatible
query I rowsort label-3956
SELECT + col2 AS col1 FROM tab1 WHERE NOT CAST ( 78 AS INTEGER ) < NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-3957
SELECT DISTINCT col2 DIV + ( + 84 ) + ( - col2 ) col1 FROM tab2
----
-23
-40
-58
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3957
SELECT DISTINCT col2 / + ( + 84 ) + ( - col2 ) col1 FROM tab2
----
-23
-40
-58
onlyif mysql # aggregate syntax:
query I rowsort label-3958
SELECT DISTINCT COUNT( * ) + + 26 AS col1 FROM tab1
----
29
skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT COUNT ( * ) + + 26 AS col1 FROM tab1
----
29
query II rowsort
SELECT ALL + - col1, + col0 FROM tab1 WHERE + - col0 + + + 31 IS NOT NULL
----
-14
51
-47
91
-5
85
query I rowsort
SELECT col2 * - 54 + - col2 FROM tab1
----
-3245
-3740
-5280
query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
15
87
97
query I rowsort
SELECT - col2 + 96 AS col2 FROM tab2 AS cor0
----
38
56
73
onlyif mysql # aggregate syntax:
query I rowsort label-3963
SELECT ALL - SUM( DISTINCT - - col2 ) AS col1 FROM tab1 AS cor0
----
-223
skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL - SUM ( DISTINCT - - col2 ) AS col1 FROM tab1 AS cor0
----
-223
onlyif mysql # aggregate syntax:
query I rowsort label-3964
SELECT ALL - - COUNT( * ) + - - MIN( DISTINCT 7 ) AS col2 FROM tab1 AS cor0
----
10
skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL - - COUNT ( * ) + - - MIN ( DISTINCT 7 ) AS col2 FROM tab1 AS cor0
----
10
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-3965
SELECT col1 AS col1, 45 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
51
NULL
67
NULL
77
NULL
skipif mysql # not compatible
query II rowsort label-3965
SELECT col1 AS col1, 45 + - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
51
NULL
67
NULL
77
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3966
SELECT DISTINCT - 33 * - COUNT( col2 ) - - + 80 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
176
skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT - 33 * - COUNT ( col2 ) - - + 80 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
176
query I rowsort
SELECT ALL - 99 * + col1 * + col0 * 24 * col2 - 13 AS col1 FROM tab0 AS cor0
----
-135681493
-22816741
-43409533
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND - + ( - col1 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3969
SELECT - - col2 + + ( + 60 ) + - + CAST( NULL AS SIGNED ) + - + col0 * - - col0 / + 13 * 72 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3969
SELECT - - col2 + + ( + 60 ) + - + CAST ( NULL AS INTEGER ) + - + col0 * - - col0 / + 13 * 72 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 2 + + + col2 - + - col2 AS col1 FROM tab2 AS cor0
----
114
44
78
onlyif mysql # aggregate syntax:
query I rowsort label-3971
SELECT DISTINCT - COUNT( - col2 ) AS col2 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT - COUNT ( - col2 ) AS col2 FROM tab0 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-3972
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
12
skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
12
query I rowsort
SELECT ALL + ( + + 96 ) * + col2 FROM tab2
----
2208
3840
5568
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3974
SELECT CAST( NULL AS SIGNED ) + - 42 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3974
SELECT CAST ( NULL AS INTEGER ) + - 42 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * + 61 + + + 31 AS col2 FROM tab1
----
3630
4179
5887
onlyif mysql # aggregate syntax:
query I rowsort label-3976
SELECT SUM( DISTINCT + ( + 64 ) ) AS col2 FROM tab2
----
64
skipif mysql # not compatible
query I rowsort label-3976
SELECT SUM ( DISTINCT + ( + 64 ) ) AS col2 FROM tab2
----
64
query I rowsort
SELECT 90 * 9 * 14 FROM tab2
----
11340
11340
11340
query I rowsort
SELECT DISTINCT - 40 * col0 + - col1 AS col2 FROM tab2
----
-1891
-2637
-3067
query I rowsort
SELECT ALL - + ( 93 ) AS col1 FROM tab0 AS cor0
----
-93
-93
-93
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query III rowsort label-3980
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( ( - CAST( - - col2 AS SIGNED ) ) AS DECIMAL ) IS NULL
----
skipif mysql # not compatible
query III rowsort label-3980
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( ( - CAST ( - - col2 AS INTEGER ) ) AS REAL ) IS NULL
----
query II rowsort
SELECT DISTINCT - - col0, col0 AS col1 FROM tab2 AS cor0
----
46
46
64
64
75
75
query II rowsort
SELECT + 49 AS col2, col0 * col1 AS col1 FROM tab1 cor0
----
49
425
49
4277
49
714
onlyif mysql # aggregate syntax:
query I rowsort label-3983
SELECT DISTINCT + + COUNT( * ) col0 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3983
SELECT DISTINCT + + COUNT ( * ) col0 FROM tab0 AS cor0
----
3
query I rowsort
SELECT + ( - + col1 ) FROM tab2 AS cor0
----
-51
-67
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col2 FROM tab1 cor0
----
18
18
18
query I rowsort
SELECT ALL - ( + - col1 ) FROM tab2 AS cor0
----
51
67
77
query II rowsort
SELECT + col1, ( col0 ) AS col0 FROM tab0 AS cor0
----
1
97
21
87
81
15
onlyif mysql # aggregate syntax:
query I rowsort label-3988
SELECT MAX( - col1 ) AS col0 FROM tab2 AS cor0
----
-51
skipif mysql # not compatible
query I rowsort label-3988
SELECT MAX ( - col1 ) AS col0 FROM tab2 AS cor0
----
-51
onlyif mysql # aggregate syntax:
query I rowsort label-3989
SELECT ALL + SUM( ALL - 73 ) FROM tab2 AS cor0
----
-219
skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL + SUM ( ALL - 73 ) FROM tab2 AS cor0
----
-219
onlyif mysql # aggregate syntax:
query I rowsort label-3990
SELECT COUNT( ALL + col1 ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-3990
SELECT COUNT ( ALL + col1 ) FROM tab0 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-3991
SELECT ( - + ( - + COUNT( * ) ) ) FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-3991
SELECT ( - + ( - + COUNT ( * ) ) ) FROM tab1
----
3
query I rowsort
SELECT 57 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
57
57
57
query I rowsort
SELECT ALL - ( + col2 ) + 88 AS col1 FROM tab2
----
30
48
65
onlyif mysql # aggregate syntax:
query I rowsort label-3994
SELECT - - COUNT( * ) * - + 90 FROM tab0 AS cor0 WHERE ( + 62 BETWEEN + - 65 AND - 15 )
----
0
skipif mysql # not compatible
query I rowsort label-3994
SELECT - - COUNT ( * ) * - + 90 FROM tab0 AS cor0 WHERE ( + 62 BETWEEN + - 65 AND - 15 )
----
0
query I rowsort
SELECT + 72 * 90 FROM tab0 AS cor0
----
6480
6480
6480
query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 / - col1 + + 13 IN ( - - col1 + + - col1, - col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col0 ) <= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query IIIIII rowsort
SELECT ALL * FROM ( tab1 cor0 CROSS JOIN tab1 cor1 )
----
54 values hashing to 375f372843089b03f23b00160007527a
query I rowsort
SELECT DISTINCT + col1 * + - col1 + + col0 - + - col0 FROM tab1 AS cor0
----
-2027
-94
145
query I rowsort
SELECT ALL + + 54 * + col0 FROM tab2 AS cor0
----
2484
3456
4050
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = + 95 + + - 10 + + 42
----
query I rowsort
SELECT + - 95 AS col0 FROM tab0 AS cor0
----
-95
-95
-95
query I rowsort
SELECT + col1 * + + col1 FROM tab0 cor0
----
1
441
6561
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN col1 AND 93 + col1
----
query I rowsort
SELECT - ( - col1 ) AS col2 FROM tab2 WHERE 35 IS NOT NULL
----
51
67
77
query I rowsort
SELECT - ( - - 26 ) AS col0 FROM tab2
----
-26
-26
-26
query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 40 * + col2 + - + col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL + 30 + + col2 FROM tab0
----
129
40
77
query III rowsort
SELECT * FROM tab1 WHERE ( 36 ) IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4010
SELECT DISTINCT - col0 FROM tab2 WHERE + CAST( NULL AS SIGNED ) * + 77 IS NULL
----
-46
-64
-75
skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT - col0 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) * + 77 IS NULL
----
-46
-64
-75
query I rowsort
SELECT DISTINCT - col0 - 68 * 82 AS col0 FROM tab2 WHERE - ( col2 ) + - 79 * 28 IS NOT NULL
----
-5622
-5640
-5651
query I rowsort
SELECT - ( + 44 ) AS col0 FROM tab2
----
-44
-44
-44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col1 FROM tab0 WHERE NULL <> NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) < NULL
----
query I rowsort
SELECT DISTINCT col2 + - ( 12 ) AS col0 FROM tab1
----
47
56
84
onlyif mysql # aggregate syntax:
query I rowsort label-4016
SELECT - SUM( 47 ) AS col1 FROM tab0
----
-141
skipif mysql # not compatible
query I rowsort label-4016
SELECT - SUM ( 47 ) AS col1 FROM tab0
----
-141
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4017
SELECT ALL * FROM tab2 WHERE NULL <> ( 31 ) * CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-4017
SELECT ALL * FROM tab2 WHERE NULL <> ( 31 ) * CAST ( NULL AS INTEGER )
----
query I rowsort
SELECT DISTINCT - ( - 97 ) + + 99 FROM tab1
----
196
onlyif mysql # aggregate syntax:
query I rowsort label-4019
SELECT - ( - COUNT( DISTINCT + col0 ) ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-4019
SELECT - ( - COUNT ( DISTINCT + col0 ) ) FROM tab2
----
3
query I rowsort
SELECT DISTINCT - ( col1 ) * 45 + col1 AS col2 FROM tab0
----
-3564
-44
-924
query III rowsort
SELECT * FROM tab2 WHERE + col2 NOT BETWEEN ( col1 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT 78 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
78
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4023
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT ( CAST( - 43 AS SIGNED ) ) <= NULL
----
0
skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT ( CAST ( - 43 AS INTEGER ) ) <= NULL
----
0
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( col0 ) + col1
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) <> NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4026
SELECT 6 + + COUNT( * ) FROM tab1
----
9
skipif mysql # not compatible
query I rowsort label-4026
SELECT 6 + + COUNT ( * ) FROM tab1
----
9
query I rowsort
SELECT col1 + 86 AS col1 FROM tab0
----
107
167
87
onlyif mysql # aggregate syntax:
query I rowsort label-4028
SELECT MIN( + 91 ) FROM tab1
----
91
skipif mysql # not compatible
query I rowsort label-4028
SELECT MIN ( + 91 ) FROM tab1
----
91
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4029
SELECT ALL - COUNT( * ) DIV 84 + + 18 FROM tab2
----
18
skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL - COUNT ( * ) / 84 + + 18 FROM tab2
----
18
query III rowsort
SELECT * FROM tab2 WHERE + 58 NOT IN ( - 1 / col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab2 WHERE ( 89 * col2 + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 90 col1 FROM tab1
----
4590
7650
8190
query I rowsort
SELECT 17 * + 73 AS col0 FROM tab0
----
1241
1241
1241
query I rowsort
SELECT DISTINCT col2 * 26 AS col1 FROM tab2 WHERE NULL BETWEEN col0 AND NULL
----
query I rowsort
SELECT ALL ( 26 ) FROM tab1
----
26
26
26
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 NOT BETWEEN NULL AND ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 13 NOT BETWEEN - col1 AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c
query I rowsort
SELECT ALL - 91 + col2 AS col1 FROM tab2
----
-33
-51
-68
onlyif mysql # aggregate syntax:
query I rowsort label-4041
SELECT - MAX( col2 ) FROM tab0
----
-99
skipif mysql # not compatible
query I rowsort label-4041
SELECT - MAX ( col2 ) FROM tab0
----
-99
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT col2 FROM tab0 WHERE ( NULL ) <> ( NULL )
----
query I rowsort
SELECT ALL col0 - col0 AS col2 FROM tab1 AS cor0 WHERE col2 = ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4045
SELECT ALL + 86 * + COUNT( * ) FROM tab1 cor0
----
258
skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL + 86 * + COUNT ( * ) FROM tab1 cor0
----
258
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + 58 col0 FROM tab2 AS cor0
----
104
122
133
onlyif mysql # aggregate syntax:
query I rowsort label-4047
SELECT DISTINCT MAX( DISTINCT col1 ) - 33 FROM tab1 cor0
----
14
skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT MAX ( DISTINCT col1 ) - 33 FROM tab1 cor0
----
14
query I rowsort
SELECT DISTINCT ( - 40 ) * 10 AS col2 FROM tab0 AS cor0
----
-400
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4049
SELECT DISTINCT CAST( 9 AS SIGNED ) FROM tab1 AS cor0 WHERE - col0 <= 3
----
9
skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT CAST ( 9 AS INTEGER ) FROM tab1 AS cor0 WHERE - col0 <= 3
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-4050
SELECT - + 48 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-45
skipif mysql # not compatible
query I rowsort label-4050
SELECT - + 48 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-45
query I rowsort
SELECT 39 + col1 * col2 AS col1 FROM tab0 AS cor0
----
138
249
3846
query I rowsort
SELECT col0 + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4053
SELECT + - COUNT( DISTINCT ( - col2 ) ) * + 96 FROM tab2 AS cor0
----
-288
skipif mysql # not compatible
query I rowsort label-4053
SELECT + - COUNT ( DISTINCT ( - col2 ) ) * + 96 FROM tab2 AS cor0
----
-288
onlyif mysql # DIV for integer division:
query I rowsort label-4054
SELECT + + 8 DIV - col1 FROM tab0 cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-4054
SELECT + + 8 / - col1 FROM tab0 cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT + ( - + 7 ) FROM tab1
----
-7
onlyif mysql # aggregate syntax:
query I rowsort label-4056
SELECT COUNT( ALL - 94 ) * MAX( ALL col1 + col1 * 25 ) FROM tab0
----
6318
skipif mysql # not compatible
query I rowsort label-4056
SELECT COUNT ( ALL - 94 ) * MAX ( ALL col1 + col1 * 25 ) FROM tab0
----
6318
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4057
SELECT ALL - CAST( - col1 AS SIGNED ) col1 FROM tab2
----
51
67
77
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4057
SELECT ALL - CAST ( - col1 AS INTEGER ) col1 FROM tab2
----
51
67
77
query III rowsort
SELECT ALL * FROM tab0 WHERE + 28 BETWEEN + col2 AND ( NULL )
----
query I rowsort
SELECT ALL col0 * - + 91 AS col0 FROM tab1
----
-4641
-7735
-8281
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT DISTINCT + 72 * ( - col2 ) FROM tab2 AS cor0
----
-1656
-2880
-4176
query I rowsort
SELECT ALL ( - 39 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 + col0 IN ( + 52 )
----
-51
-85
-91
query I rowsort
SELECT ALL + - ( - col2 ) * 91 FROM tab1 AS cor0
----
5369
6188
8736
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 97 AND NULL
----
query I rowsort
SELECT - ( + 64 ) - 71 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 * + 21 IS NULL
----
-135
-135
-135
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 NOT IN ( - col2 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-4068
SELECT ALL - CAST( NULL AS DECIMAL ) + - - 62 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL - CAST ( NULL AS REAL ) + - - 62 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL ) NOT BETWEEN ( - col2 ) AND - col1 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 82 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT + + col2 FROM tab2 WHERE NOT NULL IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-4072
SELECT DISTINCT - - col1 DIV + 49 AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4072
SELECT DISTINCT - - col1 / + 49 AS col2 FROM tab1 AS cor0
----
0
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4073
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
skipif mysql # not compatible
query III rowsort label-4073
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4074
SELECT + + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4074
SELECT + + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE + 2 * + 79 IN ( - col2 * - 72 - + col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4076
SELECT DISTINCT + - MAX( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0
----
-75
skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT + - MAX ( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0
----
-75
query I rowsort
SELECT DISTINCT 81 AS col0 FROM tab1 AS cor0 WHERE ( - col0 ) < + col2 / - 83 + 27
----
81
onlyif mysql # aggregate syntax:
query I rowsort label-4078
SELECT - - MAX( - 64 ) col0 FROM tab0 AS cor0
----
-64
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4078
SELECT - - MAX ( - 64 ) col0 FROM tab0 AS cor0
----
-64
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4079
SELECT ALL + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab2 WHERE + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 WHERE - + col0 >= ( - ( - 74 ) )
----
query I rowsort
SELECT ALL 13 + + 10 AS col2 FROM tab1
----
23
23
23
query I rowsort
SELECT DISTINCT + 40 + + 1 FROM tab2
----
41
query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE col0 / + 30 - + ( + col2 ) IS NULL
----
query I rowsort
SELECT 19 * + col1 AS col2 FROM tab2
----
1273
1463
969
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND + 45
----
onlyif mysql # DIV for integer division:
query I rowsort label-4087
SELECT DISTINCT - col1 DIV col0 * + col0 FROM tab2
----
-46
-64
0
skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT - col1 / col0 * + col0 FROM tab2
----
-46
-64
0
query I rowsort
SELECT ALL + - ( + - col2 ) FROM tab1 AS cor0
----
59
68
96
query I rowsort
SELECT - 56 - + - 72 * ( col1 ) - - col0 AS col0 FROM tab2 AS cor0
----
3662
4843
5552
query I rowsort
SELECT - col1 + + 76 AS col0 FROM tab1 cor0
----
29
62
71
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 61 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # DIV for integer division:
query I rowsort label-4092
SELECT col0 + + ( - 31 ) DIV col2 * col2 col2 FROM tab0 AS cor0
----
15
57
97
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4092
SELECT col0 + + ( - 31 ) / col2 * col2 col2 FROM tab0 AS cor0
----
15
57
97
query I rowsort
SELECT ALL - col1 + ( col1 ) - - 90 AS col0 FROM tab1
----
90
90
90
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4094
SELECT ALL 35 * - + CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL 35 * - + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT DISTINCT + ( - col0 ) * - 59 - - col0 AS col2 FROM tab0 AS cor0
----
5220
5820
900
query I rowsort
SELECT + col1 * 40 FROM tab0 AS cor0
----
3240
40
840
onlyif mysql # aggregate syntax:
query II rowsort label-4097
SELECT DISTINCT ( + + MIN( col1 ) ), + 46 AS col1 FROM tab1 AS cor0
----
5
46
skipif mysql # not compatible
query II rowsort label-4097
SELECT DISTINCT ( + + MIN ( col1 ) ), + 46 AS col1 FROM tab1 AS cor0
----
5
46
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 * col2 / - - 42 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col1 NOT IN ( + 22 + + - 82 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + col0 - - 15 ) NOT BETWEEN ( + 47 ) AND NULL AND NOT col1 < NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4101
SELECT + COUNT( + ( CAST( 90 AS SIGNED ) ) ) * MIN( ALL - 39 ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-117
skipif mysql # not compatible
query I rowsort label-4101
SELECT + COUNT ( + ( CAST ( 90 AS INTEGER ) ) ) * MIN ( ALL - 39 ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-117
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + col1 ) IS NULL AND NOT ( NULL ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4103
SELECT ALL - COUNT( * ) col1 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4103
SELECT ALL - COUNT ( * ) col1 FROM tab2 AS cor0
----
-3
query II rowsort
SELECT ALL - 36 AS col2, + 85 FROM tab2
----
-36
85
-36
85
-36
85
onlyif mysql # aggregate syntax:
query I rowsort label-4105
SELECT DISTINCT - COUNT( * ) FROM tab0, tab0 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT - COUNT ( * ) FROM tab0, tab0 AS cor0
----
-9
query I rowsort
SELECT 21 * + col0 FROM tab1 WHERE NOT ( NULL >= col2 * + 98 )
----
query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NULL NOT BETWEEN - + col1 AND NULL ) )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4108
SELECT COUNT( * ) * - + 52 AS col2 FROM tab1
----
-156
skipif mysql # not compatible
query I rowsort label-4108
SELECT COUNT ( * ) * - + 52 AS col2 FROM tab1
----
-156
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4109
SELECT CAST( + - col1 AS SIGNED ) * 20 AS col1 FROM tab1
----
-100
-280
-940
skipif mysql # not compatible
query I rowsort label-4109
SELECT CAST ( + - col1 AS INTEGER ) * 20 AS col1 FROM tab1
----
-100
-280
-940
query I rowsort
SELECT ALL - col0 * - col0 * + - 43 AS col1 FROM tab0
----
-325467
-404587
-9675
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col2 FROM tab2
----
52
52
52
onlyif mysql # aggregate syntax:
query I rowsort label-4112
SELECT DISTINCT SUM( ALL col0 ) AS col2 FROM tab0 AS cor0
----
199
skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT SUM ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
199
query I rowsort
SELECT ALL + - 61 * - 22 + - col0 AS col1 FROM tab0 AS cor0
----
1245
1255
1327
query II rowsort
SELECT ALL col2 AS col2, + 24 * + - col1 AS col1 FROM tab2 AS cor0
----
23
-1224
40
-1848
58
-1608
query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4116
SELECT ALL + + COUNT( * ) + + - MIN( - + 2 ) FROM tab0 AS cor0
----
5
skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL + + COUNT ( * ) + + - MIN ( - + 2 ) FROM tab0 AS cor0
----
5
query I rowsort
SELECT DISTINCT 95 FROM tab0 WHERE ( + col0 / col0 + 87 * + col1 ) IS NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-4118
SELECT ( - ( + 71 ) ), + MIN( - + 19 ) AS col1 FROM tab0
----
-71
-19
skipif mysql # not compatible
query II rowsort label-4118
SELECT ( - ( + 71 ) ), + MIN ( - + 19 ) AS col1 FROM tab0
----
-71
-19
query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a
query I rowsort
SELECT + + 45 * + + col2 - + col2 - 54 * col1 - - col2 AS col2 FROM tab1 AS cor0
----
2385
3564
522
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - 14 + - 46 NOT IN ( - col1 + + + col0 ) )
----
query I rowsort
SELECT ALL - + 74 AS col0 FROM tab1 AS cor0
----
-74
-74
-74
query I rowsort
SELECT DISTINCT 43 * + - 22 + + ( + 28 ) AS col2 FROM tab1
----
-918
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4124
SELECT + CAST( NULL AS SIGNED ) * 79 + + COUNT( * ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4124
SELECT + CAST ( NULL AS INTEGER ) * 79 + + COUNT ( * ) FROM tab1
----
NULL
query I rowsort
SELECT 81 + + - col0 FROM tab2
----
17
35
6
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4126
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + + - 51 AS col0 FROM tab2
----
-109
-74
-91
skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + + - 51 AS col0 FROM tab2
----
-109
-74
-91
onlyif mysql # aggregate syntax:
query I rowsort label-4127
SELECT COUNT( * ) + - 3 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-4127
SELECT COUNT ( * ) + - 3 FROM tab2
----
0
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4128
SELECT * FROM tab0 WHERE CAST( col2 AS SIGNED ) BETWEEN - 33 AND ( col1 / + - ( - col1 ) )
----
skipif mysql # not compatible
query III rowsort label-4128
SELECT * FROM tab0 WHERE CAST ( col2 AS INTEGER ) BETWEEN - 33 AND ( col1 / + - ( - col1 ) )
----
onlyif mysql # aggregate syntax:
query II rowsort label-4129
SELECT ALL 91 AS col0, SUM( ALL + + col1 ) FROM tab1
----
91
66
skipif mysql # not compatible
query II rowsort label-4129
SELECT ALL 91 AS col0, SUM ( ALL + + col1 ) FROM tab1
----
91
66
query II rowsort
SELECT ALL - 56 + - ( + col1 ) AS col2, - 58 FROM tab1
----
-103
-58
-61
-58
-70
-58
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( + col1 ) AND NULL
----
query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE 68 IS NOT NULL
----
-1
-21
-81
query I rowsort
SELECT ALL + - col0 - + 49 FROM tab2 AS cor0
----
-113
-124
-95
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT - col2 + - col0 IS NULL )
----
query I rowsort
SELECT - - 25 FROM tab2 cor0
----
25
25
25
query II rowsort
SELECT 20 AS col2, - col1 / - col0 AS col1 FROM tab2 cor0 WHERE NOT 69 * - col1 * - 47 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4138
SELECT DISTINCT + COUNT( * ) col1 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4138
SELECT DISTINCT + COUNT ( * ) col1 FROM tab0 AS cor0
----
3
query I rowsort
SELECT 61 * 88 FROM tab0 AS cor0
----
5368
5368
5368
query II rowsort
SELECT ALL col2 * + col0 AS col2, col1 AS col0 FROM tab2 AS cor0
----
1058
51
2560
77
4350
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 41 col0 FROM tab1 AS cor0
----
-41
-41
-41
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4142
SELECT CAST( col2 AS SIGNED ) col1 FROM tab0 AS cor0 WHERE - 30 IN ( + - 83 * - col0 * + - col1 * - col1 + - col0 * - 90 * 67 ) OR NOT NULL IS NOT NULL
----
10
47
99
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4142
SELECT CAST ( col2 AS INTEGER ) col1 FROM tab0 AS cor0 WHERE - 30 IN ( + - 83 * - col0 * + - col1 * - col1 + - col0 * - 90 * 67 ) OR NOT NULL IS NOT NULL
----
10
47
99
query I rowsort
SELECT 12 * - + col0 AS col1 FROM tab1 cor0
----
-1020
-1092
-612
onlyif mysql # aggregate syntax:
query I rowsort label-4144
SELECT 72 * - - COUNT( * ) FROM tab2
----
216
skipif mysql # not compatible
query I rowsort label-4144
SELECT 72 * - - COUNT ( * ) FROM tab2
----
216
onlyif mysql # aggregate syntax:
query I rowsort label-4145
SELECT COUNT( * ) * 2 FROM tab2
----
6
skipif mysql # not compatible
query I rowsort label-4145
SELECT COUNT ( * ) * 2 FROM tab2
----
6
query I rowsort
SELECT DISTINCT - 13 AS col2 FROM tab1
----
-13
query I rowsort
SELECT 20 * - col0 FROM tab1
----
-1020
-1700
-1820
query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58
query III rowsort
SELECT * FROM tab0 WHERE NOT + 95 / - - col0 + + 61 NOT IN ( + - col0, - 9 )
----
query I rowsort
SELECT - + col1 FROM tab2 WHERE NOT + 90 IS NULL
----
-51
-67
-77
onlyif mysql # aggregate syntax:
query I rowsort label-4151
SELECT - MIN( + - 62 ) FROM tab0
----
62
skipif mysql # not compatible
query I rowsort label-4151
SELECT - MIN ( + - 62 ) FROM tab0
----
62
query I rowsort
SELECT + - 83 AS col1 FROM tab1 AS cor0
----
-83
-83
-83
query I rowsort
SELECT - ( 25 ) AS col2 FROM tab0 cor0
----
-25
-25
-25
onlyif mysql # aggregate syntax:
query I rowsort label-4154
SELECT MIN( - + col1 ) FROM tab1
----
-47
skipif mysql # not compatible
query I rowsort label-4154
SELECT MIN ( - + col1 ) FROM tab1
----
-47
onlyif mysql # aggregate syntax:
query I rowsort label-4155
SELECT ALL MIN( ALL - col0 ) AS col2 FROM tab2
----
-75
skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL MIN ( ALL - col0 ) AS col2 FROM tab2
----
-75
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4156
SELECT DISTINCT - 62 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT - 62 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
query I rowsort
SELECT ALL col0 + 21 AS col0 FROM tab1
----
106
112
72
onlyif mysql # aggregate syntax:
query I rowsort label-4158
SELECT + MIN( ( - - col1 ) ) + - 40 FROM tab1
----
-35
skipif mysql # not compatible
query I rowsort label-4158
SELECT + MIN ( ( - - col1 ) ) + - 40 FROM tab1
----
-35
onlyif mysql # DIV for integer division:
query I rowsort label-4159
SELECT - 34 DIV col0 * - ( + - ( col0 ) ) DIV - col0 - + + col0 + - 28 FROM tab0 AS cor0
----
-115
-125
-41
skipif mysql # not compatible
query I rowsort label-4159
SELECT - 34 / col0 * - ( + - ( col0 ) ) / - col0 - + + col0 + - 28 FROM tab0 AS cor0
----
-115
-125
-41
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4160
SELECT CAST( + col2 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4160
SELECT CAST ( + col2 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 40 + 88 FROM tab0 AS cor0
----
128
128
128
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 * + col2 ) = NULL
----
query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58
query II rowsort
SELECT DISTINCT - - 51, 26 AS col0 FROM tab1 AS cor0
----
51
26
query I rowsort
SELECT + col0 * 14 AS col1 FROM tab0 AS cor0
----
1218
1358
210
query I rowsort
SELECT col0 * + - col0 FROM tab0 AS cor0
----
-225
-7569
-9409
query II rowsort
SELECT col0, - ( + - 30 ) AS col0 FROM tab1 AS cor0
----
51
30
85
30
91
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col0 + - 40 col0 FROM tab2 cor0
----
51
6
67
35
77
24
query I rowsort
SELECT DISTINCT ( + col1 ) + col1 FROM tab2 WHERE ( ( + + 26 ) NOT IN ( - - col1 ) )
----
102
134
154
query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE ( NULL ) IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9
query I rowsort
SELECT - 94 - - col2 AS col2 FROM tab0
----
-47
-84
5
query I rowsort
SELECT DISTINCT + 95 + col1 * - col0 * + + col0 AS col2 FROM tab0
----
-158854
-18130
-9314
onlyif mysql # DIV for integer division:
query I rowsort label-4173
SELECT DISTINCT - 33 DIV - col2 - - 29 + - col0 * - col1 * - col1 AS col2 FROM tab2
----
-119616
-336646
-379427
skipif mysql # not compatible
query I rowsort label-4173
SELECT DISTINCT - 33 / - col2 - - 29 + - col0 * - col1 * - col1 AS col2 FROM tab2
----
-119616
-336646
-379427
query I rowsort
SELECT ALL - + col1 / + - ( - ( + ( - - col1 ) ) ) * - - col0 + - - 73 + - + col0 FROM tab2 WHERE NULL > NULL
----
query III rowsort
SELECT * FROM tab1 WHERE - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # DIV for integer division:
query I rowsort label-4176
SELECT + 73 - + 5 DIV - col1 FROM tab2
----
73
73
73
skipif mysql # not compatible
query I rowsort label-4176
SELECT + 73 - + 5 / - col1 FROM tab2
----
73
73
73
onlyif mysql # aggregate syntax:
query I rowsort label-4177
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE + col2 + - 62 <= - 41
----
0
skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE + col2 + - 62 <= - 41
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-4178
SELECT + col2 DIV + col1 - - 69 FROM tab2
----
69
69
69
skipif mysql # not compatible
query I rowsort label-4178
SELECT + col2 / + col1 - - 69 FROM tab2
----
69
69
69
query II rowsort
SELECT ALL - + col1 * + col2 AS col1, - col1 + col0 FROM tab0 AS cor0
----
-210
66
-3807
-66
-99
96
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4181
SELECT DISTINCT - ( 78 ) + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT - ( 78 ) + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-4182
SELECT 43 AS col2, 36 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
43
33
skipif mysql # not compatible
query II rowsort label-4182
SELECT 43 AS col2, 36 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
43
33
query II rowsort
SELECT - col2 AS col2, col1 + - 64 FROM tab0 AS cor0
----
-10
-43
-47
17
-99
-63
onlyif mysql # aggregate syntax:
query I rowsort label-4184
SELECT DISTINCT - MAX( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-77
skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT - MAX ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-77
query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab2 AS cor0 WHERE col0 / - col2 NOT IN ( + col1, col1 )
----
-51
-67
-77
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4186
SELECT DISTINCT 65 + + col2 + + + col1 - col0 AS col0 FROM tab1 cor0 WHERE ( + CAST( NULL AS SIGNED ) + col2 - col0 NOT IN ( - 23 * + + col1 - - ( col0 ) ) )
----
skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT 65 + + col2 + + + col1 - col0 AS col0 FROM tab1 cor0 WHERE ( + CAST ( NULL AS INTEGER ) + col2 - col0 NOT IN ( - 23 * + + col1 - - ( col0 ) ) )
----
onlyif mysql # DIV for integer division:
query I rowsort label-4187
SELECT DISTINCT - - col0 DIV - col0 + col1 * - + col0 FROM tab0 AS cor0
----
-1216
-1828
-98
skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT - - col0 / - col0 + col1 * - + col0 FROM tab0 AS cor0
----
-1216
-1828
-98
query II rowsort
SELECT DISTINCT 41, 59 AS col2 FROM tab0 AS cor0
----
41
59
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4189
SELECT ALL CAST( ( + COUNT( * ) ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL CAST ( ( + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3
query I rowsort
SELECT + 18 FROM tab0 WHERE NOT - ( - ( + col2 ) ) / + + ( col0 ) * col0 BETWEEN + 36 AND - + col1 + + col1 + col2 * + - 75
----
18
18
18
query I rowsort
SELECT ALL col1 + 62 FROM tab1 WHERE NOT NULL IS NOT NULL
----
109
67
76
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-4192
SELECT DISTINCT col0 DIV + CAST( 34 AS SIGNED ) FROM tab1
----
1
2
skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT col0 / + CAST ( 34 AS INTEGER ) FROM tab1
----
1
2
onlyif mysql # aggregate syntax:
query I rowsort label-4193
SELECT DISTINCT MIN( ALL - col1 ) AS col0 FROM tab0
----
-81
skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT MIN ( ALL - col1 ) AS col0 FROM tab0
----
-81
query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 < NULL
----
query I rowsort
SELECT ALL - col1 + + 16 FROM tab0 WHERE NOT 34 * + col0 * + col1 NOT BETWEEN NULL AND - 5
----
query I rowsort
SELECT DISTINCT + ( - 62 ) FROM tab0
----
-62
query I rowsort
SELECT + 65 * - col0 AS col2 FROM tab1
----
-3315
-5525
-5915
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <= - + 66 / - + 43 + - ( - col1 )
----
97
1
99
query I rowsort
SELECT DISTINCT + 26 * col2 + + + col0 FROM tab0 AS cor0
----
1237
2671
347
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - col1
----
query I rowsort
SELECT - 22 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4203
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + - CAST( NULL AS SIGNED ) <= - + 15 + - 70 - CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-4203
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + - CAST ( NULL AS INTEGER ) <= - + 15 + - 70 - CAST ( NULL AS INTEGER )
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-4204
SELECT ALL + ( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL + ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-4205
SELECT DISTINCT + SUM( DISTINCT col0 ) * - + 52 AS col2 FROM tab1 AS cor0
----
-11804
skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT + SUM ( DISTINCT col0 ) * - + 52 AS col2 FROM tab1 AS cor0
----
-11804
onlyif mysql # aggregate syntax:
query I rowsort label-4206
SELECT - - 74 + + - COUNT( ALL - 18 ) FROM tab0 AS cor0
----
71
skipif mysql # not compatible
query I rowsort label-4206
SELECT - - 74 + + - COUNT ( ALL - 18 ) FROM tab0 AS cor0
----
71
query I rowsort
SELECT + 6 + + + col2 FROM tab1 cor0
----
102
65
74
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4208
SELECT col2 + - col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4208
SELECT col2 + - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + col1 + + col0 FROM tab1 WHERE NOT 12 IS NULL
----
-31
31
70
onlyif mysql # aggregate syntax:
query I rowsort label-4210
SELECT ALL 18 * + COUNT( + col1 ) FROM tab0
----
54
skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL 18 * + COUNT ( + col1 ) FROM tab0
----
54
query I rowsort
SELECT + col2 + + 41 FROM tab2
----
64
81
99
query II rowsort
SELECT - 42 AS col0, - 17 * - + col2 FROM tab1
----
-42
1003
-42
1156
-42
1632
onlyif mysql # aggregate syntax:
query I rowsort label-4213
SELECT ALL 90 - + COUNT( * ) + + 64 * 44 AS col0 FROM tab0
----
2903
skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL 90 - + COUNT ( * ) + + 64 * 44 AS col0 FROM tab0
----
2903
onlyif mysql # aggregate syntax:
query I rowsort label-4214
SELECT DISTINCT + + COUNT( * ) * + 99 FROM tab1 AS cor0
----
297
skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT + + COUNT ( * ) * + 99 FROM tab1 AS cor0
----
297
query II rowsort
SELECT ALL - ( - 40 ), col2 FROM tab1 AS cor0
----
40
59
40
68
40
96
query I rowsort
SELECT DISTINCT 42 * - col2 AS col1 FROM tab0 AS cor0
----
-1974
-4158
-420
onlyif mysql # aggregate syntax:
query I rowsort label-4217
SELECT MAX( - 79 ) FROM tab0 AS cor0
----
-79
skipif mysql # not compatible
query I rowsort label-4217
SELECT MAX ( - 79 ) FROM tab0 AS cor0
----
-79
query III rowsort
SELECT * FROM tab1 WHERE NOT - - 34 IS NOT NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4219
SELECT ALL MIN( - col2 ) * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL MIN ( - col2 ) * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 * col0 col1 FROM tab0 cor0
----
10575
75690
931491
onlyif mysql # DIV for integer division:
query II rowsort label-4221
SELECT DISTINCT + + col0 DIV col1, col1 FROM tab2 AS cor0
----
0
51
0
77
1
67
skipif mysql # not compatible
query II rowsort label-4221
SELECT DISTINCT + + col0 / col1, col1 FROM tab2 AS cor0
----
0
51
0
77
1
67
query I rowsort
SELECT + - col2 FROM tab2 AS cor0 WHERE NOT ( - ( - col2 ) ) <= - 38
----
-23
-40
-58
onlyif mysql # aggregate syntax:
query I rowsort label-4223
SELECT + MIN( ALL 60 ) AS col1 FROM tab1 cor0
----
60
skipif mysql # not compatible
query I rowsort label-4223
SELECT + MIN ( ALL 60 ) AS col1 FROM tab1 cor0
----
60
onlyif mysql # aggregate syntax:
query I rowsort label-4224
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 WHERE col1 < 91
----
-3
skipif mysql # not compatible
query I rowsort label-4224
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 WHERE col1 < 91
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-4225
SELECT + MAX( ALL - + 6 ) FROM tab2 AS cor0
----
-6
skipif mysql # not compatible
query I rowsort label-4225
SELECT + MAX ( ALL - + 6 ) FROM tab2 AS cor0
----
-6
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4226
SELECT ALL - col1 * - 76 * + col2 + + col1 + col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL - col1 * - 76 * + col2 + + col1 + col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 IN ( 77 + 38 + + - col1 * + 26 )
----
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-4228
SELECT DISTINCT + CAST( + col2 AS SIGNED ) DIV - col2 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) / - col2 FROM tab0
----
-1
query I rowsort
SELECT - col1 * + ( + col0 ) FROM tab2
----
-2346
-4928
-5025
query II rowsort
SELECT ALL - col1, + col2 AS col0 FROM tab2
----
-51
23
-67
58
-77
40
query I rowsort
SELECT - - col2 FROM tab0 WHERE NOT ( + ( + col1 ) IS NULL )
----
10
47
99
onlyif mysql # aggregate syntax:
query I rowsort label-4232
SELECT - ( - + COUNT( col0 ) ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-4232
SELECT - ( - + COUNT ( col0 ) ) FROM tab0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-4233
SELECT DISTINCT SUM( - - 60 ) + - COUNT( * ) + + 23 AS col0 FROM tab1
----
200
skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT SUM ( - - 60 ) + - COUNT ( * ) + + 23 AS col0 FROM tab1
----
200
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 84 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-4236
SELECT - COUNT( * ) * + COUNT( * ) col2 FROM tab2
----
-9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4236
SELECT - COUNT ( * ) * + COUNT ( * ) col2 FROM tab2
----
-9
onlyif mysql # aggregate syntax:
query I rowsort label-4237
SELECT DISTINCT ( - MAX( ALL - - col1 ) ) FROM tab2
----
-77
skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT ( - MAX ( ALL - - col1 ) ) FROM tab2
----
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col1 FROM tab2
----
23
23
23
query I rowsort
SELECT DISTINCT 53 * col2 AS col1 FROM tab1 AS cor0
----
3127
3604
5088
onlyif mysql # DIV for integer division:
query I rowsort label-4240
SELECT ALL - + col2 DIV + 25 FROM tab0 AS cor0
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL - + col2 / + 25 FROM tab0 AS cor0
----
-1
-3
0
query I rowsort
SELECT ALL - 74 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130
query I rowsort
SELECT DISTINCT col2 + + + col0 AS col1 FROM tab0
----
196
62
97
query I rowsort
SELECT DISTINCT + 17 * - - col2 FROM tab1
----
1003
1156
1632
query I rowsort
SELECT ALL - + 33 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-4246
SELECT - col0 DIV - - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4246
SELECT - col0 / - - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT + col1 * - 44 FROM tab0 cor0
----
-3564
-44
-924
query I rowsort
SELECT DISTINCT 0 + + col0 + col1 FROM tab1
----
138
65
90
query I rowsort
SELECT ALL 99 AS col0 FROM tab2
----
99
99
99
query I rowsort
SELECT ALL - col2 + + 58 AS col0 FROM tab1
----
-1
-10
-38
query I rowsort
SELECT col0 + 80 AS col1 FROM tab1
----
131
165
171
query I rowsort
SELECT 42 + col2 FROM tab2
----
100
65
82
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 55 + - col1 < NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4254
SELECT + MIN( col0 ) FROM tab2 cor0
----
46
skipif mysql # not compatible
query I rowsort label-4254
SELECT + MIN ( col0 ) FROM tab2 cor0
----
46
onlyif mysql # aggregate syntax:
query I rowsort label-4255
SELECT ALL + 86 * 84 + - + 87 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
7140
skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL + 86 * 84 + - + 87 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
7140
query I rowsort
SELECT ALL - col0 * - col0 + col2 AS col0 FROM tab2 AS cor0
----
2139
4136
5683
onlyif mysql # aggregate syntax:
query I rowsort label-4257
SELECT ALL + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
onlyif mysql # aggregate syntax:
query I rowsort label-4258
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
onlyif mysql # aggregate syntax:
query I rowsort label-4259
SELECT - 59 + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-68
skipif mysql # not compatible
query I rowsort label-4259
SELECT - 59 + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-68
query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE - col0 * - col2 NOT BETWEEN col2 AND 42
----
-10
-47
-99
query I rowsort
SELECT ALL 79 * 71 * col0 FROM tab1 AS cor0
----
286059
476765
510419
query II rowsort
SELECT DISTINCT + 44 AS col2, + col0 - + col0 FROM tab2 cor0
----
44
0
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4263
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1
----
-3
onlyif mysql # DIV for integer division:
query I rowsort label-4264
SELECT + 24 + + - col2 DIV + - col2 + 22 * col0 FROM tab2
----
1037
1433
1675
skipif mysql # not compatible
query I rowsort label-4264
SELECT + 24 + + - col2 / + - col2 + 22 * col0 FROM tab2
----
1037
1433
1675
onlyif mysql # DIV for integer division:
query II rowsort label-4265
SELECT ALL col1, + ( 19 ) DIV + - 71 + - col2 FROM tab1 WHERE NOT col0 DIV - - 82 + 48 + + col2 IS NULL
----
14
-96
47
-68
5
-59
skipif mysql # not compatible
query II rowsort label-4265
SELECT ALL col1, + ( 19 ) / + - 71 + - col2 FROM tab1 WHERE NOT col0 / - - 82 + 48 + + col2 IS NULL
----
14
-96
47
-68
5
-59
query I rowsort
SELECT DISTINCT 51 + + 76 FROM tab2
----
127
query II rowsort
SELECT ALL - 67 + 4 AS col0, col0 AS col0 FROM tab2
----
-63
46
-63
64
-63
75
query I rowsort
SELECT DISTINCT col1 * - 44 * - col1 * - col1 AS col1 FROM tab0
----
-23383404
-407484
-44
onlyif mysql # aggregate syntax:
query I rowsort label-4269
SELECT 56 + - MAX( - col1 ) AS col1 FROM tab1
----
61
skipif mysql # not compatible
query I rowsort label-4269
SELECT 56 + - MAX ( - col1 ) AS col1 FROM tab1
----
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + col2 col0 FROM tab0 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4271
SELECT ALL 92 * COUNT( * ) AS col1 FROM tab0
----
276
skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL 92 * COUNT ( * ) AS col1 FROM tab0
----
276
onlyif mysql # aggregate syntax:
query I rowsort label-4272
SELECT 64 + + - 79 + + COUNT( * ) FROM tab2
----
-12
skipif mysql # not compatible
query I rowsort label-4272
SELECT 64 + + - 79 + + COUNT ( * ) FROM tab2
----
-12
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL ) < 48 )
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-4274
SELECT ALL - col1 + - col2 + - + CAST( NULL AS SIGNED ), col0 * col1 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
-119646
NULL
-336675
NULL
-379456
skipif mysql # not compatible
query II rowsort label-4274
SELECT ALL - col1 + - col2 + - + CAST ( NULL AS INTEGER ), col0 * col1 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
-119646
NULL
-336675
NULL
-379456
onlyif mysql # aggregate syntax:
query I rowsort label-4275
SELECT + COUNT( + + ( + 63 ) ) AS col0 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-4275
SELECT + COUNT ( + + ( + 63 ) ) AS col0 FROM tab2 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-4276
SELECT + COUNT( - + 78 ) AS col2 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-4276
SELECT + COUNT ( - + 78 ) AS col2 FROM tab0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-4277
SELECT MAX( ALL + col1 ) FROM tab0
----
81
skipif mysql # not compatible
query I rowsort label-4277
SELECT MAX ( ALL + col1 ) FROM tab0
----
81
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-4278
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, MIN( - + 70 ) * 25 + - 54 AS col2 FROM tab2 AS cor0
----
NULL
-1804
skipif mysql # not compatible
query II rowsort label-4278
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, MIN ( - + 70 ) * 25 + - 54 AS col2 FROM tab2 AS cor0
----
NULL
-1804
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( + 81, - col0 - - col1, + - col2 + - col1 + - col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + 72 col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
query II rowsort
SELECT ALL 40 AS col2, 14 * col2 AS col0 FROM tab1 AS cor0
----
40
1344
40
826
40
952
onlyif mysql # aggregate syntax:
query I rowsort label-4282
SELECT DISTINCT - SUM( 18 ) + + 92 * + 70 FROM tab0 AS cor0
----
6386
skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT - SUM ( 18 ) + + 92 * + 70 FROM tab0 AS cor0
----
6386
onlyif mysql # DIV for integer division:
query I rowsort label-4283
SELECT col2 DIV col1 * col1 FROM tab1
----
47
55
84
skipif mysql # not compatible
query I rowsort label-4283
SELECT col2 / col1 * col1 FROM tab1
----
47
55
84
onlyif mysql # DIV for integer division:
query II rowsort label-4284
SELECT 47 DIV + - col1 AS col0, - 87 * - + ( - col1 ) FROM tab1
----
-1
-4089
-3
-1218
-9
-435
skipif mysql # not compatible
query II rowsort label-4284
SELECT 47 / + - col1 AS col0, - 87 * - + ( - col1 ) FROM tab1
----
-1
-4089
-3
-1218
-9
-435
query I rowsort
SELECT DISTINCT + 34 * - + ( - col1 ) AS col1 FROM tab1
----
1598
170
476
onlyif mysql # DIV for integer division:
query II rowsort label-4286
SELECT col0 DIV col1 AS col1, col0 + col1 AS col0 FROM tab1
----
1
138
17
90
3
65
skipif mysql # not compatible
query II rowsort label-4286
SELECT col0 / col1 AS col1, col0 + col1 AS col0 FROM tab1
----
1
138
17
90
3
65
query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL = - col0 )
----
query I rowsort
SELECT col1 * - - ( + 44 ) AS col1 FROM tab0
----
3564
44
924
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4289
SELECT DISTINCT SUM( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col0 * - - col1, col1 * col0 col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-36125
425
-36414
714
-389207
4277
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col2 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-4292
SELECT + - MIN( ALL col2 ) FROM tab1 AS cor0
----
-59
skipif mysql # not compatible
query I rowsort label-4292
SELECT + - MIN ( ALL col2 ) FROM tab1 AS cor0
----
-59
onlyif mysql # aggregate syntax:
query I rowsort label-4293
SELECT DISTINCT COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9
skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9
onlyif mysql # aggregate syntax:
query II rowsort label-4294
SELECT - COUNT( * ) + + ( 88 ) AS col0, SUM( ALL - col1 ) FROM tab1 AS cor0
----
85
-66
skipif mysql # not compatible
query II rowsort label-4294
SELECT - COUNT ( * ) + + ( 88 ) AS col0, SUM ( ALL - col1 ) FROM tab1 AS cor0
----
85
-66
query I rowsort
SELECT - col1 + + 52 AS col2 FROM tab2 cor0
----
-15
-25
1
onlyif mysql # aggregate syntax:
query I rowsort label-4296
SELECT ALL ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3
query I rowsort
SELECT DISTINCT + col1 + - - col0 - col1 AS col0 FROM tab0 AS cor0
----
15
87
97
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4298
SELECT DISTINCT - - CAST( - MIN( CAST( col0 AS SIGNED ) ) AS SIGNED ) FROM tab0 AS cor0
----
-15
skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT - - CAST ( - MIN ( CAST ( col0 AS INTEGER ) ) AS INTEGER ) FROM tab0 AS cor0
----
-15
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + - col1 ) <= col0
----
46
51
23
64
77
40
onlyif mysql # aggregate syntax:
query I rowsort label-4300
SELECT + - ( - + MAX( ALL + col0 ) ) AS col2 FROM tab0 AS cor0
----
97
skipif mysql # not compatible
query I rowsort label-4300
SELECT + - ( - + MAX ( ALL + col0 ) ) AS col2 FROM tab0 AS cor0
----
97
query I rowsort
SELECT ALL col2 + col2 * 25 * - col1 - + col0 FROM tab2 AS cor0
----
-29348
-77024
-97167
query III rowsort
SELECT * FROM tab0 WHERE col2 + - + col0 + col2 BETWEEN NULL AND + col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-4303
SELECT DISTINCT 76 * + 47 + - COUNT( * ) FROM tab1
----
3569
skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT 76 * + 47 + - COUNT ( * ) FROM tab1
----
3569
query III rowsort
SELECT * FROM tab1 WHERE - + col1 <= 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL - 25 + 72 FROM tab1
----
47
47
47
onlyif mysql # aggregate syntax:
query I rowsort label-4306
SELECT ALL + COUNT( * ) * - COUNT( * ) col0 FROM tab0
----
-9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4306
SELECT ALL + COUNT ( * ) * - COUNT ( * ) col0 FROM tab0
----
-9
onlyif mysql # DIV for integer division:
query II rowsort label-4307
SELECT ALL - col1 + + col0 col1, + 74 DIV + col0 col2 FROM tab1
----
37
1
44
0
80
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4307
SELECT ALL - col1 + + col0 col1, + 74 / + col0 col2 FROM tab1
----
37
1
44
0
80
0
onlyif mysql # aggregate syntax:
query I rowsort label-4308
SELECT ALL MAX( ALL - col0 ) FROM tab1
----
-51
skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL MAX ( ALL - col0 ) FROM tab1
----
-51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 * + col2 col0 FROM tab1
----
1475
1700
2400
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 58 * - col1 + 80 IS NOT NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query II rowsort label-4311
SELECT - COUNT( * ), - COUNT( * ) DIV - CAST( + 4 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3
0
skipif mysql # not compatible
query II rowsort label-4311
SELECT - COUNT ( * ), - COUNT ( * ) / - CAST ( + 4 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3
0
query I rowsort
SELECT + 78 + ( + 85 ) - + col2 FROM tab1 AS cor0
----
104
67
95
query III rowsort
SELECT * FROM tab2 WHERE 60 NOT BETWEEN - col0 * + - col1 AND + + 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 + col0 col1 FROM tab1
----
107
113
73
query I rowsort
SELECT col0 * - + col0 FROM tab2
----
-2116
-4096
-5625
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 13 IS NULL
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 * + col1 * - - col2 + - - col2 AND - - 19
----
query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 AND NULL
----
onlyif mysql # DIV for integer division:
query II rowsort label-4319
SELECT ALL + 42 AS col2, 77 DIV 7 + + 2 AS col1 FROM tab1
----
42
13
42
13
42
13
skipif mysql # not compatible
query II rowsort label-4319
SELECT ALL + 42 AS col2, 77 / 7 + + 2 AS col1 FROM tab1
----
42
13
42
13
42
13
onlyif mysql # DIV for integer division:
query I rowsort label-4320
SELECT ALL col1 DIV + - 71 AS col0 FROM tab2
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL col1 / + - 71 AS col0 FROM tab2
----
-1
0
0
onlyif mysql # DIV for integer division:
query I rowsort label-4321
SELECT DISTINCT + 24 DIV + 16 FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT + 24 / + 16 FROM tab2
----
1
query I rowsort
SELECT 18 * + col0 * - - col0 FROM tab2
----
101250
38088
73728
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-4323
SELECT 53 DIV CAST( - 96 AS SIGNED ) * - 7 + col1 * + - col0 FROM tab0 cor0
----
-1215
-1827
-97
skipif mysql # not compatible
query I rowsort label-4323
SELECT 53 / CAST ( - 96 AS INTEGER ) * - 7 + col1 * + - col0 FROM tab0 cor0
----
-1215
-1827
-97
onlyif mysql # aggregate syntax:
query I rowsort label-4324
SELECT + + ( + MIN( - + col1 ) ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-4324
SELECT + + ( + MIN ( - + col1 ) ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL
query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + - 31 > + col0
----
-1
-21
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4326
SELECT col0 * + col1 AS col1 FROM tab2 cor0 WHERE col0 + - col1 NOT BETWEEN CAST( NULL AS SIGNED ) AND col2 + - - 99
----
skipif mysql # not compatible
query I rowsort label-4326
SELECT col0 * + col1 AS col1 FROM tab2 cor0 WHERE col0 + - col1 NOT BETWEEN CAST ( NULL AS INTEGER ) AND col2 + - - 99
----
query I rowsort
SELECT + 6 + - col0 * - - col2 FROM tab1 AS cor0
----
-4890
-5009
-6182
query I rowsort
SELECT col0 + - - 31 FROM tab1
----
116
122
82
query I rowsort
SELECT - 99 + - 76 AS col0 FROM tab1
----
-175
-175
-175
onlyif mysql # aggregate syntax:
query I rowsort label-4330
SELECT - 44 + + - COUNT( * ) FROM tab1
----
-47
skipif mysql # not compatible
query I rowsort label-4330
SELECT - 44 + + - COUNT ( * ) FROM tab1
----
-47
query I rowsort
SELECT + 92 + col0 AS col1 FROM tab2
----
138
156
167
query I rowsort
SELECT DISTINCT + ( - + col2 ) FROM tab2
----
-23
-40
-58
onlyif mysql # aggregate syntax:
query I rowsort label-4333
SELECT ALL + MIN( ALL - ( - col2 ) ) AS col2 FROM tab2
----
23
skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL + MIN ( ALL - ( - col2 ) ) AS col2 FROM tab2
----
23
query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL >= NULL
----
query I rowsort
SELECT ALL - col2 * - + 32 + + - col0 AS col2 FROM tab1 WHERE NOT 66 + - col1 <> NULL
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4337
SELECT + COUNT( * ) DIV MAX( DISTINCT + col0 ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4337
SELECT + COUNT ( * ) / MAX ( DISTINCT + col0 ) FROM tab0 AS cor0
----
0
query I rowsort
SELECT - - 87 + + col0 + - - col2 + + col0 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 20 * + - col1 + - col0
----
query I rowsort
SELECT DISTINCT - 95 + - - col1 AS col0 FROM tab1 AS cor0
----
-48
-81
-90
query I rowsort
SELECT - col0 - + + col1 AS col2 FROM tab1
----
-138
-65
-90
onlyif mysql # aggregate syntax:
query I rowsort label-4341
SELECT ALL - SUM( DISTINCT - + col2 ) + 22 + - - COUNT( * ) AS col1 FROM tab2
----
146
skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL - SUM ( DISTINCT - + col2 ) + 22 + - - COUNT ( * ) AS col1 FROM tab2
----
146
query I rowsort
SELECT DISTINCT - 35 + - col0 - + col1 * + col1 FROM tab1
----
-145
-2335
-282
query I rowsort
SELECT DISTINCT - 85 - - + col2 FROM tab0
----
-38
-75
14
query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE col0 <> NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4345
SELECT COUNT( * ) * - COUNT( * ) col2 FROM tab0 AS cor0
----
-9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4345
SELECT COUNT ( * ) * - COUNT ( * ) col2 FROM tab0 AS cor0
----
-9
query I rowsort
SELECT ALL - 40 FROM tab2 AS cor0 WHERE 84 > NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4347
SELECT DISTINCT + 84 DIV COUNT( + col0 ) FROM tab0 AS cor0
----
28
skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT + 84 / COUNT ( + col0 ) FROM tab0 AS cor0
----
28
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4348
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 + col0 AS col1 FROM tab1 AS cor0 WHERE + col0 * - - col2 + - 41 <= NULL
----
skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 + col0 AS col1 FROM tab1 AS cor0 WHERE + col0 * - - col2 + - 41 <= NULL
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 75 <> - col2
----
onlyif mysql # aggregate syntax:
query II rowsort label-4350
SELECT - 48 AS col2, COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IN ( col0 )
----
-48
3
skipif mysql # not compatible
query II rowsort label-4350
SELECT - 48 AS col2, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IN ( col0 )
----
-48
3
onlyif mysql # aggregate syntax:
query I rowsort label-4351
SELECT DISTINCT COUNT( * ) * + - COUNT( col0 ) FROM tab2
----
-9
skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT COUNT ( * ) * + - COUNT ( col0 ) FROM tab2
----
-9
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-4352
SELECT + CAST( + - col1 AS SIGNED ) DIV + - 8 AS col0 FROM tab1
----
0
1
5
skipif mysql # not compatible
query I rowsort label-4352
SELECT + CAST ( + - col1 AS INTEGER ) / + - 8 AS col0 FROM tab1
----
0
1
5
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - col2 ) NOT BETWEEN col2 AND NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4354
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
-15
-87
-97
skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
-15
-87
-97
onlyif mysql # aggregate syntax:
query I rowsort label-4355
SELECT ALL + COUNT( * ) col2 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4355
SELECT ALL + COUNT ( * ) col2 FROM tab1 AS cor0
----
3
query I rowsort
SELECT ALL - ( + ( - 18 ) ) * col2 * + col0 FROM tab0 AS cor0
----
12690
15660
172854
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) <= NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-4359
SELECT ( COUNT( * ) ) + + MIN( ALL - 6 ) FROM tab0, tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-4359
SELECT ( COUNT ( * ) ) + + MIN ( ALL - 6 ) FROM tab0, tab2 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-4360
SELECT ALL + SUM( ALL + - 69 ) FROM tab0
----
-207
skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL + SUM ( ALL + - 69 ) FROM tab0
----
-207
query II rowsort
SELECT ALL - - col0 AS col1, col1 AS col2 FROM tab0 AS cor0
----
15
81
87
21
97
1
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col2 FROM tab0 AS cor0
----
-18
-18
-18
onlyif mysql # DIV for integer division:
query I rowsort label-4364
SELECT 76 DIV + 74 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4364
SELECT 76 / + 74 AS col0 FROM tab1 AS cor0
----
1
1
1
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 34 * + col0 * - - ( + + col1 ) * + ( - 99 ) IS NULL
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 35 BETWEEN NULL AND 69
----
query I rowsort
SELECT DISTINCT - col1 + 34 FROM tab2 AS cor0
----
-17
-33
-43
onlyif mysql # aggregate syntax:
query I rowsort label-4368
SELECT DISTINCT - MIN( ALL col0 ) * - + COUNT( - 47 ) AS col2 FROM tab1 WHERE + + col0 + + + col2 + - 39 / 48 > ( - + ( col0 ) )
----
153
skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT - MIN ( ALL col0 ) * - + COUNT ( - 47 ) AS col2 FROM tab1 WHERE + + col0 + + + col2 + - 39 / 48 > ( - + ( col0 ) )
----
153
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-4369
SELECT DISTINCT + col1 + - col1 / col1 + - CAST( NULL AS DECIMAL ) + + - col1 * + col0 col2 FROM tab0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4369
SELECT DISTINCT + col1 + - col1 / col1 + - CAST ( NULL AS REAL ) + + - col1 * + col0 col2 FROM tab0
----
NULL
query I rowsort
SELECT - 43 AS col1 FROM tab1
----
-43
-43
-43
query I rowsort
SELECT - col2 - + - col1 FROM tab2
----
28
37
9
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4372
SELECT - CAST( NULL AS SIGNED ) - CAST( + - col0 AS SIGNED ) + - - col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4372
SELECT - CAST ( NULL AS INTEGER ) - CAST ( + - col0 AS INTEGER ) + - - col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-4373
SELECT DISTINCT 14 DIV + col2 + + - col1 DIV col0 * - col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT 14 / + col2 + + - col1 / col0 * - col2 FROM tab1
----
0
query I rowsort
SELECT ALL - 44 + col1 * - 66 * - col1 FROM tab1 AS cor0 WHERE NOT - 80 IS NOT NULL
----
query II rowsort
SELECT - + col1 + - 34 AS col2, 26 AS col0 FROM tab0 AS cor0
----
-115
26
-35
26
-55
26
query II rowsort
SELECT - 67 + - + col0 AS col2, col2 FROM tab0 AS cor0
----
-154
10
-164
99
-82
47
query I rowsort
SELECT - col2 * - 79 * + 60 * + - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-14599200
-18419640
-5560020
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4378
SELECT DISTINCT - 54 + MIN( ALL + 31 ) + - 56 DIV + COUNT( * ) FROM tab1
----
-41
skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT - 54 + MIN ( ALL + 31 ) + - 56 / + COUNT ( * ) FROM tab1
----
-41
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4379
SELECT 91 DIV + + COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
10
skipif mysql # not compatible
query I rowsort label-4379
SELECT 91 / + + COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
10
query I rowsort
SELECT 71 * col1 AS col2 FROM tab1
----
3337
355
994
query I rowsort
SELECT + ( - + col1 ) FROM tab2
----
-51
-67
-77
query I rowsort
SELECT - ( + col0 ) AS col0 FROM tab2 cor0
----
-46
-64
-75
query II rowsort
SELECT - col0 AS col1, + col2 AS col1 FROM tab1 cor0
----
-51
96
-85
59
-91
68
query I rowsort
SELECT ALL - col2 * + col2 * + col2 * + 28 AS col2 FROM tab0 AS cor0
----
-27168372
-28000
-2907044
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + col1 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4386
SELECT + COUNT( * ) col1 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4386
SELECT + COUNT ( * ) col1 FROM tab2 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-4387
SELECT ALL - + COUNT( DISTINCT + ( - 4 ) ) FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL - + COUNT ( DISTINCT + ( - 4 ) ) FROM tab2 AS cor0
----
-1
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4388
SELECT ALL + COUNT( * ) * ( + - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL + COUNT ( * ) * ( + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
query II rowsort
SELECT DISTINCT - - 3 * + col1 + - - 44 AS col2, 48 * col2 / + - 15 * 26 AS col0 FROM tab2 WHERE NOT + 31 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4390
SELECT DISTINCT MIN( DISTINCT + col1 ) AS col1 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT MIN ( DISTINCT + col1 ) AS col1 FROM tab0
----
1
onlyif mysql # DIV for integer division:
query I rowsort label-4391
SELECT + 48 DIV - col0 FROM tab2
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4391
SELECT + 48 / - col0 FROM tab2
----
-1
0
0
query I rowsort
SELECT - col0 * + ( + col0 ) FROM tab2
----
-2116
-4096
-5625
onlyif mysql # aggregate syntax:
query I rowsort label-4393
SELECT ALL MIN( 91 ) * + COUNT( * ) * - SUM( + 68 ) AS col1 FROM tab2
----
-55692
skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL MIN ( 91 ) * + COUNT ( * ) * - SUM ( + 68 ) AS col1 FROM tab2
----
-55692
query I rowsort
SELECT DISTINCT + 40 * - col0 FROM tab2
----
-1840
-2560
-3000
query II rowsort
SELECT col2 AS col1, 16 + + 19 + 21 * + 48 AS col2 FROM tab0
----
10
1043
47
1043
99
1043
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4396
SELECT - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - - 91 * col0 * - CAST( - - ( - - 3 ) AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-4396
SELECT - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - - 91 * col0 * - CAST ( - - ( - - 3 ) AS INTEGER )
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4397
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = + CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-4397
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = + CAST ( NULL AS INTEGER )
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-4398
SELECT ALL - col2 * CAST( NULL AS DECIMAL ) + + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL - col2 * CAST ( NULL AS REAL ) + + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 34 AS col1 FROM tab0
----
-34
-34
-34
query I rowsort
SELECT DISTINCT - col0 * - 56 FROM tab1
----
2856
4760
5096
query III rowsort
SELECT * FROM tab2 WHERE + 27 BETWEEN NULL AND ( - - col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4402
SELECT DISTINCT + - MIN( ALL - ( + col1 ) ) FROM tab0 cor0
----
81
skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT + - MIN ( ALL - ( + col1 ) ) FROM tab0 cor0
----
81
query II rowsort
SELECT ALL ( + col2 ), col0 * - col2 AS col0 FROM tab0 cor0
----
10
-870
47
-705
99
-9603
query I rowsort
SELECT DISTINCT 37 AS col1 FROM tab1 AS cor0 WHERE NOT 97 * - col0 * - col1 > + col0 + + col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 84 + + col2 col0, + col1 AS col0 FROM tab0 AS cor0
----
-37
81
-74
21
15
1
query I rowsort
SELECT ALL col0 + - 2 * - - 71 FROM tab0 AS cor0
----
-127
-45
-55
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 74 * + - col1 IS NULL
----
query I rowsort
SELECT + col0 + 85 + - col2 FROM tab1 AS cor0
----
108
111
40
onlyif mysql # DIV for integer division:
query I rowsort label-4409
SELECT + 81 DIV + ( - 40 ) + - col0 AS col1 FROM tab1
----
-53
-87
-93
skipif mysql # not compatible
query I rowsort label-4409
SELECT + 81 / + ( - 40 ) + - col0 AS col1 FROM tab1
----
-53
-87
-93
query I rowsort
SELECT ( - ( + col1 ) ) + - col1 AS col0 FROM tab1
----
-10
-28
-94
query II rowsort
SELECT - col2 + - col0 + 16 AS col0, + 89 FROM tab2
----
-117
89
-53
89
-88
89
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4412
SELECT CAST( MIN( col1 ) AS SIGNED ) FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-4412
SELECT CAST ( MIN ( col1 ) AS INTEGER ) FROM tab0
----
1
onlyif mysql # DIV for integer division:
query I rowsort label-4413
SELECT ALL col1 - - col2 * + col1 * + col0 + - col1 DIV - 86 * + - col2 FROM tab1
----
25080
290883
68558
skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL col1 - - col2 * + col1 * + col0 + - col1 / - 86 * + - col2 FROM tab1
----
25080
290883
68558
query I rowsort
SELECT ( + col0 ) - - - col0 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-4415
SELECT + MAX( + col2 ) FROM tab0 AS cor0
----
99
skipif mysql # not compatible
query I rowsort label-4415
SELECT + MAX ( + col2 ) FROM tab0 AS cor0
----
99
query I rowsort
SELECT DISTINCT 2 AS col2 FROM tab0, tab0 cor0
----
2
query I rowsort
SELECT DISTINCT - col1 * - 27 + - col1 FROM tab2 AS cor0
----
1326
1742
2002
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4418
SELECT ALL 98 / - col2 * col2 * - - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL 98 / - col2 * col2 * - - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN 4 AND NULL
----
query I rowsort
SELECT 19 * col2 + col2 FROM tab2 AS cor0
----
1160
460
800
query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE + 19 >= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4422
SELECT DISTINCT COUNT( * ) * - SUM( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
-309
skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT COUNT ( * ) * - SUM ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
-309
query I rowsort
SELECT - - ( 12 ) FROM tab2 AS cor0
----
12
12
12
query I rowsort
SELECT ALL ( - 95 ) AS col1 FROM tab2 AS cor0
----
-95
-95
-95
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4425
SELECT - - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4425
SELECT - - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-4426
SELECT - COUNT( - 84 ) AS col1, 9 AS col2 FROM tab2 AS cor0
----
-3
9
skipif mysql # not compatible
query II rowsort label-4426
SELECT - COUNT ( - 84 ) AS col1, 9 AS col2 FROM tab2 AS cor0
----
-3
9
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4427
SELECT ALL CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-4428
SELECT ALL - ( COUNT( * ) ) * - 23 FROM tab0
----
69
skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL - ( COUNT ( * ) ) * - 23 FROM tab0
----
69
onlyif mysql # aggregate syntax:
query I rowsort label-4429
SELECT ALL - MAX( DISTINCT - 16 ) FROM tab1
----
16
skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL - MAX ( DISTINCT - 16 ) FROM tab1
----
16
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4430
SELECT DISTINCT + 20 * AVG ( + CAST( NULL AS SIGNED ) ) * MIN( ALL - 84 ) AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT + 20 * AVG ( + CAST ( NULL AS INTEGER ) ) * MIN ( ALL - 84 ) AS col0 FROM tab0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-4431
SELECT ALL - MIN( DISTINCT col2 ) FROM tab2
----
-23
skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL - MIN ( DISTINCT col2 ) FROM tab2
----
-23
query I rowsort
SELECT DISTINCT + ( col2 ) * + ( - col0 ) AS col2 FROM tab1
----
-4896
-5015
-6188
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-4433
SELECT col2 * 6 * + CAST( NULL AS SIGNED ), + 75 AS col0 FROM tab1
----
NULL
75
NULL
75
NULL
75
skipif mysql # not compatible
query II rowsort label-4433
SELECT col2 * 6 * + CAST ( NULL AS INTEGER ), + 75 AS col0 FROM tab1
----
NULL
75
NULL
75
NULL
75
query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
15
87
97
query I rowsort
SELECT ( + + col0 ) FROM tab0 AS cor0
----
15
87
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + + 33 + + 6 col1 FROM tab2 AS cor0
----
-1
-19
16
query I rowsort
SELECT ALL - - AVG ( ALL - - col2 ) FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 * col2 AND NULL
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-4438
SELECT - COUNT( * ) * - - 91 + - COUNT( * ) FROM tab0 cor0
----
-276
skipif mysql # not compatible
query I rowsort label-4438
SELECT - COUNT ( * ) * - - 91 + - COUNT ( * ) FROM tab0 cor0
----
-276
query I rowsort
SELECT - 72 * + 1 FROM tab2 AS cor0
----
-72
-72
-72
query II rowsort
SELECT + - col2 AS col2, 54 FROM tab2 AS cor0
----
-23
54
-40
54
-58
54
query I rowsort
SELECT + col0 * + 12 AS col2 FROM tab2 AS cor0
----
552
768
900
query I rowsort
SELECT - + col2 * + + 18 AS col0 FROM tab2 AS cor0
----
-1044
-414
-720
onlyif mysql # DIV for integer division:
query II rowsort label-4443
SELECT DISTINCT + 66 DIV col2 * - col2 + - - col1 AS col1, - col1 + ( + 11 ) col2 FROM tab1 AS cor0
----
-54
6
14
-3
47
-36
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4443
SELECT DISTINCT + 66 / col2 * - col2 + - - col1 AS col1, - col1 + ( + 11 ) col2 FROM tab1 AS cor0
----
-54
6
14
-3
47
-36
query I rowsort
SELECT + + 2 * - ( - + col1 ) FROM tab2 AS cor0
----
102
134
154
onlyif mysql # aggregate syntax:
query I rowsort label-4445
SELECT DISTINCT + COUNT( DISTINCT 79 ) FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT + COUNT ( DISTINCT 79 ) FROM tab1 AS cor0
----
1
query I rowsort
SELECT DISTINCT - 2 FROM tab2 WHERE - 5 IS NULL
----
query I rowsort
SELECT col2 - + 82 + col2 * - + col0 FROM tab1
----
-4882
-5038
-6202
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-4448
SELECT DISTINCT - SUM( - CAST( NULL AS DECIMAL ) ) * - COUNT( * ) + + AVG ( DISTINCT - ( 6 ) ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT - SUM ( - CAST ( NULL AS REAL ) ) * - COUNT ( * ) + + AVG ( DISTINCT - ( 6 ) ) AS col0 FROM tab2
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-4449
SELECT DISTINCT - SUM( ALL - ( 20 ) ) - COUNT( ALL + - 44 ) * - 68 AS col0 FROM tab2
----
264
skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT - SUM ( ALL - ( 20 ) ) - COUNT ( ALL + - 44 ) * - 68 AS col0 FROM tab2
----
264
query I rowsort
SELECT DISTINCT + col0 * - col1 * - 38 + + + col0 - + ( - - 18 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT - col0 <> NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 / - - 62 + - 41 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT ALL 7 AS col2, + 89 * - + 28 FROM tab0
----
7
-2492
7
-2492
7
-2492
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-4454
SELECT CAST( col0 AS SIGNED ) * - 62, col1 * - col0 AS col0 FROM tab0 AS cor0
----
-5394
-1827
-6014
-97
-930
-1215
skipif mysql # not compatible
query II rowsort label-4454
SELECT CAST ( col0 AS INTEGER ) * - 62, col1 * - col0 AS col0 FROM tab0 AS cor0
----
-5394
-1827
-6014
-97
-930
-1215
query I rowsort
SELECT ALL - + 40 AS col1 FROM tab0 AS cor0
----
-40
-40
-40
query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58
query I rowsort
SELECT - - 24 AS col2 FROM tab1 AS cor0
----
24
24
24
query I rowsort
SELECT + + 25 AS col1 FROM tab0 AS cor0
----
25
25
25
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query I rowsort label-4459
SELECT ALL col2 / + CAST( + col0 AS DECIMAL ) * - + CAST( NULL AS SIGNED ) + + - col1 + + + ( 27 ) - - col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 35 / + col0 + - col0 AND col0 * 25 + col0
----
skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL col2 / + CAST ( + col0 AS REAL ) * - + CAST ( NULL AS INTEGER ) + + - col1 + + + ( 27 ) - - col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 35 / + col0 + - col0 AND col0 * 25 + col0
----
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-4460
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - - CAST( + - col1 AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-4460
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - - CAST ( + - col1 AS REAL ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-4461
SELECT ALL + COUNT( ALL - 67 ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL + COUNT ( ALL - 67 ) FROM tab1 AS cor0
----
3
query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE NOT - col0 > + - ( + col1 )
----
14
47
5
onlyif mysql # aggregate syntax:
query II rowsort label-4463
SELECT - 45, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-45
-3
skipif mysql # not compatible
query II rowsort label-4463
SELECT - 45, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-45
-3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4464
SELECT ALL + col0 FROM tab1 WHERE NOT 37 = col0 - - + CAST( + - 29 AS SIGNED ) * - ( + - col1 )
----
51
85
91
skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL + col0 FROM tab1 WHERE NOT 37 = col0 - - + CAST ( + - 29 AS INTEGER ) * - ( + - col1 )
----
51
85
91
onlyif mysql # aggregate syntax:
query I rowsort label-4465
SELECT COUNT( + + col0 ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-4465
SELECT COUNT ( + + col0 ) FROM tab0
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 76 + + - col1 col2 FROM tab0
----
-1221
-6633
-7373
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4467
SELECT * FROM tab2 WHERE NOT CAST( - + col1 AS SIGNED ) + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-4467
SELECT * FROM tab2 WHERE NOT CAST ( - + col1 AS INTEGER ) + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT col0 * 70 AS col0 FROM tab2
----
3220
4480
5250
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 22 >= + 27 - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-4470
SELECT ALL MAX( DISTINCT + 87 ) FROM tab0 cor0
----
87
skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL MAX ( DISTINCT + 87 ) FROM tab0 cor0
----
87
query I rowsort
SELECT DISTINCT + 92 FROM tab0 WHERE + + col1 IS NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-4472
SELECT + COUNT( * ) AS col1, 9 + + - MAX( DISTINCT col1 ) + - ( + - 81 ) FROM tab0
----
3
9
skipif mysql # not compatible
query II rowsort label-4472
SELECT + COUNT ( * ) AS col1, 9 + + - MAX ( DISTINCT col1 ) + - ( + - 81 ) FROM tab0
----
3
9
query I rowsort
SELECT ALL ( - col2 ) FROM tab1 AS cor0 WHERE NOT NULL <= + ( col2 ) / - 91 * - col1 / - - ( col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + 82 * + - col0 + - col1 + - - ( - 39 ) * - + col2 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4475
SELECT ALL ( COUNT( DISTINCT + - 35 ) ) FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL ( COUNT ( DISTINCT + - 35 ) ) FROM tab0 cor0
----
1
query I rowsort
SELECT ALL - 64 + - + 49 FROM tab2 AS cor0
----
-113
-113
-113
onlyif mysql # aggregate syntax:
query I rowsort label-4477
SELECT DISTINCT + COUNT( * ) * + 36 AS col0 FROM tab0 AS cor0
----
108
skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT + COUNT ( * ) * + 36 AS col0 FROM tab0 AS cor0
----
108
onlyif mysql # aggregate syntax:
query I rowsort label-4478
SELECT + - 25 + + - COUNT( * ) AS col0 FROM tab0 cor0
----
-28
skipif mysql # not compatible
query I rowsort label-4478
SELECT + - 25 + + - COUNT ( * ) AS col0 FROM tab0 cor0
----
-28
onlyif mysql # aggregate syntax:
query I rowsort label-4479
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col0 NOT IN ( - 56 + + 51, col0 * + col0, - col2 / + 8 )
----
-3
skipif mysql # not compatible
query I rowsort label-4479
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col0 NOT IN ( - 56 + + 51, col0 * + col0, - col2 / + 8 )
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-4480
SELECT SUM( + ( - 67 ) ) + + COUNT( * ) AS col1 FROM tab1
----
-198
skipif mysql # not compatible
query I rowsort label-4480
SELECT SUM ( + ( - 67 ) ) + + COUNT ( * ) AS col1 FROM tab1
----
-198
onlyif mysql # aggregate syntax:
query I rowsort label-4481
SELECT DISTINCT COUNT( 1 ) AS col2 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT COUNT ( 1 ) AS col2 FROM tab2
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4482
SELECT DISTINCT + ( + - CAST( + col0 AS SIGNED ) ) * - col2 + + col0 + col2 + + 30 AS col0 FROM tab1
----
5073
5189
6377
skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT + ( + - CAST ( + col0 AS INTEGER ) ) * - col2 + + col0 + col2 + + 30 AS col0 FROM tab1
----
5073
5189
6377
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + + col1 col2, - 70 FROM tab0
----
0
-70
query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
onlyif mysql # DIV for integer division:
query II rowsort label-4485
SELECT col2, 72 DIV + col2 FROM tab0
----
10
7
47
1
99
0
skipif mysql # not compatible
query II rowsort label-4485
SELECT col2, 72 / + col2 FROM tab0
----
10
7
47
1
99
0
query III rowsort
SELECT * FROM tab2 WHERE + col2 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT + 80, col1 FROM tab0
----
80
1
80
21
80
81
query I rowsort
SELECT DISTINCT + 20 - + 71 AS col2 FROM tab1
----
-51
onlyif mysql # DIV for integer division:
query I rowsort label-4489
SELECT ALL col2 DIV - col1 * - col0 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL col2 / - col1 * - col0 AS col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 94 col2, col1 col2 FROM tab0
----
94
1
94
21
94
81
query I rowsort
SELECT DISTINCT - col1 * + + col1 * - col1 * + + col0 FROM tab1 AS cor0
----
10625
139944
9447893
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4492
SELECT ALL 53 DIV + COUNT( * ) AS col2 FROM tab0 AS cor0
----
17
skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL 53 / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
17
query I rowsort
SELECT + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
query I rowsort
SELECT ALL 41 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4495
SELECT - ( + MIN( - col1 ) ) FROM tab1 AS cor0
----
47
skipif mysql # not compatible
query I rowsort label-4495
SELECT - ( + MIN ( - col1 ) ) FROM tab1 AS cor0
----
47
query II rowsort
SELECT ( col0 ), + col0 * - col1 * + 45 + col2 + col2 - - - col2 FROM tab0 AS cor0
----
15
-54628
87
-82205
97
-4266
query I rowsort
SELECT ALL + ( - + 82 ) AS col1 FROM tab1 AS cor0
----
-82
-82
-82
onlyif mysql # aggregate syntax:
query I rowsort label-4498
SELECT - MIN( - col1 ) AS col2 FROM tab0 AS cor0
----
81
skipif mysql # not compatible
query I rowsort label-4498
SELECT - MIN ( - col1 ) AS col2 FROM tab0 AS cor0
----
81
onlyif mysql # aggregate syntax:
query I rowsort label-4499
SELECT DISTINCT MIN( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0
----
-47
skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT MIN ( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0
----
-47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col0 * + + col1 - - col0 + + 98
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - + col1 + - col1 AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT + 3 IS NOT NULL )
----
query II rowsort
SELECT col0, col2 * + 84 FROM tab2
----
46
1932
64
3360
75
4872
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 21 - col0 < - + col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-4505
SELECT DISTINCT MIN( - col0 ) FROM tab0
----
-97
skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT MIN ( - col0 ) FROM tab0
----
-97
onlyif mysql # aggregate syntax:
query II rowsort label-4506
SELECT + 52 * - COUNT( * ) * MAX( - col1 ) AS col0, - COUNT( * ) AS col1 FROM tab1
----
780
-3
skipif mysql # not compatible
query II rowsort label-4506
SELECT + 52 * - COUNT ( * ) * MAX ( - col1 ) AS col0, - COUNT ( * ) AS col1 FROM tab1
----
780
-3
onlyif mysql # aggregate syntax:
query II rowsort label-4507
SELECT DISTINCT 44 AS col0, + COUNT( * ) + + + 35 AS col0 FROM tab2
----
44
38
skipif mysql # not compatible
query II rowsort label-4507
SELECT DISTINCT 44 AS col0, + COUNT ( * ) + + + 35 AS col0 FROM tab2
----
44
38
onlyif mysql # aggregate syntax:
query I rowsort label-4508
SELECT DISTINCT 64 + - - ( - MIN( DISTINCT + ( + 74 ) ) ) col2 FROM tab0 AS cor0
----
-10
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4508
SELECT DISTINCT 64 + - - ( - MIN ( DISTINCT + ( + 74 ) ) ) col2 FROM tab0 AS cor0
----
-10
query I rowsort
SELECT + 39 + + ( - 91 ) FROM tab2 AS cor0
----
-52
-52
-52
query II rowsort
SELECT - 18 * + 28 + - + 21 AS col2, + col0 / + - col2 AS col0 FROM tab0 AS cor0 WHERE NULL >= - 33 + + col2
----
query I rowsort
SELECT - col2 * - col0 + 1 FROM tab1 AS cor0
----
4897
5016
6189
query I rowsort
SELECT - col2 + - 48 FROM tab0 AS cor0
----
-147
-58
-95
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 23 ) >= NULL
----
query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT col1 * 2 >= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4515
SELECT DISTINCT + COUNT( * ) * 8 FROM tab0
----
24
skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT + COUNT ( * ) * 8 FROM tab0
----
24
query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-4517
SELECT - COUNT( + col2 ) * 96 FROM tab2
----
-288
skipif mysql # not compatible
query I rowsort label-4517
SELECT - COUNT ( + col2 ) * 96 FROM tab2
----
-288
query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE ( NULL ) <= ( col2 * - col2 )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4519
SELECT CAST( + CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) AS col1 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-4519
SELECT CAST ( + CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col1 FROM tab0
----
3
query I rowsort
SELECT DISTINCT - col1 + - col2 * - 7 FROM tab2
----
110
203
339
onlyif mysql # DIV for integer division:
query I rowsort label-4521
SELECT ALL - 95 DIV + col1 FROM tab1
----
-19
-2
-6
skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - 95 / + col1 FROM tab1
----
-19
-2
-6
onlyif mysql # aggregate syntax:
query I rowsort label-4522
SELECT SUM( ALL 58 ) FROM tab1
----
174
skipif mysql # not compatible
query I rowsort label-4522
SELECT SUM ( ALL 58 ) FROM tab1
----
174
query III rowsort
SELECT * FROM tab0 WHERE + ( - ( + col1 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # DIV for integer division:
query I rowsort label-4524
SELECT DISTINCT 0 DIV - 7 AS col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT 0 / - 7 AS col1 FROM tab1
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-4525
SELECT COUNT( col2 ) FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-4525
SELECT COUNT ( col2 ) FROM tab1
----
3
query I rowsort
SELECT 4 AS col2 FROM tab0 WHERE col1 + col1 * col0 NOT IN ( + col2 )
----
4
4
4
query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL IS NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab2 WHERE + col1 IS NOT NULL
----
46
64
75
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4530
SELECT ALL - COUNT( DISTINCT - col1 ) DIV + COUNT( * ) FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL - COUNT ( DISTINCT - col1 ) / + COUNT ( * ) FROM tab0
----
-1
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4532
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND ( CAST( NULL AS SIGNED ) )
----
skipif mysql # not compatible
query III rowsort label-4532
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND ( CAST ( NULL AS INTEGER ) )
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4533
SELECT * FROM tab1 WHERE - 1 NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----
skipif mysql # not compatible
query III rowsort label-4533
SELECT * FROM tab1 WHERE - 1 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----
query I rowsort
SELECT DISTINCT col1 * col0 + + 30 FROM tab2 WHERE NOT ( + 53 * + col0 ) BETWEEN ( + col2 * 26 ) AND 67
----
2376
4958
5055
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4535
SELECT ALL - COUNT( * ) DIV + MAX( ALL col0 DIV col1 ) FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL - COUNT ( * ) / + MAX ( ALL col0 / col1 ) FROM tab2
----
-3
query I rowsort
SELECT 68 - 48 AS col2 FROM tab1
----
20
20
20
onlyif mysql # aggregate syntax:
query I rowsort label-4537
SELECT DISTINCT + 43 * + 67 - + COUNT( * ) col2 FROM tab1
----
2878
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4537
SELECT DISTINCT + 43 * + 67 - + COUNT ( * ) col2 FROM tab1
----
2878
query I rowsort
SELECT col0 FROM tab1 WHERE NOT - 80 + col2 IS NOT NULL
----
query III rowsort
SELECT * FROM tab0 WHERE col0 IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-4540
SELECT - 87 DIV + col1 col1 FROM tab0
----
-1
-4
-87
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4540
SELECT - 87 / + col1 col1 FROM tab0
----
-1
-4
-87
query I rowsort
SELECT DISTINCT col2 * 98 AS col2 FROM tab2
----
2254
3920
5684
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4542
SELECT 30 DIV MAX( DISTINCT + col1 ) AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-4542
SELECT 30 / MAX ( DISTINCT + col1 ) AS col0 FROM tab0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-4543
SELECT - MAX( ALL col2 ) col0 FROM tab2
----
-58
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4543
SELECT - MAX ( ALL col2 ) col0 FROM tab2
----
-58
onlyif mysql # aggregate syntax:
query I rowsort label-4544
SELECT DISTINCT - SUM( ALL col0 ) FROM tab1
----
-227
skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT - SUM ( ALL col0 ) FROM tab1
----
-227
query I rowsort
SELECT DISTINCT - col2 + 61 FROM tab0
----
-38
14
51
query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 * col2 ) < ( NULL )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 NOT BETWEEN ( - col1 ) AND 66
----
query I rowsort
SELECT ALL - col2 + + 26 FROM tab0
----
-21
-73
16
onlyif mysql # aggregate syntax:
query I rowsort label-4549
SELECT ALL - 28 * MIN( DISTINCT col1 ) FROM tab1 WHERE NOT col1 * - 2 > ( NULL )
----
NULL
skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL - 28 * MIN ( DISTINCT col1 ) FROM tab1 WHERE NOT col1 * - 2 > ( NULL )
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-4550
SELECT DISTINCT - SUM( col0 ) AS col2 FROM tab1 WHERE NOT ( + col2 ) IS NULL
----
-227
skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT - SUM ( col0 ) AS col2 FROM tab1 WHERE NOT ( + col2 ) IS NULL
----
-227
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + - col0 col0 FROM tab1 cor0 WHERE NOT NULL > NULL
----
query I rowsort
SELECT DISTINCT col2 * 59 AS col0 FROM tab1 AS cor0
----
3481
4012
5664
onlyif mysql # aggregate syntax:
query I rowsort label-4553
SELECT SUM( - col1 ) AS col1 FROM tab2 AS cor0
----
-195
skipif mysql # not compatible
query I rowsort label-4553
SELECT SUM ( - col1 ) AS col1 FROM tab2 AS cor0
----
-195
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-4554
SELECT ALL CAST( NULL AS DECIMAL ) * + 80 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4554
SELECT ALL CAST ( NULL AS REAL ) * + 80 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 6 <= NULL
----
query I rowsort
SELECT ALL col2 * ( + 24 * 42 ) FROM tab0 cor0
----
10080
47376
99792
onlyif mysql # DIV for integer division:
query I rowsort label-4557
SELECT DISTINCT - 9 DIV - 83 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT - 9 / - 83 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT 95 * - col0 FROM tab2 AS cor0
----
-4370
-6080
-7125
onlyif mysql # DIV for integer division:
query I rowsort label-4559
SELECT DISTINCT 22 DIV col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT 22 / col0 FROM tab1 AS cor0
----
0
query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4561
SELECT DISTINCT CAST( 46 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1
----
46
skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT CAST ( 46 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1
----
46
onlyif mysql # aggregate syntax:
query I rowsort label-4562
SELECT 45 * + SUM( ( col2 ) * - col2 ) FROM tab0
----
-544950
skipif mysql # not compatible
query I rowsort label-4562
SELECT 45 * + SUM ( ( col2 ) * - col2 ) FROM tab0
----
-544950
query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT 11 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4564
SELECT COUNT( * ) * 38 FROM tab1 AS cor0
----
114
skipif mysql # not compatible
query I rowsort label-4564
SELECT COUNT ( * ) * 38 FROM tab1 AS cor0
----
114
query I rowsort
SELECT - col0 / + col2 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN 24 - - col0 AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( col0 )
----
query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4568
SELECT ALL * FROM tab1 AS cor0 WHERE + 54 * + ( CAST( NULL AS SIGNED ) ) + 88 IN ( col0 * 21 + - col2 )
----
skipif mysql # not compatible
query III rowsort label-4568
SELECT ALL * FROM tab1 AS cor0 WHERE + 54 * + ( CAST ( NULL AS INTEGER ) ) + 88 IN ( col0 * 21 + - col2 )
----
query I rowsort
SELECT 24 * 85 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
2040
2040
2040
query I rowsort
SELECT DISTINCT col0 + col2 * col0 FROM tab2 cor0
----
1104
2624
4425
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + ( col1 ) )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4572
SELECT ALL + + COUNT( * ) FROM tab2 cor0
----
3
skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL + + COUNT ( * ) FROM tab2 cor0
----
3
query I rowsort
SELECT 82 FROM tab1 WHERE - ( col2 ) * + 32 IS NOT NULL
----
82
82
82
query I rowsort
SELECT 98 + - - col0 FROM tab0
----
113
185
195
onlyif mysql # DIV for integer division:
query I rowsort label-4575
SELECT col1 * - col1 * 64 + col2 DIV + col0 AS col0 FROM tab2
----
-166464
-287296
-379456
skipif mysql # not compatible
query I rowsort label-4575
SELECT col1 * - col1 * 64 + col2 / + col0 AS col0 FROM tab2
----
-166464
-287296
-379456
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4576
SELECT ( + MIN( 85 ) ) DIV + 58 + + 34 AS col1 FROM tab0
----
35
skipif mysql # not compatible
query I rowsort label-4576
SELECT ( + MIN ( 85 ) ) / + 58 + + 34 AS col1 FROM tab0
----
35
query I rowsort
SELECT ALL - 26 + + + 66 + + 90 FROM tab0
----
130
130
130
onlyif mysql # aggregate syntax:
query I rowsort label-4578
SELECT COUNT( - + 37 ) * COUNT( * ) + + COUNT( * ) FROM tab1
----
12
skipif mysql # not compatible
query I rowsort label-4578
SELECT COUNT ( - + 37 ) * COUNT ( * ) + + COUNT ( * ) FROM tab1
----
12
query III rowsort
SELECT * FROM tab1 WHERE ( col2 + + col2 ) >= NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 <= ( col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4581
SELECT + 56 + SUM( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NULL = ( - 38 )
----
NULL
skipif mysql # not compatible
query I rowsort label-4581
SELECT + 56 + SUM ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NULL = ( - 38 )
----
NULL
query I rowsort
SELECT - col1 * + 29 + col2 FROM tab1 AS cor0 WHERE 97 <= col0
----
query I rowsort
SELECT + col1 * 69 + + col1 AS col0 FROM tab2 AS cor0
----
3570
4690
5390
query I rowsort
SELECT ALL - 20 * - + col2 + - 64 FROM tab1 cor0
----
1116
1296
1856
onlyif mysql # aggregate syntax:
query I rowsort label-4585
SELECT DISTINCT ( + COUNT( * ) ) + - - COUNT( * ) FROM tab1
----
6
skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT ( + COUNT ( * ) ) + - - COUNT ( * ) FROM tab1
----
6
query I rowsort
SELECT DISTINCT + 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
67
query I rowsort
SELECT ALL - 60 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
onlyif mysql # DIV for integer division:
query I rowsort label-4588
SELECT DISTINCT - col2 DIV + 61 + col2 FROM tab0
----
10
47
98
skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT - col2 / + 61 + col2 FROM tab0
----
10
47
98
onlyif mysql # aggregate syntax:
query I rowsort label-4589
SELECT + COUNT( * ) FROM tab1 cor0 WHERE NULL BETWEEN ( 98 * - - ( + col1 ) - - col0 ) AND ( + col2 )
----
0
skipif mysql # not compatible
query I rowsort label-4589
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE NULL BETWEEN ( 98 * - - ( + col1 ) - - col0 ) AND ( + col2 )
----
0
query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NULL > NULL
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 ) IS NULL
----
query II rowsort
SELECT DISTINCT + 47 AS col0, + 3 + - 54 AS col2 FROM tab2 AS cor0
----
47
-51
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4593
SELECT ALL + + CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81
skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL + + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81
query I rowsort
SELECT ALL - + 62 AS col0 FROM tab2 AS cor0
----
-62
-62
-62
onlyif mysql # aggregate syntax:
query I rowsort label-4595
SELECT MAX( DISTINCT - - col2 ) * + COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
300
skipif mysql # not compatible
query I rowsort label-4595
SELECT MAX ( DISTINCT - - col2 ) * + COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
300
onlyif mysql # aggregate syntax:
query I rowsort label-4596
SELECT - - MAX( ALL - col2 ) FROM tab1 cor0
----
-59
skipif mysql # not compatible
query I rowsort label-4596
SELECT - - MAX ( ALL - col2 ) FROM tab1 cor0
----
-59
query I rowsort
SELECT ALL + - ( + col0 ) AS col2 FROM tab0 WHERE NOT NULL >= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 col1 FROM tab2
----
86
86
86
query I rowsort
SELECT ALL - 43 * ( - - col0 ) AS col2 FROM tab1
----
-2193
-3655
-3913
query I rowsort
SELECT DISTINCT + - 1 + col2 AS col0 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4601
SELECT - ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4601
SELECT - ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 ) IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( - - 16 ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4604
SELECT ALL COUNT( * ) AS col2 FROM tab0 cor0
----
3
skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL COUNT ( * ) AS col2 FROM tab0 cor0
----
3
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL = ( + - col0 - col1 ) )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4606
SELECT ALL 31 * - MAX( - col1 ) FROM tab1 AS cor0
----
155
skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL 31 * - MAX ( - col1 ) FROM tab1 AS cor0
----
155
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * col0 NOT IN ( - col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4608
SELECT ALL SUM( ALL + col1 ) FROM tab0
----
103
skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL SUM ( ALL + col1 ) FROM tab0
----
103
onlyif mysql # aggregate syntax:
query I rowsort label-4609
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 * + 63 + - - col0 col2 FROM tab0 cor0
----
330
402
412
query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT ( - col1 + + 92 ) IS NULL
----
15
87
97
query I rowsort
SELECT ALL ( + col0 ) * + + col0 AS col1 FROM tab0 AS cor0
----
225
7569
9409
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND + col1 / 28
----
query I rowsort
SELECT DISTINCT - col1 * + col0 + + 27 - + col0 FROM tab2 AS cor0
----
-2365
-4965
-5073
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 39 * 18 NOT IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # DIV for integer division:
query I rowsort label-4616
SELECT DISTINCT - col2 DIV - + 41 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT - col2 / - + 41 FROM tab2 AS cor0
----
0
1
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----
query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 78 ) IS NULL
----
query I rowsort
SELECT DISTINCT + ( - - col0 ) + - 97 + - col0 + + 44 AS col2 FROM tab2 AS cor0
----
-53
query I rowsort
SELECT + ( 63 ) AS col1 FROM tab2
----
63
63
63
onlyif mysql # aggregate syntax:
query I rowsort label-4621
SELECT - MIN( ALL + col1 ) AS col2 FROM tab2
----
-51
skipif mysql # not compatible
query I rowsort label-4621
SELECT - MIN ( ALL + col1 ) AS col2 FROM tab2
----
-51
onlyif mysql # aggregate syntax:
query I rowsort label-4622
SELECT ALL - COUNT( * ) + - - COUNT( * ) AS col2 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL - COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab2
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-4623
SELECT MAX( ALL + col2 ) FROM tab1
----
96
skipif mysql # not compatible
query I rowsort label-4623
SELECT MAX ( ALL + col2 ) FROM tab1
----
96
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4624
SELECT + CAST( NULL AS SIGNED ) * + 68 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4624
SELECT + CAST ( NULL AS INTEGER ) * + 68 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4625
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( * ) + + 60 + COUNT( * ) * ( - - ( + 78 ) ) / 94 AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 60 + COUNT ( * ) * ( - - ( + 78 ) ) / 94 AS col0 FROM tab0
----
NULL
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT + col2 * + col0 + + col2 + + col1 * + + col0 FROM tab0
----
1967
2707
9799
onlyif mysql # DIV for integer division:
query I rowsort label-4628
SELECT ALL + 42 DIV - - col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL + 42 / - - col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 WHERE ( 73 + - col1 ) > col1 * - col0 + 7
----
59
68
96
query I rowsort
SELECT DISTINCT + + col1 + + + 80 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4631
SELECT DISTINCT + MIN( - col1 ) FROM tab2 AS cor0
----
-77
skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT + MIN ( - col1 ) FROM tab2 AS cor0
----
-77
onlyif mysql # aggregate syntax:
query II rowsort label-4632
SELECT + COUNT( * ) AS col2, 79 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
79
skipif mysql # not compatible
query II rowsort label-4632
SELECT + COUNT ( * ) AS col2, 79 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
79
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 30 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-4634
SELECT SUM( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
223
skipif mysql # not compatible
query I rowsort label-4634
SELECT SUM ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
223
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-4635
SELECT - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL
0
skipif mysql # not compatible
query II rowsort label-4635
SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4636
SELECT DISTINCT 2 * - 3 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) < ( + 10 * - col2 - + - col1 - - - col2 * 72 )
----
skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT 2 * - 3 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) < ( + 10 * - col2 - + - col1 - - - col2 * 72 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4637
SELECT ALL + MAX( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
75
skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL + MAX ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
75
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 81 - - - col0 + - col1 BETWEEN NULL AND ( 58 )
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4639
SELECT * FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) BETWEEN + col2 AND NULL
----
skipif mysql # not compatible
query III rowsort label-4639
SELECT * FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) BETWEEN + col2 AND NULL
----
query I rowsort
SELECT + 50 * - - col0 * - col1 AS col0 FROM tab2
----
-117300
-246400
-251250
query I rowsort
SELECT DISTINCT ( - - col1 ) FROM tab0
----
1
21
81
onlyif mysql # aggregate syntax:
query I rowsort label-4642
SELECT MAX( DISTINCT - + col0 ) AS col2 FROM tab0
----
-15
skipif mysql # not compatible
query I rowsort label-4642
SELECT MAX ( DISTINCT - + col0 ) AS col2 FROM tab0
----
-15
query I rowsort
SELECT + col1 * + + 93 FROM tab2
----
4743
6231
7161
query II rowsort
SELECT col2 AS col0, + 46 * + 89 AS col1 FROM tab1
----
59
4094
68
4094
96
4094
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4645
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN col2 + col0 AND ( + 28 * + + 8 + - CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) / + col2 ) OR - col0 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-4645
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN col2 + col0 AND ( + 28 * + + 8 + - CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) / + col2 ) OR - col0 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # DIV for integer division:
query I rowsort label-4646
SELECT col2 DIV - + col2 col1 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4646
SELECT col2 / - + col2 col1 FROM tab2
----
-1
-1
-1
query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - + col0 ) IS NOT NULL
----
query II rowsort
SELECT DISTINCT - 25, - col0 * + - col1 - + 99 AS col0 FROM tab2 AS cor0
----
-25
2247
-25
4829
-25
4926
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * - - col1 - + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a
onlyif mysql # aggregate syntax:
query I rowsort label-4651
SELECT ALL + 60 * - - COUNT( + 66 ) AS col1 FROM tab0
----
180
skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL + 60 * - - COUNT ( + 66 ) AS col1 FROM tab0
----
180
query I rowsort
SELECT + - col0 * - 38 AS col2 FROM tab1 AS cor0
----
1938
3230
3458
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-4654
SELECT ALL + COUNT( * ) * + 26 AS col1 FROM tab1 AS cor0
----
78
skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL + COUNT ( * ) * + 26 AS col1 FROM tab1 AS cor0
----
78
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col1 AND + col0
----
query I rowsort
SELECT DISTINCT 45 AS col2 FROM tab0 AS cor0 WHERE NOT 11 * + 69 * + 76 NOT BETWEEN NULL AND + col2 + 77
----
query I rowsort
SELECT DISTINCT - - 35 AS col0 FROM tab2 AS cor0
----
35
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4658
SELECT * FROM tab2 AS cor0 WHERE + col0 < + - 36 * - CAST( - + col2 AS SIGNED ) / - - col2 * col2 - - + 12 + - ( - col0 ) * - col2
----
skipif mysql # not compatible
query III rowsort label-4658
SELECT * FROM tab2 AS cor0 WHERE + col0 < + - 36 * - CAST ( - + col2 AS INTEGER ) / - - col2 * col2 - - + 12 + - ( - col0 ) * - col2
----
query I rowsort
SELECT - + col0 + + - col2 FROM tab2 AS cor0
----
-104
-133
-69
query I rowsort
SELECT DISTINCT col1 + + + 14 AS col0 FROM tab0
----
15
35
95
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4661
SELECT COUNT( * ) + + + CAST( 11 AS SIGNED ) AS col1 FROM tab1
----
14
skipif mysql # not compatible
query I rowsort label-4661
SELECT COUNT ( * ) + + + CAST ( 11 AS INTEGER ) AS col1 FROM tab1
----
14
onlyif mysql # aggregate syntax:
query I rowsort label-4662
SELECT - + COUNT( * ) AS col2 FROM tab2 WHERE - + col1 < - col1
----
0
skipif mysql # not compatible
query I rowsort label-4662
SELECT - + COUNT ( * ) AS col2 FROM tab2 WHERE - + col1 < - col1
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4663
SELECT + 55 + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4663
SELECT + 55 + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + + + col1 + 88 FROM tab0
----
-8
154
22
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4665
SELECT + MAX( ALL 93 ) + + + MAX( DISTINCT - + CAST( + 36 AS SIGNED ) ) * - MAX( ALL - col1 ) * - COUNT( + - 98 ) * COUNT( * ) + + COUNT( - col0 ) FROM tab2
----
16620
skipif mysql # not compatible
query I rowsort label-4665
SELECT + MAX ( ALL 93 ) + + + MAX ( DISTINCT - + CAST ( + 36 AS INTEGER ) ) * - MAX ( ALL - col1 ) * - COUNT ( + - 98 ) * COUNT ( * ) + + COUNT ( - col0 ) FROM tab2
----
16620
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4666
SELECT DISTINCT COUNT( * ) / + CAST( NULL AS SIGNED ) - COUNT( * ) * COUNT( * ) * 14 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT COUNT ( * ) / + CAST ( NULL AS INTEGER ) - COUNT ( * ) * COUNT ( * ) * 14 FROM tab1
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4667
SELECT CAST( + + col0 AS SIGNED ) col0 FROM tab1
----
51
85
91
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4667
SELECT CAST ( + + col0 AS INTEGER ) col0 FROM tab1
----
51
85
91
query I rowsort
SELECT - col2 * - + col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-4669
SELECT DISTINCT - col0 - + - col2 - + + col1 DIV + col0 AS col2 FROM tab2 cor0
----
-17
-24
-25
skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT - col0 - + - col2 - + + col1 / + col0 AS col2 FROM tab2 cor0
----
-17
-24
-25
query I rowsort
SELECT ALL + - 50 + col0 + + col2 FROM tab0 AS cor0
----
12
146
47
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 / - col2 ) IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-4672
SELECT col1 DIV + col1 - + 11 * + 71 - - col2 FROM tab1 AS cor0
----
-684
-712
-721
skipif mysql # not compatible
query I rowsort label-4672
SELECT col1 / + col1 - + 11 * + 71 - - col2 FROM tab1 AS cor0
----
-684
-712
-721
query I rowsort
SELECT ALL + col1 * - 8 FROM tab2 AS cor0
----
-408
-536
-616
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL <> NULL )
----
query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT + - col2 IS NOT NULL
----
query I rowsort
SELECT col2 - - 89 * 65 FROM tab2
----
5808
5825
5843
onlyif mysql # aggregate syntax:
query I rowsort label-4677
SELECT DISTINCT + SUM( + col2 ) FROM tab1
----
223
skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT + SUM ( + col2 ) FROM tab1
----
223
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-4678
SELECT ALL col1, - 94 - + - col0 * - 0 * - CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL
skipif mysql # not compatible
query II rowsort label-4678
SELECT ALL col1, - 94 - + - col0 * - 0 * - CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL
query II rowsort
SELECT ALL + col2, + ( - col1 ) AS col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14
query I rowsort
SELECT ALL + - ( + ( - + col1 ) ) AS col0 FROM tab0 AS cor0
----
1
21
81
onlyif mysql # aggregate syntax:
query I rowsort label-4681
SELECT DISTINCT - COUNT( - col2 ) col1 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4681
SELECT DISTINCT - COUNT ( - col2 ) col1 FROM tab0 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-4682
SELECT ALL - COUNT( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL - COUNT ( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-3
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 50 NOT BETWEEN NULL AND + + col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-4684
SELECT 41 * - COUNT( * ) * - + 58 AS col0 FROM tab0 AS cor0
----
7134
skipif mysql # not compatible
query I rowsort label-4684
SELECT 41 * - COUNT ( * ) * - + 58 AS col0 FROM tab0 AS cor0
----
7134
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-4685
SELECT col0, + CAST( + 12 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
12
85
12
91
12
skipif mysql # not compatible
query II rowsort label-4685
SELECT col0, + CAST ( + 12 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
12
85
12
91
12
onlyif mysql # aggregate syntax:
query II rowsort label-4686
SELECT ALL + COUNT( * ), COUNT( * ) + 92 + 1 AS col0 FROM tab1 AS cor0
----
3
96
skipif mysql # not compatible
query II rowsort label-4686
SELECT ALL + COUNT ( * ), COUNT ( * ) + 92 + 1 AS col0 FROM tab1 AS cor0
----
3
96
onlyif mysql # DIV for integer division:
query I rowsort label-4687
SELECT DISTINCT + 77 * 81 DIV - col2 FROM tab1 AS cor0
----
-105
-64
-91
skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT + 77 * 81 / - col2 FROM tab1 AS cor0
----
-105
-64
-91
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> - col0
----
query I rowsort
SELECT 63 * - col0 * + col2 * + 22 FROM tab1
----
-6785856
-6950790
-8576568
onlyif mysql # aggregate syntax:
query I rowsort label-4690
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE NOT ( NULL NOT BETWEEN NULL AND + col2 )
----
0
skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( NULL NOT BETWEEN NULL AND + col2 )
----
0
query I rowsort
SELECT ALL 98 AS col2 FROM tab0
----
98
98
98
onlyif mysql # aggregate syntax:
query I rowsort label-4692
SELECT + + MIN( + col2 ) FROM tab1 cor0
----
59
skipif mysql # not compatible
query I rowsort label-4692
SELECT + + MIN ( + col2 ) FROM tab1 cor0
----
59
query I rowsort
SELECT ALL - ( + + 90 ) AS col0 FROM tab0 AS cor0
----
-90
-90
-90
query II rowsort
SELECT - col2 AS col2, 39 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-59
39
-68
39
-96
39
onlyif mysql # aggregate syntax:
query I rowsort label-4695
SELECT ALL + SUM( ALL + - 52 ) AS col0 FROM tab0 AS cor0
----
-156
skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL + SUM ( ALL + - 52 ) AS col0 FROM tab0 AS cor0
----
-156
onlyif mysql # aggregate syntax:
query II rowsort label-4696
SELECT - MIN( col1 ), - 16 * COUNT( * ) col0 FROM tab2 AS cor0
----
-51
-48
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4696
SELECT - MIN ( col1 ), - 16 * COUNT ( * ) col0 FROM tab2 AS cor0
----
-51
-48
query I rowsort
SELECT - ( + + col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77
query I rowsort
SELECT DISTINCT col1 * 69 * + 3 * - col2 AS col2 FROM tab0
----
-20493
-43470
-788049
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type:
query I rowsort label-4699
SELECT DISTINCT + MAX( + CAST( - col0 AS SIGNED ) ) * + ( + - 27 ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT + MAX ( + CAST ( - col0 AS INTEGER ) ) * + ( + - 27 ) + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT + col1 + - ( ( - col2 ) ) * - 89 FROM tab0
----
-4102
-869
-8810
query I rowsort
SELECT 19 * - - col2 AS col2 FROM tab1 AS cor0
----
1121
1292
1824
onlyif mysql # aggregate syntax:
query I rowsort label-4702
SELECT ALL SUM( ALL col1 ) FROM tab1 AS cor0
----
66
skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL SUM ( ALL col1 ) FROM tab1 AS cor0
----
66
query I rowsort
SELECT - - col2 * 31 FROM tab2 AS cor0
----
1240
1798
713
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4704
SELECT DISTINCT + - 15 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT + - 15 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL col0 * - 45 + - - 70 * ( + col2 ) - + col0 * - - col0 AS col1 FROM tab0 AS cor0
----
-10784
-6844
2390
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 22 col0, ( - - col1 ) FROM tab1 AS cor0
----
22
14
22
47
22
5
onlyif mysql # DIV for integer division:
query I rowsort label-4707
SELECT + col1 DIV col2 col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4707
SELECT + col1 / col2 col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # DIV for integer division:
query I rowsort label-4708
SELECT col1 DIV - 32 FROM tab2
----
-1
-2
-2
skipif mysql # not compatible
query I rowsort label-4708
SELECT col1 / - 32 FROM tab2
----
-1
-2
-2
query I rowsort
SELECT + + col0 * + 87 * + col0 + + col2 FROM tab2 WHERE 42 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4710
SELECT ALL - 15 - + MAX( ALL col0 ) AS col2 FROM tab2
----
-90
skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL - 15 - + MAX ( ALL col0 ) AS col2 FROM tab2
----
-90
query I rowsort
SELECT - 8 AS col1 FROM tab1 WHERE - - ( - + col0 ) IS NOT NULL
----
-8
-8
-8
query I rowsort
SELECT DISTINCT ( + 77 ) + + - col2 FROM tab2
----
19
37
54
query I rowsort
SELECT - col2 - + col2 * 55 FROM tab1
----
-3304
-3808
-5376
query I rowsort
SELECT ALL col2 + - col0 * - + col2 * - 1 * + col2 FROM tab2
----
-102360
-24311
-252242
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4715
SELECT * FROM tab0 cor0 WHERE ( CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-4715
SELECT * FROM tab0 cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL - col0 - + - col2 AS col0 FROM tab0 AS cor0
----
-77
2
32
query I rowsort
SELECT col1 * - 54 * - 25 * - col1 + + col2 FROM tab0 AS cor0
----
-1251
-595340
-8857303
onlyif mysql # aggregate syntax:
query I rowsort label-4718
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-4719
SELECT ALL COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
onlyif mysql # DIV for integer division:
query I rowsort label-4720
SELECT + - col2 DIV + + 33 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-4720
SELECT + - col2 / + + 33 FROM tab2 AS cor0
----
-1
-1
0
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 25 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4722
SELECT MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4722
SELECT MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + 49 * + col2 FROM tab2 AS cor0
----
1127
1960
2842
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4724
SELECT ALL 90 - + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 WHERE + ( - 18 ) + + - col0 < NULL
----
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4724
SELECT ALL 90 - + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 WHERE + ( - 18 ) + + - col0 < NULL
----
query I rowsort
SELECT ALL col1 * - + col1 FROM tab2 AS cor0
----
-2601
-4489
-5929
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= col0 / col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 col2 FROM tab0
----
-81
query I rowsort
SELECT 32 * + col0 AS col2 FROM tab2
----
1472
2048
2400
onlyif mysql # aggregate syntax:
query I rowsort label-4729
SELECT COUNT( * ) + 70 AS col2 FROM tab1 WHERE NOT col1 IN ( - - 64 * 73, + col1, + col2 )
----
70
skipif mysql # not compatible
query I rowsort label-4729
SELECT COUNT ( * ) + 70 AS col2 FROM tab1 WHERE NOT col1 IN ( - - 64 * 73, + col1, + col2 )
----
70
query I rowsort
SELECT ( + col0 ) * + col2 AS col0 FROM tab2
----
1058
2560
4350
query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 + 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT - 53 FROM tab1 WHERE NOT NULL = ( + ( + - col0 ) )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col1, - 96 col2 FROM tab1
----
14
-96
47
-96
5
-96
query II rowsort
SELECT ALL + col1, 65 + 89 - - col1 FROM tab0
----
1
155
21
175
81
235
query I rowsort
SELECT 81 + + 54 FROM tab0
----
135
135
135
onlyif mysql # aggregate syntax:
query I rowsort label-4736
SELECT ALL MAX( DISTINCT + + col2 ) FROM tab1
----
96
skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL MAX ( DISTINCT + + col2 ) FROM tab1
----
96
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-4737
SELECT DISTINCT * FROM tab0 WHERE NOT ( - + col2 ) BETWEEN CAST( NULL AS DECIMAL ) * 6 * + 89 AND - + 33
----
87
21
10
skipif mysql # not compatible
query III rowsort label-4737
SELECT DISTINCT * FROM tab0 WHERE NOT ( - + col2 ) BETWEEN CAST ( NULL AS REAL ) * 6 * + 89 AND - + 33
----
87
21
10
query I rowsort
SELECT DISTINCT col2 * col0 * - + col0 FROM tab0 AS cor0
----
-10575
-75690
-931491
onlyif mysql # aggregate syntax:
query II rowsort label-4739
SELECT DISTINCT + - COUNT( * ), COUNT( * ) AS col1 FROM tab2 cor0
----
-3
3
skipif mysql # not compatible
query II rowsort label-4739
SELECT DISTINCT + - COUNT ( * ), COUNT ( * ) AS col1 FROM tab2 cor0
----
-3
3
onlyif mysql # aggregate syntax:
query I rowsort label-4740
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE + + 15 NOT BETWEEN NULL AND 67
----
0
skipif mysql # not compatible
query I rowsort label-4740
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE + + 15 NOT BETWEEN NULL AND 67
----
0
query I rowsort
SELECT ALL - 42 + ( + col2 ) FROM tab0
----
-32
5
57
query I rowsort
SELECT DISTINCT - ( - + 55 ) FROM tab0
----
55
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4743
SELECT - 5 + + + col2 - - CAST( col2 AS SIGNED ) + + col2 - + 52 AS col1 FROM tab0 AS cor0
----
-27
240
84
skipif mysql # not compatible
query I rowsort label-4743
SELECT - 5 + + + col2 - - CAST ( col2 AS INTEGER ) + + col2 - + 52 AS col1 FROM tab0 AS cor0
----
-27
240
84
query I rowsort
SELECT + + col2 * - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 = NULL AND - col2 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4745
SELECT DISTINCT + col1 * - + col0 + - ( - - col2 ) + - CAST( - - 95 AS SIGNED ) - col1 AS col1 FROM tab1 AS cor0
----
-4487
-584
-919
skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT + col1 * - + col0 + - ( - - col2 ) + - CAST ( - - 95 AS INTEGER ) - col1 AS col1 FROM tab1 AS cor0
----
-4487
-584
-919
query I rowsort
SELECT DISTINCT - col1 * - 39 AS col1 FROM tab0 cor0
----
3159
39
819
onlyif mysql # DIV for integer division:
query II rowsort label-4747
SELECT DISTINCT + 90 * + col0 * + col0 - + col2 - + 42 AS col0, col2 DIV col2 AS col2 FROM tab2 AS cor0
----
190375
1
368558
1
506150
1
skipif mysql # not compatible
query II rowsort label-4747
SELECT DISTINCT + 90 * + col0 * + col0 - + col2 - + 42 AS col0, col2 / col2 AS col2 FROM tab2 AS cor0
----
190375
1
368558
1
506150
1
query I rowsort
SELECT ( + col2 ) * + + col1 + col1 + col0 + 56 FROM tab0 AS cor0
----
253
374
3959
query I rowsort
SELECT - - col1 + + 11 * - col0 AS col0 FROM tab0 cor0
----
-1066
-84
-936
query I rowsort
SELECT + 60 * + 56 + + col2 - + - col0 - col0 FROM tab0
----
3370
3407
3459
query III rowsort
SELECT * FROM tab2 WHERE ( 50 ) IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4752
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( + col0 AS SIGNED ) NOT BETWEEN NULL AND NULL
----
skipif mysql # not compatible
query III rowsort label-4752
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( + col0 AS INTEGER ) NOT BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4753
SELECT + 7 + - SUM( + + col0 ) + + COUNT( * ) DIV - COUNT( * ) FROM tab1
----
-221
skipif mysql # not compatible
query I rowsort label-4753
SELECT + 7 + - SUM ( + + col0 ) + + COUNT ( * ) / - COUNT ( * ) FROM tab1
----
-221
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, 48 FROM tab2
----
46
48
64
48
75
48
onlyif mysql # aggregate syntax:
query I rowsort label-4755
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-3
skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-3
query I rowsort
SELECT ALL - col2 * - + col2 + - 16 * col0 AS col2 FROM tab0
----
-1292
1969
8249
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 col0 FROM tab1
----
-47
-47
-47
query III rowsort
SELECT * FROM tab0 WHERE + col2 * + ( + + col1 ) <> - 7
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4759
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( + - 54 AS SIGNED ) * - 78 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-4759
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( + - 54 AS INTEGER ) * - 78 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-4760
SELECT MAX( + 2 ) AS col2 FROM tab0 cor0
----
2
skipif mysql # not compatible
query I rowsort label-4760
SELECT MAX ( + 2 ) AS col2 FROM tab0 cor0
----
2
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 - + + col1 * - col2 * 19 NOT BETWEEN col1 AND ( NULL )
----
query I rowsort
SELECT - ( - - col1 ) * 30 AS col1 FROM tab0 AS cor0
----
-2430
-30
-630
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-4763
SELECT ALL + + 22 AS col2, + ( CAST( - + col0 AS SIGNED ) ) + col0 - - 85 * col0 FROM tab1 AS cor0
----
22
4335
22
7225
22
7735
skipif mysql # not compatible
query II rowsort label-4763
SELECT ALL + + 22 AS col2, + ( CAST ( - + col0 AS INTEGER ) ) + col0 - - 85 * col0 FROM tab1 AS cor0
----
22
4335
22
7225
22
7735
onlyif mysql # aggregate syntax:
query I rowsort label-4764
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT col2 <> NULL )
----
query I rowsort
SELECT ALL + - ( - - 61 ) * 62 AS col1 FROM tab0 cor0
----
-3782
-3782
-3782
onlyif mysql # DIV for integer division:
query I rowsort label-4767
SELECT ALL + col0 DIV - - col2 col1 FROM tab2 AS cor0
----
1
1
2
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4767
SELECT ALL + col0 / - - col2 col1 FROM tab2 AS cor0
----
1
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 col0 FROM tab2 AS cor0
----
63
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 73 + + 80 + + col1 * 72 >= ( col1 )
----
query II rowsort
SELECT ALL - col2 * + - col2 AS col1, 93 FROM tab1 AS cor0
----
3481
93
4624
93
9216
93
onlyif mysql # aggregate syntax:
query I rowsort label-4771
SELECT - MAX( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-99
skipif mysql # not compatible
query I rowsort label-4771
SELECT - MAX ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-99
onlyif mysql # DIV for integer division:
query II rowsort label-4772
SELECT DISTINCT 60 DIV col2 + col0 AS col0, - col0 + + ( + - col2 ) + + col0 FROM tab2
----
48
-23
65
-40
76
-58
skipif mysql # not compatible
query II rowsort label-4772
SELECT DISTINCT 60 / col2 + col0 AS col0, - col0 + + ( + - col2 ) + + col0 FROM tab2
----
48
-23
65
-40
76
-58
query II rowsort
SELECT + col2 AS col2, - col1 AS col2 FROM tab0
----
10
-21
47
-81
99
-1
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 21 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-4775
SELECT ALL + 53 * COUNT( ALL + - ( - 98 ) ) FROM tab2
----
159
skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL + 53 * COUNT ( ALL + - ( - 98 ) ) FROM tab2
----
159
query I rowsort
SELECT DISTINCT - 87 * - col2 + col2 FROM tab0
----
4136
8712
880
query I rowsort
SELECT DISTINCT 71 * col0 AS col1 FROM tab1
----
3621
6035
6461
query II rowsort
SELECT 64 AS col1, + col2 * 46 + + 58 FROM tab1
----
64
2772
64
3186
64
4474
onlyif mysql # aggregate syntax:
query I rowsort label-4779
SELECT COUNT( * ) * + 32 FROM tab1 AS cor0
----
96
skipif mysql # not compatible
query I rowsort label-4779
SELECT COUNT ( * ) * + 32 FROM tab1 AS cor0
----
96
query I rowsort
SELECT DISTINCT col1 - + + col0 FROM tab2 AS cor0 WHERE NULL >= col1
----
query I rowsort
SELECT ALL - + 51 * + col0 + + 41 AS col1 FROM tab1 AS cor0
----
-2560
-4294
-4600
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4782
SELECT col2 * + + col0 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4782
SELECT col2 * + + col0 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-4783
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
query I rowsort
SELECT col2 * + - col1 FROM tab1 cor0
----
-1344
-295
-3196
onlyif mysql # aggregate syntax:
query I rowsort label-4785
SELECT DISTINCT - MIN( - - col2 ) AS col0 FROM tab1 AS cor0
----
-59
skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT - MIN ( - - col2 ) AS col0 FROM tab1 AS cor0
----
-59
query I rowsort
SELECT - col2 + + col1 FROM tab2 cor0 WHERE col0 NOT IN ( + col0, - col0 * 42 )
----
query I rowsort
SELECT + ( - - col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97
query I rowsort
SELECT + col0 * col2 * + col2 + col0 AS col0 FROM tab1 cor0
----
295970
420875
470067
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 67 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4790
SELECT ALL + - ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL + - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 90 ) - - - 17 col0 FROM tab0 WHERE NOT ( NULL ) <> NULL AND NULL = NULL
----
query I rowsort
SELECT DISTINCT + 53 + - ( + 80 ) FROM tab2
----
-27
query I rowsort
SELECT - 23 + - 46 AS col2 FROM tab0
----
-69
-69
-69
query II rowsort
SELECT ( - + col1 ), - 11 AS col0 FROM tab2
----
-51
-11
-67
-11
-77
-11
onlyif mysql # DIV for integer division:
query II rowsort label-4795
SELECT DISTINCT - - 10 * col2 AS col1, col1 - - + 67 DIV - 7 AS col2 FROM tab2 AS cor0
----
230
42
400
68
580
58
skipif mysql # not compatible
query II rowsort label-4795
SELECT DISTINCT - - 10 * col2 AS col1, col1 - - + 67 / - 7 AS col2 FROM tab2 AS cor0
----
230
42
400
68
580
58
onlyif mysql # aggregate syntax:
query I rowsort label-4796
SELECT ALL - - 13 * - + SUM( - col0 ) AS col2 FROM tab2 AS cor0
----
2405
skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL - - 13 * - + SUM ( - col0 ) AS col2 FROM tab2 AS cor0
----
2405
onlyif mysql # aggregate syntax:
query I rowsort label-4797
SELECT COUNT( - col2 ) col0 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4797
SELECT COUNT ( - col2 ) col0 FROM tab0 AS cor0
----
3
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= col2 + + col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col1, + 80 + col1 col2 FROM tab0
----
1
81
21
101
81
161
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-4801
SELECT DISTINCT COUNT( * ) + + + COUNT( * ) col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4801
SELECT DISTINCT COUNT ( * ) + + + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
query II rowsort
SELECT - 44, 28 - + 30 + col1 AS col0 FROM tab1 AS cor0
----
-44
12
-44
3
-44
45
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 col2 FROM tab2 AS cor0
----
7
onlyif mysql # DIV for integer division:
query I rowsort label-4805
SELECT DISTINCT ( - col0 ) DIV - 60 AS col2 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT ( - col0 ) / - 60 AS col2 FROM tab2 AS cor0
----
0
1
onlyif mysql # aggregate syntax:
query I rowsort label-4806
SELECT DISTINCT - MAX( - col0 ) AS col1 FROM tab0
----
15
skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT - MAX ( - col0 ) AS col1 FROM tab0
----
15
query I rowsort
SELECT col2 + 51 + + 63 FROM tab1
----
173
182
210
query I rowsort
SELECT ALL - col2 * + 7 + + ( + col0 ) FROM tab2
----
-115
-216
-331
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + + 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL - 75 AS col1 FROM tab1 AS cor0
----
-75
-75
-75
query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT - col1 * - + 37 AS col1 FROM tab2 AS cor0
----
1887
2479
2849
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * - col0 IS NULL
----
query I rowsort
SELECT - + 25 FROM tab0 cor0
----
-25
-25
-25
onlyif mysql # aggregate syntax:
query I rowsort label-4816
SELECT - 87 - + MAX( DISTINCT + - ( - + col0 ) ) FROM tab2 WHERE NULL = - + col2
----
NULL
skipif mysql # not compatible
query I rowsort label-4816
SELECT - 87 - + MAX ( DISTINCT + - ( - + col0 ) ) FROM tab2 WHERE NULL = - + col2
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-4817
SELECT + col1 DIV - col2 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4817
SELECT + col1 / - col2 AS col1 FROM tab1
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-4818
SELECT DISTINCT + COUNT( * ) + COUNT( ALL + col0 ) AS col1 FROM tab0
----
6
skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT + COUNT ( * ) + COUNT ( ALL + col0 ) AS col1 FROM tab0
----
6
query I rowsort
SELECT ALL + col0 + col1 + + col0 AS col2 FROM tab2
----
143
205
217
query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - 26 IS NULL
----
51
67
77
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4821
SELECT DISTINCT COUNT( * ) - + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT COUNT ( * ) - + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - 62, + ( + col0 ), - col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4823
SELECT ALL - MAX( ALL + 53 ) - + 32 col0 FROM tab2 AS cor0
----
-85
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4823
SELECT ALL - MAX ( ALL + 53 ) - + 32 col0 FROM tab2 AS cor0
----
-85
query I rowsort
SELECT - col1 * - + 56 + - + col1 FROM tab0 AS cor0
----
1155
4455
55
onlyif mysql # aggregate syntax:
query I rowsort label-4825
SELECT MIN( ALL col1 ) FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4825
SELECT MIN ( ALL col1 ) FROM tab0 AS cor0
----
1
onlyif mysql # aggregate syntax:
query I rowsort label-4826
SELECT DISTINCT + 36 * + COUNT( * ) FROM tab1
----
108
skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT + 36 * + COUNT ( * ) FROM tab1
----
108
query I rowsort
SELECT + col1 * + col0 * - col0 FROM tab1
----
-36125
-36414
-389207
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4828
SELECT ALL CAST( - + ( + col0 ) AS SIGNED ) AS col2 FROM tab0
----
-15
-87
-97
skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL CAST ( - + ( + col0 ) AS INTEGER ) AS col2 FROM tab0
----
-15
-87
-97
onlyif mysql # aggregate syntax:
query I rowsort label-4829
SELECT - 49 * - + COUNT( * ) AS col0 FROM tab1
----
147
skipif mysql # not compatible
query I rowsort label-4829
SELECT - 49 * - + COUNT ( * ) AS col0 FROM tab1
----
147
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4830
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( 94 AS SIGNED ) IS NULL
----
skipif mysql # not compatible
query III rowsort label-4830
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( 94 AS INTEGER ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4831
SELECT ALL - MAX( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-97
skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL - MAX ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-97
query I rowsort
SELECT 70 * - - col0 FROM tab0 AS cor0
----
1050
6090
6790
query I rowsort
SELECT - + col2 + - - 35 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-23
-5
12
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4835
SELECT DISTINCT COUNT( + 20 ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-4835
SELECT DISTINCT COUNT ( + 20 ) FROM tab0
----
3
query I rowsort
SELECT 91 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT DISTINCT + + ( + + col1 ) AS col1 FROM tab1 cor0
----
14
47
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) col1 FROM tab0 cor0
----
1
21
81
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + col1 IS NOT NULL
----
query I rowsort
SELECT - + 73 AS col1 FROM tab2 AS cor0
----
-73
-73
-73
query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE col1 <> ( + + col1 )
----
query II rowsort
SELECT ALL + 68 + + - 81, + 10 AS col2 FROM tab1 AS cor0
----
-13
10
-13
10
-13
10
onlyif mysql # aggregate syntax:
query I rowsort label-4843
SELECT - MIN( ALL + col1 ) AS col1 FROM tab2
----
-51
skipif mysql # not compatible
query I rowsort label-4843
SELECT - MIN ( ALL + col1 ) AS col1 FROM tab2
----
-51
query I rowsort
SELECT - 21 FROM tab1 WHERE + ( - col0 ) BETWEEN - ( - - 64 ) AND - 77 * - + col0 * 41
----
-21
query I rowsort
SELECT + col0 * - + col1 FROM tab0
----
-1215
-1827
-97
onlyif mysql # aggregate syntax:
query II rowsort label-4846
SELECT ALL + COUNT( * ) AS col1, + 35 FROM tab0
----
3
35
skipif mysql # not compatible
query II rowsort label-4846
SELECT ALL + COUNT ( * ) AS col1, + 35 FROM tab0
----
3
35
query I rowsort
SELECT col2 * - 27 * - + col0 - - col2 + + col1 FROM tab1 AS cor0
----
132302
135469
167191
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4848
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE ( - 70 > + col2 * + 25 + ( - CAST( - col2 AS SIGNED ) ) )
----
0
skipif mysql # not compatible
query I rowsort label-4848
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE ( - 70 > + col2 * + 25 + ( - CAST ( - col2 AS INTEGER ) ) )
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 * - - col1 col0 FROM tab1
----
1232
4136
440
onlyif mysql # aggregate syntax:
query I rowsort label-4850
SELECT DISTINCT MAX( - 37 ) + - 34 AS col0 FROM tab0
----
-71
skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT MAX ( - 37 ) + - 34 AS col0 FROM tab0
----
-71
onlyif mysql # aggregate syntax:
query I rowsort label-4851
SELECT - - MIN( ALL - col1 ) - + 60 FROM tab1 AS cor0
----
-107
skipif mysql # not compatible
query I rowsort label-4851
SELECT - - MIN ( ALL - col1 ) - + 60 FROM tab1 AS cor0
----
-107
onlyif mysql # aggregate syntax:
query I rowsort label-4852
SELECT + COUNT( DISTINCT ( + - col2 ) ) AS col0 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-4852
SELECT + COUNT ( DISTINCT ( + - col2 ) ) AS col0 FROM tab0 AS cor0
----
3
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 27 > - ( - col2 ) * - col1 + - col2
----
query I rowsort
SELECT ALL + - 26 * col2 * + col1 FROM tab0 AS cor0
----
-2574
-5460
-98982
query I rowsort
SELECT col2 * 43 AS col2 FROM tab1
----
2537
2924
4128
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-4856
SELECT - CAST( + CAST( - col1 AS SIGNED ) AS SIGNED ) AS col1, 73 * - col0 AS col2 FROM tab1
----
14
-3723
47
-6643
5
-6205
skipif mysql # not compatible
query II rowsort label-4856
SELECT - CAST ( + CAST ( - col1 AS INTEGER ) AS INTEGER ) AS col1, 73 * - col0 AS col2 FROM tab1
----
14
-3723
47
-6643
5
-6205
query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-4858
SELECT ALL + SUM( + col0 ) FROM tab2
----
185
skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL + SUM ( + col0 ) FROM tab2
----
185
query I rowsort
SELECT DISTINCT - ( + - col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77
onlyif mysql # aggregate syntax:
query I rowsort label-4860
SELECT - + COUNT( ALL + 5 ) FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-4860
SELECT - + COUNT ( ALL + 5 ) FROM tab1 AS cor0
----
-3
onlyif mysql # DIV for integer division:
query II rowsort label-4861
SELECT - col1 AS col1, + col0 DIV col0 FROM tab2 AS cor0
----
-51
1
-67
1
-77
1
skipif mysql # not compatible
query II rowsort label-4861
SELECT - col1 AS col1, + col0 / col0 FROM tab2 AS cor0
----
-51
1
-67
1
-77
1
onlyif mysql # aggregate syntax:
query I rowsort label-4862
SELECT ALL + MAX( DISTINCT + ( + 32 ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
32
skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL + MAX ( DISTINCT + ( + 32 ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
32
query I rowsort
SELECT DISTINCT col0 * - 18 AS col0 FROM tab0
----
-1566
-1746
-270
query I rowsort
SELECT DISTINCT + - 47 FROM tab1 WHERE NOT col2 * - col2 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4865
SELECT ALL + COUNT( - + col0 ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL + COUNT ( - + col0 ) FROM tab0 AS cor0
----
3
query I rowsort
SELECT ALL + + 58 + - - col2 + + 7 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----
query I rowsort
SELECT DISTINCT col1 + - col2 + + + 61 * + 71 AS col2 FROM tab1 AS cor0
----
4249
4277
4310
query I rowsort
SELECT ( 84 ) + col0 / - - col0 AS col1 FROM tab1 cor0 WHERE NULL BETWEEN + col0 AND - - 58
----
onlyif mysql # DIV for integer division:
query I rowsort label-4869
SELECT ALL 11 DIV + + col1 + col1 FROM tab1
----
14
47
7
skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL 11 / + + col1 + col1 FROM tab1
----
14
47
7
query I rowsort
SELECT - 4 + + 96 - + ( 58 ) FROM tab1
----
34
34
34
query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE + 38 IS NOT NULL
----
-51
-85
-91
query I rowsort
SELECT ALL - col1 + - - col2 AS col0 FROM tab1
----
21
54
82
onlyif mysql # aggregate syntax:
query I rowsort label-4873
SELECT COUNT( * ) + - - COUNT( * ) FROM tab2
----
6
skipif mysql # not compatible
query I rowsort label-4873
SELECT COUNT ( * ) + - - COUNT ( * ) FROM tab2
----
6
onlyif mysql # aggregate syntax:
query I rowsort label-4874
SELECT DISTINCT + 78 * - + COUNT( * ) + - 82 + + 58 FROM tab0
----
-258
skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT + 78 * - + COUNT ( * ) + - 82 + + 58 FROM tab0
----
-258
query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT - col1 IS NULL
----
46
64
75
onlyif mysql # aggregate syntax:
query I rowsort label-4876
SELECT - COUNT( * ) * - MAX( col0 ) AS col1 FROM tab2
----
225
skipif mysql # not compatible
query I rowsort label-4876
SELECT - COUNT ( * ) * - MAX ( col0 ) AS col1 FROM tab2
----
225
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4877
SELECT ALL CAST( NULL AS SIGNED ) * + col2 + - col1 * + col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 + - col1 * + col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-4878
SELECT ALL COUNT( * ) * 65 FROM tab2 AS cor0
----
195
skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL COUNT ( * ) * 65 FROM tab2 AS cor0
----
195
onlyif mysql # aggregate syntax:
query II rowsort label-4879
SELECT - + 37 * - - MIN( + 54 ), 36 + - ( ( - COUNT( * ) ) ) AS col0 FROM tab2 AS cor0
----
-1998
39
skipif mysql # not compatible
query II rowsort label-4879
SELECT - + 37 * - - MIN ( + 54 ), 36 + - ( ( - COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0
----
-1998
39
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-4880
SELECT DISTINCT + 90 * - 67, COUNT( * ) - + - 88 / ( - 74 ) * - ( CAST( - - 76 AS SIGNED ) ) + SUM( + - col0 ) - - 26 AS col0 FROM tab1 WHERE NOT ( NOT col1 IS NULL )
----
-6030
NULL
skipif mysql # not compatible
query II rowsort label-4880
SELECT DISTINCT + 90 * - 67, COUNT ( * ) - + - 88 / ( - 74 ) * - ( CAST ( - - 76 AS INTEGER ) ) + SUM ( + - col0 ) - - 26 AS col0 FROM tab1 WHERE NOT ( NOT col1 IS NULL )
----
-6030
NULL
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----
query III rowsort
SELECT * FROM tab1 WHERE - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT DISTINCT - col1, col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15
query I rowsort
SELECT DISTINCT + col0 * - - col0 FROM tab1 AS cor0
----
2601
7225
8281
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT - ( - col2 ) AS col1 FROM tab0 cor0
----
10
47
99
onlyif mysql # aggregate syntax:
query I rowsort label-4887
SELECT + + COUNT( * ) * - 79 AS col0 FROM tab2 AS cor0
----
-237
skipif mysql # not compatible
query I rowsort label-4887
SELECT + + COUNT ( * ) * - 79 AS col0 FROM tab2 AS cor0
----
-237
query I rowsort
SELECT ALL 1 * col1 AS col1 FROM tab0 AS cor0
----
1
21
81
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 2 NOT BETWEEN + 82 AND - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT + col0 * col0 + - col2 AS col2 FROM tab2 AS cor0
----
2093
4056
5567
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4891
SELECT CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97
skipif mysql # not compatible
query I rowsort label-4891
SELECT CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + - + col0 + - 71 / + + 59 NOT IN ( + col2 )
----
onlyif mysql # DIV for integer division:
query II rowsort label-4893
SELECT DISTINCT + col0 DIV + + 90 + + col2, - col0 AS col2 FROM tab1 AS cor0
----
59
-85
69
-91
96
-51
skipif mysql # not compatible
query II rowsort label-4893
SELECT DISTINCT + col0 / + + 90 + + col2, - col0 AS col2 FROM tab1 AS cor0
----
59
-85
69
-91
96
-51
onlyif mysql # DIV for integer division:
query I rowsort label-4894
SELECT col1 DIV - + col1 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4894
SELECT col1 / - + col1 FROM tab2
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 col2 FROM tab2
----
92
92
92
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query III rowsort label-4896
SELECT ALL * FROM tab2 WHERE NOT - CAST( col0 AS SIGNED ) * - 37 + + CAST( NULL AS DECIMAL ) * + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-4896
SELECT ALL * FROM tab2 WHERE NOT - CAST ( col0 AS INTEGER ) * - 37 + + CAST ( NULL AS REAL ) * + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4897
SELECT ALL + - 64 + - 72 col0 FROM tab1 WHERE - - CAST( NULL AS SIGNED ) <> NULL
----
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4897
SELECT ALL + - 64 + - 72 col0 FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) <> NULL
----
query I rowsort
SELECT ALL + - col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL + ( - - col2 ) FROM tab2
----
23
40
58
query I rowsort
SELECT ALL col0 FROM tab0 WHERE - + col2 >= NULL
----
query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 ) > - col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-4902
SELECT ALL - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-4904
SELECT DISTINCT + + COUNT( ALL - - 99 ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT + + COUNT ( ALL - - 99 ) FROM tab0 AS cor0
----
3
query I rowsort
SELECT ALL + 45 + + - 41 + + 0 FROM tab2
----
4
4
4
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * + 25 + + - ( 31 ) * - + col0 > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 + - 24 col2 FROM tab1 WHERE ( 32 ) IS NOT NULL
----
-10
-10
-10
query II rowsort
SELECT ALL - col0 AS col1, col1 FROM tab2
----
-46
51
-64
77
-75
67
onlyif mysql # DIV for integer division:
query I rowsort label-4909
SELECT - + 87 DIV + + ( - col2 ) + - + ( - 31 ) FROM tab2 cor0
----
32
33
34
skipif mysql # not compatible
query I rowsort label-4909
SELECT - + 87 / + + ( - col2 ) + - + ( - 31 ) FROM tab2 cor0
----
32
33
34
onlyif mysql # aggregate syntax:
query I rowsort label-4910
SELECT - SUM( - - col2 ) AS col2 FROM tab1 cor0
----
-223
skipif mysql # not compatible
query I rowsort label-4910
SELECT - SUM ( - - col2 ) AS col2 FROM tab1 cor0
----
-223
query I rowsort
SELECT + 88 * col2 AS col0 FROM tab1 AS cor0
----
5192
5984
8448
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 31 + col1 = NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4913
SELECT 21 * - COUNT( - col0 ) * - 17 FROM tab2 AS cor0
----
1071
skipif mysql # not compatible
query I rowsort label-4913
SELECT 21 * - COUNT ( - col0 ) * - 17 FROM tab2 AS cor0
----
1071
query I rowsort
SELECT ALL - col2 + - 99 AS col2 FROM tab1 AS cor0
----
-158
-167
-195
query III rowsort
SELECT ALL * FROM tab2 WHERE col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab2 WHERE 33 IS NULL
----
query III rowsort
SELECT * FROM tab0 WHERE - col1 IS NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 69 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4919
SELECT col1 + + 3 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4919
SELECT col1 + + 3 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - 24 + - - col0 + - 36 FROM tab0 AS cor0
----
-45
27
37
query I rowsort
SELECT - col1 + - col0 + + col0 AS col2 FROM tab0 AS cor0
----
-1
-21
-81
query I rowsort
SELECT ALL - + col0 - + - 80 - - + col0 FROM tab2 AS cor0
----
80
80
80
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4923
SELECT - col2 + + + CAST( NULL AS SIGNED ) + - col0 - - col1 / col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4923
SELECT - col2 + + + CAST ( NULL AS INTEGER ) + - col0 - - col1 / col1 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4924
SELECT - col0 + + CAST( - + col0 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
690
783
9506
skipif mysql # not compatible
query I rowsort label-4924
SELECT - col0 + + CAST ( - + col0 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
690
783
9506
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4925
SELECT col2 * CAST( - col2 AS SIGNED ) * col2 + col0 col2 FROM tab1 AS cor0 WHERE 64 + - 61 IS NULL
----
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4925
SELECT col2 * CAST ( - col2 AS INTEGER ) * col2 + col0 col2 FROM tab1 AS cor0 WHERE 64 + - 61 IS NULL
----
query I rowsort
SELECT DISTINCT col1 + + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-8
13
5
onlyif mysql # aggregate syntax:
query I rowsort label-4927
SELECT DISTINCT + + COUNT( DISTINCT + col1 ) FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT + + COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0
----
3
query I rowsort
SELECT - 4 * - col0 FROM tab0 AS cor0
----
348
388
60
query I rowsort
SELECT DISTINCT + - 75 AS col1 FROM tab0 AS cor0
----
-75
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) < - + col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-4931
SELECT + MIN( DISTINCT - 22 ) AS col0 FROM tab0 AS cor0
----
-22
skipif mysql # not compatible
query I rowsort label-4931
SELECT + MIN ( DISTINCT - 22 ) AS col0 FROM tab0 AS cor0
----
-22
query I rowsort
SELECT col0 * + - col2 * - ( - col1 ) / + ( col2 ) / + col1 + + col2 + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-4933
SELECT - - COUNT( * ) * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4933
SELECT - - COUNT ( * ) * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-4934
SELECT DISTINCT COUNT( * ) * + + 24 - SUM( ALL 7 ) FROM tab1 AS cor0
----
51
skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT COUNT ( * ) * + + 24 - SUM ( ALL 7 ) FROM tab1 AS cor0
----
51
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 AND - col1 - - col2 / - 78
----
query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - col0 ) IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-4937
SELECT col0 DIV + + 58 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-4937
SELECT col0 / + + 58 FROM tab2
----
0
1
1
query II rowsort
SELECT DISTINCT col2 AS col0, col1 * - col1 FROM tab2
----
23
-2601
40
-5929
58
-4489
query II rowsort
SELECT + col0 AS col2, col0 * + col1 FROM tab0
----
15
1215
87
1827
97
97
query I rowsort
SELECT + 86 * - col1 AS col2 FROM tab0
----
-1806
-6966
-86
query I rowsort
SELECT - col0 * + 44 AS col1 FROM tab2
----
-2024
-2816
-3300
onlyif mysql # aggregate syntax:
query I rowsort label-4942
SELECT ALL 52 * + COUNT( * ) AS col2 FROM tab2
----
156
skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL 52 * + COUNT ( * ) AS col2 FROM tab2
----
156
query I rowsort
SELECT DISTINCT - 54 * + col0 + col0 AS col1 FROM tab1 AS cor0
----
-2703
-4505
-4823
query I rowsort
SELECT DISTINCT - col2 + + col1 FROM tab0 cor0 WHERE - ( - - col0 ) <= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col0 FROM tab2 AS cor0 WHERE NOT - col0 * + ( + 45 ) < 88
----
onlyif mysql # DIV for integer division:
query I rowsort label-4946
SELECT DISTINCT col0 + - - 38 + col2 DIV + col2 - + col1 FROM tab1 cor0
----
119
76
83
skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT col0 + - - 38 + col2 / + col2 - + col1 FROM tab1 cor0
----
119
76
83
query III rowsort
SELECT * FROM tab2 WHERE NULL <> col2 + + 20
----
query I rowsort
SELECT - ( - ( 80 ) ) FROM tab0
----
80
80
80
query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 62 AND ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 51 col1 FROM tab2 AS cor0
----
115
126
97
query I rowsort
SELECT - + 42 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( 30, + ( col2 ) )
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4952
SELECT ALL + - COUNT( * ) DIV MIN( ALL - 62 ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL + - COUNT ( * ) / MIN ( ALL - 62 ) FROM tab2 AS cor0
----
0
query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col1 )
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 83 * - - col1 / - 97 + 0 * + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT col0 + + col1 + - 25 AS col1 FROM tab1 AS cor0
----
113
40
65
query II rowsort
SELECT DISTINCT col1 AS col0, ( + col0 ) + ( - col0 ) * - col2 AS col0 FROM tab2
----
51
1104
67
4425
77
2624
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( + 50 ) IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col1 FROM tab2
----
30
30
30
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-4960
SELECT MIN( ALL + - ( CAST( NULL AS DECIMAL ) ) ) AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4960
SELECT MIN ( ALL + - ( CAST ( NULL AS REAL ) ) ) AS col0 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT 83 + - col1 * + + col1 AS col1 FROM tab2
----
-2518
-4406
-5846
onlyif mysql # aggregate syntax:
query I rowsort label-4962
SELECT DISTINCT - SUM( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
227
skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT - SUM ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
227
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4963
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + - - col0 - + - col0 + - 56 + - 68 + + col0 - + + CAST( 64 AS SIGNED ) * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-4963
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + - - col0 - + - col0 + - 56 + - 68 + + col0 - + + CAST ( 64 AS INTEGER ) * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col1 FROM tab1
----
96
96
96
query I rowsort
SELECT DISTINCT - col1 * + 75 * ( - + 15 ) FROM tab0 WHERE NOT NULL > NULL
----
query II rowsort
SELECT DISTINCT - - col1, + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5
query I rowsort
SELECT DISTINCT - 84 AS col0 FROM tab1 cor0
----
-84
query II rowsort
SELECT DISTINCT - col2, + col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1
query I rowsort
SELECT ALL - 37 * + - col2 AS col0 FROM tab0 AS cor0
----
1739
3663
370
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-4970
SELECT DISTINCT + - col1 AS col2, - CAST( - col1 AS SIGNED ) + - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-51
-2065
-67
-5558
-77
-4019
skipif mysql # not compatible
query II rowsort label-4970
SELECT DISTINCT + - col1 AS col2, - CAST ( - col1 AS INTEGER ) + - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-51
-2065
-67
-5558
-77
-4019
query II rowsort
SELECT - - col2, - 87 AS col0 FROM tab2 AS cor0
----
23
-87
40
-87
58
-87
onlyif mysql # aggregate syntax:
query I rowsort label-4972
SELECT 14 * + COUNT( * ) AS col1 FROM tab2 cor0
----
42
skipif mysql # not compatible
query I rowsort label-4972
SELECT 14 * + COUNT ( * ) AS col1 FROM tab2 cor0
----
42
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4973
SELECT + ( - - 69 ) DIV COUNT( * ) + COUNT( * ) FROM tab2
----
26
skipif mysql # not compatible
query I rowsort label-4973
SELECT + ( - - 69 ) / COUNT ( * ) + COUNT ( * ) FROM tab2
----
26
onlyif mysql # aggregate syntax:
query I rowsort label-4974
SELECT + ( - - MIN( DISTINCT 54 ) ) FROM tab0
----
54
skipif mysql # not compatible
query I rowsort label-4974
SELECT + ( - - MIN ( DISTINCT 54 ) ) FROM tab0
----
54
onlyif mysql # DIV for integer division:
query I rowsort label-4975
SELECT ALL col0 DIV + col1 + + 84 col0 FROM tab2 AS cor0
----
84
84
85
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4975
SELECT ALL col0 / + col1 + + 84 col0 FROM tab2 AS cor0
----
84
84
85
onlyif mysql # aggregate syntax:
query I rowsort label-4976
SELECT DISTINCT COUNT( + col1 ) AS col0 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT COUNT ( + col1 ) AS col0 FROM tab1 AS cor0
----
3
onlyif mysql # DIV for integer division:
query I rowsort label-4977
SELECT ALL - - col1 * col1 DIV 9 AS col0 FROM tab1 cor0
----
2
21
245
skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL - - col1 * col1 / 9 AS col0 FROM tab1 cor0
----
2
21
245
query I rowsort
SELECT + + 55 FROM tab2 cor0
----
55
55
55
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4979
SELECT DISTINCT + 33 - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT + 33 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-4980
SELECT ALL col1 DIV + 77 AS col2 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL col1 / + 77 AS col2 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT + + 50 AS col0 FROM tab0 AS cor0
----
50
onlyif mysql # aggregate syntax:
query II rowsort label-4982
SELECT DISTINCT + COUNT( * ) AS col1, COUNT( * ) FROM tab2 AS cor0
----
3
3
skipif mysql # not compatible
query II rowsort label-4982
SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) FROM tab2 AS cor0
----
3
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4983
SELECT - - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4983
SELECT - - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 28 * - - col0 AS col1 FROM tab1 AS cor0
----
1428
2380
2548
onlyif mysql # aggregate syntax:
query I rowsort label-4985
SELECT ALL - 5 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-8
skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL - 5 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-8
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-4986
SELECT col1 - + col1 / CAST( NULL AS SIGNED ) * + - col0 / + - col0 + - col2 col1, - 45 AS col1 FROM tab1 cor0
----
NULL
-45
NULL
-45
NULL
-45
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4986
SELECT col1 - + col1 / CAST ( NULL AS INTEGER ) * + - col0 / + - col0 + - col2 col1, - 45 AS col1 FROM tab1 cor0
----
NULL
-45
NULL
-45
NULL
-45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + + col1 col1 FROM tab0 AS cor0
----
-66
-96
66
query I rowsort
SELECT DISTINCT 53 + + col2 * + col0 AS col0 FROM tab2
----
1111
2613
4403
query I rowsort
SELECT 0 AS col2 FROM tab0 WHERE NULL <> - col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-4990
SELECT DISTINCT COUNT( * ) + - SUM( + + col1 ) FROM tab2
----
-192
skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT COUNT ( * ) + - SUM ( + + col1 ) FROM tab2
----
-192
query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + col0 - - col0 AND NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4992
SELECT SUM( ALL - col0 ) + + 17 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4992
SELECT SUM ( ALL - col0 ) + + 17 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
query II rowsort
SELECT ALL - 44 + col1 * + ( - 21 ), col1 AS col2 FROM tab0
----
-1745
81
-485
21
-65
1
query I rowsort
SELECT - - 90 AS col1 FROM tab2 WHERE NULL IS NULL
----
90
90
90
query I rowsort
SELECT DISTINCT - ( - col1 ) - - + 78 FROM tab0
----
159
79
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - 48 + + 7 col1 FROM tab1
----
10
44
50
onlyif mysql # DIV for integer division:
query II rowsort label-4997
SELECT ALL + col0 - + - ( col2 ) * - col1 col1, + col2 DIV - 76 FROM tab2 AS cor0
----
-1127
0
-3016
0
-3811
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4997
SELECT ALL + col0 - + - ( col2 ) * - col1 col1, + col2 / - 76 FROM tab2 AS cor0
----
-1127
0
-3016
0
-3811
0
query I rowsort
SELECT DISTINCT 9 FROM tab2 cor0
----
9
query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE NOT - col0 <> NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5000
SELECT ALL - - COUNT( * ) FROM tab0 AS cor0 WHERE NULL > ( NULL )
----
0
skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL - - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL > ( NULL )
----
0
query I rowsort
SELECT ALL - ( - 47 ) AS col0 FROM tab1 AS cor0
----
47
47
47
query I rowsort
SELECT ALL - ( + + col0 ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75
onlyif mysql # aggregate syntax:
query I rowsort label-5003
SELECT DISTINCT COUNT( DISTINCT - col0 ) + - COUNT( * ) col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5003
SELECT DISTINCT COUNT ( DISTINCT - col0 ) + - COUNT ( * ) col1 FROM tab2 AS cor0
----
0
onlyif mysql # aggregate syntax:
query II rowsort label-5004
SELECT DISTINCT + COUNT( * ) AS col1, - COUNT( * ) FROM tab0
----
3
-3
skipif mysql # not compatible
query II rowsort label-5004
SELECT DISTINCT + COUNT ( * ) AS col1, - COUNT ( * ) FROM tab0
----
3
-3
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = col2
----
query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + + 52 * - col1 NOT BETWEEN - + col2 AND col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-5007
SELECT DISTINCT COUNT( * ) * + ( + + COUNT( * ) ) FROM tab0
----
9
skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT COUNT ( * ) * + ( + + COUNT ( * ) ) FROM tab0
----
9
query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * col2 + - ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT col2 + + ( + + 23 ) FROM tab2
----
46
63
81
query I rowsort
SELECT ALL - 64 AS col2 FROM tab1
----
-64
-64
-64
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5011
SELECT * FROM tab1 WHERE - ( - col2 ) NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-5011
SELECT * FROM tab1 WHERE - ( - col2 ) NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----
query II rowsort
SELECT ALL + col2, + col1 + + col0 FROM tab2 AS cor0
----
23
97
40
141
58
142
query I rowsort
SELECT DISTINCT - ( 76 ) AS col1 FROM tab1 cor0
----
-76
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5014
SELECT ALL + CAST( NULL AS SIGNED ) + + - COUNT( ALL - + col0 ) - + - COUNT( * ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL + CAST ( NULL AS INTEGER ) + + - COUNT ( ALL - + col0 ) - + - COUNT ( * ) AS col0 FROM tab2
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5015
SELECT DISTINCT 16 - + ( SUM( - col0 ) ) FROM tab1 AS cor0
----
243
skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT 16 - + ( SUM ( - col0 ) ) FROM tab1 AS cor0
----
243
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5016
SELECT DISTINCT SUM( ALL + + 75 ) * - COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT SUM ( ALL + + 75 ) * - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5017
SELECT MIN( - col0 ) FROM tab1 AS cor0 WHERE + col1 - col0 + + col1 <> - - 73
----
-91
skipif mysql # not compatible
query I rowsort label-5017
SELECT MIN ( - col0 ) FROM tab1 AS cor0 WHERE + col1 - col0 + + col1 <> - - 73
----
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + ( + 18 ) col1 FROM tab2 AS cor0
----
-28
-46
-57
onlyif mysql # aggregate syntax:
query II rowsort label-5019
SELECT DISTINCT - + MAX( - col2 ), - 26 AS col0 FROM tab2 AS cor0
----
23
-26
skipif mysql # not compatible
query II rowsort label-5019
SELECT DISTINCT - + MAX ( - col2 ), - 26 AS col0 FROM tab2 AS cor0
----
23
-26
onlyif mysql # aggregate syntax:
query I rowsort label-5020
SELECT 3 * - COUNT( * ) * - COUNT( DISTINCT - col1 ) col2 FROM tab1 AS cor0
----
27
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5020
SELECT 3 * - COUNT ( * ) * - COUNT ( DISTINCT - col1 ) col2 FROM tab1 AS cor0
----
27
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5021
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND + col0 / + CAST( - 73 AS SIGNED ) * + + 61
----
skipif mysql # not compatible
query III rowsort label-5021
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND + col0 / + CAST ( - 73 AS INTEGER ) * + + 61
----
query I rowsort
SELECT ALL + + col1 * + - ( - col2 ) AS col0 FROM tab1 AS cor0
----
1344
295
3196
onlyif mysql # aggregate syntax:
query I rowsort label-5023
SELECT + COUNT( * ) * 6 col0 FROM tab2
----
18
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5023
SELECT + COUNT ( * ) * 6 col0 FROM tab2
----
18
onlyif mysql # aggregate syntax:
query I rowsort label-5024
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE - col2 * + - col0 * - - col1 NOT BETWEEN NULL AND - ( + col1 )
----
-3
skipif mysql # not compatible
query I rowsort label-5024
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE - col2 * + - col0 * - - col1 NOT BETWEEN NULL AND - ( + col1 )
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-5025
SELECT COUNT( DISTINCT + + col1 ) FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-5025
SELECT COUNT ( DISTINCT + + col1 ) FROM tab1
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-5026
SELECT COUNT( 9 ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-5026
SELECT COUNT ( 9 ) FROM tab2
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5027
SELECT DISTINCT - 16 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT - 16 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-5028
SELECT col2 DIV + + col2 AS col2 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5028
SELECT col2 / + + col2 AS col2 FROM tab2
----
1
1
1
query II rowsort
SELECT col1 AS col1, - 47 * - 29 FROM tab1
----
14
1363
47
1363
5
1363
onlyif mysql # aggregate syntax:
query I rowsort label-5030
SELECT ( - - COUNT( * ) ) AS col2 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-5030
SELECT ( - - COUNT ( * ) ) AS col2 FROM tab2
----
3
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-5031
SELECT ALL - col2, CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL
skipif mysql # not compatible
query II rowsort label-5031
SELECT ALL - col2, CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5032
SELECT DISTINCT COUNT( DISTINCT + 76 ) FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT COUNT ( DISTINCT + 76 ) FROM tab0 AS cor0
----
1
query I rowsort
SELECT ALL - + ( + 19 ) AS col0 FROM tab2 AS cor0
----
-19
-19
-19
query I rowsort
SELECT 42 * col0 + 21 AS col2 FROM tab0
----
3675
4095
651
query I rowsort
SELECT DISTINCT ( - 64 ) FROM tab1 WHERE NOT col1 IN ( - ( + col2 ) + 36 )
----
-64
onlyif mysql # aggregate syntax:
query I rowsort label-5036
SELECT ALL + ( - COUNT( * ) ) FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL + ( - COUNT ( * ) ) FROM tab1
----
-3
query I rowsort
SELECT + 36 AS col2 FROM tab0
----
36
36
36
query I rowsort
SELECT + col0 + col2 FROM tab2 WHERE - 85 IS NOT NULL
----
104
133
69
query I rowsort
SELECT - col2 + col2 AS col1 FROM tab2 WHERE NOT + col1 * 77 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5040
SELECT - COUNT( DISTINCT - col2 ) FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-5040
SELECT - COUNT ( DISTINCT - col2 ) FROM tab0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-5041
SELECT DISTINCT COUNT( * ) - - 34 AS col0 FROM tab1
----
37
skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT COUNT ( * ) - - 34 AS col0 FROM tab1
----
37
query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 <> ( col0 )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > ( + 17 + - col2 )
----
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + col2 * col2 + - col2 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5045
SELECT CAST( NULL AS SIGNED ) * 77 + + col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5045
SELECT CAST ( NULL AS INTEGER ) * 77 + + col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 74 + col1 AS col1 FROM tab0
----
155
75
95
query I rowsort
SELECT ALL - 95 * + col1 AS col2 FROM tab2
----
-4845
-6365
-7315
query III rowsort
SELECT * FROM tab0 WHERE NOT + 1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5049
SELECT AVG ( DISTINCT 3 ) - + 60 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) * - col2 + - col0 )
----
NULL
skipif mysql # not compatible
query I rowsort label-5049
SELECT AVG ( DISTINCT 3 ) - + 60 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) * - col2 + - col0 )
----
NULL
query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 + - 64 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # DIV for integer division:
query I rowsort label-5051
SELECT DISTINCT col1 * col0 + 93 DIV - col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1214
1823
4
skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT col1 * col0 + 93 / - col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1214
1823
4
query I rowsort
SELECT DISTINCT 38 FROM tab2 WHERE NOT NULL IS NOT NULL
----
38
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5053
SELECT - ( - CAST( - col0 AS SIGNED ) ) col1 FROM tab2
----
-46
-64
-75
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5053
SELECT - ( - CAST ( - col0 AS INTEGER ) ) col1 FROM tab2
----
-46
-64
-75
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 49 + - col0 NOT BETWEEN NULL AND + 35
----
query I rowsort
SELECT 25 + - 23 FROM tab0 AS cor0
----
2
2
2
onlyif mysql # aggregate syntax:
query I rowsort label-5056
SELECT + COUNT( * ) + + COUNT( * ) FROM tab1 cor0
----
6
skipif mysql # not compatible
query I rowsort label-5056
SELECT + COUNT ( * ) + + COUNT ( * ) FROM tab1 cor0
----
6
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 93 ) < - ( col2 ) / + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab0 cor0 WHERE NOT NULL < + 5 / 19 + - col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-5059
SELECT DISTINCT SUM( ALL + 56 ) AS col1 FROM tab1 AS cor0
----
168
skipif mysql # not compatible
query I rowsort label-5059
SELECT DISTINCT SUM ( ALL + 56 ) AS col1 FROM tab1 AS cor0
----
168
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5060
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * col0 <= CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-5060
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * col0 <= CAST ( NULL AS INTEGER )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5061
SELECT + col0 + + CAST( 41 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
128
138
56
skipif mysql # not compatible
query I rowsort label-5061
SELECT + col0 + + CAST ( 41 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
128
138
56
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > 79 * - col2 + + col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-5063
SELECT DISTINCT + SUM( col1 ) + 8 AS col2 FROM tab0
----
111
skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT + SUM ( col1 ) + 8 AS col2 FROM tab0
----
111
query I rowsort
SELECT + col2 * col2 FROM tab1 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT DISTINCT col1 + - 66 FROM tab0
----
-45
-65
15
query I rowsort
SELECT ALL col1 + 37 AS col0 FROM tab2
----
104
114
88
query I rowsort
SELECT DISTINCT + ( 32 ) * + col2 - + 91 FROM tab0 AS cor0
----
1413
229
3077
query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE ( ( - 50 ) * 75 ) <> NULL
----
query I rowsort
SELECT ALL - 89 * col1 + col0 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
query I rowsort
SELECT - + 59 - - 50 AS col0 FROM tab0 AS cor0
----
-9
-9
-9
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5071
SELECT ALL - CAST( - ( - col1 ) AS SIGNED ) - + col1 AS col1 FROM tab1 AS cor0
----
-10
-28
-94
skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL - CAST ( - ( - col1 ) AS INTEGER ) - + col1 AS col1 FROM tab1 AS cor0
----
-10
-28
-94
onlyif mysql # aggregate syntax:
query I rowsort label-5072
SELECT + ( - 77 ) - SUM( ALL + col2 ) AS col0 FROM tab2 cor0
----
-198
skipif mysql # not compatible
query I rowsort label-5072
SELECT + ( - 77 ) - SUM ( ALL + col2 ) AS col0 FROM tab2 cor0
----
-198
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----
query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col1 ) < - col1 + - col1 / 75
----
onlyif mysql # aggregate syntax:
query I rowsort label-5075
SELECT + COUNT( * ) - + COUNT( * ) * 70 FROM tab0 AS cor0
----
-207
skipif mysql # not compatible
query I rowsort label-5075
SELECT + COUNT ( * ) - + COUNT ( * ) * 70 FROM tab0 AS cor0
----
-207
query I rowsort
SELECT DISTINCT - + col1 * + 25 FROM tab2 AS cor0
----
-1275
-1675
-1925
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * + col1 IN ( 12 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5079
SELECT col1 * + col2 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN CAST( NULL AS SIGNED ) - col2 AND NULL
----
skipif mysql # not compatible
query I rowsort label-5079
SELECT col1 * + col2 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN CAST ( NULL AS INTEGER ) - col2 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5080
SELECT DISTINCT SUM( DISTINCT + col2 ) AS col2 FROM tab1
----
223
skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT SUM ( DISTINCT + col2 ) AS col2 FROM tab1
----
223
query I rowsort
SELECT ALL ( - 0 ) AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT + 64 + col1 / + col2 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-5083
SELECT ALL - 50 DIV - + 70 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL - 50 / - + 70 FROM tab2
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-5084
SELECT COUNT( * ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND ( - 98 )
----
0
skipif mysql # not compatible
query I rowsort label-5084
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND ( - 98 )
----
0
query I rowsort
SELECT + col1 - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-66
-96
66
query I rowsort
SELECT + col0 * - 64 - + 4 FROM tab0 WHERE NOT 14 + col0 * ( + col1 ) < col0 + + 91 * - ( col2 ) OR NULL IS NULL
----
-5572
-6212
-964
onlyif mysql # aggregate syntax:
query I rowsort label-5087
SELECT COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3
skipif mysql # not compatible
query I rowsort label-5087
SELECT COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 + 21 NOT IN ( + 8 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5089
SELECT * FROM tab1 WHERE NOT CAST( col2 AS SIGNED ) * col0 IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-5089
SELECT * FROM tab1 WHERE NOT CAST ( col2 AS INTEGER ) * col0 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5090
SELECT + CAST( + - 81 AS SIGNED ) col1 FROM tab2
----
-81
-81
-81
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5090
SELECT + CAST ( + - 81 AS INTEGER ) col1 FROM tab2
----
-81
-81
-81
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5091
SELECT * FROM tab1 WHERE NOT col1 * CAST( NULL AS SIGNED ) > 3
----
skipif mysql # not compatible
query III rowsort label-5091
SELECT * FROM tab1 WHERE NOT col1 * CAST ( NULL AS INTEGER ) > 3
----
onlyif mysql # aggregate syntax:
query I rowsort label-5092
SELECT + - COUNT( * ) col1 FROM tab2 cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5092
SELECT + - COUNT ( * ) col1 FROM tab2 cor0
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 col2 FROM tab0 cor0
----
44
44
44
onlyif mysql # aggregate syntax:
query I rowsort label-5094
SELECT + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-5094
SELECT + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
query II rowsort
SELECT 9 AS col1, col1 FROM tab2
----
9
51
9
67
9
77
query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96
query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( col0 * col2 ) NOT IN ( - col1 ) )
----
query I rowsort
SELECT ALL 17 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92
onlyif mysql # aggregate syntax:
query I rowsort label-5099
SELECT ALL + COUNT( * ) AS col1 FROM tab0, tab1 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL + COUNT ( * ) AS col1 FROM tab0, tab1 AS cor0
----
9
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( 9 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 / 92 = 49
----
onlyif mysql # aggregate syntax:
query II rowsort label-5102
SELECT 14, MAX( - - ( - 11 ) ) AS col0 FROM tab2 AS cor0
----
14
-11
skipif mysql # not compatible
query II rowsort label-5102
SELECT 14, MAX ( - - ( - 11 ) ) AS col0 FROM tab2 AS cor0
----
14
-11
query I rowsort
SELECT - ( 85 ) FROM tab1 AS cor0
----
-85
-85
-85
query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN ( - + ( col1 ) ) AND col2 - + 98
----
onlyif mysql # DIV for integer division:
query I rowsort label-5105
SELECT ALL 57 DIV col2 FROM tab0 cor0
----
0
1
5
skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL 57 / col2 FROM tab0 cor0
----
0
1
5
query I rowsort
SELECT col0 * 71 AS col0 FROM tab0 AS cor0 WHERE - 44 * + col0 NOT IN ( + 33 )
----
1065
6177
6887
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT + col1 + col0 AS col2 FROM tab1 WHERE ( + 98 * - col0 + 88 + + 39 ) IS NOT NULL
----
138
65
90
query I rowsort
SELECT - col2 + - 71 + + - col2 AS col0 FROM tab1
----
-189
-207
-263
onlyif mysql # aggregate syntax:
query I rowsort label-5111
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT col2 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT col2 IS NOT NULL
----
0
query I rowsort
SELECT + col1 + - 57 + col0 AS col1 FROM tab2
----
40
84
85
query I rowsort
SELECT ALL ( + col1 ) + col2 AS col0 FROM tab2
----
117
125
74
onlyif mysql # aggregate syntax:
query I rowsort label-5114
SELECT - 91 + - ( + COUNT( DISTINCT + col0 ) ) FROM tab0
----
-94
skipif mysql # not compatible
query I rowsort label-5114
SELECT - 91 + - ( + COUNT ( DISTINCT + col0 ) ) FROM tab0
----
-94
query I rowsort
SELECT DISTINCT - 15 + + col2 + - ( + + col2 ) AS col0 FROM tab2
----
-15
onlyif mysql # DIV for integer division:
query I rowsort label-5116
SELECT + 12 DIV - 83 * + 84 + 83 AS col1 FROM tab1
----
83
83
83
skipif mysql # not compatible
query I rowsort label-5116
SELECT + 12 / - 83 * + 84 + 83 AS col1 FROM tab1
----
83
83
83
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN col2 AND col0
----
query I rowsort
SELECT ALL - 22 + - - 41 AS col0 FROM tab1
----
19
19
19
query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE ( NOT ( NOT ( + ( 84 ) * - col1 ) <= - col2 + + 65 ) )
----
51
85
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + + col2 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-5121
SELECT ALL - col1 + - - 28 + - - 76 DIV col2 FROM tab0 AS cor0
----
-52
14
27
skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL - col1 + - - 28 + - - 76 / col2 FROM tab0 AS cor0
----
-52
14
27
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5122
SELECT ( CAST( - + col1 AS SIGNED ) ) * + - col1 AS col2 FROM tab1 cor0
----
196
2209
25
skipif mysql # not compatible
query I rowsort label-5122
SELECT ( CAST ( - + col1 AS INTEGER ) ) * + - col1 AS col2 FROM tab1 cor0
----
196
2209
25
query I rowsort
SELECT - - ( 85 ) FROM tab2 AS cor0 WHERE - col2 / - col0 IS NOT NULL
----
85
85
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 + - col2 col0 FROM tab2
----
14
32
49
onlyif mysql # aggregate syntax:
query I rowsort label-5125
SELECT ALL + COUNT( * ) - - COUNT( * ) AS col2 FROM tab2
----
6
skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL + COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2
----
6
query I rowsort
SELECT DISTINCT - 29 * - - col1 FROM tab1
----
-1363
-145
-406
query I rowsort
SELECT ALL + col1 * 15 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 * + - col1 NOT IN ( - - col1 )
----
query I rowsort
SELECT ALL 69 + - col1 + 23 * + col0 * + 97 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col2 )
----
query I rowsort
SELECT col1 * - col1 - - ( 28 ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5130
SELECT + ( + + ( - MIN( 43 ) ) ) col2 FROM tab1 AS cor0
----
-43
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5130
SELECT + ( + + ( - MIN ( 43 ) ) ) col2 FROM tab1 AS cor0
----
-43
query I rowsort
SELECT DISTINCT - - col2 * col1 * + ( - 18 ) * - col1 + + 17 FROM tab1 AS cor0
----
26567
2703833
338705
onlyif mysql # DIV for integer division:
query I rowsort label-5132
SELECT ALL + 56 DIV + col1 FROM tab0
----
0
2
56
skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL + 56 / + col1 FROM tab0
----
0
2
56
query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT 72 - col0 = + 27 - - 97 + col1
----
10
47
99
onlyif mysql # DIV for integer division:
query I rowsort label-5134
SELECT - 11 DIV ( - 82 ) FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5134
SELECT - 11 / ( - 82 ) FROM tab1
----
0
0
0
query I rowsort
SELECT col2 * + + col1 FROM tab1
----
1344
295
3196
onlyif mysql # aggregate syntax:
query I rowsort label-5136
SELECT + COUNT( * ) * SUM( + col0 ) - - ( - 42 ) FROM tab0 WHERE NOT + 95 <> - - 41 * + col0 * 71
----
NULL
skipif mysql # not compatible
query I rowsort label-5136
SELECT + COUNT ( * ) * SUM ( + col0 ) - - ( - 42 ) FROM tab0 WHERE NOT + 95 <> - - 41 * + col0 * 71
----
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-5137
SELECT ALL - 85, - COUNT( DISTINCT + col1 ) col2 FROM tab0
----
-85
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5137
SELECT ALL - 85, - COUNT ( DISTINCT + col1 ) col2 FROM tab0
----
-85
-3
query I rowsort
SELECT ALL - col0 * + - col2 * - 60 FROM tab2
----
-153600
-261000
-63480
query I rowsort
SELECT DISTINCT 24 * - + col1 FROM tab2
----
-1224
-1608
-1848
onlyif mysql # aggregate syntax:
query I rowsort label-5140
SELECT - MIN( DISTINCT - col2 ) FROM tab1 cor0
----
96
skipif mysql # not compatible
query I rowsort label-5140
SELECT - MIN ( DISTINCT - col2 ) FROM tab1 cor0
----
96
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 5 > + col0
----
query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE NOT ( - col2 ) BETWEEN NULL AND col0 / + - col0 + col1
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 38 * + + col2 / col0 + + + col1 + + + 45 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5144
SELECT - MAX( + - col0 ) AS col0 FROM tab0 AS cor0
----
15
skipif mysql # not compatible
query I rowsort label-5144
SELECT - MAX ( + - col0 ) AS col0 FROM tab0 AS cor0
----
15
query I rowsort
SELECT ALL 87 * - 81 FROM tab2 AS cor0
----
-7047
-7047
-7047
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-5146
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( CAST( NULL AS DECIMAL ) IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-5146
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( CAST ( NULL AS REAL ) IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-5147
SELECT DISTINCT + col2 DIV 92 * + - ( ( - - 47 ) ) + - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
64
75
skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT + col2 / 92 * + - ( ( - - 47 ) ) + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
64
75
query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 * - col1 + col1 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 5 < - col2
----
query I rowsort
SELECT ALL - - col1 + 97 FROM tab0 AS cor0
----
118
178
98
onlyif mysql # aggregate syntax:
query I rowsort label-5151
SELECT DISTINCT + COUNT( * ) + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT + COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0
onlyif mysql # aggregate syntax:
query II rowsort label-5152
SELECT - COUNT( * ), + 17 col1 FROM tab2
----
-3
17
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5152
SELECT - COUNT ( * ), + 17 col1 FROM tab2
----
-3
17
onlyif mysql # aggregate syntax:
query I rowsort label-5153
SELECT DISTINCT - ( - MIN( + col0 ) ) + - - COUNT( * ) AS col0 FROM tab2
----
49
skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT - ( - MIN ( + col0 ) ) + - - COUNT ( * ) AS col0 FROM tab2
----
49
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5154
SELECT * FROM tab2 WHERE + - CAST( + 40 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-5154
SELECT * FROM tab2 WHERE + - CAST ( + 40 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT - 85 FROM tab2 WHERE ( 27 ) <> + col2
----
-85
-85
-85
query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE ( - - col1 * + col1 / - col1 ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5157
SELECT DISTINCT COUNT( * ) + 29 AS col1 FROM tab0
----
32
skipif mysql # not compatible
query I rowsort label-5157
SELECT DISTINCT COUNT ( * ) + 29 AS col1 FROM tab0
----
32
query II rowsort
SELECT ALL - col1 + ( + col2 ) AS col1, 50 * - + col0 * - 91 AS col0 FROM tab1
----
21
414050
54
386750
82
232050
query I rowsort
SELECT col0 - col2 + - col2 FROM tab1
----
-141
-33
-45
query I rowsort
SELECT ALL col2 - + col2 + + 81 AS col2 FROM tab1 AS cor0
----
81
81
81
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5161
SELECT + col1 + + - col1 * - CAST( ( - + 90 ) AS SIGNED ) * + col2 col1 FROM tab0 AS cor0
----
-18879
-342549
-8909
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5161
SELECT + col1 + + - col1 * - CAST ( ( - + 90 ) AS INTEGER ) * + col2 col1 FROM tab0 AS cor0
----
-18879
-342549
-8909
onlyif mysql # aggregate syntax:
query I rowsort label-5162
SELECT DISTINCT - MIN( col2 ) AS col1 FROM tab1 AS cor0
----
-59
skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT - MIN ( col2 ) AS col1 FROM tab1 AS cor0
----
-59
query I rowsort
SELECT ALL + col1 + - col1 * col0 AS col2 FROM tab0
----
-1134
-1806
-96
onlyif mysql # aggregate syntax:
query I rowsort label-5164
SELECT + + COUNT( * ) + - + 37 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-28
skipif mysql # not compatible
query I rowsort label-5164
SELECT + + COUNT ( * ) + - + 37 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-28
query I rowsort
SELECT + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( col2, ( + col0 ) )
----
15
87
97
query I rowsort
SELECT ( + + col1 ) FROM tab0 AS cor0
----
1
21
81
onlyif mysql # aggregate syntax:
query I rowsort label-5167
SELECT DISTINCT COUNT( DISTINCT + 42 ) FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-5167
SELECT DISTINCT COUNT ( DISTINCT + 42 ) FROM tab1 AS cor0
----
1
query I rowsort
SELECT 10 AS col0 FROM tab2 AS cor0 WHERE NOT ( 5 + - 52 - - col1 ) IS NULL
----
10
10
10
onlyif mysql # aggregate syntax:
query I rowsort label-5169
SELECT DISTINCT - COUNT( + ( + 5 ) ) AS col0 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT - COUNT ( + ( + 5 ) ) AS col0 FROM tab0 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-5170
SELECT DISTINCT - MAX( DISTINCT ( - 20 ) ) FROM tab1 AS cor0
----
20
skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT - MAX ( DISTINCT ( - 20 ) ) FROM tab1 AS cor0
----
20
query I rowsort
SELECT ALL col0 * - + col1 FROM tab0 AS cor0
----
-1215
-1827
-97
onlyif mysql # aggregate syntax:
query I rowsort label-5172
SELECT 57 * + COUNT( * ) col1 FROM tab1
----
171
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5172
SELECT 57 * + COUNT ( * ) col1 FROM tab1
----
171
query I rowsort
SELECT DISTINCT 76 + col1 * col1 AS col1 FROM tab2 WHERE NOT ( col1 / col2 - - ( - + col1 ) ) IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5174
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 6 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 6 FROM tab1
----
NULL
query I rowsort
SELECT ( + col1 ) * + 7 AS col1 FROM tab1
----
329
35
98
query III rowsort
SELECT * FROM tab2 WHERE NOT - ( col0 ) = - 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-5177
SELECT MIN( DISTINCT - + col2 ) AS col0 FROM tab0
----
-99
skipif mysql # not compatible
query I rowsort label-5177
SELECT MIN ( DISTINCT - + col2 ) AS col0 FROM tab0
----
-99
query I rowsort
SELECT DISTINCT col0 * - + 20 AS col0 FROM tab0
----
-1740
-1940
-300
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5179
SELECT + + 60 DIV - MIN( ALL col1 ) FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5179
SELECT + + 60 / - MIN ( ALL col1 ) FROM tab2 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( + - col1 ) ) col2 FROM tab0 AS cor0
----
1
21
81
query I rowsort
SELECT DISTINCT - - 72 AS col2 FROM tab1 AS cor0
----
72
query II rowsort
SELECT DISTINCT col0 + + 25 * col2 AS col1, + col2 FROM tab1 AS cor0 WHERE NULL < ( col2 + + col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-5183
SELECT ALL - + COUNT( * ) AS col2 FROM tab0 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL - + COUNT ( * ) AS col2 FROM tab0 cor0
----
-3
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 ) NOT IN ( - 18 + + col0 + - + 53 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - ( + 23 ) FROM tab2
----
-23
-23
-23
onlyif mysql # aggregate syntax:
query I rowsort label-5186
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9
skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 37 IN ( 18 )
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-5188
SELECT 44 * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5188
SELECT 44 * CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 33 * col1 AS col0 FROM tab1
----
1551
165
462
query I rowsort
SELECT ALL + 60 AS col0 FROM tab2 WHERE NOT + - 40 * - + col0 IS NULL
----
60
60
60
query I rowsort
SELECT DISTINCT - col0 * + - col1 FROM tab2
----
2346
4928
5025
query I rowsort
SELECT + col0 AS col1 FROM tab1 cor0 WHERE ( + col2 ) IS NULL
----
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # DIV for integer division:
query I rowsort label-5194
SELECT DISTINCT - - col1 DIV - 85 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT - - col1 / - 85 FROM tab1 AS cor0
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5195
SELECT 67 * - - 73 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5195
SELECT 67 * - - 73 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5196
SELECT MAX( - col0 ) + + COUNT( * ) * 34 col1 FROM tab1 cor0
----
51
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5196
SELECT MAX ( - col0 ) + + COUNT ( * ) * 34 col1 FROM tab1 cor0
----
51
query I rowsort
SELECT + 44 * + col1 + - 27 AS col0 FROM tab1
----
193
2041
589
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 + - 84 col0 FROM tab0
----
-36
-36
-36
onlyif mysql # DIV for integer division:
query I rowsort label-5199
SELECT + col1 DIV 29 + + + col1 DIV + ( - - col0 ) FROM tab2
----
2
2
3
skipif mysql # not compatible
query I rowsort label-5199
SELECT + col1 / 29 + + + col1 / + ( - - col0 ) FROM tab2
----
2
2
3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5200
SELECT COUNT( + - col2 ) AS col0 FROM tab2 WHERE NULL > CAST( NULL AS SIGNED )
----
0
skipif mysql # not compatible
query I rowsort label-5200
SELECT COUNT ( + - col2 ) AS col0 FROM tab2 WHERE NULL > CAST ( NULL AS INTEGER )
----
0
query I rowsort
SELECT ALL - 39 + col0 * - col1 FROM tab1
----
-4316
-464
-753
query I rowsort
SELECT DISTINCT - col0 * - + 76 * + 51 + col2 AS col2 FROM tab2
----
178319
248104
290758
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - col0 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5204
SELECT COUNT( col0 ) AS col1 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-5204
SELECT COUNT ( col0 ) AS col1 FROM tab0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-5205
SELECT DISTINCT - COUNT( * ) + - SUM( + 88 ) AS col0 FROM tab0
----
-267
skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT - COUNT ( * ) + - SUM ( + 88 ) AS col0 FROM tab0
----
-267
query II rowsort
SELECT DISTINCT - col0 - - 68 AS col0, + col2 * - col1 FROM tab1 AS cor0
----
-17
-295
-23
-3196
17
-1344
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = - col1 + col2
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5208
SELECT ALL - CAST( + - 86 AS SIGNED ) FROM tab1
----
86
86
86
skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL - CAST ( + - 86 AS INTEGER ) FROM tab1
----
86
86
86
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + col2 + - col2 - - - 21 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL col1 * + + col1 * - col0 * col1 AS col0 FROM tab1 AS cor0 WHERE ( col1 - + col2 ) IS NOT NULL
----
-10625
-139944
-9447893
query I rowsort
SELECT col1 * 7 * + 88 FROM tab2
----
31416
41272
47432
onlyif mysql # aggregate syntax:
query I rowsort label-5212
SELECT DISTINCT - ( + COUNT( DISTINCT + col2 ) ) AS col0 FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT - ( + COUNT ( DISTINCT + col2 ) ) AS col0 FROM tab1
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-5213
SELECT - + COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3
skipif mysql # not compatible
query I rowsort label-5213
SELECT - + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3
query III rowsort
SELECT * FROM tab0 WHERE NOT - 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT + ( 75 ) AS col1, - col1 + + - col2 AS col0 FROM tab0
----
75
-100
75
-128
75
-31
query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 + + col0 + + 61 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query II rowsort label-5217
SELECT + col1 + - - col0 AS col1, + 51 DIV col2 FROM tab2 AS cor0
----
141
1
142
0
97
2
skipif mysql # not compatible
query II rowsort label-5217
SELECT + col1 + - - col0 AS col1, + 51 / col2 FROM tab2 AS cor0
----
141
1
142
0
97
2
onlyif mysql # aggregate syntax:
query I rowsort label-5218
SELECT ALL 76 + MAX( + 77 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
153
skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL 76 + MAX ( + 77 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
153
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( 6 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT ALL col1 AS col1, + col0 FROM tab1 AS cor0
----
14
51
47
91
5
85
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5221
SELECT DISTINCT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5222
SELECT - - 70 DIV + COUNT( DISTINCT - 28 ) + + - 70 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5222
SELECT - - 70 / + COUNT ( DISTINCT - 28 ) + + - 70 AS col1 FROM tab0 AS cor0
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-5223
SELECT DISTINCT - - col1 + 26 * - + col0 + 96 + - - 57 DIV + 4 * + - col2 DIV col2 AS col2 FROM tab2 AS cor0
----
-1063
-1505
-1801
skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT - - col1 + 26 * - + col0 + 96 + - - 57 / + 4 * + - col2 / col2 AS col2 FROM tab2 AS cor0
----
-1063
-1505
-1801
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5224
SELECT ALL - + CAST( NULL AS SIGNED ) + col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5224
SELECT ALL - + CAST ( NULL AS INTEGER ) + col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query II rowsort
SELECT DISTINCT - col0, ( + col1 ) FROM tab2
----
-46
51
-64
77
-75
67
onlyif mysql # aggregate syntax:
query I rowsort label-5226
SELECT ALL - COUNT( * ) + + 3 AS col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL - COUNT ( * ) + + 3 AS col1 FROM tab1
----
0
query I rowsort
SELECT ALL - col0 + - col1 + 81 FROM tab0
----
-15
-17
-27
query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN + + col1 AND NULL
----
query I rowsort
SELECT DISTINCT 10 + - 80 FROM tab2
----
-70
query III rowsort
SELECT * FROM tab2 WHERE - 98 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5231
SELECT DISTINCT + CAST( + 77 AS SIGNED ) + - - col1 FROM tab1
----
124
82
91
skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT + CAST ( + 77 AS INTEGER ) + - - col1 FROM tab1
----
124
82
91
onlyif mysql # DIV for integer division:
query I rowsort label-5232
SELECT ALL col1 DIV 41 - - 29 col0 FROM tab1
----
29
29
30
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5232
SELECT ALL col1 / 41 - - 29 col0 FROM tab1
----
29
29
30
query I rowsort
SELECT DISTINCT + + col1 * 78 FROM tab2 AS cor0
----
3978
5226
6006
query I rowsort
SELECT - + 25 + + 31 AS col1 FROM tab0 AS cor0
----
6
6
6
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5235
SELECT DISTINCT + + col1 * + - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
425
4277
714
skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT + + col1 * + - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
425
4277
714
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 41 - + ( + + col0 ) + + - col2 AS col1, col1 col0 FROM tab2 AS cor0
----
-110
51
-145
77
-174
67
onlyif mysql # aggregate syntax:
query I rowsort label-5237
SELECT ALL - + MIN( ALL col2 ) FROM tab1 cor0
----
-59
skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL - + MIN ( ALL col2 ) FROM tab1 cor0
----
-59
onlyif mysql # aggregate syntax:
query I rowsort label-5238
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) AS col2 FROM tab2
----
9
skipif mysql # not compatible
query I rowsort label-5238
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab2
----
9
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5239
SELECT + CAST( + col0 AS SIGNED ) * CAST( col1 AS SIGNED ) FROM tab1
----
425
4277
714
skipif mysql # not compatible
query I rowsort label-5239
SELECT + CAST ( + col0 AS INTEGER ) * CAST ( col1 AS INTEGER ) FROM tab1
----
425
4277
714
query II rowsort
SELECT + ( - 63 ), col1 FROM tab0 AS cor0
----
-63
1
-63
21
-63
81
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 23 col1 FROM tab1 AS cor0
----
-23
-23
-23
query I rowsort
SELECT DISTINCT + 11 * - + 19 * - - 62 FROM tab0 AS cor0
----
-12958
query I rowsort
SELECT ALL + - 0 * - 50 + - + col1 AS col2 FROM tab2 AS cor0
----
-51
-67
-77
query I rowsort
SELECT 22 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-5246
SELECT ALL CAST( NULL AS SIGNED ) AS col1, - col0 * ( - - 3 ) AS col1 FROM tab0
----
NULL
-261
NULL
-291
NULL
-45
skipif mysql # not compatible
query II rowsort label-5246
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - col0 * ( - - 3 ) AS col1 FROM tab0
----
NULL
-261
NULL
-291
NULL
-45
onlyif mysql # aggregate syntax:
query I rowsort label-5247
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-5247
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-5248
SELECT ALL MIN( ALL + col2 ) FROM tab0
----
10
skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL MIN ( ALL + col2 ) FROM tab0
----
10
query I rowsort
SELECT + 66 * + col0 AS col1 FROM tab0
----
5742
6402
990
query II rowsort
SELECT + 80 + - col1 * + - 5 AS col2, + col0 FROM tab1
----
105
85
150
51
315
91
query I rowsort
SELECT - col2 FROM tab2 WHERE NOT ( ( NULL ) IS NULL )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5252
SELECT ALL + COUNT( + CAST( NULL AS SIGNED ) ) col0 FROM tab1
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5252
SELECT ALL + COUNT ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
0
query II rowsort
SELECT DISTINCT + 54 AS col0, 45 FROM tab0
----
54
45
query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * 13 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-5255
SELECT + - 28 * - + COUNT( * ) + - ( + COUNT( * ) ) + 7 col0 FROM tab0 AS cor0
----
88
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5255
SELECT + - 28 * - + COUNT ( * ) + - ( + COUNT ( * ) ) + 7 col0 FROM tab0 AS cor0
----
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 46 col2 FROM tab0 AS cor0
----
-46
-46
-46
onlyif mysql # aggregate syntax:
query I rowsort label-5257
SELECT DISTINCT COUNT( * ) + 95 FROM tab0 cor0
----
98
skipif mysql # not compatible
query I rowsort label-5257
SELECT DISTINCT COUNT ( * ) + 95 FROM tab0 cor0
----
98
query I rowsort
SELECT DISTINCT - 93 * - 33 FROM tab2 AS cor0
----
3069
query II rowsort
SELECT + col0, col1 + + - col1 AS col1 FROM tab0 AS cor0
----
15
0
87
0
97
0
query I rowsort
SELECT + - 46 * + + col1 AS col0 FROM tab0 AS cor0 WHERE NULL > 23
----
query I rowsort
SELECT ALL - col0 - col1 + 48 AS col2 FROM tab0 AS cor0
----
-48
-50
-60
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 96 = NULL
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + ( + 16 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5265
SELECT - ( - - COUNT( * ) ) + CAST( NULL AS SIGNED ) - + 13 / + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5265
SELECT - ( - - COUNT ( * ) ) + CAST ( NULL AS INTEGER ) - + 13 / + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5266
SELECT ( + ( col2 ) ) * - CAST( NULL AS SIGNED ) * + col1 + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5266
SELECT ( + ( col2 ) ) * - CAST ( NULL AS INTEGER ) * + col1 + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5267
SELECT 71 * COUNT( * ) AS col0 FROM tab2
----
213
skipif mysql # not compatible
query I rowsort label-5267
SELECT 71 * COUNT ( * ) AS col0 FROM tab2
----
213
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 col1 FROM tab0
----
100
2209
9801
onlyif mysql # DIV for integer division:
query I rowsort label-5269
SELECT - col1 DIV + - 36 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5269
SELECT - col1 / + - 36 FROM tab1
----
0
0
1
onlyif mysql # DIV for integer division:
query I rowsort label-5270
SELECT - col0 DIV + ( col2 ) AS col0 FROM tab2
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-5270
SELECT - col0 / + ( col2 ) AS col0 FROM tab2
----
-1
-1
-2
onlyif mysql # aggregate syntax:
query I rowsort label-5271
SELECT - MIN( ALL - col1 ) AS col1 FROM tab0
----
81
skipif mysql # not compatible
query I rowsort label-5271
SELECT - MIN ( ALL - col1 ) AS col1 FROM tab0
----
81
query I rowsort
SELECT - ( - + col1 ) AS col2 FROM tab2
----
51
67
77
query I rowsort
SELECT DISTINCT - 44 + - col0 FROM tab0
----
-131
-141
-59
query I rowsort
SELECT 68 - - col0 AS col0 FROM tab1 WHERE - col0 IS NOT NULL
----
119
153
159
query I rowsort
SELECT DISTINCT 79 * + - col1 + + - 35 * - 20 FROM tab0
----
-5699
-959
621
onlyif mysql # aggregate syntax:
query I rowsort label-5276
SELECT DISTINCT COUNT( * ) * 12 AS col0 FROM tab1
----
36
skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT COUNT ( * ) * 12 AS col0 FROM tab1
----
36
onlyif mysql # aggregate syntax:
query I rowsort label-5277
SELECT DISTINCT + 17 - + COUNT( * ) AS col2 FROM tab2
----
14
skipif mysql # not compatible
query I rowsort label-5277
SELECT DISTINCT + 17 - + COUNT ( * ) AS col2 FROM tab2
----
14
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 59 BETWEEN NULL AND NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-5279
SELECT DISTINCT - - col2 * col0 DIV - 87 FROM tab2 AS cor0
----
-12
-29
-50
skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT - - col2 * col0 / - 87 FROM tab2 AS cor0
----
-12
-29
-50
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / - 12 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5281
SELECT ALL SUM( DISTINCT + 5 ) FROM tab0
----
5
skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL SUM ( DISTINCT + 5 ) FROM tab0
----
5
query II rowsort
SELECT col2 * - 40 * ( + col2 ) AS col2, + col1 AS col1 FROM tab2
----
-134560
67
-21160
51
-64000
77
onlyif mysql # aggregate syntax:
query I rowsort label-5283
SELECT ALL 87 * + COUNT( * ) - + 81 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
702
skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL 87 * + COUNT ( * ) - + 81 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
702
query I rowsort
SELECT - 5 FROM tab1 AS cor0 WHERE NOT col1 = 93 + + col1
----
-5
-5
-5
onlyif mysql # aggregate syntax:
query I rowsort label-5285
SELECT ALL 50 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-150
skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL 50 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-150
onlyif mysql # aggregate syntax:
query I rowsort label-5286
SELECT ALL - + COUNT( * ) * + MIN( DISTINCT - 84 ) + - + COUNT( * ) FROM tab1 AS cor0
----
249
skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL - + COUNT ( * ) * + MIN ( DISTINCT - 84 ) + - + COUNT ( * ) FROM tab1 AS cor0
----
249
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5287
SELECT - - col0 * - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
2601
7225
8281
skipif mysql # not compatible
query I rowsort label-5287
SELECT - - col0 * - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
2601
7225
8281
query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT - 69 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5289
SELECT ( - - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-5289
SELECT ( - - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-5290
SELECT ALL MIN( - 41 ) FROM tab1 AS cor0
----
-41
skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL MIN ( - 41 ) FROM tab1 AS cor0
----
-41
query I rowsort
SELECT + 57 * + 72 FROM tab1
----
4104
4104
4104
onlyif mysql # aggregate syntax:
query I rowsort label-5292
SELECT ALL - MAX( + col0 ) AS col1 FROM tab0
----
-97
skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL - MAX ( + col0 ) AS col1 FROM tab0
----
-97
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5293
SELECT - ( + 48 ) * + - SUM( + CAST( + col0 AS SIGNED ) ) FROM tab0
----
9552
skipif mysql # not compatible
query I rowsort label-5293
SELECT - ( + 48 ) * + - SUM ( + CAST ( + col0 AS INTEGER ) ) FROM tab0
----
9552
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 * - 5 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT ALL col2 * 27 AS col2, col0 - - + col0 / - col1 + - col0 - - + col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( - col1 ) AND NULL
----
query I rowsort
SELECT ALL - + col0 FROM tab1 WHERE NOT + + col0 + + 99 - ( - 37 ) IS NOT NULL
----
query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT col2 = NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5298
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - + col2 - + col2, 18 * + - ( CAST( col2 AS SIGNED ) ) * 23 )
----
skipif mysql # not compatible
query III rowsort label-5298
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - + col2 - + col2, 18 * + - ( CAST ( col2 AS INTEGER ) ) * 23 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-5299
SELECT DISTINCT 19 - + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 * - col1 > - 67
----
16
skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT 19 - + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 * - col1 > - 67
----
16
query I rowsort
SELECT DISTINCT + - col2 + + col0 * - + 39 AS col0 FROM tab1 AS cor0
----
-2085
-3374
-3617
query I rowsort
SELECT DISTINCT - 79 * 25 * - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + + col2 )
----
query I rowsort
SELECT DISTINCT - col0 + - 9 AS col1 FROM tab2
----
-55
-73
-84
query I rowsort
SELECT DISTINCT + 61 + + + 89 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
150
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND - 31
----
query I rowsort
SELECT ALL + + ( - - col1 ) FROM tab1 AS cor0
----
14
47
5
onlyif mysql # aggregate syntax:
query I rowsort label-5306
SELECT DISTINCT ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT 20 IN ( + col0, + 21 * + - 48 * + 26, + 60, col0 - + col2 )
----
-3
skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT 20 IN ( + col0, + 21 * + - 48 * + 26, + 60, col0 - + col2 )
----
-3
query II rowsort
SELECT - - col0, 50 AS col1 FROM tab1 AS cor0
----
51
50
85
50
91
50
query II rowsort
SELECT col2, + col0 AS col2 FROM tab1 AS cor0
----
59
85
68
91
96
51
query I rowsort
SELECT - col2 * - + col0 FROM tab1 AS cor0
----
4896
5015
6188
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + + 15 / 20 + - col2 - + col2 / 97
----
query I rowsort
SELECT ALL + + col0 AS col2 FROM tab0 cor0 WHERE NOT + col1 + - col2 + + col0 / col0 IS NULL
----
15
87
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 2 col0 FROM tab0 AS cor0
----
2
2
2
onlyif mysql # aggregate syntax:
query I rowsort label-5313
SELECT ALL - COUNT( DISTINCT col1 ) - - COUNT( * ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL - COUNT ( DISTINCT col1 ) - - COUNT ( * ) FROM tab0 AS cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-5314
SELECT ALL - SUM( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
-121
skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL - SUM ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
-121
query I rowsort
SELECT + 31 - + + col1 AS col2 FROM tab1 AS cor0
----
-16
17
26
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 IS NULL AND NOT NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL + col0 * - col1 + col1 AS col1 FROM tab2 AS cor0
----
-2295
-4851
-4958
query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5319
SELECT DISTINCT - MIN( - 76 ) AS col1 FROM tab0
----
76
skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT - MIN ( - 76 ) AS col1 FROM tab0
----
76
onlyif mysql # DIV for integer division:
query I rowsort label-5320
SELECT DISTINCT 12 DIV - col1 + col0 AS col2 FROM tab2
----
46
64
75
skipif mysql # not compatible
query I rowsort label-5320
SELECT DISTINCT 12 / - col1 + col0 AS col2 FROM tab2
----
46
64
75
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5321
SELECT DISTINCT ( + MAX( - + 5 ) ) + - ( + COUNT( * ) ) DIV + COUNT( * ) + - 52 FROM tab2
----
-58
skipif mysql # not compatible
query I rowsort label-5321
SELECT DISTINCT ( + MAX ( - + 5 ) ) + - ( + COUNT ( * ) ) / + COUNT ( * ) + - 52 FROM tab2
----
-58
query III rowsort
SELECT ALL * FROM tab1 WHERE + 20 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-5323
SELECT COUNT( * ) * - - MAX( ALL + 25 ) AS col1 FROM tab1
----
75
skipif mysql # not compatible
query I rowsort label-5323
SELECT COUNT ( * ) * - - MAX ( ALL + 25 ) AS col1 FROM tab1
----
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + col0 ) + + col2 col2 FROM tab0 WHERE col2 IS NOT NULL
----
-77
2
32
onlyif mysql # aggregate syntax:
query I rowsort label-5325
SELECT COUNT( * ) col2 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5325
SELECT COUNT ( * ) col2 FROM tab0 AS cor0
----
3
query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5327
SELECT ALL COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9
onlyif mysql # DIV for integer division:
query I rowsort label-5328
SELECT + col2 DIV + + col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5328
SELECT + col2 / + + col2 FROM tab0
----
1
1
1
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5329
SELECT ALL CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
-23
-40
-58
skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
-23
-40
-58
query I rowsort
SELECT ( - - col1 ) FROM tab1
----
14
47
5
query I rowsort
SELECT ALL - col0 * 1 FROM tab1 AS cor0
----
-51
-85
-91
onlyif mysql # aggregate syntax:
query I rowsort label-5332
SELECT + COUNT( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-5332
SELECT + COUNT ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
3
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 < NULL )
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5334
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( + - 70 AS SIGNED ) < - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-5334
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( + - 70 AS INTEGER ) < - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + ( + col2 ) col0, col1 + + col1 col1 FROM tab1 AS cor0
----
21
94
54
10
82
28
onlyif mysql # DIV for integer division:
query I rowsort label-5336
SELECT DISTINCT - + ( - - col0 ) DIV + col1 FROM tab2 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT - + ( - - col0 ) / + col1 FROM tab2 AS cor0
----
-1
0
query I rowsort
SELECT ALL - - col2 AS col1 FROM tab1 AS cor0 WHERE + col1 >= + col2
----
query I rowsort
SELECT 66 * - 51 AS col2 FROM tab1 AS cor0
----
-3366
-3366
-3366
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > - col1
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * col2 + col0 / - + col0 IS NOT NULL
----
query III rowsort
SELECT * FROM tab2 WHERE + 42 > ( + 78 )
----
query I rowsort
SELECT + col0 + + 76 + - 2 AS col2 FROM tab2
----
120
138
149
query I rowsort
SELECT DISTINCT ( + col0 ) * - col0 FROM tab0
----
-225
-7569
-9409
onlyif mysql # DIV for integer division:
query I rowsort label-5344
SELECT ALL 21 DIV - 65 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL 21 / - 65 FROM tab2
----
0
0
0
query I rowsort
SELECT - col2 + - + col1 AS col0 FROM tab2
----
-117
-125
-74
onlyif mysql # aggregate syntax:
query I rowsort label-5346
SELECT DISTINCT + COUNT( * ) + + + COUNT( + + col1 ) FROM tab0
----
6
skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( + + col1 ) FROM tab0
----
6
onlyif mysql # DIV for integer division:
query I rowsort label-5347
SELECT DISTINCT - col0 DIV + ( - - col2 ) AS col1 FROM tab2
----
-1
-2
skipif mysql # not compatible
query I rowsort label-5347
SELECT DISTINCT - col0 / + ( - - col2 ) AS col1 FROM tab2
----
-1
-2
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + - ( + - col1 ) - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, + col0 FROM tab1 AS cor0
----
51
51
85
85
91
91
query I rowsort
SELECT 8 FROM tab2 AS cor0 WHERE + col0 BETWEEN NULL AND NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-5351
SELECT DISTINCT col1 * - - col1 * + 72 * - 51 + + 98 DIV 46 AS col0 FROM tab2
----
-16483606
-21771286
-9550870
skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT col1 * - - col1 * + 72 * - 51 + + 98 / 46 AS col0 FROM tab2
----
-16483606
-21771286
-9550870
query I rowsort
SELECT ALL 16 AS col2 FROM tab2 cor0
----
16
16
16
query I rowsort
SELECT ALL 96 AS col1 FROM tab0 AS cor0 WHERE 26 >= - - col1 + + 52 + col2 * - 39
----
96
96
96
onlyif mysql # aggregate syntax:
query I rowsort label-5354
SELECT - COUNT( ALL - + ( + + col0 ) ) FROM tab2 AS cor0 WHERE + col2 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-5354
SELECT - COUNT ( ALL - + ( + + col0 ) ) FROM tab2 AS cor0 WHERE + col2 IS NULL
----
0
query I rowsort
SELECT + - 45 AS col0 FROM tab1 AS cor0
----
-45
-45
-45
onlyif mysql # DIV for integer division:
query II rowsort label-5356
SELECT 92 DIV col1 AS col0, + col0 AS col0 FROM tab1 AS cor0
----
1
91
18
85
6
51
skipif mysql # not compatible
query II rowsort label-5356
SELECT 92 / col1 AS col0, + col0 AS col0 FROM tab1 AS cor0
----
1
91
18
85
6
51
onlyif mysql # aggregate syntax:
query I rowsort label-5357
SELECT ALL - SUM( DISTINCT col1 ) FROM tab0 AS cor0
----
-103
skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL - SUM ( DISTINCT col1 ) FROM tab0 AS cor0
----
-103
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + + col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab1 WHERE NOT - 26 - + col1 < - + 11 - + col1
----
query I rowsort
SELECT ( + 36 ) AS col0 FROM tab2
----
36
36
36
query II rowsort
SELECT DISTINCT - 89 AS col1, col2 FROM tab1
----
-89
59
-89
68
-89
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 col1 FROM tab0
----
96
96
96
onlyif mysql # DIV for integer division:
query I rowsort label-5363
SELECT 20 DIV col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5363
SELECT 20 / col0 FROM tab2
----
0
0
0
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-5365
SELECT COUNT( + 51 ) * 54 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
486
skipif mysql # not compatible
query I rowsort label-5365
SELECT COUNT ( + 51 ) * 54 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
486
query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
23
40
58
query I rowsort
SELECT DISTINCT - col2 * + col1 * - col0 FROM tab2 AS cor0
----
197120
291450
53958
query I rowsort
SELECT - col1 * + 55 FROM tab2 AS cor0
----
-2805
-3685
-4235
onlyif mysql # aggregate syntax:
query I rowsort label-5369
SELECT ALL - ( - MAX( - + col1 ) ) FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL - ( - MAX ( - + col1 ) ) FROM tab0 AS cor0
----
-1
onlyif mysql # DIV for integer division:
query I rowsort label-5370
SELECT 35 DIV + col0 + - + 41 AS col2 FROM tab2 cor0
----
-41
-41
-41
skipif mysql # not compatible
query I rowsort label-5370
SELECT 35 / + col0 + - + 41 AS col2 FROM tab2 cor0
----
-41
-41
-41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 28 col1 FROM tab0 AS cor0
----
-28
-28
-28
onlyif mysql # aggregate syntax:
query I rowsort label-5372
SELECT ALL + 66 + + COUNT( * ) FROM tab1 AS cor0
----
69
skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL + 66 + + COUNT ( * ) FROM tab1 AS cor0
----
69
query I rowsort
SELECT + ( + + col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77
query I rowsort
SELECT - 4 * ( - + col0 ) FROM tab0 AS cor0
----
348
388
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 52 col2, + col1 FROM tab2
----
-52
51
-52
67
-52
77
onlyif mysql # aggregate syntax:
query I rowsort label-5376
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col2 FROM tab2
----
9
skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2
----
9
query I rowsort
SELECT ALL - col0 * - + col0 + - 68 + - + col1 FROM tab1
----
2519
7152
8166
query I rowsort
SELECT ALL 31 + ( - + ( + 3 ) ) + + - 77 AS col0 FROM tab0
----
-49
-49
-49
query I rowsort
SELECT - ( - 94 ) * col2 + - col2 AS col0 FROM tab2
----
2139
3720
5394
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5380
SELECT DISTINCT + ( - CAST( - - col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-51
-85
-91
skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT + ( - CAST ( - - col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-51
-85
-91
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5381
SELECT DISTINCT - AVG ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT - AVG ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL 78 + + - 78 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 + col0 + + col0 FROM tab2 AS cor0
----
115
168
208
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5384
SELECT DISTINCT - 16 * CAST( - ( + col2 ) AS SIGNED ) + col0 col0 FROM tab2 AS cor0
----
1003
414
704
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5384
SELECT DISTINCT - 16 * CAST ( - ( + col2 ) AS INTEGER ) + col0 col0 FROM tab2 AS cor0
----
1003
414
704
query I rowsort
SELECT ALL - + col0 FROM tab2 WHERE NOT - 44 IS NULL
----
-46
-64
-75
query I rowsort
SELECT - + 84 * - col2 - 95 AS col2 FROM tab0 AS cor0
----
3853
745
8221
query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5388
SELECT ALL - CAST( MIN( + 60 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-60
skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL - CAST ( MIN ( + 60 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, - col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77
query II rowsort
SELECT - + col0 AS col2, col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75
query II rowsort
SELECT DISTINCT + + 10, + col2 AS col1 FROM tab0 AS cor0
----
10
10
10
47
10
99
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-5392
SELECT ALL SUM( ALL + 27 ), + COUNT( * ) DIV + COUNT( * ) + COUNT( * ) AS col1 FROM tab1
----
81
4
skipif mysql # not compatible
query II rowsort label-5392
SELECT ALL SUM ( ALL + 27 ), + COUNT ( * ) / + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1
----
81
4
onlyif mysql # DIV for integer division:
query I rowsort label-5393
SELECT + 74 DIV col2 * + + col0 * + + col2 FROM tab0
----
0
6090
705
skipif mysql # not compatible
query I rowsort label-5393
SELECT + 74 / col2 * + + col0 * + + col2 FROM tab0
----
0
6090
705
onlyif mysql # DIV for integer division:
query II rowsort label-5394
SELECT ALL 22 DIV - + col0 AS col2, + 32 FROM tab0
----
-1
32
0
32
0
32
skipif mysql # not compatible
query II rowsort label-5394
SELECT ALL 22 / - + col0 AS col2, + 32 FROM tab0
----
-1
32
0
32
0
32
onlyif mysql # DIV for integer division:
query I rowsort label-5395
SELECT 89 DIV + + col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5395
SELECT 89 / + + col1 FROM tab2
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col0 FROM tab2
----
-23
-23
-23
onlyif mysql # aggregate syntax:
query II rowsort label-5397
SELECT + + COUNT( DISTINCT + - col2 ), + SUM( - 7 ) AS col0 FROM tab2 cor0
----
3
-21
skipif mysql # not compatible
query II rowsort label-5397
SELECT + + COUNT ( DISTINCT + - col2 ), + SUM ( - 7 ) AS col0 FROM tab2 cor0
----
3
-21
query I rowsort
SELECT - + col0 * 98 * col2 FROM tab2 AS cor0
----
-103684
-250880
-426300
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5400
SELECT - COUNT( DISTINCT + 74 ) - - 7 + - 91 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-5400
SELECT - COUNT ( DISTINCT + 74 ) - - 7 + - 91 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
query I rowsort
SELECT ALL 16 AS col0 FROM tab0
----
16
16
16
query II rowsort
SELECT DISTINCT 6, + col2 AS col0 FROM tab2
----
6
23
6
40
6
58
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5403
SELECT - CAST( - + SUM( ALL + + 45 ) AS SIGNED ) FROM tab1
----
135
skipif mysql # not compatible
query I rowsort label-5403
SELECT - CAST ( - + SUM ( ALL + + 45 ) AS INTEGER ) FROM tab1
----
135
onlyif mysql # aggregate syntax:
query I rowsort label-5404
SELECT DISTINCT - + ( + COUNT( * ) ) FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT - + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-3
query I rowsort
SELECT ALL - 67 * 15 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
query II rowsort
SELECT col2 + - col1 * - col2 AS col1, 65 - - col2 + + + col1 * - col0 FROM tab1 AS cor0
----
1440
-553
3264
-4144
354
-301
query I rowsort
SELECT DISTINCT 28 * - col2 * col2 AS col1 FROM tab2
----
-14812
-44800
-94192
query I rowsort
SELECT - 94 + col1 + - - ( + col2 ) FROM tab0
----
-63
34
6
query III rowsort
SELECT * FROM tab1 WHERE + + col2 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-5410
SELECT ALL - COUNT( * ) * + + COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-5411
SELECT SUM( 71 ) FROM tab1
----
213
skipif mysql # not compatible
query I rowsort label-5411
SELECT SUM ( 71 ) FROM tab1
----
213
onlyif mysql # aggregate syntax:
query I rowsort label-5412
SELECT - COUNT( - + col0 ) FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-5412
SELECT - COUNT ( - + col0 ) FROM tab2
----
-3
query I rowsort
SELECT DISTINCT ( + + col2 ) FROM tab0
----
10
47
99
query I rowsort
SELECT ALL + col2 - - - col0 AS col1 FROM tab1 AS cor0
----
-23
-26
45
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( - col0 NOT BETWEEN col2 AND NULL ) )
----
onlyif mysql # DIV for integer division:
query I rowsort label-5416
SELECT - 23 - + 33 + + - col2 + - + col1 DIV col2 - - + col1 AS col0 FROM tab1 AS cor0
----
-110
-138
-77
skipif mysql # not compatible
query I rowsort label-5416
SELECT - 23 - + 33 + + - col2 + - + col1 / col2 - - + col1 AS col0 FROM tab1 AS cor0
----
-110
-138
-77
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5417
SELECT DISTINCT + MAX( ALL + col0 ) FROM tab0 AS cor0 WHERE NOT ( col1 * - + col0 - col1 + - 16 + + + col1 + + CAST( + + 70 AS SIGNED ) IS NULL )
----
97
skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT + MAX ( ALL + col0 ) FROM tab0 AS cor0 WHERE NOT ( col1 * - + col0 - col1 + - 16 + + + col1 + + CAST ( + + 70 AS INTEGER ) IS NULL )
----
97
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = - col1 * - ( + col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-5419
SELECT - COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-5419
SELECT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab1 AS cor0 WHERE + col1 <> - 95
----
14
47
5
query I rowsort
SELECT DISTINCT - ( + AVG ( + col1 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-5422
SELECT DISTINCT - - ( - col1 ) DIV + col0 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT - - ( - col1 ) / + col0 AS col1 FROM tab1 AS cor0
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5423
SELECT ALL - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
64
75
skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
64
75
onlyif mysql # aggregate syntax:
query I rowsort label-5424
SELECT ALL + COUNT( ALL - col1 ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL + COUNT ( ALL - col1 ) FROM tab0
----
3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5425
SELECT ALL COUNT( * ) * CAST( + - COUNT( ALL col1 ) AS SIGNED ) FROM tab0
----
-9
skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL COUNT ( * ) * CAST ( + - COUNT ( ALL col1 ) AS INTEGER ) FROM tab0
----
-9
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-5426
SELECT ALL col2, col2 * col2 * - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL
skipif mysql # not compatible
query II rowsort label-5426
SELECT ALL col2, col2 * col2 * - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL
query II rowsort
SELECT DISTINCT 41 AS col1, col2 FROM tab1
----
41
59
41
68
41
96
onlyif mysql # aggregate syntax:
query I rowsort label-5428
SELECT DISTINCT MIN( ALL + + col0 ) FROM tab1
----
51
skipif mysql # not compatible
query I rowsort label-5428
SELECT DISTINCT MIN ( ALL + + col0 ) FROM tab1
----
51
query I rowsort
SELECT - col1 * + 37 FROM tab2 cor0
----
-1887
-2479
-2849
query I rowsort
SELECT ALL - - 5 AS col1 FROM tab1 AS cor0
----
5
5
5
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 AND - 94
----
onlyif mysql # aggregate syntax:
query I rowsort label-5432
SELECT DISTINCT - 71 + + + MIN( ALL - - 30 ) * - + 43 FROM tab2 AS cor0
----
-1361
skipif mysql # not compatible
query I rowsort label-5432
SELECT DISTINCT - 71 + + + MIN ( ALL - - 30 ) * - + 43 FROM tab2 AS cor0
----
-1361
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5433
SELECT 47 + + CAST( NULL AS SIGNED ) + + 6 - - + col2 + col2 - - 40 * col2 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5433
SELECT 47 + + CAST ( NULL AS INTEGER ) + + 6 - - + col2 + col2 - - 40 * col2 AS col0 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5434
SELECT MAX( ALL - col2 ) + 62 FROM tab0
----
52
skipif mysql # not compatible
query I rowsort label-5434
SELECT MAX ( ALL - col2 ) + 62 FROM tab0
----
52
query I rowsort
SELECT + ( + + ( - col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81
query I rowsort
SELECT ( 48 ) * + col0 AS col1 FROM tab2 AS cor0
----
2208
3072
3600
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( + 10 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5438
SELECT DISTINCT - ( - 29 ) * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5438
SELECT DISTINCT - ( - 29 ) * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5439
SELECT ALL * FROM tab2 WHERE CAST( NULL AS SIGNED ) * col2 + col1 NOT BETWEEN 71 AND + 84
----
skipif mysql # not compatible
query III rowsort label-5439
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) * col2 + col1 NOT BETWEEN 71 AND + 84
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5440
SELECT DISTINCT - 42 * + COUNT( * ) + + CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT - 42 * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT 77 - col2 FROM tab1
----
-19
18
9
query II rowsort
SELECT ALL 62 * col1 + - - col2 AS col2, + col2 * col0 * + 29 AS col2 FROM tab1
----
2982
179452
369
145435
964
141984
onlyif mysql # aggregate syntax:
query I rowsort label-5443
SELECT DISTINCT - COUNT( DISTINCT 82 ) AS col1 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-5443
SELECT DISTINCT - COUNT ( DISTINCT 82 ) AS col1 FROM tab2
----
-1
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5444
SELECT - - col1 + - - CAST( NULL AS SIGNED ) * + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5444
SELECT - - col1 + - - CAST ( NULL AS INTEGER ) * + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - ( + col1 ) ) * - 69 > NULL
----
query I rowsort
SELECT ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81
onlyif mysql # aggregate syntax:
query I rowsort label-5447
SELECT + SUM( - - col1 ) AS col1 FROM tab0 AS cor0
----
103
skipif mysql # not compatible
query I rowsort label-5447
SELECT + SUM ( - - col1 ) AS col1 FROM tab0 AS cor0
----
103
query I rowsort
SELECT ALL - - ( 81 ) * + col0 FROM tab2 AS cor0
----
3726
5184
6075
query I rowsort
SELECT col1 * + 97 FROM tab2 AS cor0
----
4947
6499
7469
onlyif mysql # aggregate syntax:
query I rowsort label-5450
SELECT COUNT( - col0 ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-5450
SELECT COUNT ( - col0 ) FROM tab0 AS cor0
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 17 * 62 * col2 - - col0 + - col2, + col0 + ( + col2 ) col0 FROM tab2 AS cor0
----
-24219
69
-42136
104
-61115
133
query I rowsort
SELECT ALL ( + - col0 ) * col0 FROM tab1 AS cor0
----
-2601
-7225
-8281
onlyif mysql # aggregate syntax:
query I rowsort label-5453
SELECT MAX( - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-5453
SELECT MAX ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL
query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT 41 IS NULL
----
46
64
75
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-5455
SELECT ALL + 48 DIV + 1 AS col0, COUNT( * ) + 49 AS col0 FROM tab0 AS cor0
----
48
52
skipif mysql # not compatible
query II rowsort label-5455
SELECT ALL + 48 / + 1 AS col0, COUNT ( * ) + 49 AS col0 FROM tab0 AS cor0
----
48
52
onlyif mysql # aggregate syntax:
query I rowsort label-5456
SELECT + SUM( + col2 ) FROM tab0
----
156
skipif mysql # not compatible
query I rowsort label-5456
SELECT + SUM ( + col2 ) FROM tab0
----
156
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 58 * + col1 + col0 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-5458
SELECT + ( 57 ) DIV - 35 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5458
SELECT + ( 57 ) / - 35 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT ALL col1 * + 81 AS col2 FROM tab2
----
4131
5427
6237
onlyif mysql # aggregate syntax:
query I rowsort label-5460
SELECT - COUNT( * ) * + 99 AS col0 FROM tab0
----
-297
skipif mysql # not compatible
query I rowsort label-5460
SELECT - COUNT ( * ) * + 99 AS col0 FROM tab0
----
-297
query I rowsort
SELECT ALL + 67 FROM tab2 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT col0 * + ( - 92 ) FROM tab2
----
-4232
-5888
-6900
onlyif mysql # aggregate syntax:
query I rowsort label-5463
SELECT + MIN( DISTINCT - 72 ) AS col0 FROM tab0 cor0
----
-72
skipif mysql # not compatible
query I rowsort label-5463
SELECT + MIN ( DISTINCT - 72 ) AS col0 FROM tab0 cor0
----
-72
onlyif mysql # aggregate syntax:
query I rowsort label-5464
SELECT DISTINCT + SUM( ALL ( + col0 ) ) FROM tab0 AS cor0
----
199
skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT + SUM ( ALL ( + col0 ) ) FROM tab0 AS cor0
----
199
onlyif mysql # aggregate syntax:
query I rowsort label-5465
SELECT DISTINCT + - COUNT( * ) * - 31 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
279
skipif mysql # not compatible
query I rowsort label-5465
SELECT DISTINCT + - COUNT ( * ) * - 31 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
279
query I rowsort
SELECT ALL 1 + - - ( col0 ) FROM tab2
----
47
65
76
onlyif mysql # aggregate syntax:
query I rowsort label-5467
SELECT + SUM( ALL 5 ) AS col1 FROM tab2
----
15
skipif mysql # not compatible
query I rowsort label-5467
SELECT + SUM ( ALL 5 ) AS col1 FROM tab2
----
15
onlyif mysql # aggregate syntax:
query I rowsort label-5468
SELECT - 47 + + 13 * - MAX( ALL col0 ) * - 20 col0 FROM tab0
----
25173
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5468
SELECT - 47 + + 13 * - MAX ( ALL col0 ) * - 20 col0 FROM tab0
----
25173
query I rowsort
SELECT col2 + + 78 FROM tab2 AS cor0
----
101
118
136
onlyif mysql # aggregate syntax:
query II rowsort label-5470
SELECT ALL + COUNT( * ) col2, COUNT( * ) FROM tab1 AS cor0
----
3
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5470
SELECT ALL + COUNT ( * ) col2, COUNT ( * ) FROM tab1 AS cor0
----
3
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5471
SELECT + - col0 + col2 + + CAST( NULL AS SIGNED ) - + - col1 * - 45 / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5471
SELECT + - col0 + col2 + + CAST ( NULL AS INTEGER ) - + - col1 * - 45 / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5472
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE 5 IS NOT NULL
----
-3
skipif mysql # not compatible
query I rowsort label-5472
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE 5 IS NOT NULL
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 96 col0 FROM tab1 cor0
----
-11
-45
-5
query I rowsort
SELECT ALL 43 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
43
43
43
query II rowsort
SELECT DISTINCT ( + 21 ) AS col0, - col1 AS col0 FROM tab1
----
21
-14
21
-47
21
-5
query I rowsort
SELECT - ( - ( - col0 ) ) FROM tab0
----
-15
-87
-97
onlyif mysql # aggregate syntax:
query I rowsort label-5477
SELECT + MIN( DISTINCT + col0 ) AS col1 FROM tab2
----
46
skipif mysql # not compatible
query I rowsort label-5477
SELECT + MIN ( DISTINCT + col0 ) AS col1 FROM tab2
----
46
onlyif mysql # aggregate syntax:
query I rowsort label-5478
SELECT SUM( ALL - 62 ) * COUNT( * ) - - + 90 + 88 FROM tab0, tab1 AS cor0
----
-4844
skipif mysql # not compatible
query I rowsort label-5478
SELECT SUM ( ALL - 62 ) * COUNT ( * ) - - + 90 + 88 FROM tab0, tab1 AS cor0
----
-4844
query II rowsort
SELECT - + col2 AS col1, + 70 FROM tab0 AS cor0 WHERE col0 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5480
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5480
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 AS cor0
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5481
SELECT + ( - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5481
SELECT + ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - + ( 56 ) AND + 63 * - + ( - col2 ) + + 14
----
query II rowsort
SELECT DISTINCT + col0 * + - col0 * col0 + + - col0 AS col1, - 62 AS col0 FROM tab0 AS cor0
----
-3390
-62
-658590
-62
-912770
-62
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - - col0 > + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 / + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND - col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-5487
SELECT + - 91 * - COUNT( * ) * + 57 FROM tab0 AS cor0
----
15561
skipif mysql # not compatible
query I rowsort label-5487
SELECT + - 91 * - COUNT ( * ) * + 57 FROM tab0 AS cor0
----
15561
query I rowsort
SELECT DISTINCT - + ( + + col2 ) * col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * + col0 + - 33 = NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + - col0 col2 FROM tab1 cor0
----
1293
210
3105
onlyif mysql # aggregate syntax:
query II rowsort label-5490
SELECT + 80 AS col2, - 35 + SUM( + 60 ) FROM tab1 AS cor0
----
80
145
skipif mysql # not compatible
query II rowsort label-5490
SELECT + 80 AS col2, - 35 + SUM ( + 60 ) FROM tab1 AS cor0
----
80
145
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= NULL OR NOT NULL IS NULL
----
query I rowsort
SELECT ALL col0 * + ( + 16 ) FROM tab1
----
1360
1456
816
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-5494
SELECT DISTINCT + 8 * COUNT( ALL - col2 ) AS col0 FROM tab0
----
24
skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT + 8 * COUNT ( ALL - col2 ) AS col0 FROM tab0
----
24
onlyif mysql # aggregate syntax:
query I rowsort label-5495
SELECT - ( - - MIN( ALL + 43 ) ) FROM tab1 AS cor0
----
-43
skipif mysql # not compatible
query I rowsort label-5495
SELECT - ( - - MIN ( ALL + 43 ) ) FROM tab1 AS cor0
----
-43
query I rowsort
SELECT DISTINCT col0 * 88 AS col2 FROM tab1 AS cor0
----
4488
7480
8008
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5497
SELECT ALL - COUNT( * ) DIV 51 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL - COUNT ( * ) / 51 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - col0 * - + col1 + - col0 + - - col2 AS col1 FROM tab1
----
399
4254
759
onlyif mysql # aggregate syntax:
query I rowsort label-5499
SELECT ALL - COUNT( col1 ) FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL - COUNT ( col1 ) FROM tab2
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5500
SELECT - CAST( NULL AS SIGNED ) + - 61 + col0 * - col0 * col0 FROM tab2 WHERE NULL <= - - 94 / + CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-5500
SELECT - CAST ( NULL AS INTEGER ) + - 61 + col0 * - col0 * col0 FROM tab2 WHERE NULL <= - - 94 / + CAST ( NULL AS INTEGER )
----
query I rowsort
SELECT ALL + col0 + - col0 + + col0 + - col2 FROM tab0
----
-2
-32
77
query III rowsort
SELECT * FROM tab2 WHERE + 10 BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5503
SELECT + COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5503
SELECT + COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-5504
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT - 89 + - - ( + 9 ) * - - 31 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT - 89 + - - ( + 9 ) * - - 31 IS NOT NULL
----
0
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 ) < NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5506
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5506
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5507
SELECT DISTINCT - MAX( 75 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND + 88 + col2
----
NULL
skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT - MAX ( 75 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND + 88 + col2
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5508
SELECT ALL - MIN( - col2 ) col1 FROM tab2 AS cor0
----
58
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5508
SELECT ALL - MIN ( - col2 ) col1 FROM tab2 AS cor0
----
58
query I rowsort
SELECT ALL - col1 * col2 * + - col2 * + 81 * ( - ( + + 51 ) ) + 36 AS col1 FROM tab1 AS cor0
----
-532998108
-71900019
-897781932
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 54 IS NOT NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5511
SELECT - + SUM( DISTINCT col2 ) DIV - COUNT( DISTINCT + + 53 ) AS col0 FROM tab1 AS cor0
----
223
skipif mysql # not compatible
query I rowsort label-5511
SELECT - + SUM ( DISTINCT col2 ) / - COUNT ( DISTINCT + + 53 ) AS col0 FROM tab1 AS cor0
----
223
query II rowsort
SELECT ALL col0, 4 AS col0 FROM tab1 AS cor0
----
51
4
85
4
91
4
query III rowsort
SELECT * FROM tab0 WHERE NULL = + - ( + 73 ) * col2
----
query I rowsort
SELECT ALL + 60 * + 65 FROM tab0 WHERE NULL BETWEEN col2 AND NULL AND NOT NULL IS NULL
----
query III rowsort
SELECT * FROM tab1 WHERE - ( + ( 11 ) ) >= NULL
----
query I rowsort
SELECT DISTINCT col0 + - + ( - ( - - col1 ) ) + - 64 FROM tab0
----
32
34
44
query I rowsort
SELECT DISTINCT 84 - 21 AS col0 FROM tab2
----
63
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5518
SELECT ALL CAST( NULL AS SIGNED ) + - + col2 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL CAST ( NULL AS INTEGER ) + - + col2 AS col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5519
SELECT ALL COUNT( * ) - - + CAST( + 56 AS SIGNED ) AS col2 FROM tab2
----
59
skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL COUNT ( * ) - - + CAST ( + 56 AS INTEGER ) AS col2 FROM tab2
----
59
query I rowsort
SELECT DISTINCT + 75 + + - col2 FROM tab2
----
17
35
52
onlyif mysql # aggregate syntax:
query I rowsort label-5521
SELECT + 27 * - MIN( + 54 ) AS col2 FROM tab1 WHERE NULL = col1
----
NULL
skipif mysql # not compatible
query I rowsort label-5521
SELECT + 27 * - MIN ( + 54 ) AS col2 FROM tab1 WHERE NULL = col1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 * - + col2 col2 FROM tab0
----
141
297
30
query I rowsort
SELECT - col2 * ( col0 ) + col0 FROM tab0 AS cor0 WHERE NOT ( + - 15 ) + col1 * - - ( - col0 ) BETWEEN + + col2 AND + 13 + col1 + + - col0
----
-690
-783
-9506
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5524
SELECT + + CAST( + 95 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
skipif mysql # not compatible
query I rowsort label-5524
SELECT + + CAST ( + 95 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-5526
SELECT DISTINCT 16 * + - COUNT( * ) FROM tab1 AS cor0
----
-48
skipif mysql # not compatible
query I rowsort label-5526
SELECT DISTINCT 16 * + - COUNT ( * ) FROM tab1 AS cor0
----
-48
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-5527
SELECT ALL + ( CAST( NULL AS SIGNED ) ) AS col0, - 77 FROM tab1 AS cor0
----
NULL
-77
NULL
-77
NULL
-77
skipif mysql # not compatible
query II rowsort label-5527
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) AS col0, - 77 FROM tab1 AS cor0
----
NULL
-77
NULL
-77
NULL
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - - col2 ) col1, - 78 FROM tab0 AS cor0
----
10
-78
47
-78
99
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 46 col2 FROM tab0
----
-31
41
51
onlyif mysql # aggregate syntax:
query I rowsort label-5530
SELECT DISTINCT + 36 * + + COUNT( - 83 ) * + COUNT( * ) col1 FROM tab2
----
324
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5530
SELECT DISTINCT + 36 * + + COUNT ( - 83 ) * + COUNT ( * ) col1 FROM tab2
----
324
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 + - col0 AND NULL
----
query I rowsort
SELECT ( + + col2 ) + - - col0 AS col2 FROM tab0
----
196
62
97
query I rowsort
SELECT + 2 + col0 FROM tab1
----
53
87
93
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5534
SELECT 48 * + 62 + - ( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5534
SELECT 48 * + 62 + - ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL
NULL
NULL
query II rowsort
SELECT ALL - col0 AS col0, col0 * + col2 AS col1 FROM tab1
----
-51
4896
-85
5015
-91
6188
query I rowsort
SELECT - 40 * - - 64 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-2560
-2560
-2560
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5537
SELECT ALL + CAST( + AVG ( ALL - 78 ) AS SIGNED ) * - 56 AS col0 FROM tab0 AS cor0
----
4368
skipif mysql # not compatible
query I rowsort label-5537
SELECT ALL + CAST ( + AVG ( ALL - 78 ) AS INTEGER ) * - 56 AS col0 FROM tab0 AS cor0
----
4368
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 50 col2 FROM tab1 AS cor0
----
-2550
-4250
-4550
onlyif mysql # aggregate syntax:
query I rowsort label-5540
SELECT ALL - ( - COUNT( * ) ) col1 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5540
SELECT ALL - ( - COUNT ( * ) ) col1 FROM tab1 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-5541
SELECT - SUM( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
227
skipif mysql # not compatible
query I rowsort label-5541
SELECT - SUM ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
227
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col0 )
----
query I rowsort
SELECT DISTINCT 94 * - 14 - - col1 FROM tab1
----
-1269
-1302
-1311
query I rowsort
SELECT DISTINCT - col1 * 17 - + col0 AS col0 FROM tab1
----
-170
-289
-890
query I rowsort
SELECT - col2 * + 64 AS col0 FROM tab1
----
-3776
-4352
-6144
query I rowsort
SELECT - 21 + + col2 FROM tab1 WHERE NOT + ( col0 ) NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT - 12 * col1 AS col0 FROM tab2
----
-612
-804
-924
onlyif mysql # aggregate syntax:
query I rowsort label-5548
SELECT - 29 * MIN( DISTINCT col2 ) AS col0 FROM tab0
----
-290
skipif mysql # not compatible
query I rowsort label-5548
SELECT - 29 * MIN ( DISTINCT col2 ) AS col0 FROM tab0
----
-290
query I rowsort
SELECT DISTINCT col0 + 23 FROM tab2
----
69
87
98
onlyif mysql # aggregate syntax:
query I rowsort label-5550
SELECT COUNT( * ) * 16 FROM tab2
----
48
skipif mysql # not compatible
query I rowsort label-5550
SELECT COUNT ( * ) * 16 FROM tab2
----
48
query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 ) NOT IN ( + 95 / - 64 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * - col1 col2 FROM tab0
----
-1
-441
-6561
query I rowsort
SELECT - 2 * col0 FROM tab2
----
-128
-150
-92
query I rowsort
SELECT - 63 AS col0 FROM tab1 WHERE NOT col1 * - col1 IS NULL
----
-63
-63
-63
query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = ( 74 + - col0 )
----
query I rowsort
SELECT - ( + 40 ) + + 0 AS col1 FROM tab0
----
-40
-40
-40
query I rowsort
SELECT + col1 + + col1 FROM tab0 WHERE NULL IS NULL
----
162
2
42
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-5559
SELECT DISTINCT col1 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT col1 + + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab0 WHERE NOT 38 * col0 BETWEEN NULL AND - col0
----
20
onlyif mysql # aggregate syntax:
query I rowsort label-5561
SELECT - 26 * SUM( DISTINCT + col0 * + col2 ) FROM tab1
----
-418574
skipif mysql # not compatible
query I rowsort label-5561
SELECT - 26 * SUM ( DISTINCT + col0 * + col2 ) FROM tab1
----
-418574
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 25 ) col1 FROM tab2
----
-25
query I rowsort
SELECT + col1 + - ( + col2 ) * col1 AS col1 FROM tab2 WHERE 76 > ( 74 )
----
-1122
-3003
-3819
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> 59 * col1
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5565
SELECT ALL + CAST( 35 AS SIGNED ) col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5565
SELECT ALL + CAST ( 35 AS INTEGER ) col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5566
SELECT COUNT( * ) + - MAX( ALL col2 + col0 ) AS col0 FROM tab1
----
-156
skipif mysql # not compatible
query I rowsort label-5566
SELECT COUNT ( * ) + - MAX ( ALL col2 + col0 ) AS col0 FROM tab1
----
-156
onlyif mysql # aggregate syntax:
query I rowsort label-5567
SELECT 70 + COUNT( + col1 + 93 ) AS col2 FROM tab2
----
73
skipif mysql # not compatible
query I rowsort label-5567
SELECT 70 + COUNT ( + col1 + 93 ) AS col2 FROM tab2
----
73
onlyif mysql # aggregate syntax:
query I rowsort label-5568
SELECT ALL COUNT( * ) * + COUNT( DISTINCT - 16 ) AS col1 FROM tab1 WHERE NOT - col2 * 64 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL COUNT ( * ) * + COUNT ( DISTINCT - 16 ) AS col1 FROM tab1 WHERE NOT - col2 * 64 IS NOT NULL
----
0
query I rowsort
SELECT col2 * - col2 + + 28 AS col1 FROM tab1
----
-3453
-4596
-9188
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col2 + + col0 AND ( 61 )
----
query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT col2 > 95
----
59
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 col2 FROM tab2 WHERE NOT + 89 + - col2 * col2 = ( - col1 )
----
0
0
0
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 50 - - 17 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-5574
SELECT ALL COUNT( * ) + + 48 AS col2 FROM tab0
----
51
skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL COUNT ( * ) + + 48 AS col2 FROM tab0
----
51
onlyif mysql # aggregate syntax:
query I rowsort label-5575
SELECT + COUNT( * ) + COUNT( * ) * 73 FROM tab1
----
222
skipif mysql # not compatible
query I rowsort label-5575
SELECT + COUNT ( * ) + COUNT ( * ) * 73 FROM tab1
----
222
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( col1 + - col2 )
----
onlyif mysql # DIV for integer division:
query I rowsort label-5577
SELECT ALL 83 DIV col2 FROM tab0 AS cor0 WHERE NOT ( - col0 * col0 ) BETWEEN ( + col2 ) AND + col2
----
0
1
8
skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL 83 / col2 FROM tab0 AS cor0 WHERE NOT ( - col0 * col0 ) BETWEEN ( + col2 ) AND + col2
----
0
1
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
89
onlyif mysql # aggregate syntax:
query I rowsort label-5579
SELECT - 95 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-285
skipif mysql # not compatible
query I rowsort label-5579
SELECT - 95 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-285
query I rowsort
SELECT col2 FROM tab1 WHERE NOT col1 IS NULL
----
59
68
96
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5581
SELECT ALL + col1 AS col1 FROM tab2 cor0 WHERE col2 + CAST( NULL AS SIGNED ) NOT IN ( - col0 )
----
skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL + col1 AS col1 FROM tab2 cor0 WHERE col2 + CAST ( NULL AS INTEGER ) NOT IN ( - col0 )
----
query I rowsort
SELECT ALL + + 55 + col0 AS col0 FROM tab1 AS cor0
----
106
140
146
query I rowsort
SELECT + ( + 6 ) AS col0 FROM tab0 AS cor0
----
6
6
6
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5584
SELECT ( ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5584
SELECT ( ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5585
SELECT ALL col1 * CAST( NULL AS SIGNED ) * + 62 + + 15 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL col1 * CAST ( NULL AS INTEGER ) * + 62 + + 15 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 62 + 8 AS col1 FROM tab1 WHERE + col1 * 53 IS NOT NULL
----
70
70
70
query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE ( + 5 ) NOT BETWEEN NULL AND ( col0 ) / - col0 + - col0 * + col1
----
51
67
77
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) = col0 + - col1
----
query I rowsort
SELECT DISTINCT - 40 + 15 FROM tab1
----
-25
query I rowsort
SELECT ALL + col0 * - col1 + col1 FROM tab0
----
-1134
-1806
-96
onlyif mysql # aggregate syntax:
query I rowsort label-5591
SELECT + 20 * + COUNT( DISTINCT 32 ) FROM tab0
----
20
skipif mysql # not compatible
query I rowsort label-5591
SELECT + 20 * + COUNT ( DISTINCT 32 ) FROM tab0
----
20
query I rowsort
SELECT - col1 * - 71 + 77 AS col0 FROM tab1
----
1071
3414
432
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5593
SELECT DISTINCT + + CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
85
91
skipif mysql # not compatible
query I rowsort label-5593
SELECT DISTINCT + + CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
85
91
onlyif mysql # aggregate syntax:
query I rowsort label-5594
SELECT DISTINCT MIN( col1 ) AS col2 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT MIN ( col1 ) AS col2 FROM tab0 cor0
----
1
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= 44
----
onlyif mysql # aggregate syntax:
query I rowsort label-5596
SELECT + COUNT( * ) + + 80 AS col0 FROM tab0 AS cor0
----
83
skipif mysql # not compatible
query I rowsort label-5596
SELECT + COUNT ( * ) + + 80 AS col0 FROM tab0 AS cor0
----
83
query I rowsort
SELECT - col0 + + - col0 AS col1 FROM tab1 AS cor0
----
-102
-170
-182
onlyif mysql # aggregate syntax:
query I rowsort label-5598
SELECT DISTINCT + 37 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
40
skipif mysql # not compatible
query I rowsort label-5598
SELECT DISTINCT + 37 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
40
query I rowsort
SELECT + col1 + - - col0 + col0 FROM tab2 AS cor0
----
143
205
217
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col1 * col0
----
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( 98 ) + col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-5602
SELECT - + SUM( ALL - - 8 ) FROM tab2 AS cor0
----
-24
skipif mysql # not compatible
query I rowsort label-5602
SELECT - + SUM ( ALL - - 8 ) FROM tab2 AS cor0
----
-24
query I rowsort
SELECT ALL col0 * + col2 + - col0 - + col0 FROM tab2 cor0
----
2432
4200
966
onlyif mysql # DIV for integer division:
query I rowsort label-5604
SELECT - + col0 * - col2 - - col2 DIV col0 AS col1 FROM tab2 AS cor0
----
1058
2560
4350
skipif mysql # not compatible
query I rowsort label-5604
SELECT - + col0 * - col2 - - col2 / col0 AS col1 FROM tab2 AS cor0
----
1058
2560
4350
onlyif mysql # aggregate syntax:
query I rowsort label-5605
SELECT MIN( + col2 ) FROM tab1 AS cor0 WHERE col1 * - col0 > ( - col1 )
----
NULL
skipif mysql # not compatible
query I rowsort label-5605
SELECT MIN ( + col2 ) FROM tab1 AS cor0 WHERE col1 * - col0 > ( - col1 )
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5606
SELECT - + CAST( NULL AS SIGNED ) - + 49 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5606
SELECT - + CAST ( NULL AS INTEGER ) - + 49 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 - ( - 72 ) AS col2 FROM tab2 AS cor0
----
118
136
147
query I rowsort
SELECT ALL 57 * col2 FROM tab0 AS cor0
----
2679
5643
570
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / + 83 BETWEEN - col0 AND 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT + + 67 - col2 FROM tab0 cor0
----
-32
20
57
onlyif mysql # aggregate syntax:
query I rowsort label-5611
SELECT DISTINCT - ( COUNT( * ) ) - + 84 AS col2 FROM tab1 AS cor0
----
-87
skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT - ( COUNT ( * ) ) - + 84 AS col2 FROM tab1 AS cor0
----
-87
query I rowsort
SELECT DISTINCT - + 21 * - 56 AS col1 FROM tab0 AS cor0
----
1176
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5613
SELECT * FROM tab1 AS cor0 WHERE - col1 * - col2 < CAST( NULL AS SIGNED ) + + col2
----
skipif mysql # not compatible
query III rowsort label-5613
SELECT * FROM tab1 AS cor0 WHERE - col1 * - col2 < CAST ( NULL AS INTEGER ) + + col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - + 63 - ( col1 ) col0 FROM tab2 AS cor0
----
-34
-78
-79
query I rowsort
SELECT ALL ( col0 ) - - 26 * + col2 AS col2 FROM tab0 AS cor0
----
1237
2671
347
query I rowsort
SELECT DISTINCT - col1 * - 80 AS col0 FROM tab0 cor0
----
1680
6480
80
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * - col2 * + 16 NOT BETWEEN NULL AND ( NULL )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 47 >= - - col2 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 83 - col0 > NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-5620
SELECT DISTINCT + 75 DIV - - 95 AS col0 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT + 75 / - - 95 AS col0 FROM tab1
----
0
query I rowsort
SELECT ALL 90 * - 30 AS col2 FROM tab2
----
-2700
-2700
-2700
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 77 * + ( + col2 ) <> NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col2 ) IS NULL
----
query I rowsort
SELECT col0 - col0 AS col2 FROM tab0 WHERE NOT 97 * - - col2 * - 70 IS NULL
----
0
0
0
query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 IN ( - col0 * 40 )
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5626
SELECT * FROM tab2 WHERE NOT + 63 / - - col0 + col0 + - CAST( - col1 AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-5626
SELECT * FROM tab2 WHERE NOT + 63 / - - col0 + col0 + - CAST ( - col1 AS INTEGER ) IS NOT NULL
----
query I rowsort
SELECT ALL ( - - col2 ) AS col2 FROM tab0
----
10
47
99
query III rowsort
SELECT * FROM tab0 WHERE NOT - 96 NOT IN ( - col1 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT - 55 AS col0 FROM tab1 WHERE NULL NOT IN ( + + col2 * - + 76 )
----
query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE 49 IS NOT NULL
----
59
68
96
query I rowsort
SELECT ALL + 77 * 42 FROM tab0 AS cor0
----
3234
3234
3234
onlyif mysql # aggregate syntax:
query I rowsort label-5633
SELECT + + COUNT( DISTINCT - col0 ) AS col2 FROM tab1 cor0
----
3
skipif mysql # not compatible
query I rowsort label-5633
SELECT + + COUNT ( DISTINCT - col0 ) AS col2 FROM tab1 cor0
----
3
onlyif mysql # DIV for integer division:
query II rowsort label-5634
SELECT ALL + col2 DIV + - col0, col0 FROM tab0 AS cor0
----
-1
97
-3
15
0
87
skipif mysql # not compatible
query II rowsort label-5634
SELECT ALL + col2 / + - col0, col0 FROM tab0 AS cor0
----
-1
97
-3
15
0
87
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-5635
SELECT ALL - CAST( NULL AS DECIMAL ) * + + ( - col2 ) col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5635
SELECT ALL - CAST ( NULL AS REAL ) * + + ( - col2 ) col2 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5636
SELECT COUNT( * ) * 22 + + 79 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 * - - col1 = ( + col0 )
----
NULL
skipif mysql # not compatible
query I rowsort label-5636
SELECT COUNT ( * ) * 22 + + 79 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 * - - col1 = ( + col0 )
----
NULL
query I rowsort
SELECT ALL + ( + 12 ) + + - col0 / col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5638
SELECT MAX( DISTINCT 61 ) * 66 FROM tab1
----
4026
skipif mysql # not compatible
query I rowsort label-5638
SELECT MAX ( DISTINCT 61 ) * 66 FROM tab1
----
4026
query I rowsort
SELECT ALL + 26 AS col1 FROM tab2 WHERE NULL = NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT - - ( ( + + col0 ) ) * - col2 IS NOT NULL
----
query I rowsort
SELECT 51 * + + col2 FROM tab2
----
1173
2040
2958
onlyif mysql # aggregate syntax:
query I rowsort label-5642
SELECT COUNT( * ) * + 68 * 91 FROM tab2
----
18564
skipif mysql # not compatible
query I rowsort label-5642
SELECT COUNT ( * ) * + 68 * 91 FROM tab2
----
18564
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5643
SELECT ALL col0 * + CAST( - col0 AS SIGNED ) * + col0 FROM tab1
----
-132651
-614125
-753571
skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL col0 * + CAST ( - col0 AS INTEGER ) * + col0 FROM tab1
----
-132651
-614125
-753571
query I rowsort
SELECT DISTINCT - col1 * + - col1 FROM tab2 AS cor0
----
2601
4489
5929
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5645
SELECT CAST( + col0 AS SIGNED ) * + col1 + - col1 * - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( ( col2 ) - col2 ) >= col0 + 76 / - col0
----
1428
850
8554
skipif mysql # not compatible
query I rowsort label-5645
SELECT CAST ( + col0 AS INTEGER ) * + col1 + - col1 * - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( ( col2 ) - col2 ) >= col0 + 76 / - col0
----
1428
850
8554
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 col0 FROM tab1 AS cor0
----
-41
-41
-41
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5647
SELECT + ( CAST( - - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
46
64
75
skipif mysql # not compatible
query I rowsort label-5647
SELECT + ( CAST ( - - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
46
64
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 57 col2, + col0 * 18 - + ( 36 ) + + col2 * + col2 FROM tab0 AS cor0
----
57
11511
57
1630
57
2443
query I rowsort
SELECT ALL - 10 AS col1 FROM tab2 AS cor0
----
-10
-10
-10
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5650
SELECT - 44 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5650
SELECT - 44 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-5651
SELECT ALL 82 AS col1, 10 * - - COUNT( * ) + MIN( ALL ( col2 ) ) FROM tab2
----
82
53
skipif mysql # not compatible
query II rowsort label-5651
SELECT ALL 82 AS col1, 10 * - - COUNT ( * ) + MIN ( ALL ( col2 ) ) FROM tab2
----
82
53
query III rowsort
SELECT * FROM tab1 WHERE + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT col2 * 72 * + - 64 + + col1 AS col2 FROM tab0
----
-216495
-456191
-46059
query I rowsort
SELECT ALL - 74 + 31 FROM tab2
----
-43
-43
-43
query III rowsort
SELECT * FROM tab1 WHERE + 71 IS NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-5656
SELECT DISTINCT + COUNT( * ) AS col0, MIN( + col1 ) AS col2 FROM tab0
----
3
1
skipif mysql # not compatible
query II rowsort label-5656
SELECT DISTINCT + COUNT ( * ) AS col0, MIN ( + col1 ) AS col2 FROM tab0
----
3
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + 17 col2, - col0 col2 FROM tab2
----
391
-46
680
-64
986
-75
query I rowsort
SELECT col1 * 32 FROM tab2 cor0 WHERE 94 + col2 + - col1 + - col2 * - 47 * - 52 BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5659
SELECT DISTINCT + MIN( ALL - - col0 ) AS col1 FROM tab0 cor0
----
15
skipif mysql # not compatible
query I rowsort label-5659
SELECT DISTINCT + MIN ( ALL - - col0 ) AS col1 FROM tab0 cor0
----
15
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN - 89 AND NULL
----
query I rowsort
SELECT ALL - col2 + + col0 + + - col0 FROM tab2 AS cor0
----
-23
-40
-58
onlyif mysql # DIV for integer division:
query I rowsort label-5662
SELECT ( + 44 ) - + col0 DIV + col1 - - ( + 43 ) FROM tab1 AS cor0
----
70
84
86
skipif mysql # not compatible
query I rowsort label-5662
SELECT ( + 44 ) - + col0 / + col1 - - ( + 43 ) FROM tab1 AS cor0
----
70
84
86
query I rowsort
SELECT col1 FROM tab1 WHERE NULL IS NULL
----
14
47
5
onlyif mysql # DIV for integer division:
query I rowsort label-5664
SELECT DISTINCT ( + col2 ) + - - col0 DIV - + 29 FROM tab1
----
57
65
95
skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT ( + col2 ) + - - col0 / - + 29 FROM tab1
----
57
65
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 72 ) col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-72
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 42 = + col2 + - 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT 26 * - + col1 AS col2 FROM tab1 AS cor0
----
-1222
-130
-364
query II rowsort
SELECT DISTINCT + 80 * col0 AS col2, ( - col2 ) AS col0 FROM tab1 AS cor0
----
4080
-96
6800
-59
7280
-68
query I rowsort
SELECT + col0 * - 62 AS col2 FROM tab0 AS cor0
----
-5394
-6014
-930
query I rowsort
SELECT DISTINCT + - 50 * - + col0 FROM tab1 AS cor0
----
2550
4250
4550
query I rowsort
SELECT - + col2 * - col1 * + col2 AS col0 FROM tab0 AS cor0
----
178929
2100
9801
onlyif mysql # DIV for integer division:
query I rowsort label-5672
SELECT ( - 55 ) DIV - 99 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5672
SELECT ( - 55 ) / - 99 FROM tab2
----
0
0
0
query I rowsort
SELECT - 35 * - col0 FROM tab1
----
1785
2975
3185
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-5674
SELECT + CAST( - - 6 AS SIGNED ) * + - COUNT( * ) col2, 63 + + CAST( NULL AS SIGNED ) FROM tab2
----
-18
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5674
SELECT + CAST ( - - 6 AS INTEGER ) * + - COUNT ( * ) col2, 63 + + CAST ( NULL AS INTEGER ) FROM tab2
----
-18
NULL
query I rowsort
SELECT DISTINCT + 46 * - + col1 FROM tab2
----
-2346
-3082
-3542
query I rowsort
SELECT - 1 * col2 FROM tab1
----
-59
-68
-96
query II rowsort
SELECT ALL col1 AS col0, + col2 AS col2 FROM tab2
----
51
23
67
58
77
40
query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + col2 ) NOT BETWEEN NULL AND - 73
----
15
81
47
87
21
10
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-5679
SELECT ALL CAST( NULL AS SIGNED ) col1, + 41 AS col2 FROM tab0
----
NULL
41
NULL
41
NULL
41
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5679
SELECT ALL CAST ( NULL AS INTEGER ) col1, + 41 AS col2 FROM tab0
----
NULL
41
NULL
41
NULL
41
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 70 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-5681
SELECT DISTINCT + COUNT( ALL - - col0 ) col0 FROM tab1
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5681
SELECT DISTINCT + COUNT ( ALL - - col0 ) col0 FROM tab1
----
3
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL >= - 80
----
onlyif mysql # aggregate syntax:
query I rowsort label-5683
SELECT DISTINCT - COUNT( * ) * COUNT( * ) FROM tab0 cor0
----
-9
skipif mysql # not compatible
query I rowsort label-5683
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) FROM tab0 cor0
----
-9
query I rowsort
SELECT col0 + col0 * - 12 AS col0 FROM tab0
----
-1067
-165
-957
query II rowsort
SELECT ALL ( + col1 ) AS col0, col2 + 81 AS col1 FROM tab1
----
14
177
47
149
5
140
onlyif mysql # DIV for integer division:
query I rowsort label-5686
SELECT DISTINCT - + ( - + col2 ) DIV - - col1 AS col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT - + ( - + col2 ) / - - col1 AS col0 FROM tab2 AS cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-5687
SELECT COUNT( * ) col1 FROM tab2 cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5687
SELECT COUNT ( * ) col1 FROM tab2 cor0
----
3
query I rowsort
SELECT + - 29 AS col0 FROM tab2 AS cor0
----
-29
-29
-29
onlyif mysql # aggregate syntax:
query I rowsort label-5689
SELECT + COUNT( * ) * 71 * - 3 col0 FROM tab0 AS cor0
----
-639
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5689
SELECT + COUNT ( * ) * 71 * - 3 col0 FROM tab0 AS cor0
----
-639
query I rowsort
SELECT + - 65 AS col1 FROM tab1 AS cor0
----
-65
-65
-65
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * 95 + - - 11 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5692
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 35 AND - CAST( NULL AS SIGNED ) AND NULL >= + col2
----
skipif mysql # not compatible
query III rowsort label-5692
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 35 AND - CAST ( NULL AS INTEGER ) AND NULL >= + col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-5693
SELECT ALL + MIN( DISTINCT + col0 ) + 4 AS col0 FROM tab2
----
50
skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL + MIN ( DISTINCT + col0 ) + 4 AS col0 FROM tab2
----
50
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-5694
SELECT - ( + - COUNT( * ) ) + - + 48 AS col1, CAST( NULL AS SIGNED ) FROM tab2
----
-45
NULL
skipif mysql # not compatible
query II rowsort label-5694
SELECT - ( + - COUNT ( * ) ) + - + 48 AS col1, CAST ( NULL AS INTEGER ) FROM tab2
----
-45
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5695
SELECT DISTINCT - COUNT( * ) + + ( - 58 ) AS col0 FROM tab2
----
-61
skipif mysql # not compatible
query I rowsort label-5695
SELECT DISTINCT - COUNT ( * ) + + ( - 58 ) AS col0 FROM tab2
----
-61
onlyif mysql # aggregate syntax:
query I rowsort label-5696
SELECT DISTINCT - MIN( + col2 ) col0 FROM tab1
----
-59
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5696
SELECT DISTINCT - MIN ( + col2 ) col0 FROM tab1
----
-59
query I rowsort
SELECT col2 + - 7 FROM tab0
----
3
40
92
query I rowsort
SELECT - 3 * 99 + - col2 AS col1 FROM tab2 AS cor0
----
-320
-337
-355
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5699
SELECT - - col2 + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5699
SELECT - - col2 + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5700
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <= - col0
----
0
skipif mysql # not compatible
query I rowsort label-5700
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <= - col0
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5701
SELECT ALL - CAST( NULL AS SIGNED ) + 44 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL - CAST ( NULL AS INTEGER ) + 44 FROM tab1 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 2 * + col0 + - col0 + - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL + col2 + ( - col2 ) + - col2 FROM tab2 AS cor0
----
-23
-40
-58
onlyif mysql # aggregate syntax:
query I rowsort label-5704
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-5704
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
query I rowsort
SELECT + + 98 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5706
SELECT CAST( + - COUNT( * ) AS SIGNED ) FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-5706
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1
----
-3
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-5707
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT 55 IN ( + col2, CAST( NULL AS DECIMAL ) * - 55 )
----
0
skipif mysql # not compatible
query I rowsort label-5707
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 55 IN ( + col2, CAST ( NULL AS REAL ) * - 55 )
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5708
SELECT - ( + CAST( - col2 AS SIGNED ) ) * - 0 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5708
SELECT - ( + CAST ( - col2 AS INTEGER ) ) * - 0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 45 * - 39 AS col2 FROM tab1 AS cor0
----
-1755
-1755
-1755
query I rowsort
SELECT DISTINCT + ( + - col0 ) * - - 8 AS col1 FROM tab0 AS cor0
----
-120
-696
-776
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 <= + 97
----
query I rowsort
SELECT + - 74 * + col0 AS col2 FROM tab2 AS cor0
----
-3404
-4736
-5550
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5713
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5713
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5714
SELECT * FROM tab1 WHERE NOT ( NOT ( ( NULL NOT BETWEEN CAST( NULL AS SIGNED ) * + col2 AND NULL ) ) )
----
skipif mysql # not compatible
query III rowsort label-5714
SELECT * FROM tab1 WHERE NOT ( NOT ( ( NULL NOT BETWEEN CAST ( NULL AS INTEGER ) * + col2 AND NULL ) ) )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 6 <> - 45
----
onlyif mysql # aggregate syntax:
query II rowsort label-5716
SELECT DISTINCT MIN( ALL col2 ) AS col0, 66 FROM tab2
----
23
66
skipif mysql # not compatible
query II rowsort label-5716
SELECT DISTINCT MIN ( ALL col2 ) AS col0, 66 FROM tab2
----
23
66
onlyif mysql # aggregate syntax:
query I rowsort label-5717
SELECT + COUNT( col1 ) * - + 79 FROM tab2
----
-237
skipif mysql # not compatible
query I rowsort label-5717
SELECT + COUNT ( col1 ) * - + 79 FROM tab2
----
-237
onlyif mysql # aggregate syntax:
query I rowsort label-5718
SELECT ALL + COUNT( * ) * + - ( 50 ) * + ( + 41 ) - - COUNT( * ) FROM tab2
----
-6147
skipif mysql # not compatible
query I rowsort label-5718
SELECT ALL + COUNT ( * ) * + - ( 50 ) * + ( + 41 ) - - COUNT ( * ) FROM tab2
----
-6147
onlyif mysql # DIV for integer division:
query I rowsort label-5719
SELECT 13 DIV - 14 AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5719
SELECT 13 / - 14 AS col1 FROM tab2
----
0
0
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5720
SELECT + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----
skipif mysql # not compatible
query I rowsort label-5720
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----
query I rowsort
SELECT 41 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
41
41
41
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5722
SELECT ALL - 70 + CAST( - SUM( ALL - 99 ) AS SIGNED ) FROM tab2 AS cor0
----
227
skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL - 70 + CAST ( - SUM ( ALL - 99 ) AS INTEGER ) FROM tab2 AS cor0
----
227
onlyif mysql # aggregate syntax:
query I rowsort label-5723
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9
skipif mysql # not compatible
query I rowsort label-5723
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-5724
SELECT ALL 7 + + COUNT( * ) - SUM( - ( + col0 ) ) col0 FROM tab2 WHERE NOT ( - + col2 ) IS NULL
----
195
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5724
SELECT ALL 7 + + COUNT ( * ) - SUM ( - ( + col0 ) ) col0 FROM tab2 WHERE NOT ( - + col2 ) IS NULL
----
195
query I rowsort
SELECT ALL col2 * - - col2 * + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
205379
314432
884736
onlyif mysql # DIV for integer division:
query II rowsort label-5726
SELECT ( - col2 ) + - col2 DIV - + col0 AS col1, + col0 + + + 58 DIV - 99 * + col2 AS col1 FROM tab2
----
-23
46
-40
64
-58
75
skipif mysql # not compatible
query II rowsort label-5726
SELECT ( - col2 ) + - col2 / - + col0 AS col1, + col0 + + + 58 / - 99 * + col2 AS col1 FROM tab2
----
-23
46
-40
64
-58
75
onlyif mysql # aggregate syntax:
query I rowsort label-5727
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 37 NOT BETWEEN NULL AND ( + - col1 )
----
0
skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 37 NOT BETWEEN NULL AND ( + - col1 )
----
0
query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT + 84 IS NULL
----
23
40
58
query II rowsort
SELECT DISTINCT + col2 AS col0, 81 FROM tab2 AS cor0
----
23
81
40
81
58
81
query I rowsort
SELECT + col2 * + col0 + + 73 + 93 + + col2 AS col0 FROM tab0 cor0
----
1046
918
9868
query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT - col2 * col2 * - 86 / + 36 = ( NULL )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5732
SELECT DISTINCT + + col2 - CAST( + col1 AS SIGNED ) FROM tab2 WHERE col2 <> - + col0 + - - col0
----
-28
-37
-9
skipif mysql # not compatible
query I rowsort label-5732
SELECT DISTINCT + + col2 - CAST ( + col1 AS INTEGER ) FROM tab2 WHERE col2 <> - + col0 + - - col0
----
-28
-37
-9
onlyif mysql # aggregate syntax:
query I rowsort label-5733
SELECT DISTINCT COUNT( * ) + + 83 * + 53 FROM tab2
----
4402
skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT COUNT ( * ) + + 83 * + 53 FROM tab2
----
4402
query I rowsort
SELECT + + 75 * + ( + - 95 ) + + 55 FROM tab1 WHERE NULL = col2
----
query I rowsort
SELECT ALL + col2 - + - ( 86 ) FROM tab2
----
109
126
144
query III rowsort
SELECT ALL * FROM tab0 WHERE col2 IN ( + 38 * + col0 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE - 42 IS NULL
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 IN ( - - 96, col0 * - + 51 + - col2 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5739
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - - col0 - + col2 * + + col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - - col0 - + col2 * + + col1 FROM tab0 cor0
----
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-5740
SELECT ALL - + SUM( ALL - col0 ) AS col0, ( COUNT( DISTINCT - 28 ) ) FROM tab1 AS cor0
----
227
1
skipif mysql # not compatible
query II rowsort label-5740
SELECT ALL - + SUM ( ALL - col0 ) AS col0, ( COUNT ( DISTINCT - 28 ) ) FROM tab1 AS cor0
----
227
1
query I rowsort
SELECT 96 * + + 55 - 78 FROM tab2 AS cor0
----
5202
5202
5202
query I rowsort
SELECT + + col0 + - - col0 AS col0 FROM tab2 AS cor0
----
128
150
92
query I rowsort
SELECT DISTINCT + 68 * - 86 FROM tab0
----
-5848
onlyif mysql # aggregate syntax:
query I rowsort label-5744
SELECT SUM( DISTINCT - - 90 ) FROM tab0
----
90
skipif mysql # not compatible
query I rowsort label-5744
SELECT SUM ( DISTINCT - - 90 ) FROM tab0
----
90
onlyif mysql # aggregate syntax:
query I rowsort label-5745
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE ( - 76 * - col1 IS NULL )
----
0
skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE ( - 76 * - col1 IS NULL )
----
0
query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) <> ( 39 )
----
onlyif mysql # DIV for integer division:
query II rowsort label-5747
SELECT + col0 DIV - - 95 * ( + col2 ) * - 69 AS col0, - col2 FROM tab1
----
0
-59
0
-68
0
-96
skipif mysql # not compatible
query II rowsort label-5747
SELECT + col0 / - - 95 * ( + col2 ) * - 69 AS col0, - col2 FROM tab1
----
0
-59
0
-68
0
-96
query III rowsort
SELECT * FROM tab0 WHERE NOT - 66 + - 90 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT col1 * - col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-441
-6561
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5750
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - + 40 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-5750
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - + 40 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT - ( - 61 ) FROM tab1 AS cor0
----
61
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-5753
SELECT - 15 * - - SUM( ALL - 26 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-5753
SELECT - 15 * - - SUM ( ALL - 26 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5754
SELECT ALL - - SUM( 30 ) FROM tab0 cor0
----
90
skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL - - SUM ( 30 ) FROM tab0 cor0
----
90
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + col0 < NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5756
SELECT + + MIN( ALL + col1 ) FROM tab1 AS cor0
----
5
skipif mysql # not compatible
query I rowsort label-5756
SELECT + + MIN ( ALL + col1 ) FROM tab1 AS cor0
----
5
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-5757
SELECT col1 AS col2, CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
51
51
67
67
77
77
skipif mysql # not compatible
query II rowsort label-5757
SELECT col1 AS col2, CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
51
51
67
67
77
77
onlyif mysql # aggregate syntax:
query I rowsort label-5758
SELECT ALL COUNT( + - col2 ) AS col1 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL COUNT ( + - col2 ) AS col1 FROM tab1
----
3
query I rowsort
SELECT 28 * + - col1 FROM tab1
----
-1316
-140
-392
query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN + + 58 AND - col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-5761
SELECT + SUM( ALL - 7 ) FROM tab0
----
-21
skipif mysql # not compatible
query I rowsort label-5761
SELECT + SUM ( ALL - 7 ) FROM tab0
----
-21
query I rowsort
SELECT ALL ( + 97 ) * - 44 AS col0 FROM tab0
----
-4268
-4268
-4268
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - - 69 * + + ( - 9 ) + - col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 92 AS col0, col2 * 51 col2 FROM tab1
----
-92
3009
-92
3468
-92
4896
query I rowsort
SELECT DISTINCT ( - 7 ) FROM tab1 AS cor0
----
-7
onlyif mysql # aggregate syntax:
query I rowsort label-5766
SELECT + - SUM( col2 ) FROM tab0 AS cor0
----
-156
skipif mysql # not compatible
query I rowsort label-5766
SELECT + - SUM ( col2 ) FROM tab0 AS cor0
----
-156
query II rowsort
SELECT DISTINCT - 40 + + col0 AS col0, + 5 FROM tab0
----
-25
5
47
5
57
5
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN - col0 AND col2
----
onlyif mysql # DIV for integer division:
query I rowsort label-5769
SELECT + col2 DIV + 70 + 13 AS col0 FROM tab0
----
13
13
14
skipif mysql # not compatible
query I rowsort label-5769
SELECT + col2 / + 70 + 13 AS col0 FROM tab0
----
13
13
14
onlyif mysql # aggregate syntax:
query I rowsort label-5770
SELECT + ( COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-5770
SELECT + ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-5771
SELECT ALL - - MIN( + 14 ), - 97 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
14
NULL
skipif mysql # not compatible
query II rowsort label-5771
SELECT ALL - - MIN ( + 14 ), - 97 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
14
NULL
query I rowsort
SELECT + - col2 * col2 * + + ( - + ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-33135
-8700
-950697
query I rowsort
SELECT ALL + 38 AS col2 FROM tab1 AS cor0
----
38
38
38
onlyif mysql # aggregate syntax:
query I rowsort label-5774
SELECT + + MIN( col1 ) FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-5774
SELECT + + MIN ( col1 ) FROM tab0 AS cor0
----
1
onlyif mysql # aggregate syntax:
query I rowsort label-5775
SELECT + MAX( col0 ) * COUNT( - col0 ) AS col1 FROM tab1 AS cor0
----
273
skipif mysql # not compatible
query I rowsort label-5775
SELECT + MAX ( col0 ) * COUNT ( - col0 ) AS col1 FROM tab1 AS cor0
----
273
onlyif mysql # aggregate syntax:
query I rowsort label-5776
SELECT DISTINCT MAX( DISTINCT 51 ) AS col2 FROM tab0 AS cor0
----
51
skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT MAX ( DISTINCT 51 ) AS col2 FROM tab0 AS cor0
----
51
onlyif mysql # aggregate syntax:
query I rowsort label-5777
SELECT ALL + - COUNT( * ) * + 96 * + MIN( - 27 ) AS col2 FROM tab2 AS cor0
----
7776
skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL + - COUNT ( * ) * + 96 * + MIN ( - 27 ) AS col2 FROM tab2 AS cor0
----
7776
onlyif mysql # aggregate syntax:
query I rowsort label-5778
SELECT DISTINCT + COUNT( * ) + + SUM( col0 ) AS col2 FROM tab1
----
230
skipif mysql # not compatible
query I rowsort label-5778
SELECT DISTINCT + COUNT ( * ) + + SUM ( col0 ) AS col2 FROM tab1
----
230
query I rowsort
SELECT col0 - 28 AS col2 FROM tab2
----
18
36
47
query I rowsort
SELECT DISTINCT ( + ( + + col2 ) ) + col2 FROM tab0
----
198
20
94
query III rowsort
SELECT ALL * FROM tab2 WHERE + - col2 <= + + 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0 WHERE NOT NULL IS NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE 91 <> NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5784
SELECT COUNT( * ) + SUM( + col1 ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5784
SELECT COUNT ( * ) + SUM ( + col1 ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT ALL 0 + - + 47 AS col0 FROM tab1
----
-47
-47
-47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 41 + col1 col0 FROM tab1
----
46
55
88
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5787
SELECT ALL - 63 + 72 AS col1 FROM tab2 cor0 WHERE 34 * + ( col2 ) / ( + col1 ) + col2 * - CAST( NULL AS SIGNED ) + - + col2 + col0 * col1 * col2 / - CAST( NULL AS SIGNED ) / + 63 = col1
----
skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL - 63 + 72 AS col1 FROM tab2 cor0 WHERE 34 * + ( col2 ) / ( + col1 ) + col2 * - CAST ( NULL AS INTEGER ) + - + col2 + col0 * col1 * col2 / - CAST ( NULL AS INTEGER ) / + 63 = col1
----
query I rowsort
SELECT DISTINCT - col2 * + ( - 86 ) - - col1 * col0 + - 89 FROM tab2 AS cor0
----
4235
8279
9924
onlyif mysql # DIV for integer division:
query II rowsort label-5789
SELECT - - 65 AS col1, - 96 DIV + col2 AS col2 FROM tab1 AS cor0
----
65
-1
65
-1
65
-1
skipif mysql # not compatible
query II rowsort label-5789
SELECT - - 65 AS col1, - 96 / + col2 AS col2 FROM tab1 AS cor0
----
65
-1
65
-1
65
-1
query I rowsort
SELECT DISTINCT - 64 * + col1 AS col0 FROM tab2 AS cor0
----
-3264
-4288
-4928
onlyif mysql # DIV for integer division:
query I rowsort label-5791
SELECT - col0 * 27 DIV + + col0 AS col1 FROM tab2 cor0
----
-27
-27
-27
skipif mysql # not compatible
query I rowsort label-5791
SELECT - col0 * 27 / + + col0 AS col1 FROM tab2 cor0
----
-27
-27
-27
onlyif mysql # aggregate syntax:
query I rowsort label-5792
SELECT - - MIN( ALL + - col2 ) AS col1 FROM tab1 cor0
----
-96
skipif mysql # not compatible
query I rowsort label-5792
SELECT - - MIN ( ALL + - col2 ) AS col1 FROM tab1 cor0
----
-96
query I rowsort
SELECT + + ( + col0 ) FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN 67 + - col0 AND - col0
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5794
SELECT ALL - CAST( + - col1 AS SIGNED ) AS col1 FROM tab2
----
51
67
77
skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL - CAST ( + - col1 AS INTEGER ) AS col1 FROM tab2
----
51
67
77
query I rowsort
SELECT col2 + 66 FROM tab1
----
125
134
162
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5796
SELECT DISTINCT - CAST( + MAX( ALL + + 83 ) AS SIGNED ) AS col2 FROM tab1
----
-83
skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT - CAST ( + MAX ( ALL + + 83 ) AS INTEGER ) AS col2 FROM tab1
----
-83
query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE NOT ( + col1 ) NOT IN ( + col1 * - col2 + 51 )
----
query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 * - col0 * + 65 * - + col1 - 77 + col2 * + 45 IS NOT NULL
----
query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IN ( 12 )
----
query I rowsort
SELECT - col2 * + col2 + - col0 * col0 * 63 AS col1 FROM tab0
----
-16384
-476947
-602568
onlyif mysql # aggregate syntax:
query I rowsort label-5801
SELECT ALL COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
query II rowsort
SELECT DISTINCT + 7 AS col2, + 94 FROM tab1
----
7
94
query I rowsort
SELECT 91 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
onlyif mysql # aggregate syntax:
query II rowsort label-5804
SELECT ALL - ( + 35 ), + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-35
81
skipif mysql # not compatible
query II rowsort label-5804
SELECT ALL - ( + 35 ), + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-35
81
query I rowsort
SELECT DISTINCT - 23 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-23
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 < NULL
----
query I rowsort
SELECT ALL col0 + + col0 FROM tab0 AS cor0 WHERE ( NULL ) < - 21 * + + 63 + - + 35 + - - 75
----
query I rowsort
SELECT ALL - + 23 - - col0 FROM tab2 AS cor0
----
23
41
52
query II rowsort
SELECT ALL 31 AS col0, 34 * + col1 FROM tab1 AS cor0
----
31
1598
31
170
31
476
query I rowsort
SELECT DISTINCT + col1 + 49 + - col2 AS col2 FROM tab0 AS cor0
----
-49
60
83
query II rowsort
SELECT DISTINCT col1 * + col2 * + col0, - 76 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-5812
SELECT col0 DIV + col0 + col0 * ( col1 ) FROM tab0 AS cor0
----
1216
1828
98
skipif mysql # not compatible
query I rowsort label-5812
SELECT col0 / + col0 + col0 * ( col1 ) FROM tab0 AS cor0
----
1216
1828
98
onlyif mysql # aggregate syntax:
query I rowsort label-5813
SELECT DISTINCT + 58 * - 93 + + COUNT( * ) * + COUNT( * ) + - 61 AS col0 FROM tab1
----
-5446
skipif mysql # not compatible
query I rowsort label-5813
SELECT DISTINCT + 58 * - 93 + + COUNT ( * ) * + COUNT ( * ) + - 61 AS col0 FROM tab1
----
-5446
query III rowsort
SELECT * FROM tab0 WHERE + 43 + + col1 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5815
SELECT ALL * FROM tab1 WHERE - + CAST( 2 AS SIGNED ) IS NULL
----
skipif mysql # not compatible
query III rowsort label-5815
SELECT ALL * FROM tab1 WHERE - + CAST ( 2 AS INTEGER ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5816
SELECT + MAX( ALL col2 ) FROM tab0
----
99
skipif mysql # not compatible
query I rowsort label-5816
SELECT + MAX ( ALL col2 ) FROM tab0
----
99
onlyif mysql # aggregate syntax:
query I rowsort label-5817
SELECT DISTINCT SUM( ALL - col2 ) * COUNT( * ) FROM tab1
----
-669
skipif mysql # not compatible
query I rowsort label-5817
SELECT DISTINCT SUM ( ALL - col2 ) * COUNT ( * ) FROM tab1
----
-669
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 30 IS NULL
----
query I rowsort
SELECT + col2 - - col1 AS col0 FROM tab2 WHERE + col2 IS NULL
----
query I rowsort
SELECT DISTINCT 94 * - 94 - - + col2 + - + col0 FROM tab2
----
-8853
-8859
-8860
query I rowsort
SELECT col2 * - col1 * - - col1 - 30 FROM tab1
----
-150242
-1505
-18846
onlyif mysql # aggregate syntax:
query I rowsort label-5822
SELECT ALL + SUM( ( - 24 ) ) FROM tab1
----
-72
skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL + SUM ( ( - 24 ) ) FROM tab1
----
-72
onlyif mysql # DIV for integer division:
query I rowsort label-5823
SELECT ALL col1 DIV 75 * - col1 AS col2 FROM tab2 cor0
----
-77
0
0
skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL col1 / 75 * - col1 AS col2 FROM tab2 cor0
----
-77
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + 88 col0 FROM tab1 AS cor0
----
-1232
-4136
-440
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( - - 39 )
----
query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 94 * ( + 84 ) * 62 + 90 col2 FROM tab1 cor0
----
489642
query II rowsort
SELECT + col1 * - + col2 * - + col1, + col0 FROM tab0
----
308367
15
4410
87
99
97
onlyif mysql # aggregate syntax:
query II rowsort label-5829
SELECT ALL COUNT( * ) AS col0, ( + COUNT( * ) ) * - ( MAX( + col1 ) ) FROM tab2
----
3
-231
skipif mysql # not compatible
query II rowsort label-5829
SELECT ALL COUNT ( * ) AS col0, ( + COUNT ( * ) ) * - ( MAX ( + col1 ) ) FROM tab2
----
3
-231
query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - 89 IS NULL
----
-46
-64
-75
onlyif mysql # aggregate syntax:
query II rowsort label-5831
SELECT DISTINCT 79 AS col2, + COUNT( * ) AS col0 FROM tab1
----
79
3
skipif mysql # not compatible
query II rowsort label-5831
SELECT DISTINCT 79 AS col2, + COUNT ( * ) AS col0 FROM tab1
----
79
3
onlyif mysql # aggregate syntax:
query I rowsort label-5832
SELECT DISTINCT SUM( col0 ) AS col1 FROM tab0
----
199
skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT SUM ( col0 ) AS col1 FROM tab0
----
199
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5833
SELECT + COUNT( * ) / - CAST( NULL AS SIGNED ) + - 24 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5833
SELECT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) + - 24 AS col1 FROM tab0 AS cor0
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= 94
----
query I rowsort
SELECT ( + + col2 ) FROM tab2 AS cor0
----
23
40
58
onlyif mysql # aggregate syntax:
query I rowsort label-5836
SELECT DISTINCT - - SUM( ALL - 97 ) AS col1 FROM tab0 AS cor0
----
-291
skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT - - SUM ( ALL - 97 ) AS col1 FROM tab0 AS cor0
----
-291
onlyif mysql # aggregate syntax:
query I rowsort label-5837
SELECT SUM( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
66
skipif mysql # not compatible
query I rowsort label-5837
SELECT SUM ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
66
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 / col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-5839
SELECT 38 * MIN( DISTINCT + col1 ) + - MAX( DISTINCT ( + col0 ) ) col0 FROM tab0 cor0
----
-59
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5839
SELECT 38 * MIN ( DISTINCT + col1 ) + - MAX ( DISTINCT ( + col0 ) ) col0 FROM tab0 cor0
----
-59
onlyif mysql # DIV for integer division:
query II rowsort label-5840
SELECT DISTINCT + 74 DIV + 68, - 68 AS col1 FROM tab1
----
1
-68
skipif mysql # not compatible
query II rowsort label-5840
SELECT DISTINCT + 74 / + 68, - 68 AS col1 FROM tab1
----
1
-68
onlyif mysql # aggregate syntax:
query I rowsort label-5841
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3
skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-5842
SELECT ( - COUNT( * ) ) FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-5842
SELECT ( - COUNT ( * ) ) FROM tab1
----
-3
query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col2 * col1 - - - 58 IS NOT NULL
----
query I rowsort
SELECT + col1 + - 9 + + + col1 AS col2 FROM tab2 AS cor0
----
125
145
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 93 col2, col1 FROM tab1 AS cor0
----
93
14
93
47
93
5
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5846
SELECT - - 7 * - COUNT( * ) DIV - ( - SUM( col0 ) ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5846
SELECT - - 7 * - COUNT ( * ) / - ( - SUM ( col0 ) ) FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 AS cor0 WHERE ( NOT + col1 * 86 <> + col0 * + 2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-5848
SELECT MAX( ALL + 8 ) AS col2 FROM tab1 AS cor0
----
8
skipif mysql # not compatible
query I rowsort label-5848
SELECT MAX ( ALL + 8 ) AS col2 FROM tab1 AS cor0
----
8
onlyif mysql # aggregate syntax:
query I rowsort label-5849
SELECT ALL + 53 - - - COUNT( * ) FROM tab0 AS cor0
----
50
skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL + 53 - - - COUNT ( * ) FROM tab0 AS cor0
----
50
query I rowsort
SELECT 81 - - 9 AS col0 FROM tab1 AS cor0
----
90
90
90
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-5851
SELECT ( + CAST( NULL AS DECIMAL ) ) - 34 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5851
SELECT ( + CAST ( NULL AS REAL ) ) - 34 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col0 AS col0 FROM tab1 AS cor0 WHERE ( NOT + 92 < - 0 )
----
-51
-85
-91
onlyif mysql # aggregate syntax:
query I rowsort label-5853
SELECT - 35 - - COUNT( * ) + + + 10 FROM tab1 AS cor0
----
-22
skipif mysql # not compatible
query I rowsort label-5853
SELECT - 35 - - COUNT ( * ) + + + 10 FROM tab1 AS cor0
----
-22
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 15 < NULL
----
query I rowsort
SELECT col1 - 11 FROM tab1 AS cor0
----
-6
3
36
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> + ( - col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-5857
SELECT DISTINCT + MIN( + col2 ) AS col2 FROM tab0
----
10
skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT + MIN ( + col2 ) AS col2 FROM tab0
----
10
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 / - col2 BETWEEN ( - col2 + 40 * - - col1 * + - 57 + - + col1 ) AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5859
SELECT MIN( ALL ( + col0 ) ) col2 FROM tab1
----
51
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5859
SELECT MIN ( ALL ( + col0 ) ) col2 FROM tab1
----
51
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-5860
SELECT - col2 DIV + 66 * - CAST( + + 98 AS SIGNED ) col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5860
SELECT - col2 / + 66 * - CAST ( + + 98 AS INTEGER ) col2 FROM tab2
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-5861
SELECT + COUNT( DISTINCT - 12 ) AS col1 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-5861
SELECT + COUNT ( DISTINCT - 12 ) AS col1 FROM tab0
----
1
onlyif mysql # aggregate syntax:
query I rowsort label-5862
SELECT SUM( 76 ) AS col2 FROM tab2
----
228
skipif mysql # not compatible
query I rowsort label-5862
SELECT SUM ( 76 ) AS col2 FROM tab2
----
228
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col1 <= + ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT 17 FROM tab1 AS cor0 WHERE NOT NULL >= + col0
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * col0 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5866
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18
skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18
onlyif mysql # aggregate syntax:
query I rowsort label-5867
SELECT - + COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5867
SELECT - + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
onlyif mysql # aggregate syntax:
query I rowsort label-5868
SELECT + + MAX( 38 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
38
skipif mysql # not compatible
query I rowsort label-5868
SELECT + + MAX ( 38 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
38
query I rowsort
SELECT ALL ( - col1 ) * - ( + - col2 ) FROM tab1
----
-1344
-295
-3196
onlyif mysql # aggregate syntax:
query I rowsort label-5870
SELECT DISTINCT 13 * + - ( COUNT( * ) ) AS col1 FROM tab1
----
-39
skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT 13 * + - ( COUNT ( * ) ) AS col1 FROM tab1
----
-39
query I rowsort
SELECT 75 FROM tab1 cor0 WHERE NOT col0 < NULL
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 14 NOT BETWEEN + 90 AND NULL
----
query I rowsort
SELECT - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 / - col2 ) IN ( ( - col0 ) + + col1, col0 / + - 71 * + col1 + + col2 )
----
-14
-47
-5
query I rowsort
SELECT DISTINCT + col1 + - - col1 AS col1 FROM tab0 cor0
----
162
2
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 4 col0 FROM tab0 AS cor0 WHERE NULL <= 3
----
query I rowsort
SELECT ALL + ( + col2 ) + + 99 + + + 44 AS col1 FROM tab2
----
166
183
201
query I rowsort
SELECT ALL + col1 + + + 70 * - + col0 AS col1 FROM tab2
----
-3169
-4403
-5183
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5878
SELECT DISTINCT COUNT( * ) + + MIN( DISTINCT + col1 ) + + + COUNT( * ) DIV + MAX( col2 ) AS col1 FROM tab1
----
8
skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT COUNT ( * ) + + MIN ( DISTINCT + col1 ) + + + COUNT ( * ) / + MAX ( col2 ) AS col1 FROM tab1
----
8
onlyif mysql # DIV for integer division:
query II rowsort label-5879
SELECT 87 DIV - col0 + - - col1, ( + col1 ) AS col1 FROM tab1
----
13
14
4
5
47
47
skipif mysql # not compatible
query II rowsort label-5879
SELECT 87 / - col0 + - - col1, ( + col1 ) AS col1 FROM tab1
----
13
14
4
5
47
47
onlyif mysql # aggregate syntax:
query II rowsort label-5880
SELECT ALL COUNT( * ) AS col2, + MAX( - + col2 ) FROM tab0
----
3
-10
skipif mysql # not compatible
query II rowsort label-5880
SELECT ALL COUNT ( * ) AS col2, + MAX ( - + col2 ) FROM tab0
----
3
-10
query I rowsort
SELECT - ( + - col0 ) AS col0 FROM tab0
----
15
87
97
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-5882
SELECT 84, CAST( NULL AS SIGNED ) - - 71 * + CAST( col2 AS SIGNED ) * - 45 AS col1 FROM tab2
----
84
NULL
84
NULL
84
NULL
skipif mysql # not compatible
query II rowsort label-5882
SELECT 84, CAST ( NULL AS INTEGER ) - - 71 * + CAST ( col2 AS INTEGER ) * - 45 AS col1 FROM tab2
----
84
NULL
84
NULL
84
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5883
SELECT DISTINCT + SUM( DISTINCT - ( - col0 ) ) DIV - 37 + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-2
skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT + SUM ( DISTINCT - ( - col0 ) ) / - 37 + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-2
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5884
SELECT ALL - COUNT( * ) DIV + - COUNT( * ) col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5884
SELECT ALL - COUNT ( * ) / + - COUNT ( * ) col0 FROM tab1 AS cor0
----
1
query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 0 * + col1 AND col0 * - col2 - - col0
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 18 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-5887
SELECT DISTINCT - MIN( - col2 ) AS col1 FROM tab0 AS cor0
----
99
skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT - MIN ( - col2 ) AS col1 FROM tab0 AS cor0
----
99
onlyif mysql # aggregate syntax:
query I rowsort label-5888
SELECT DISTINCT MAX( DISTINCT - + col0 ) AS col1 FROM tab1 cor0
----
-51
skipif mysql # not compatible
query I rowsort label-5888
SELECT DISTINCT MAX ( DISTINCT - + col0 ) AS col1 FROM tab1 cor0
----
-51
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + col0 )
----
query I rowsort
SELECT ALL col1 + col2 + - col0 FROM tab0
----
-56
113
3
query I rowsort
SELECT col1 + 67 - col1 FROM tab1
----
67
67
67
query I rowsort
SELECT DISTINCT 90 * ( + - col2 ) + 51 - - ( - 16 ) * - col0 AS col2 FROM tab1
----
-3899
-4613
-7773
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5893
SELECT ALL + + CAST( col2 AS SIGNED ) - 97 AS col0 FROM tab2 AS cor0
----
-39
-57
-74
skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL + + CAST ( col2 AS INTEGER ) - 97 AS col0 FROM tab2 AS cor0
----
-39
-57
-74
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 26 IS NULL
----
query I rowsort
SELECT ALL + - col0 - - col0 * 54 FROM tab1 AS cor0
----
2703
4505
4823
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 = NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5897
SELECT DISTINCT 29 - - COUNT( 98 ) FROM tab0 AS cor0
----
32
skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT 29 - - COUNT ( 98 ) FROM tab0 AS cor0
----
32
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-5898
SELECT + 9 FROM tab1 AS cor0 WHERE NOT + col1 + + col0 - + col0 * + CAST( NULL AS DECIMAL ) * 62 IS NOT NULL
----
9
9
9
skipif mysql # not compatible
query I rowsort label-5898
SELECT + 9 FROM tab1 AS cor0 WHERE NOT + col1 + + col0 - + col0 * + CAST ( NULL AS REAL ) * 62 IS NOT NULL
----
9
9
9
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5899
SELECT - + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5899
SELECT - + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0
----
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-5900
SELECT ALL - COUNT( * ) AS col1, ( + SUM( DISTINCT - col1 ) ) * - + 61 FROM tab1
----
-3
4026
skipif mysql # not compatible
query II rowsort label-5900
SELECT ALL - COUNT ( * ) AS col1, ( + SUM ( DISTINCT - col1 ) ) * - + 61 FROM tab1
----
-3
4026
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5901
SELECT + 51 DIV COUNT( * ) col1 FROM tab2
----
17
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5901
SELECT + 51 / COUNT ( * ) col1 FROM tab2
----
17
onlyif mysql # aggregate syntax:
query II rowsort label-5902
SELECT DISTINCT + COUNT( * ) AS col0, + 24 FROM tab2
----
3
24
skipif mysql # not compatible
query II rowsort label-5902
SELECT DISTINCT + COUNT ( * ) AS col0, + 24 FROM tab2
----
3
24
onlyif mysql # aggregate syntax:
query I rowsort label-5903
SELECT - COUNT( * ) * + - 63 FROM tab1
----
189
skipif mysql # not compatible
query I rowsort label-5903
SELECT - COUNT ( * ) * + - 63 FROM tab1
----
189
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > 10
----
onlyif mysql # aggregate syntax:
query I rowsort label-5905
SELECT DISTINCT ( + - COUNT( DISTINCT col1 ) ) FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT ( + - COUNT ( DISTINCT col1 ) ) FROM tab1 AS cor0
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 92 col0 FROM tab2 AS cor0
----
92
92
92
query I rowsort
SELECT - - 94 AS col2 FROM tab1 cor0
----
94
94
94
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + ( 92 ) * - - 70 + - col0 + - + col1 * + col1 * 30
----
query I rowsort
SELECT ALL - ( - 70 ) * col2 AS col2 FROM tab0
----
3290
6930
700
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5910
SELECT ALL + MAX( 86 ) DIV + 94 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL + MAX ( 86 ) / + 94 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - 97 + col0 * 82 FROM tab2 cor0
----
3675
5151
6053
onlyif mysql # aggregate syntax:
query I rowsort label-5912
SELECT MAX( + 22 ) AS col2 FROM tab0 AS cor0
----
22
skipif mysql # not compatible
query I rowsort label-5912
SELECT MAX ( + 22 ) AS col2 FROM tab0 AS cor0
----
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col0 + - col1 col2 FROM tab0 AS cor0
----
1
96
21
66
81
-66
onlyif mysql # DIV for integer division:
query I rowsort label-5914
SELECT DISTINCT - col2 DIV + 28 + - 84 FROM tab1 AS cor0
----
-86
-87
skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT - col2 / + 28 + - 84 FROM tab1 AS cor0
----
-86
-87
query I rowsort
SELECT DISTINCT + AVG ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 * - col2 / + + col1 IS NOT NULL
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5916
SELECT + - SUM( + - col0 ) FROM tab0 AS cor0
----
199
skipif mysql # not compatible
query I rowsort label-5916
SELECT + - SUM ( + - col0 ) FROM tab0 AS cor0
----
199
query II rowsort
SELECT - + 85 AS col0, col0 AS col2 FROM tab0 AS cor0
----
-85
15
-85
87
-85
97
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query II rowsort label-5918
SELECT - CAST( NULL AS DECIMAL ), - ( + CAST( NULL AS SIGNED ) ) - + 81 - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL
skipif mysql # not compatible
query II rowsort label-5918
SELECT - CAST ( NULL AS REAL ), - ( + CAST ( NULL AS INTEGER ) ) - + 81 - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-5919
SELECT ALL - 35 DIV col2 DIV - + col1 + + col2 * - col1 FROM tab2
----
-1173
-3080
-3886
skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL - 35 / col2 / - + col1 + + col2 * - col1 FROM tab2
----
-1173
-3080
-3886
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query II rowsort label-5920
SELECT 89 * - COUNT( * ) AS col2, CAST( NULL AS DECIMAL ) * 36 FROM tab2 AS cor0
----
-267
NULL
skipif mysql # not compatible
query II rowsort label-5920
SELECT 89 * - COUNT ( * ) AS col2, CAST ( NULL AS REAL ) * 36 FROM tab2 AS cor0
----
-267
NULL
query I rowsort
SELECT + 68 + + col0 AS col1 FROM tab0 WHERE NULL BETWEEN - col2 AND NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5922
SELECT - + CAST( + + 66 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a
skipif mysql # not compatible
query I rowsort label-5922
SELECT - + CAST ( + + 66 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a
onlyif mysql # DIV for integer division:
query I rowsort label-5923
SELECT + - ( - col2 ) - + col0 + + col1 DIV - col2 FROM tab1 AS cor0
----
-23
-26
45
skipif mysql # not compatible
query I rowsort label-5923
SELECT + - ( - col2 ) - + col0 + + col1 / - col2 FROM tab1 AS cor0
----
-23
-26
45
query I rowsort
SELECT + col2 * col1 * - col1 * - ( - - col2 ) FROM tab0 AS cor0
----
14493249
44100
9801
onlyif mysql # aggregate syntax:
query I rowsort label-5925
SELECT - - COUNT( * ) col2 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5925
SELECT - - COUNT ( * ) col2 FROM tab2 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-5926
SELECT + + COUNT( DISTINCT + col0 ) col1 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5926
SELECT + + COUNT ( DISTINCT + col0 ) col1 FROM tab2 AS cor0
----
3
onlyif mysql # DIV for integer division:
query I rowsort label-5927
SELECT col1 DIV 62 DIV + - col1 * + col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5927
SELECT col1 / 62 / + - col1 * + col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
0
0
0
query II rowsort
SELECT DISTINCT + col1 AS col0, 75 FROM tab1 AS cor0
----
14
75
47
75
5
75
onlyif mysql # aggregate syntax:
query I rowsort label-5929
SELECT ALL + + SUM( DISTINCT - 42 ) AS col2 FROM tab1 AS cor0
----
-42
skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL + + SUM ( DISTINCT - 42 ) AS col2 FROM tab1 AS cor0
----
-42
query I rowsort
SELECT + + 80 * ( - col2 ) * col1 AS col1 FROM tab2 AS cor0
----
-246400
-310880
-93840
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col2 / - col2 NOT BETWEEN - col0 AND + 65 + + + col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-5932
SELECT - - MAX( DISTINCT - col0 ) FROM tab0 AS cor0
----
-15
skipif mysql # not compatible
query I rowsort label-5932
SELECT - - MAX ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-15
query II rowsort
SELECT ALL + col1, + 89 + + + col0 AS col0 FROM tab0 AS cor0
----
1
186
21
176
81
104
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * 48 BETWEEN - + col1 - - col0 AND NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + 86 * col0 < + - col0 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 = col1 * - 90
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * + col2 IS NOT NULL
----
query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99
query II rowsort
SELECT col0 * 47, + 2 AS col2 FROM tab2
----
2162
2
3008
2
3525
2
query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE + col0 * - - 69 * - col0 * + col2 IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 col1 FROM tab0
----
62
62
62
onlyif mysql # aggregate syntax:
query I rowsort label-5942
SELECT DISTINCT MAX( DISTINCT - col1 ) AS col0 FROM tab2
----
-51
skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT MAX ( DISTINCT - col1 ) AS col0 FROM tab2
----
-51
onlyif mysql # aggregate syntax:
query I rowsort label-5943
SELECT - 31 * - COUNT( * ) FROM tab2
----
93
skipif mysql # not compatible
query I rowsort label-5943
SELECT - 31 * - COUNT ( * ) FROM tab2
----
93
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5944
SELECT + + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5944
SELECT + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query II rowsort
SELECT + - col1 + - 16 + col0 * col0 * - col2 AS col0, - col0 AS col0 FROM tab1 AS cor0
----
-249726
-51
-426296
-85
-563171
-91
onlyif mysql # aggregate syntax:
query II rowsort label-5946
SELECT ALL + MAX( - - col1 ) + - 19 AS col2, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
58
3
skipif mysql # not compatible
query II rowsort label-5946
SELECT ALL + MAX ( - - col1 ) + - 19 AS col2, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
58
3
query II rowsort
SELECT DISTINCT - col1 AS col2, col0 + + 77 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
query I rowsort
SELECT DISTINCT + 71 + - - col0 FROM tab2
----
117
135
146
query I rowsort
SELECT col1 + 74 - - col1 FROM tab1
----
102
168
84
query III rowsort
SELECT * FROM tab2 WHERE - 1 IS NULL
----
query I rowsort
SELECT 17 + + col2 + + - col2 - - + 32 AS col0 FROM tab2 WHERE ( NULL IS NOT NULL )
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-5952
SELECT 70 AS col2, + CAST( - - col2 AS SIGNED ) * + 34 AS col1 FROM tab0
----
70
1598
70
3366
70
340
skipif mysql # not compatible
query II rowsort label-5952
SELECT 70 AS col2, + CAST ( - - col2 AS INTEGER ) * + 34 AS col1 FROM tab0
----
70
1598
70
3366
70
340
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-5953
SELECT col0 AS col0, + CAST( 83 AS SIGNED ) FROM tab1
----
51
83
85
83
91
83
skipif mysql # not compatible
query II rowsort label-5953
SELECT col0 AS col0, + CAST ( 83 AS INTEGER ) FROM tab1
----
51
83
85
83
91
83
query II rowsort
SELECT DISTINCT col2 - + 65, ( + col1 ) AS col2 FROM tab1
----
-6
5
3
47
31
14
query II rowsort
SELECT col2, col2 FROM tab0
----
10
10
47
47
99
99
query I rowsort
SELECT ALL 30 - - 8 AS col0 FROM tab0 AS cor0
----
38
38
38
query I rowsort
SELECT + col0 * + col0 - + + 38 FROM tab2 AS cor0 WHERE - col2 < col1 * + - col0 + + col2
----
query I rowsort
SELECT + col0 - + - col1 AS col2 FROM tab2 AS cor0
----
141
142
97
query I rowsort
SELECT col0 + - 84 + col2 AS col2 FROM tab2
----
-15
20
49
onlyif mysql # aggregate syntax:
query I rowsort label-5960
SELECT ALL MAX( - + col1 ) + + - 61 + + - 41 AS col0 FROM tab1
----
-107
skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL MAX ( - + col1 ) + + - 61 + + - 41 AS col0 FROM tab1
----
-107
onlyif mysql # aggregate syntax:
query I rowsort label-5961
SELECT + + COUNT( * ) col1 FROM tab2 cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5961
SELECT + + COUNT ( * ) col1 FROM tab2 cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-5962
SELECT ALL COUNT( * ) * 92 FROM tab2 AS cor0
----
276
skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL COUNT ( * ) * 92 FROM tab2 AS cor0
----
276
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query I rowsort label-5963
SELECT DISTINCT - CAST( + CAST( col2 AS DECIMAL ) AS SIGNED ) col1 FROM tab0 AS cor0
----
-10
-47
-99
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5963
SELECT DISTINCT - CAST ( + CAST ( col2 AS REAL ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-10
-47
-99
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 87 / - col1 IS NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5966
SELECT COUNT( * ) DIV - - 43 AS col0 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-5966
SELECT COUNT ( * ) / - - 43 AS col0 FROM tab2
----
0
query I rowsort
SELECT DISTINCT + - 50 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5968
SELECT ALL 8 * COUNT( * ) AS col2 FROM tab0
----
24
skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL 8 * COUNT ( * ) AS col2 FROM tab0
----
24
onlyif mysql # DIV for integer division:
query II rowsort label-5969
SELECT ALL + 34 AS col2, + col1 DIV - + 22 FROM tab2
----
34
-2
34
-3
34
-3
skipif mysql # not compatible
query II rowsort label-5969
SELECT ALL + 34 AS col2, + col1 / - + 22 FROM tab2
----
34
-2
34
-3
34
-3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5970
SELECT CAST( NULL AS SIGNED ) / - col2 * - CAST( + + col0 AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5970
SELECT CAST ( NULL AS INTEGER ) / - col2 * - CAST ( + + col0 AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5971
SELECT DISTINCT COUNT( * ) DIV - + COUNT( * ) FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-5971
SELECT DISTINCT COUNT ( * ) / - + COUNT ( * ) FROM tab2
----
-1
onlyif mysql # DIV for integer division:
query I rowsort label-5972
SELECT col0 * + 70 * - + ( - col0 ) DIV col0 AS col1 FROM tab1
----
3570
5950
6370
skipif mysql # not compatible
query I rowsort label-5972
SELECT col0 * + 70 * - + ( - col0 ) / col0 AS col1 FROM tab1
----
3570
5950
6370
query I rowsort
SELECT - col2 * - 74 FROM tab2 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT + - ( + + col0 ) FROM tab0 AS cor0
----
-15
-87
-97
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5975
SELECT DISTINCT + AVG ( col1 ) FROM tab0 AS cor0 WHERE CAST( + 41 AS SIGNED ) IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT + AVG ( col1 ) FROM tab0 AS cor0 WHERE CAST ( + 41 AS INTEGER ) IS NULL
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5976
SELECT ALL MAX( ALL + 46 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL MAX ( ALL + 46 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 4 * - col1 + - - col1 NOT IN ( 59, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT - 9 + col1 AS col2 FROM tab1
----
-4
38
5
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5979
SELECT DISTINCT * FROM tab1 WHERE ( NOT - ( CAST( NULL AS SIGNED ) ) NOT BETWEEN col2 * - col1 AND - 65 )
----
skipif mysql # not compatible
query III rowsort label-5979
SELECT DISTINCT * FROM tab1 WHERE ( NOT - ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN col2 * - col1 AND - 65 )
----
query I rowsort
SELECT + col1 + + col2 + - col1 AS col1 FROM tab1
----
59
68
96
query I rowsort
SELECT DISTINCT - - col1 FROM tab0 AS cor0 WHERE NOT - col0 <= - col2
----
1
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 AS cor0 WHERE col0 <> NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-5983
SELECT - - col2 DIV - col0 * + col2 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5983
SELECT - - col2 / - col0 * + col2 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-5984
SELECT ALL + COUNT( ALL + col2 ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL + COUNT ( ALL + col2 ) FROM tab1 AS cor0
----
3
onlyif mysql # DIV for integer division:
query I rowsort label-5985
SELECT - 61 DIV + + 88 + + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58
skipif mysql # not compatible
query I rowsort label-5985
SELECT - 61 / + + 88 + + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58
onlyif mysql # aggregate syntax:
query I rowsort label-5986
SELECT COUNT( 47 ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-5986
SELECT COUNT ( 47 ) FROM tab0 AS cor0
----
3
query I rowsort
SELECT 0 - col0 FROM tab0
----
-15
-87
-97
onlyif mysql # aggregate syntax:
query I rowsort label-5988
SELECT DISTINCT MIN( ALL ( + - col1 ) ) FROM tab0
----
-81
skipif mysql # not compatible
query I rowsort label-5988
SELECT DISTINCT MIN ( ALL ( + - col1 ) ) FROM tab0
----
-81
onlyif mysql # aggregate syntax:
query I rowsort label-5989
SELECT DISTINCT COUNT( * ) + - 15 AS col1 FROM tab0
----
-12
skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT COUNT ( * ) + - 15 AS col1 FROM tab0
----
-12
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-5990
SELECT ALL CAST( NULL AS DECIMAL ) + COUNT( - - col2 ) AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL CAST ( NULL AS REAL ) + COUNT ( - - col2 ) AS col0 FROM tab0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5991
SELECT DISTINCT - SUM( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0
----
156
skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT - SUM ( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0
----
156
query I rowsort
SELECT DISTINCT + - col2 - - + 74 + + col1 FROM tab1 AS cor0
----
-8
20
53
onlyif mysql # aggregate syntax:
query I rowsort label-5993
SELECT ALL + - MIN( DISTINCT - 28 ) col0 FROM tab2 AS cor0
----
28
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5993
SELECT ALL + - MIN ( DISTINCT - 28 ) col0 FROM tab2 AS cor0
----
28
query I rowsort
SELECT ( - + col1 ) FROM tab1 AS cor0
----
-14
-47
-5
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 37 + col0 / + col2 NOT BETWEEN + 40 + + col1 AND NULL
----
query I rowsort
SELECT ALL - 45 AS col1 FROM tab0 WHERE NULL IS NULL
----
-45
-45
-45
query I rowsort
SELECT - 14 * - col1 AS col1 FROM tab1
----
196
658
70
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 / - + col1 * - 91 >= NULL
----
query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE ( - ( + - col0 ) ) IS NOT NULL
----
-46
-64
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - col2 * col2 * + col2 * + col0 col0 FROM tab2 AS cor0
----
-12872686
-163840000
-848737200
onlyif mysql # aggregate syntax:
query I rowsort label-6001
SELECT - 23 * - COUNT( col2 ) FROM tab0 AS cor0
----
69
skipif mysql # not compatible
query I rowsort label-6001
SELECT - 23 * - COUNT ( col2 ) FROM tab0 AS cor0
----
69
query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE col1 * - 85 IS NOT NULL
----
1
21
81
query I rowsort
SELECT ALL + 86 * - + col0 AS col1 FROM tab0 cor0
----
-1290
-7482
-8342
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 32 IS NOT NULL
----
query I rowsort
SELECT - 5 * 16 FROM tab1
----
-80
-80
-80
query I rowsort
SELECT ALL + 21 * + 70 * - col1 FROM tab2
----
-113190
-74970
-98490
query I rowsort
SELECT - col1 * - 37 AS col1 FROM tab2
----
1887
2479
2849
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col1 ) col0, + col1 FROM tab0
----
-1
1
-21
21
-81
81
query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col1 )
----
query I rowsort
SELECT - col1 * + 94 FROM tab1 AS cor0
----
-1316
-4418
-470
query I rowsort
SELECT + ( + + col1 ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
1
21
81
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> 95 + - col0
----
query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT 22 IS NOT NULL )
----
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 < col1
----
query I rowsort
SELECT - 23 + - + col0 AS col1 FROM tab2 AS cor0
----
-69
-87
-98
onlyif mysql # aggregate syntax:
query I rowsort label-6016
SELECT + MIN( ALL 18 ) * + + 38 * - + 40 FROM tab2 AS cor0
----
-27360
skipif mysql # not compatible
query I rowsort label-6016
SELECT + MIN ( ALL 18 ) * + + 38 * - + 40 FROM tab2 AS cor0
----
-27360
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6017
SELECT + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-6017
SELECT + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6018
SELECT ALL - ( + COUNT( * ) ) AS col1 FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL - ( + COUNT ( * ) ) AS col1 FROM tab1
----
-3
query I rowsort
SELECT DISTINCT col0 + - - 33 FROM tab2
----
108
79
97
query I rowsort
SELECT ALL 59 * + col2 * col0 * - 89 + - 90 - + col2 FROM tab0
----
-3702092
-4568470
-50425542
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6021
SELECT ALL CAST( NULL AS SIGNED ) - 75 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL CAST ( NULL AS INTEGER ) - 75 AS col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6022
SELECT COUNT( * ) * 35 * + COUNT( * ) AS col0 FROM tab1
----
315
skipif mysql # not compatible
query I rowsort label-6022
SELECT COUNT ( * ) * 35 * + COUNT ( * ) AS col0 FROM tab1
----
315
query I rowsort
SELECT ALL - ( - - col0 ) + + col2 AS col0 FROM tab1
----
-23
-26
45
query III rowsort
SELECT * FROM tab1 WHERE + col0 <= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6025
SELECT + MIN( DISTINCT + + ( 27 ) ) AS col2 FROM tab2
----
27
skipif mysql # not compatible
query I rowsort label-6025
SELECT + MIN ( DISTINCT + + ( 27 ) ) AS col2 FROM tab2
----
27
query I rowsort
SELECT - ( + ( 17 ) ) FROM tab1 WHERE + 48 > - - col1 * + col2
----
query I rowsort
SELECT - col0 - - col1 AS col2 FROM tab0
----
-66
-96
66
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN - 16 AND + col2 * - 75 * + ( - 56 )
----
query I rowsort
SELECT + 9 AS col1 FROM tab0 cor0 WHERE NOT 27 + + col2 IS NOT NULL
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND + col2
----
query I rowsort
SELECT DISTINCT + 62 * - col1 AS col0 FROM tab0 AS cor0
----
-1302
-5022
-62
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6032
SELECT DISTINCT CAST( ( + 31 ) AS SIGNED ) FROM tab2 AS cor0
----
31
skipif mysql # not compatible
query I rowsort label-6032
SELECT DISTINCT CAST ( ( + 31 ) AS INTEGER ) FROM tab2 AS cor0
----
31
onlyif mysql # aggregate syntax:
query I rowsort label-6033
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col0 IN ( + col1, - 70, + + 18 )
----
-3
skipif mysql # not compatible
query I rowsort label-6033
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col0 IN ( + col1, - 70, + + 18 )
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-6034
SELECT DISTINCT + COUNT( * ) * + - 22 FROM tab2 AS cor0
----
-66
skipif mysql # not compatible
query I rowsort label-6034
SELECT DISTINCT + COUNT ( * ) * + - 22 FROM tab2 AS cor0
----
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6036
SELECT + COUNT( col2 ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-6036
SELECT + COUNT ( col2 ) FROM tab2
----
3
query II rowsort
SELECT + 73, col1 AS col0 FROM tab1
----
73
14
73
47
73
5
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + 87 > - + 26
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 60 col2, 43 FROM tab0
----
-60
43
-60
43
-60
43
query II rowsort
SELECT DISTINCT + col0 AS col2, 99 FROM tab0 WHERE NOT + - col2 * - col2 + - + col0 IS NULL
----
15
99
87
99
97
99
onlyif mysql # aggregate syntax:
query I rowsort label-6041
SELECT DISTINCT COUNT( * ) * + 69 AS col1 FROM tab2 cor0
----
207
skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT COUNT ( * ) * + 69 AS col1 FROM tab2 cor0
----
207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - + col0 ) col1 FROM tab0 AS cor0
----
-15
-87
-97
onlyif mysql # DIV for integer division:
query I rowsort label-6043
SELECT ALL - col1 + - + col1 + + col1 DIV - col1 FROM tab0 AS cor0
----
-163
-3
-43
skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL - col1 + - + col1 + + col1 / - col1 FROM tab0 AS cor0
----
-163
-3
-43
onlyif mysql # DIV for integer division:
query I rowsort label-6044
SELECT ALL + 8 DIV + + col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL + 8 / + + col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 + + - 14 * - 17 + + 18 * + + col0 FROM tab1 AS cor0
----
1252
1827
1944
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6046
SELECT DISTINCT - - MAX( 39 ) + + + 26 DIV 58 FROM tab2 AS cor0
----
39
skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT - - MAX ( 39 ) + + + 26 / 58 FROM tab2 AS cor0
----
39
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6047
SELECT DISTINCT - COUNT( CAST( - + col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-6047
SELECT DISTINCT - COUNT ( CAST ( - + col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-3
query III rowsort
SELECT * FROM tab1 WHERE + col2 = NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6049
SELECT DISTINCT * FROM tab1 WHERE - CAST( + col0 AS SIGNED ) IS NULL
----
skipif mysql # not compatible
query III rowsort label-6049
SELECT DISTINCT * FROM tab1 WHERE - CAST ( + col0 AS INTEGER ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6050
SELECT DISTINCT + - SUM( DISTINCT 86 ) AS col2 FROM tab2 AS cor0
----
-86
skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT + - SUM ( DISTINCT 86 ) AS col2 FROM tab2 AS cor0
----
-86
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6051
SELECT + COUNT( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6051
SELECT + COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0
query II rowsort
SELECT + 87 * + 64 AS col0, col2 FROM tab1 AS cor0
----
5568
59
5568
68
5568
96
onlyif mysql # DIV for integer division:
query I rowsort label-6053
SELECT ALL + col2 DIV - col0 + 23 FROM tab1 AS cor0
----
22
23
23
skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL + col2 / - col0 + 23 FROM tab1 AS cor0
----
22
23
23
onlyif mysql # aggregate syntax:
query I rowsort label-6054
SELECT + + COUNT( * ) - + - 55 FROM tab1 AS cor0
----
58
skipif mysql # not compatible
query I rowsort label-6054
SELECT + + COUNT ( * ) - + - 55 FROM tab1 AS cor0
----
58
onlyif mysql # DIV for integer division:
query I rowsort label-6055
SELECT ALL + ( - col0 ) DIV - - 32 AS col2 FROM tab1 AS cor0
----
-1
-2
-2
skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL + ( - col0 ) / - - 32 AS col2 FROM tab1 AS cor0
----
-1
-2
-2
onlyif mysql # aggregate syntax:
query I rowsort label-6056
SELECT + MIN( ALL + col2 ) + - 83 FROM tab2
----
-60
skipif mysql # not compatible
query I rowsort label-6056
SELECT + MIN ( ALL + col2 ) + - 83 FROM tab2
----
-60
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 > NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6058
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1, tab1 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1, tab1 AS cor0
----
9
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6059
SELECT ALL col1 + - CAST( NULL AS SIGNED ) * + 61 * - 93 * + - 68 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) * + 61 * - 93 * + - 68 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col0 FROM tab0 WHERE NULL NOT IN ( - - col0 * + + 9, + 85 * + col2 )
----
query II rowsort
SELECT ALL - 81 AS col0, 70 FROM tab1
----
-81
70
-81
70
-81
70
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6062
SELECT MIN( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6062
SELECT MIN ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL NOT BETWEEN col2 AND - - 27 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-6064
SELECT + COUNT( * ) * - - 50 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6064
SELECT + COUNT ( * ) * - - 50 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0
query II rowsort
SELECT DISTINCT - col1, col1 FROM tab2 cor0
----
-51
51
-67
67
-77
77
onlyif mysql # aggregate syntax:
query I rowsort label-6066
SELECT ALL ( + - COUNT( * ) ) col0 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6066
SELECT ALL ( + - COUNT ( * ) ) col0 FROM tab0 AS cor0
----
-3
query III rowsort
SELECT * FROM tab1 WHERE ( 61 / + 83 ) IS NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-6069
SELECT DISTINCT MIN( ALL 92 ) col2 FROM tab0
----
92
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6069
SELECT DISTINCT MIN ( ALL 92 ) col2 FROM tab0
----
92
query I rowsort
SELECT DISTINCT col0 + col2 * + 33 AS col2 FROM tab0
----
1566
3364
417
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> + col1
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - 89 - col1 * - col2 FROM tab2
----
1084
2991
3797
onlyif mysql # aggregate syntax:
query I rowsort label-6074
SELECT COUNT( + col1 ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-6074
SELECT COUNT ( + col1 ) FROM tab0
----
3
query I rowsort
SELECT col2 * + col1 + - 1 FROM tab2 WHERE NOT ( NULL ) = ( NULL )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6076
SELECT DISTINCT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6077
SELECT COUNT( DISTINCT + col0 ) AS col1 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-6077
SELECT COUNT ( DISTINCT + col0 ) AS col1 FROM tab0
----
3
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 * - col2 ) IN ( ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-6079
SELECT COUNT( + 5 ) FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-6079
SELECT COUNT ( + 5 ) FROM tab1
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6080
SELECT CAST( - 66 AS SIGNED ) FROM tab2
----
-66
-66
-66
skipif mysql # not compatible
query I rowsort label-6080
SELECT CAST ( - 66 AS INTEGER ) FROM tab2
----
-66
-66
-66
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6081
SELECT ALL - CAST( col1 AS SIGNED ) * - col0 AS col1 FROM tab2 WHERE NOT + 9 IS NULL
----
2346
4928
5025
skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL - CAST ( col1 AS INTEGER ) * - col0 AS col1 FROM tab2 WHERE NOT + 9 IS NULL
----
2346
4928
5025
onlyif mysql # aggregate syntax:
query I rowsort label-6082
SELECT ALL SUM( 60 ) FROM tab2
----
180
skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL SUM ( 60 ) FROM tab2
----
180
query I rowsort
SELECT - col1 * 12 FROM tab2
----
-612
-804
-924
query I rowsort
SELECT ALL - 45 AS col2 FROM tab1 WHERE ( + col0 ) IS NOT NULL
----
-45
-45
-45
query I rowsort
SELECT + 3 * + col2 AS col0 FROM tab1
----
177
204
288
onlyif mysql # aggregate syntax:
query I rowsort label-6086
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6087
SELECT 74 AS col2 FROM tab0 WHERE - 22 / + col2 IN ( + CAST( NULL AS SIGNED ) + col1 )
----
skipif mysql # not compatible
query I rowsort label-6087
SELECT 74 AS col2 FROM tab0 WHERE - 22 / + col2 IN ( + CAST ( NULL AS INTEGER ) + col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-6088
SELECT ALL + SUM( ALL - col0 ) + COUNT( ALL - col1 + - col0 * - 32 ) AS col0 FROM tab1
----
-224
skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL + SUM ( ALL - col0 ) + COUNT ( ALL - col1 + - col0 * - 32 ) AS col0 FROM tab1
----
-224
query III rowsort
SELECT * FROM tab1 WHERE + 98 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # DIV for integer division:
query I rowsort label-6090
SELECT ALL col0 DIV col1 FROM tab0 WHERE - 43 + - ( - col0 ) NOT BETWEEN ( col0 ) AND ( NULL )
----
0
4
97
skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL col0 / col1 FROM tab0 WHERE - 43 + - ( - col0 ) NOT BETWEEN ( col0 ) AND ( NULL )
----
0
4
97
query I rowsort
SELECT 88 + col0 FROM tab2
----
134
152
163
onlyif mysql # aggregate syntax:
query I rowsort label-6092
SELECT COUNT( * ) * - COUNT( - col2 ) AS col1 FROM tab2
----
-9
skipif mysql # not compatible
query I rowsort label-6092
SELECT COUNT ( * ) * - COUNT ( - col2 ) AS col1 FROM tab2
----
-9
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6093
SELECT 31 * CAST( NULL AS SIGNED ) + 73 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6093
SELECT 31 * CAST ( NULL AS INTEGER ) + 73 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 0 * + col2 FROM tab2
----
0
0
0
query III rowsort
SELECT * FROM tab1 WHERE NOT col2 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-6096
SELECT DISTINCT col1 + - col1 DIV 63 AS col2 FROM tab1
----
14
47
5
skipif mysql # not compatible
query I rowsort label-6096
SELECT DISTINCT col1 + - col1 / 63 AS col2 FROM tab1
----
14
47
5
onlyif mysql # aggregate syntax:
query I rowsort label-6097
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE col1 < NULL
----
0
skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE col1 < NULL
----
0
query I rowsort
SELECT ALL 72 + ( + col1 ) AS col0 FROM tab1
----
119
77
86
query I rowsort
SELECT DISTINCT 69 FROM tab0 WHERE 62 + - 33 IS NOT NULL
----
69
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( 36 - col2 )
----
query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96
query I rowsort
SELECT DISTINCT col0 + - 68 FROM tab2 AS cor0
----
-22
-4
7
query III rowsort
SELECT * FROM tab1 WHERE NULL <> col1
----
onlyif mysql # DIV for integer division:
query I rowsort label-6104
SELECT ALL col0 DIV + ( col0 ) + col1 AS col2 FROM tab0
----
2
22
82
skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL col0 / + ( col0 ) + col1 AS col2 FROM tab0
----
2
22
82
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6105
SELECT DISTINCT col0 - + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6105
SELECT DISTINCT col0 - + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 WHERE ( + 79 * ( + col0 ) ) IN ( - col1 + - col1 )
----
query I rowsort
SELECT + col0 * col2 + - 25 AS col2 FROM tab2 AS cor0
----
1033
2535
4325
onlyif mysql # DIV for integer division:
query I rowsort label-6108
SELECT ( col2 ) DIV 53 + + 63 AS col2 FROM tab0 AS cor0
----
63
63
64
skipif mysql # not compatible
query I rowsort label-6108
SELECT ( col2 ) / 53 + + 63 AS col2 FROM tab0 AS cor0
----
63
63
64
onlyif mysql # aggregate syntax:
query I rowsort label-6109
SELECT ALL + MAX( ALL col0 ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
97
skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL + MAX ( ALL col0 ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
97
query I rowsort
SELECT col0 * - 15 + + ( ( col0 ) ) AS col0 FROM tab1 AS cor0
----
-1190
-1274
-714
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6111
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( CAST( col0 AS SIGNED ) ) IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-6111
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( CAST ( col0 AS INTEGER ) ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6112
SELECT DISTINCT COUNT( * ) - + COUNT( * ) * + SUM( col1 ) col0 FROM tab2 AS cor0
----
-582
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6112
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) * + SUM ( col1 ) col0 FROM tab2 AS cor0
----
-582
query I rowsort
SELECT DISTINCT - col1 * + col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
query I rowsort
SELECT DISTINCT col0 * col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col2 ) = ( + 55 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6116
SELECT - CAST( - 68 AS SIGNED ) * col0 AS col2 FROM tab2 AS cor0
----
3128
4352
5100
skipif mysql # not compatible
query I rowsort label-6116
SELECT - CAST ( - 68 AS INTEGER ) * col0 AS col2 FROM tab2 AS cor0
----
3128
4352
5100
query I rowsort
SELECT DISTINCT ( - col2 ) * - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
210
3807
99
onlyif mysql # DIV for integer division:
query I rowsort label-6118
SELECT col2 DIV + 94 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6118
SELECT col2 / + 94 FROM tab1
----
0
0
1
query I rowsort
SELECT ALL + col0 * + col2 FROM tab0 WHERE 31 * col0 NOT BETWEEN NULL AND - 37 / ( 16 ) OR NOT + col0 <> + col2
----
705
870
9603
query I rowsort
SELECT DISTINCT col0 * - 97 * col0 FROM tab2
----
-205252
-397312
-545625
onlyif mysql # DIV for integer division:
query I rowsort label-6121
SELECT 69 DIV + - 6 col0 FROM tab2
----
-11
-11
-11
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6121
SELECT 69 / + - 6 col0 FROM tab2
----
-11
-11
-11
query I rowsort
SELECT ALL + 31 * + + ( col2 ) FROM tab2
----
1240
1798
713
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6123
SELECT DISTINCT CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6123
SELECT DISTINCT CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 > ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-6125
SELECT ALL MIN( - col1 ) AS col2 FROM tab0
----
-81
skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL MIN ( - col1 ) AS col2 FROM tab0
----
-81
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * - col1 > 92
----
query I rowsort
SELECT ALL col0 * - ( ( ( - col2 ) ) ) FROM tab2 WHERE NOT 46 IS NOT NULL OR NOT col1 >= NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6128
SELECT MAX( DISTINCT - ( - 41 ) ) * + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - 20 * - 60 IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-6128
SELECT MAX ( DISTINCT - ( - 41 ) ) * + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - 20 * - 60 IS NOT NULL
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6129
SELECT ALL - + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL - + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * + + ( - 73 ) AS col1 FROM tab0 AS cor0
----
-1533
-5913
-73
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 - + col0 IS NOT NULL
----
query I rowsort
SELECT - col0 * + - col0 AS col0 FROM tab2
----
2116
4096
5625
onlyif mysql # aggregate syntax:
query II rowsort label-6133
SELECT DISTINCT - COUNT( * ) AS col1, - 21 FROM tab2
----
-3
-21
skipif mysql # not compatible
query II rowsort label-6133
SELECT DISTINCT - COUNT ( * ) AS col1, - 21 FROM tab2
----
-3
-21
query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6135
SELECT DISTINCT + - ( + - COUNT( * ) ) AS col2 FROM tab2 cor0
----
3
skipif mysql # not compatible
query I rowsort label-6135
SELECT DISTINCT + - ( + - COUNT ( * ) ) AS col2 FROM tab2 cor0
----
3
query I rowsort
SELECT + + ( + 20 ) AS col1 FROM tab2 AS cor0
----
20
20
20
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 99 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT + col1 AS col2, + 1 AS col2 FROM tab2 AS cor0
----
51
1
67
1
77
1
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 IS NULL
----
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-6140
SELECT COUNT( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6140
SELECT COUNT ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
0
query II rowsort
SELECT DISTINCT + + col0 AS col2, col2 AS col0 FROM tab0 AS cor0
----
15
47
87
10
97
99
query II rowsort
SELECT + 5 AS col1, + 22 AS col2 FROM tab2 cor0
----
5
22
5
22
5
22
query I rowsort
SELECT ALL - + col1 + - - col0 AS col0 FROM tab2 AS cor0
----
-13
-5
8
onlyif mysql # aggregate syntax:
query II rowsort label-6144
SELECT + 5 AS col1, COUNT( * ) AS col2 FROM tab2 AS cor0
----
5
3
skipif mysql # not compatible
query II rowsort label-6144
SELECT + 5 AS col1, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
5
3
query I rowsort
SELECT DISTINCT - col1 + + 84 AS col2 FROM tab2 AS cor0
----
17
33
7
query III rowsort
SELECT * FROM tab2 WHERE ( - + col2 * col2 ) <> ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT 36 * - col0 + col1 AS col0 FROM tab0 WHERE col2 BETWEEN 32 AND col2 / col1 + + col1
----
-3491
-459
query III rowsort
SELECT ALL * FROM tab1 WHERE ( + + col2 / col1 ) IS NULL
----
query I rowsort
SELECT ALL 62 FROM tab0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT ALL - col1 + - col1 + + + 79 FROM tab0
----
-83
37
77
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 * + 53 <> ( NULL )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query I rowsort label-6153
SELECT DISTINCT - 71 + - - 60 + - - col1 DIV + col1 AS col2 FROM tab0
----
-10
skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT - 71 + - - 60 + - - col1 / + col1 AS col2 FROM tab0
----
-10
query I rowsort
SELECT + - col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - ( - col1 ) col2 FROM tab2
----
0
0
0
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 39 + 67 ) IS NOT NULL
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NULL IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-6158
SELECT + + 35 + + COUNT( * ) FROM tab2 cor0
----
38
skipif mysql # not compatible
query I rowsort label-6158
SELECT + + 35 + + COUNT ( * ) FROM tab2 cor0
----
38
onlyif mysql # aggregate syntax:
query I rowsort label-6159
SELECT - SUM( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-156
skipif mysql # not compatible
query I rowsort label-6159
SELECT - SUM ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-156
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6160
SELECT DISTINCT + + CAST( CAST( 74 AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-6160
SELECT DISTINCT + + CAST ( CAST ( 74 AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE - 57 IS NULL
----
query I rowsort
SELECT - col1 * + 54 FROM tab1 WHERE ( - 11 ) IN ( 67 )
----
query I rowsort
SELECT ALL - 92 + - col1 AS col0 FROM tab0
----
-113
-173
-93
onlyif mysql # DIV for integer division:
query I rowsort label-6164
SELECT - col2 DIV + + col1 - + 51 + + 18 * + + col0 FROM tab0 AS cor0
----
1515
1596
219
skipif mysql # not compatible
query I rowsort label-6164
SELECT - col2 / + + col1 - + 51 + + 18 * + + col0 FROM tab0 AS cor0
----
1515
1596
219
onlyif mysql # aggregate syntax:
query I rowsort label-6165
SELECT + 47 - MIN( ALL + 66 ) AS col0 FROM tab0 AS cor0
----
-19
skipif mysql # not compatible
query I rowsort label-6165
SELECT + 47 - MIN ( ALL + 66 ) AS col0 FROM tab0 AS cor0
----
-19
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= + 48 + - col1 / - + ( + col1 ) * col1 - + 68 AND NOT ( - 32 * 82 + - col1 ) IS NULL
----
query I rowsort
SELECT ( - col2 ) - - col2 FROM tab0 cor0
----
0
0
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6168
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - col1 - + 56 * + 44 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - col1 - + 56 * + 44 FROM tab1 AS cor0
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6169
SELECT ALL CAST( + + col1 AS SIGNED ) * col2 FROM tab0 AS cor0
----
210
3807
99
skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL CAST ( + + col1 AS INTEGER ) * col2 FROM tab0 AS cor0
----
210
3807
99
onlyif mysql # aggregate syntax:
query I rowsort label-6170
SELECT DISTINCT - 51 * + + MIN( + 28 ) FROM tab2 cor0
----
-1428
skipif mysql # not compatible
query I rowsort label-6170
SELECT DISTINCT - 51 * + + MIN ( + 28 ) FROM tab2 cor0
----
-1428
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6171
SELECT ALL * FROM tab0 WHERE NOT + - col2 * - + col0 + + + col2 - + 60 * col2 BETWEEN NULL AND + CAST( + col2 AS SIGNED )
----
87
21
10
97
1
99
skipif mysql # not compatible
query III rowsort label-6171
SELECT ALL * FROM tab0 WHERE NOT + - col2 * - + col0 + + + col2 - + 60 * col2 BETWEEN NULL AND + CAST ( + col2 AS INTEGER )
----
87
21
10
97
1
99
onlyif mysql # aggregate syntax:
query I rowsort label-6172
SELECT DISTINCT + 65 * - + COUNT( * ) FROM tab0
----
-195
skipif mysql # not compatible
query I rowsort label-6172
SELECT DISTINCT + 65 * - + COUNT ( * ) FROM tab0
----
-195
query I rowsort
SELECT - col1 / 22 AS col2 FROM tab2 WHERE NOT ( NOT ( NULL ) IN ( + ( + col1 ) / - 24 ) )
----
onlyif mysql # DIV for integer division:
query I rowsort label-6174
SELECT ALL - 32 DIV - col1 FROM tab0
----
0
1
32
skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL - 32 / - col1 FROM tab0
----
0
1
32
onlyif mysql # DIV for integer division:
query I rowsort label-6175
SELECT ALL col0 DIV - + ( - 13 ) FROM tab2
----
3
4
5
skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL col0 / - + ( - 13 ) FROM tab2
----
3
4
5
onlyif mysql # aggregate syntax:
query I rowsort label-6176
SELECT - ( MIN( DISTINCT col0 ) ) * - MAX( + col1 ) * + + ( 48 ) col1 FROM tab1
----
115056
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6176
SELECT - ( MIN ( DISTINCT col0 ) ) * - MAX ( + col1 ) * + + ( 48 ) col1 FROM tab1
----
115056
onlyif mysql # aggregate syntax:
query I rowsort label-6177
SELECT DISTINCT + SUM( ALL 17 ) FROM tab1
----
51
skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT + SUM ( ALL 17 ) FROM tab1
----
51
query II rowsort
SELECT + col1, + 44 AS col0 FROM tab0
----
1
44
21
44
81
44
query I rowsort
SELECT + + ( + + 58 ) AS col2 FROM tab2 cor0
----
58
58
58
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6180
SELECT DISTINCT - + 42 * + - COUNT( * ) * - - 71 * ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6180
SELECT DISTINCT - + 42 * + - COUNT ( * ) * - - 71 * ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + ( + - col2 ) AS col1 FROM tab0 cor0
----
-10
-47
-99
onlyif mysql # aggregate syntax:
query I rowsort label-6182
SELECT DISTINCT - SUM( DISTINCT + + ( - col0 ) ) AS col1 FROM tab1 cor0
----
227
skipif mysql # not compatible
query I rowsort label-6182
SELECT DISTINCT - SUM ( DISTINCT + + ( - col0 ) ) AS col1 FROM tab1 cor0
----
227
onlyif mysql # aggregate syntax:
query I rowsort label-6183
SELECT ALL SUM( ALL + ( col0 ) ) FROM tab0
----
199
skipif mysql # not compatible
query I rowsort label-6183
SELECT ALL SUM ( ALL + ( col0 ) ) FROM tab0
----
199
onlyif mysql # DIV for integer division:
query I rowsort label-6184
SELECT ALL 14 DIV col2 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL 14 / col2 FROM tab0
----
0
0
1
onlyif mysql # aggregate syntax:
query I rowsort label-6185
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
query II rowsort
SELECT + col1 * + col0 AS col2, - col2 FROM tab2
----
2346
-23
4928
-40
5025
-58
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6187
SELECT * FROM tab0 AS cor0 WHERE 36 / - CAST( + col1 AS SIGNED ) <> NULL
----
skipif mysql # not compatible
query III rowsort label-6187
SELECT * FROM tab0 AS cor0 WHERE 36 / - CAST ( + col1 AS INTEGER ) <> NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6188
SELECT - MAX( col1 ) + - - COUNT( * ) FROM tab2 AS cor0
----
-74
skipif mysql # not compatible
query I rowsort label-6188
SELECT - MAX ( col1 ) + - - COUNT ( * ) FROM tab2 AS cor0
----
-74
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 ) BETWEEN ( NULL ) AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6190
SELECT DISTINCT - SUM( + col1 ) AS col0 FROM tab1 AS cor0
----
-66
skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT - SUM ( + col1 ) AS col0 FROM tab1 AS cor0
----
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 47 - + col1 * + - 51 col2 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----
onlyif mysql # DIV for integer division:
query I rowsort label-6192
SELECT - 2 * - + ( - + col2 ) + - + 89 DIV + + col1 FROM tab2
----
-117
-47
-81
skipif mysql # not compatible
query I rowsort label-6192
SELECT - 2 * - + ( - + col2 ) + - + 89 / + + col1 FROM tab2
----
-117
-47
-81
onlyif mysql # aggregate syntax:
query I rowsort label-6193
SELECT ALL - COUNT( * ) * + - 36 + - COUNT( * ) AS col2 FROM tab2
----
105
skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL - COUNT ( * ) * + - 36 + - COUNT ( * ) AS col2 FROM tab2
----
105
query I rowsort
SELECT ALL - AVG ( DISTINCT col2 ) AS col2 FROM tab1 WHERE NOT col1 * col0 + + + 79 + + 18 NOT IN ( - + col2 )
----
NULL
onlyif mysql # DIV for integer division:
query II rowsort label-6195
SELECT DISTINCT col1 + + 50 DIV - col1, + col1 FROM tab0
----
-49
1
19
21
81
81
skipif mysql # not compatible
query II rowsort label-6195
SELECT DISTINCT col1 + + 50 / - col1, + col1 FROM tab0
----
-49
1
19
21
81
81
query I rowsort
SELECT + col2 * - 45 FROM tab2
----
-1035
-1800
-2610
query I rowsort
SELECT DISTINCT - 21 * + + ( ( - col2 ) ) + - - 60 FROM tab0
----
1047
2139
270
query I rowsort
SELECT DISTINCT - ( + - 48 ) FROM tab2
----
48
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 > ( - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT 7 * + col2 AS col0 FROM tab2 cor0
----
161
280
406
onlyif mysql # aggregate syntax:
query I rowsort label-6201
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE ( - col2 ) NOT BETWEEN NULL AND ( + col0 - col0 * - col2 / 89 )
----
0
skipif mysql # not compatible
query I rowsort label-6201
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE ( - col2 ) NOT BETWEEN NULL AND ( + col0 - col0 * - col2 / 89 )
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6202
SELECT + - ( - col1 ) * 93 + - CAST( NULL AS SIGNED ) * - ( 85 * - col1 ) AS col2 FROM tab2 AS cor0 WHERE ( + 55 ) * + + col1 / col2 + - + 91 + + - col2 <> NULL
----
skipif mysql # not compatible
query I rowsort label-6202
SELECT + - ( - col1 ) * 93 + - CAST ( NULL AS INTEGER ) * - ( 85 * - col1 ) AS col2 FROM tab2 AS cor0 WHERE ( + 55 ) * + + col1 / col2 + - + 91 + + - col2 <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - 52 ) + col0 col0 FROM tab2 cor0
----
116
127
98
query I rowsort
SELECT + col0 - + 31 FROM tab0 AS cor0
----
-16
56
66
query I rowsort
SELECT DISTINCT 60 + - 48 AS col2 FROM tab1 AS cor0
----
12
onlyif mysql # aggregate syntax:
query I rowsort label-6206
SELECT + + COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9
skipif mysql # not compatible
query I rowsort label-6206
SELECT + + COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-6207
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9
skipif mysql # not compatible
query I rowsort label-6207
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-6208
SELECT ALL + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 88 * col1 NOT BETWEEN NULL AND ( - col0 * col1 + + 43 / + col0 + - 74 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6210
SELECT col0 + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT 58 <= ( - col1 * + CAST( NULL AS SIGNED ) * + 61 + - col1 )
----
skipif mysql # not compatible
query I rowsort label-6210
SELECT col0 + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT 58 <= ( - col1 * + CAST ( NULL AS INTEGER ) * + 61 + - col1 )
----
query I rowsort
SELECT DISTINCT 21 * - ( + col1 ) FROM tab2 AS cor0
----
-1071
-1407
-1617
query I rowsort
SELECT - col1 * - - 52 FROM tab1 AS cor0
----
-2444
-260
-728
onlyif mysql # aggregate syntax:
query I rowsort label-6213
SELECT DISTINCT + - MAX( - + col0 ) * - 17 col1 FROM tab0 AS cor0
----
-255
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6213
SELECT DISTINCT + - MAX ( - + col0 ) * - 17 col1 FROM tab0 AS cor0
----
-255
query I rowsort
SELECT ALL + 4 * + 43 AS col1 FROM tab0
----
172
172
172
query II rowsort
SELECT DISTINCT - col0, 9 AS col2 FROM tab1
----
-51
9
-85
9
-91
9
query I rowsort
SELECT ALL ( - - col1 ) AS col1 FROM tab2
----
51
67
77
onlyif mysql # aggregate syntax:
query I rowsort label-6217
SELECT - 11 * MIN( ALL + col1 ) col1 FROM tab2
----
-561
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6217
SELECT - 11 * MIN ( ALL + col1 ) col1 FROM tab2
----
-561
query I rowsort
SELECT 53 * - + col1 FROM tab0
----
-1113
-4293
-53
onlyif mysql # aggregate syntax:
query I rowsort label-6219
SELECT - COUNT( ALL col2 ) AS col2 FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-6219
SELECT - COUNT ( ALL col2 ) AS col2 FROM tab1
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-6220
SELECT DISTINCT 26 * + - COUNT( * ) AS col1 FROM tab0
----
-78
skipif mysql # not compatible
query I rowsort label-6220
SELECT DISTINCT 26 * + - COUNT ( * ) AS col1 FROM tab0
----
-78
onlyif mysql # aggregate syntax:
query I rowsort label-6221
SELECT ALL - COUNT( * ) * + 1 AS col2 FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL - COUNT ( * ) * + 1 AS col2 FROM tab2
----
-3
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6222
SELECT - COUNT( * ) DIV 34 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-6222
SELECT - COUNT ( * ) / 34 FROM tab2
----
0
query III rowsort
SELECT * FROM tab2 WHERE NOT + 96 < NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6224
SELECT DISTINCT + - MAX( - col0 ) DIV MAX( 95 ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT + - MAX ( - col0 ) / MAX ( 95 ) FROM tab2 AS cor0
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-6225
SELECT DISTINCT - col2 DIV + col0 + - 66 + col1 + + + col2 FROM tab2 AS cor0
----
51
59
8
skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT - col2 / + col0 + - 66 + col1 + + + col2 FROM tab2 AS cor0
----
51
59
8
onlyif mysql # aggregate syntax:
query I rowsort label-6226
SELECT + COUNT( * ) col2 FROM tab2 cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6226
SELECT + COUNT ( * ) col2 FROM tab2 cor0
----
3
query II rowsort
SELECT DISTINCT - ( + - col2 ), col2 AS col2 FROM tab0
----
10
10
47
47
99
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col0, - col2 col0 FROM tab0
----
-1
-99
-21
-10
-81
-47
onlyif mysql # aggregate syntax:
query I rowsort label-6229
SELECT + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9
skipif mysql # not compatible
query I rowsort label-6229
SELECT + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 - col1 < + + 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query II rowsort label-6231
SELECT COUNT( * ) col1, 85 AS col2 FROM tab0 AS cor0
----
3
85
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6231
SELECT COUNT ( * ) col1, 85 AS col2 FROM tab0 AS cor0
----
3
85
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < + col2
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <= col2 - - - col2
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-6235
SELECT DISTINCT + CAST( - col1 AS SIGNED ) DIV col2 * col2 * - 4 AS col1 FROM tab0 AS cor0
----
0
188
80
skipif mysql # not compatible
query I rowsort label-6235
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) / col2 * col2 * - 4 AS col1 FROM tab0 AS cor0
----
0
188
80
query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE ( - 62 ) IS NOT NULL
----
51
85
91
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 45 IS NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6238
SELECT 74 DIV + SUM( + col2 ) AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6238
SELECT 74 / + SUM ( + col2 ) AS col2 FROM tab0 AS cor0
----
0
onlyif mysql # DIV for integer division:
query II rowsort label-6239
SELECT - col0, col1 DIV + col2 AS col0 FROM tab2 AS cor0
----
-46
2
-64
1
-75
1
skipif mysql # not compatible
query II rowsort label-6239
SELECT - col0, col1 / + col2 AS col0 FROM tab2 AS cor0
----
-46
2
-64
1
-75
1
query II rowsort
SELECT ALL col1 AS col1, + col0 + - col0 AS col0 FROM tab2 AS cor0
----
51
0
67
0
77
0
query I rowsort
SELECT ALL - col0 + ( - 79 ) FROM tab1 AS cor0
----
-130
-164
-170
query I rowsort
SELECT ALL 17 - - + 46 + - col1 - col0 FROM tab2
----
-34
-78
-79
query III rowsort
SELECT * FROM tab0 WHERE col1 < NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6244
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6244
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL col0 * - col2 + + col0 FROM tab1 AS cor0
----
-4845
-4930
-6097
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-6246
SELECT col2 AS col1, + 64 * + col2 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
skipif mysql # not compatible
query II rowsort label-6246
SELECT col2 AS col1, + 64 * + col2 + CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6247
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + - CAST( col0 AS SIGNED ) * 62 * - - 69 IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-6247
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + - CAST ( col0 AS INTEGER ) * 62 * - - 69 IS NOT NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6248
SELECT COUNT( * ) DIV - ( 60 ) FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-6248
SELECT COUNT ( * ) / - ( 60 ) FROM tab0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-6249
SELECT DISTINCT - COUNT( * ) - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE 28 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-6249
SELECT DISTINCT - COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 28 IS NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-6250
SELECT ALL - + COUNT( * ) * - 1 - - + 76 FROM tab1 AS cor0
----
79
skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL - + COUNT ( * ) * - 1 - - + 76 FROM tab1 AS cor0
----
79
query I rowsort
SELECT + ( - + col1 ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 col1 FROM tab0 AS cor0
----
64
64
64
onlyif mysql # aggregate syntax:
query II rowsort label-6253
SELECT - COUNT( * ) AS col2, 83 + + COUNT( * ) * 60 FROM tab2 AS cor0
----
-3
263
skipif mysql # not compatible
query II rowsort label-6253
SELECT - COUNT ( * ) AS col2, 83 + + COUNT ( * ) * 60 FROM tab2 AS cor0
----
-3
263
onlyif mysql # aggregate syntax:
query I rowsort label-6254
SELECT ALL - COUNT( * ) col1 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6254
SELECT ALL - COUNT ( * ) col1 FROM tab0 AS cor0
----
-3
query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT - col0 IN ( - 88 * 94 + + + 87, col2 )
----
51
67
77
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 IN ( + 66 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-6257
SELECT + COUNT( * ) FROM tab0 WHERE NOT - col2 IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-6257
SELECT + COUNT ( * ) FROM tab0 WHERE NOT - col2 IS NULL
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-6258
SELECT COUNT( * ) FROM tab0 WHERE NOT NULL < ( NULL )
----
0
skipif mysql # not compatible
query I rowsort label-6258
SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL < ( NULL )
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-6259
SELECT - COUNT( * ) FROM tab2 WHERE NOT col1 * - 76 * col0 NOT BETWEEN NULL AND + 60
----
0
skipif mysql # not compatible
query I rowsort label-6259
SELECT - COUNT ( * ) FROM tab2 WHERE NOT col1 * - 76 * col0 NOT BETWEEN NULL AND + 60
----
0
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6260
SELECT DISTINCT CAST( - SUM( ALL + col1 ) AS SIGNED ) AS col2 FROM tab1
----
-66
skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT CAST ( - SUM ( ALL + col1 ) AS INTEGER ) AS col2 FROM tab1
----
-66
onlyif mysql # aggregate syntax:
query I rowsort label-6261
SELECT - SUM( + - ( col1 ) ) FROM tab2
----
195
skipif mysql # not compatible
query I rowsort label-6261
SELECT - SUM ( + - ( col1 ) ) FROM tab2
----
195
onlyif mysql # aggregate syntax:
query I rowsort label-6262
SELECT 30 * - + MIN( DISTINCT + 63 ) AS col0 FROM tab1
----
-1890
skipif mysql # not compatible
query I rowsort label-6262
SELECT 30 * - + MIN ( DISTINCT + 63 ) AS col0 FROM tab1
----
-1890
query III rowsort
SELECT * FROM tab0 WHERE NOT - 38 > NULL
----
query I rowsort
SELECT ALL col0 * - + col2 FROM tab2
----
-1058
-2560
-4350
query I rowsort
SELECT DISTINCT - + 81 * - col2 * col2 AS col0 FROM tab2 AS cor0
----
129600
272484
42849
query II rowsort
SELECT ( - + col0 ) AS col1, col2 FROM tab1 cor0
----
-51
96
-85
59
-91
68
query I rowsort
SELECT DISTINCT + ( col2 ) + + 83 FROM tab2 AS cor0
----
106
123
141
onlyif mysql # aggregate syntax:
query I rowsort label-6268
SELECT DISTINCT - COUNT( - 45 ) AS col2 FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-6268
SELECT DISTINCT - COUNT ( - 45 ) AS col2 FROM tab2
----
-3
query I rowsort
SELECT ALL 9 + - 74 * 25 FROM tab1
----
-1841
-1841
-1841
onlyif mysql # aggregate syntax:
query I rowsort label-6270
SELECT 24 + - - COUNT( * ) FROM tab0
----
27
skipif mysql # not compatible
query I rowsort label-6270
SELECT 24 + - - COUNT ( * ) FROM tab0
----
27
query I rowsort
SELECT 63 + + + col0 * + col2 AS col1 FROM tab2 cor0
----
1121
2623
4413
query I rowsort
SELECT - col1 + + - 23 * 8 FROM tab1 AS cor0
----
-189
-198
-231
query I rowsort
SELECT DISTINCT 10 * + ( 9 ) + + - col2 FROM tab0 AS cor0
----
-9
43
80
query I rowsort
SELECT ALL + - col1 * + 75 + - 79 AS col1 FROM tab0 AS cor0
----
-154
-1654
-6154
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col2 + - - col2 col0 FROM tab0 AS cor0
----
198
220
3854
query I rowsort
SELECT DISTINCT + + ( 64 ) AS col0 FROM tab0 cor0
----
64
query III rowsort
SELECT * FROM tab0 WHERE + col0 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT col2 AS col1, 71 FROM tab1
----
59
71
68
71
96
71
query I rowsort
SELECT ALL col0 + col2 + - ( col1 ) * + - col1 FROM tab0
----
197
538
6623
query I rowsort
SELECT DISTINCT 86 * + - col1 + - col1 + 81 FROM tab0
----
-1746
-6
-6966
onlyif mysql # aggregate syntax:
query I rowsort label-6281
SELECT - COUNT( ALL + col1 ) AS col1 FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-6281
SELECT - COUNT ( ALL + col1 ) AS col1 FROM tab0
----
-3
onlyif mysql # DIV for integer division:
query I rowsort label-6282
SELECT DISTINCT - 27 - + col0 DIV + + col0 FROM tab1
----
-28
skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT - 27 - + col0 / + + col0 FROM tab1
----
-28
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 53 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - - col2 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT - col1 * - 67 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
query I rowsort
SELECT ALL - ( 93 ) FROM tab1 AS cor0
----
-93
-93
-93
query I rowsort
SELECT - 89 AS col1 FROM tab2 WHERE NOT NULL <= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6288
SELECT COUNT( ALL ( - col1 ) ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-6288
SELECT COUNT ( ALL ( - col1 ) ) FROM tab0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-6289
SELECT ALL MAX( DISTINCT - col1 ) AS col1 FROM tab2
----
-51
skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL MAX ( DISTINCT - col1 ) AS col1 FROM tab2
----
-51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 col0 FROM tab0 AS cor0
----
44
onlyif mysql # aggregate syntax:
query II rowsort label-6291
SELECT - SUM( - 73 ) AS col0, 64 AS col0 FROM tab0 AS cor0
----
219
64
skipif mysql # not compatible
query II rowsort label-6291
SELECT - SUM ( - 73 ) AS col0, 64 AS col0 FROM tab0 AS cor0
----
219
64
query I rowsort
SELECT - 32 * + ( - col1 ) AS col1 FROM tab2
----
1632
2144
2464
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT - 99 * col1 FROM tab2
----
-5049
-6633
-7623
query I rowsort
SELECT ALL + 9 AS col2 FROM tab0
----
9
9
9
onlyif mysql # aggregate syntax:
query I rowsort label-6296
SELECT ALL - MIN( - - col1 ) AS col1 FROM tab2
----
-51
skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL - MIN ( - - col1 ) AS col1 FROM tab2
----
-51
onlyif mysql # aggregate syntax:
query I rowsort label-6297
SELECT DISTINCT COUNT( * ) * + 36 AS col0 FROM tab1
----
108
skipif mysql # not compatible
query I rowsort label-6297
SELECT DISTINCT COUNT ( * ) * + 36 AS col0 FROM tab1
----
108
query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
10
47
99
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6301
SELECT - 40 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6301
SELECT - 40 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query II rowsort label-6302
SELECT 50 DIV - - col0 + + col2, + col1 col2 FROM tab1 AS cor0
----
59
5
68
47
96
14
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6302
SELECT 50 / - - col0 + + col2, + col1 col2 FROM tab1 AS cor0
----
59
5
68
47
96
14
onlyif mysql # aggregate syntax:
query I rowsort label-6303
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col1 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 + + col0 col0 FROM tab0 AS cor0
----
-5
-77
5
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 3 > NULL
----
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query III rowsort label-6307
SELECT DISTINCT * FROM tab0 WHERE + CAST( col0 AS SIGNED ) + + col2 <= - CAST( NULL AS DECIMAL ) + - col2 / 19 * + 74
----
skipif mysql # not compatible
query III rowsort label-6307
SELECT DISTINCT * FROM tab0 WHERE + CAST ( col0 AS INTEGER ) + + col2 <= - CAST ( NULL AS REAL ) + - col2 / 19 * + 74
----
query I rowsort
SELECT + col0 * 25 * - 6 + + 54 * + + col2 * + 82 FROM tab2 cor0
----
167520
245574
94944
query I rowsort
SELECT col0 * 72 + + + 37 AS col2 FROM tab0 AS cor0
----
1117
6301
7021
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6310
SELECT COUNT( * ) * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6310
SELECT COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # DIV for integer division:
query I rowsort label-6312
SELECT + - col0 - - 60 DIV col2 AS col0 FROM tab2 AS cor0
----
-44
-63
-74
skipif mysql # not compatible
query I rowsort label-6312
SELECT + - col0 - - 60 / col2 AS col0 FROM tab2 AS cor0
----
-44
-63
-74
onlyif mysql # aggregate syntax:
query I rowsort label-6313
SELECT ALL COUNT( DISTINCT 55 ) FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL COUNT ( DISTINCT 55 ) FROM tab1 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col1 FROM tab2 WHERE + col0 * - - 11 <= 19
----
query I rowsort
SELECT ALL - 93 + + 49 AS col2 FROM tab2
----
-44
-44
-44
query III rowsort
SELECT ALL * FROM tab1 WHERE col1 < NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75
query II rowsort
SELECT ALL - col1 * - + col1 / col1, col1 FROM tab1 WHERE NULL = NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 NOT IN ( + col1 * 43 / col2, - 20 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-6320
SELECT ALL 76 + - COUNT( * ) + - 42 * - COUNT( * ) AS col1 FROM tab1
----
199
skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL 76 + - COUNT ( * ) + - 42 * - COUNT ( * ) AS col1 FROM tab1
----
199
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6321
SELECT * FROM tab1 WHERE ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-6321
SELECT * FROM tab1 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-6322
SELECT col1 + + col1 + + - col2 DIV + + 97 FROM tab2
----
102
134
154
skipif mysql # not compatible
query I rowsort label-6322
SELECT col1 + + col1 + + - col2 / + + 97 FROM tab2
----
102
134
154
onlyif mysql # aggregate syntax:
query I rowsort label-6323
SELECT + - COUNT( * ) AS col1 FROM tab1 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-6323
SELECT + - COUNT ( * ) AS col1 FROM tab1 cor0
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6324
SELECT - AVG ( ALL - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6324
SELECT - AVG ( ALL - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6325
SELECT DISTINCT + 47 * - COUNT( * ) FROM tab2 AS cor0
----
-141
skipif mysql # not compatible
query I rowsort label-6325
SELECT DISTINCT + 47 * - COUNT ( * ) FROM tab2 AS cor0
----
-141
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6326
SELECT + - AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6326
SELECT + - AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6327
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-6327
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 < NULL
----
query I rowsort
SELECT ALL ( + col0 ) FROM tab1 AS cor0 WHERE NULL IN ( - col2 * + col0 + + 90 )
----
query II rowsort
SELECT DISTINCT + + col0 AS col0, col0 AS col1 FROM tab0 cor0
----
15
15
87
87
97
97
onlyif mysql # DIV for integer division:
query I rowsort label-6331
SELECT ALL + col1 DIV - ( + 31 ) FROM tab2 AS cor0
----
-1
-2
-2
skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL + col1 / - ( + 31 ) FROM tab2 AS cor0
----
-1
-2
-2
onlyif mysql # aggregate syntax:
query I rowsort label-6332
SELECT - COUNT( ALL col1 ) FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-6332
SELECT - COUNT ( ALL col1 ) FROM tab1
----
-3
onlyif mysql # DIV for integer division:
query II rowsort label-6333
SELECT col1 DIV col1, 87 AS col2 FROM tab0
----
1
87
1
87
1
87
skipif mysql # not compatible
query II rowsort label-6333
SELECT col1 / col1, 87 AS col2 FROM tab0
----
1
87
1
87
1
87
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-6334
SELECT col0 / - CAST( NULL AS DECIMAL ) * - col2 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6334
SELECT col0 / - CAST ( NULL AS REAL ) * - col2 AS col0 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6335
SELECT DISTINCT 42 * - CAST( col2 AS SIGNED ) * - col1 * - 59 AS col2 FROM tab2
----
-2906694
-7632240
-9629508
skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT 42 * - CAST ( col2 AS INTEGER ) * - col1 * - 59 AS col2 FROM tab2
----
-2906694
-7632240
-9629508
query II rowsort
SELECT DISTINCT 66 AS col2, 32 FROM tab1
----
66
32
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6337
SELECT ALL - col1 AS col1 FROM tab0 WHERE NULL BETWEEN CAST( - col0 AS SIGNED ) AND - - 46
----
skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL - col1 AS col1 FROM tab0 WHERE NULL BETWEEN CAST ( - col0 AS INTEGER ) AND - - 46
----
query I rowsort
SELECT - + col1 + - 72 AS col0 FROM tab0 AS cor0
----
-153
-73
-93
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6339
SELECT + - 10 - - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( - col1 ) <> + + CAST( + col0 AS SIGNED )
----
-7
skipif mysql # not compatible
query I rowsort label-6339
SELECT + - 10 - - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( - col1 ) <> + + CAST ( + col0 AS INTEGER )
----
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - + col1 col1 FROM tab1 AS cor0
----
-10
-28
-94
query II rowsort
SELECT DISTINCT - - col0 * - - col0 - + col0 AS col1, col0 + + + col1 AS col0 FROM tab1 cor0
----
2550
65
7140
90
8190
138
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-6342
SELECT - CAST( NULL AS SIGNED ) col0, 84 * AVG ( 61 ) FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND col1
----
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6342
SELECT - CAST ( NULL AS INTEGER ) col0, 84 * AVG ( 61 ) FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND col1
----
NULL
NULL
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 68 BETWEEN + col1 AND + ( - - 65 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-6344
SELECT ALL COUNT( * ) + - COUNT( * ) FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-6344
SELECT ALL COUNT ( * ) + - COUNT ( * ) FROM tab0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-6345
SELECT COUNT( * ) - + COUNT( * ) FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-6345
SELECT COUNT ( * ) - + COUNT ( * ) FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + + + 80, - col1 col2 FROM tab2
----
131
-51
147
-67
157
-77
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 27 IS NULL
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= + + 89
----
onlyif mysql # aggregate syntax:
query I rowsort label-6349
SELECT ALL + + ( - 62 ) * + + MAX( ALL - + ( - 43 ) ) FROM tab1 AS cor0
----
-2666
skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL + + ( - 62 ) * + + MAX ( ALL - + ( - 43 ) ) FROM tab1 AS cor0
----
-2666
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6350
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR NULL IS NOT NULL
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6350
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR NULL IS NOT NULL
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6351
SELECT DISTINCT + SUM( DISTINCT col0 ) FROM tab0
----
199
skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT + SUM ( DISTINCT col0 ) FROM tab0
----
199
query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-6353
SELECT COUNT( 23 ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-6353
SELECT COUNT ( 23 ) FROM tab0
----
3
query I rowsort
SELECT ( - + 33 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03
onlyif mysql # aggregate syntax:
query I rowsort label-6355
SELECT DISTINCT MIN( ALL - 36 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-36
skipif mysql # not compatible
query I rowsort label-6355
SELECT DISTINCT MIN ( ALL - 36 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-36
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 48 = NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-6357
SELECT DISTINCT + - CAST( - ( 67 ) AS SIGNED ) AS col0, + 11 + - col2 + - col0 + + + col2 * - + col1 FROM tab1 AS cor0
----
67
-1480
67
-3344
67
-428
skipif mysql # not compatible
query II rowsort label-6357
SELECT DISTINCT + - CAST ( - ( 67 ) AS INTEGER ) AS col0, + 11 + - col2 + - col0 + + + col2 * - + col1 FROM tab1 AS cor0
----
67
-1480
67
-3344
67
-428
query I rowsort
SELECT DISTINCT 26 + - 46 + + - col0 FROM tab2 AS cor0
----
-66
-84
-95
query I rowsort
SELECT + col0 * col1 * - 17 AS col2 FROM tab1 AS cor0
----
-12138
-7225
-72709
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT + - col0 * 41 FROM tab2 AS cor0
----
-1886
-2624
-3075
onlyif mysql # aggregate syntax:
query I rowsort label-6362
SELECT COUNT( ALL + ( - - col1 ) ) AS col1 FROM tab2 cor0
----
3
skipif mysql # not compatible
query I rowsort label-6362
SELECT COUNT ( ALL + ( - - col1 ) ) AS col1 FROM tab2 cor0
----
3
onlyif mysql # aggregate syntax:
query II rowsort label-6363
SELECT 68, + 0 * COUNT( * ) AS col0 FROM tab2
----
68
0
skipif mysql # not compatible
query II rowsort label-6363
SELECT 68, + 0 * COUNT ( * ) AS col0 FROM tab2
----
68
0
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6364
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL >= + - col2 + + CAST( + col1 AS SIGNED ) * col2 ) OR col2 / + col0 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-6364
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL >= + - col2 + + CAST ( + col1 AS INTEGER ) * col2 ) OR col2 / + col0 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT 66 * col0 AS col0 FROM tab0
----
5742
6402
990
query I rowsort
SELECT ALL ( + ( - - col0 ) ) FROM tab1
----
51
85
91
onlyif mysql # aggregate syntax:
query I rowsort label-6367
SELECT DISTINCT + SUM( - col0 ) col0 FROM tab0
----
-199
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6367
SELECT DISTINCT + SUM ( - col0 ) col0 FROM tab0
----
-199
query III rowsort
SELECT * FROM tab0 WHERE col2 + col0 * 3 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 98 col2, + col0 AS col2 FROM tab1 WHERE - - col1 = 36 * + col2
----
onlyif mysql # aggregate syntax:
query II rowsort label-6370
SELECT ALL + - COUNT( * ) AS col1, + 50 AS col0 FROM tab1 AS cor0
----
-3
50
skipif mysql # not compatible
query II rowsort label-6370
SELECT ALL + - COUNT ( * ) AS col1, + 50 AS col0 FROM tab1 AS cor0
----
-3
50
onlyif mysql # DIV for integer division:
query I rowsort label-6371
SELECT col2 DIV 29 + + col2 AS col2 FROM tab2 AS cor0
----
23
41
60
skipif mysql # not compatible
query I rowsort label-6371
SELECT col2 / 29 + + col2 AS col2 FROM tab2 AS cor0
----
23
41
60
onlyif mysql # aggregate syntax:
query I rowsort label-6372
SELECT DISTINCT + MIN( col0 ) AS col1 FROM tab1 AS cor0
----
51
skipif mysql # not compatible
query I rowsort label-6372
SELECT DISTINCT + MIN ( col0 ) AS col1 FROM tab1 AS cor0
----
51
query II rowsort
SELECT + - col0 + + + col2 AS col1, + col0 AS col2 FROM tab1 AS cor0
----
-23
91
-26
85
45
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col2 ) col2 FROM tab1 cor0 WHERE NULL BETWEEN 82 + - - 41 AND NULL
----
query II rowsort
SELECT ALL 11 + col0, col0 AS col0 FROM tab0
----
108
97
26
15
98
87
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6376
SELECT + + col0 AS col0 FROM tab1 WHERE - + CAST( - col2 AS SIGNED ) / + 30 + col2 IS NOT NULL
----
51
85
91
skipif mysql # not compatible
query I rowsort label-6376
SELECT + + col0 AS col0 FROM tab1 WHERE - + CAST ( - col2 AS INTEGER ) / + 30 + col2 IS NOT NULL
----
51
85
91
query I rowsort
SELECT DISTINCT + + 15 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 col0 FROM tab2
----
-65
-65
-65
onlyif mysql # aggregate syntax:
query I rowsort label-6379
SELECT ALL + + 10 * SUM( + - col2 ) FROM tab0 AS cor0
----
-1560
skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL + + 10 * SUM ( + - col2 ) FROM tab0 AS cor0
----
-1560
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6380
SELECT + - 15 - + + CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6380
SELECT + - 15 - + + CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 >= + col2
----
query I rowsort
SELECT 46 - - + 35 FROM tab1 AS cor0
----
81
81
81
query I rowsort
SELECT - ( + + 42 ) - + col2 FROM tab2 AS cor0
----
-100
-65
-82
onlyif mysql # aggregate syntax:
query I rowsort label-6384
SELECT - ( + MAX( DISTINCT - 8 ) ) - 84 AS col1 FROM tab1 cor0
----
-76
skipif mysql # not compatible
query I rowsort label-6384
SELECT - ( + MAX ( DISTINCT - 8 ) ) - 84 AS col1 FROM tab1 cor0
----
-76
query I rowsort
SELECT + - col0 + + + 43 + + ( + 72 ) + col1 * 50 FROM tab1 AS cor0
----
2374
280
764
onlyif mysql # aggregate syntax:
query I rowsort label-6386
SELECT ALL + SUM( + 29 ) FROM tab1 AS cor0
----
87
skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL + SUM ( + 29 ) FROM tab1 AS cor0
----
87
query II rowsort
SELECT + col2 AS col0, col0 FROM tab0
----
10
87
47
15
99
97
query I rowsort
SELECT ALL + 8 AS col1 FROM tab2
----
8
8
8
query II rowsort
SELECT ALL + col1, + col2 * 28 + col0 + - col2 FROM tab0
----
1
2770
21
357
81
1284
onlyif mysql # aggregate syntax:
query I rowsort label-6390
SELECT ( SUM( + + col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL <= - col0
----
NULL
skipif mysql # not compatible
query I rowsort label-6390
SELECT ( SUM ( + + col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL <= - col0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6391
SELECT DISTINCT - COUNT( DISTINCT + 41 ) col0 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6391
SELECT DISTINCT - COUNT ( DISTINCT + 41 ) col0 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT + col1 * + - col1 FROM tab0 AS cor0
----
-1
-441
-6561
onlyif mysql # aggregate syntax:
query I rowsort label-6393
SELECT ALL + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
query II rowsort
SELECT col0 AS col0, col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47
onlyif mysql # DIV for integer division:
query I rowsort label-6395
SELECT ALL + 93 DIV - col1 FROM tab1 AS cor0
----
-1
-18
-6
skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL + 93 / - col1 FROM tab1 AS cor0
----
-1
-18
-6
query I rowsort
SELECT ALL col0 * - 97 FROM tab1
----
-4947
-8245
-8827
query III rowsort
SELECT * FROM tab2 WHERE NOT + 13 IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * col0 col1 FROM tab2 AS cor0
----
1656
2304
2700
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6399
SELECT + CAST( - + COUNT( - 61 ) AS SIGNED ) FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-6399
SELECT + CAST ( - + COUNT ( - 61 ) AS INTEGER ) FROM tab0 AS cor0
----
-3
query II rowsort
SELECT ALL - 77 * - col2 AS col1, ( - + col2 ) FROM tab1 AS cor0
----
4543
-59
5236
-68
7392
-96
onlyif mysql # aggregate syntax:
query I rowsort label-6401
SELECT ALL + 37 * MAX( + col2 ) AS col0 FROM tab2 cor0
----
2146
skipif mysql # not compatible
query I rowsort label-6401
SELECT ALL + 37 * MAX ( + col2 ) AS col0 FROM tab2 cor0
----
2146
query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE + col1 > 90
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * 65 IS NOT NULL
----
query III rowsort
SELECT * FROM tab1 WHERE + 89 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6405
SELECT ALL + CAST( NULL AS SIGNED ) col1 FROM tab0 WHERE NULL <> col1
----
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6405
SELECT ALL + CAST ( NULL AS INTEGER ) col1 FROM tab0 WHERE NULL <> col1
----
query I rowsort
SELECT ALL col0 * + 50 FROM tab2
----
2300
3200
3750
query I rowsort
SELECT DISTINCT col1 + - - col1 AS col0 FROM tab2
----
102
134
154
query I rowsort
SELECT 96 * - 22 AS col1 FROM tab0
----
-2112
-2112
-2112
query I rowsort
SELECT ALL - + ( + col0 ) FROM tab2 WHERE NULL IS NOT NULL
----
query II rowsort
SELECT ALL + col1 * + - 10 + col2, 72 - 86 AS col1 FROM tab2
----
-487
-14
-612
-14
-730
-14
query I rowsort
SELECT 17 AS col0 FROM tab2 AS cor0 WHERE - 92 IS NOT NULL
----
17
17
17
onlyif mysql # aggregate syntax:
query I rowsort label-6412
SELECT DISTINCT ( COUNT( * ) ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT ( COUNT ( * ) ) FROM tab1 AS cor0
----
3
query I rowsort
SELECT DISTINCT - col0 * - col2 + 68 FROM tab2 AS cor0
----
1126
2628
4418
query I rowsort
SELECT ALL + 80 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query II rowsort
SELECT col2 + + - ( ( - col1 ) ), col0 AS col0 FROM tab1
----
110
51
115
91
64
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 - + + col0 * - 55 + + col0 col2, 58 + - ( + 98 ) + - - col0 - - ( - col1 ) * + + col0 AS col1 FROM tab1 AS cor0
----
2952
-703
4819
-380
5164
-4226
query I rowsort
SELECT DISTINCT + ( col2 ) - + 5 FROM tab0 AS cor0
----
42
5
94
onlyif mysql # aggregate syntax:
query I rowsort label-6418
SELECT MAX( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-51
skipif mysql # not compatible
query I rowsort label-6418
SELECT MAX ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-51
onlyif mysql # aggregate syntax:
query I rowsort label-6419
SELECT + COUNT( + + 42 ) FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-6419
SELECT + COUNT ( + + 42 ) FROM tab2 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-6420
SELECT ALL - MAX( ALL col2 ) col2 FROM tab0 cor0
----
-99
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6420
SELECT ALL - MAX ( ALL col2 ) col2 FROM tab0 cor0
----
-99
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL IN ( - + col2, - col2 ) )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 97, + 91 col2 FROM tab2 AS cor0
----
97
91
97
91
97
91
onlyif mysql # aggregate syntax:
query I rowsort label-6423
SELECT DISTINCT - COUNT( ALL - col1 ) FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT - COUNT ( ALL - col1 ) FROM tab0
----
-3
query I rowsort
SELECT - 40 * col2 FROM tab2
----
-1600
-2320
-920
query I rowsort
SELECT - 7 * - - 4 * + col0 AS col1 FROM tab0
----
-2436
-2716
-420
query I rowsort
SELECT ALL + ( + - col2 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96
onlyif mysql # DIV for integer division:
query I rowsort label-6427
SELECT col0 DIV - 6 FROM tab2
----
-10
-12
-7
skipif mysql # not compatible
query I rowsort label-6427
SELECT col0 / - 6 FROM tab2
----
-10
-12
-7
query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 + 85 * + + col2 BETWEEN + col1 + - + col0 AND NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6429
SELECT DISTINCT + 84 * - COUNT( * ) * 85 * CAST( NULL AS SIGNED ) * AVG ( ALL CAST( - col1 AS SIGNED ) ) col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6429
SELECT DISTINCT + 84 * - COUNT ( * ) * 85 * CAST ( NULL AS INTEGER ) * AVG ( ALL CAST ( - col1 AS INTEGER ) ) col2 FROM tab2 cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6430
SELECT MAX( ALL col2 ) AS col0 FROM tab0 AS cor0
----
99
skipif mysql # not compatible
query I rowsort label-6430
SELECT MAX ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
99
query I rowsort
SELECT + ( + + 72 ) + + - 99 FROM tab2
----
-27
-27
-27
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6432
SELECT 5 / + COUNT( * ) + + 49 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6432
SELECT 5 / + COUNT ( * ) + + 49 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT + ( + col1 ) * 4 AS col0 FROM tab2
----
204
268
308
query III rowsort
SELECT * FROM tab0 WHERE NOT 78 > + - col1
----
query II rowsort
SELECT - col2 AS col0, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + 56 / - 50 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-6437
SELECT - ( - ( - CAST( NULL AS DECIMAL ) ) ) * - ( - 37 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6437
SELECT - ( - ( - CAST ( NULL AS REAL ) ) ) * - ( - 37 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( col0 ) + col0 - + 49 FROM tab1 AS cor0
----
121
133
53
query I rowsort
SELECT + 76 * - col1 FROM tab1 cor0
----
-1064
-3572
-380
onlyif mysql # aggregate syntax:
query I rowsort label-6440
SELECT - - COUNT( * ) AS col0 FROM tab0 cor0
----
3
skipif mysql # not compatible
query I rowsort label-6440
SELECT - - COUNT ( * ) AS col0 FROM tab0 cor0
----
3
query I rowsort
SELECT + 47 * + col0 FROM tab1 AS cor0
----
2397
3995
4277
onlyif mysql # DIV for integer division:
query I rowsort label-6442
SELECT ALL col0 + col0 DIV 71 * - col2 AS col1 FROM tab0 AS cor0
----
-2
15
77
skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL col0 + col0 / 71 * - col2 AS col1 FROM tab0 AS cor0
----
-2
15
77
query I rowsort
SELECT ( - col2 ) - - - 88 AS col0 FROM tab2 WHERE - ( + col2 ) = NULL
----
query I rowsort
SELECT ALL - 54 + + col1 AS col0 FROM tab2
----
-3
13
23
onlyif mysql # DIV for integer division:
query I rowsort label-6445
SELECT ALL - 61 DIV - 17 AS col2 FROM tab2
----
3
3
3
skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL - 61 / - 17 AS col2 FROM tab2
----
3
3
3
query I rowsort
SELECT ALL - 66 + + - col0 FROM tab2 AS cor0
----
-112
-130
-141
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * + 9 col1, - col0 AS col1 FROM tab0 AS cor0 WHERE ( NOT - 8 <> - - 62 )
----
query I rowsort
SELECT col2 * + + col1 AS col0 FROM tab1
----
1344
295
3196
onlyif mysql # DIV for integer division:
query I rowsort label-6449
SELECT ALL - 53 DIV col1 + + - col2 AS col0 FROM tab1
----
-69
-69
-99
skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL - 53 / col1 + + - col2 AS col0 FROM tab1
----
-69
-69
-99
query III rowsort
SELECT * FROM tab0 WHERE NOT - 99 * - col0 / - + 90 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE - 15 * col1 NOT IN ( + 24, + 5 * + - col0, - - 44, - col0 / col1 )
----
-1
-21
-81
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6453
SELECT ALL + ( + CAST( + - col0 AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91
skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL + ( + CAST ( + - col0 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6454
SELECT + + COUNT( ALL CAST( + 50 AS SIGNED ) ) FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-6454
SELECT + + COUNT ( ALL CAST ( + 50 AS INTEGER ) ) FROM tab2 AS cor0
----
3
query I rowsort
SELECT col0 * + - col2 - col2 * - 25 AS col2 FROM tab0 cor0
----
-620
-7128
470
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 66 col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3366
4422
5082
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6457
SELECT DISTINCT + - CAST( + 79 AS SIGNED ) AS col1 FROM tab2 cor0
----
-79
skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT + - CAST ( + 79 AS INTEGER ) AS col1 FROM tab2 cor0
----
-79
query I rowsort
SELECT DISTINCT ( + 23 ) FROM tab2
----
23
query I rowsort
SELECT ALL + 77 AS col0 FROM tab1 WHERE NOT 26 <> NULL
----
query II rowsort
SELECT 82 AS col1, ( + col0 ) FROM tab2
----
82
46
82
64
82
75
query I rowsort
SELECT - col0 * + - col0 FROM tab0
----
225
7569
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, - 96 col1 FROM tab1
----
-51
-96
-85
-96
-91
-96
onlyif mysql # aggregate syntax:
query I rowsort label-6463
SELECT DISTINCT + 37 * + COUNT( * ) FROM tab1 AS cor0
----
111
skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT + 37 * + COUNT ( * ) FROM tab1 AS cor0
----
111
query III rowsort
SELECT * FROM tab0 WHERE NOT col1 - + - 24 BETWEEN NULL AND NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6465
SELECT ALL CAST( NULL AS SIGNED ) + + MAX( + col0 ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL CAST ( NULL AS INTEGER ) + + MAX ( + col0 ) FROM tab2
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6466
SELECT DISTINCT + 57 + - CAST( NULL AS SIGNED ) - + - col1 / + 96 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6466
SELECT DISTINCT + 57 + - CAST ( NULL AS INTEGER ) - + - col1 / + 96 FROM tab2
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6467
SELECT - COUNT( + + col0 ) col0 FROM tab0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6467
SELECT - COUNT ( + + col0 ) col0 FROM tab0
----
-3
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - col1 IS NOT NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-6469
SELECT COUNT( * ) + + 57 AS col1 FROM tab1
----
60
skipif mysql # not compatible
query I rowsort label-6469
SELECT COUNT ( * ) + + 57 AS col1 FROM tab1
----
60
query I rowsort
SELECT ALL - 41 * - col1 * + col1 + + 9 FROM tab1
----
1034
8045
90578
query II rowsort
SELECT col2, + col2 AS col0 FROM tab1
----
59
59
68
68
96
96
query I rowsort
SELECT DISTINCT - col0 - + col1 + + col2 * col2 FROM tab2
----
1459
3222
432
query III rowsort
SELECT * FROM tab0 WHERE - 92 * 28 NOT IN ( - - 70 * - - col2 + + col0 + + col2, - 98 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT ALL - ( - col2 ) - + col2 AS col1, - col2 FROM tab1
----
0
-59
0
-68
0
-96
onlyif mysql # aggregate syntax:
query I rowsort label-6475
SELECT 63 * + MAX( - col1 ) AS col2 FROM tab0
----
-63
skipif mysql # not compatible
query I rowsort label-6475
SELECT 63 * + MAX ( - col1 ) AS col2 FROM tab0
----
-63
query I rowsort
SELECT DISTINCT 8 - + 83 + - col0 FROM tab1
----
-126
-160
-166
query III rowsort
SELECT ALL * FROM tab1 WHERE - 19 + + 74 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-6478
SELECT + COUNT( - 46 ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-6478
SELECT + COUNT ( - 46 ) FROM tab2
----
3
query I rowsort
SELECT ALL - 99 - + - 75 FROM tab2 AS cor0
----
-24
-24
-24
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-6480
SELECT ALL 3, CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
3
NULL
3
NULL
3
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6480
SELECT ALL 3, CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
3
NULL
3
NULL
3
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6481
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-6481
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0
----
1
query I rowsort
SELECT 38 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6483
SELECT DISTINCT COUNT( * ) DIV + 54 AS col0 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT COUNT ( * ) / + 54 AS col0 FROM tab2
----
0
query I rowsort
SELECT DISTINCT + + 75 AS col0 FROM tab1 cor0
----
75
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < + col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-6486
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 cor0
----
3
skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6487
SELECT DISTINCT + 16 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT + 16 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
query II rowsort
SELECT ( - + col2 ) * ( + 73 ), 9 + - + 66 AS col0 FROM tab1 cor0
----
-4307
-57
-4964
-57
-7008
-57
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6489
SELECT - col1 FROM tab2 AS cor0 WHERE NOT col0 * - col1 <> CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-6489
SELECT - col1 FROM tab2 AS cor0 WHERE NOT col0 * - col1 <> CAST ( NULL AS INTEGER )
----
query I rowsort
SELECT ALL - col1 * 69 * col1 FROM tab1 AS cor0
----
-13524
-152421
-1725
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * col0 col1 FROM tab1
----
3519
5865
6279
onlyif mysql # DIV for integer division:
query I rowsort label-6492
SELECT DISTINCT col2 DIV + col0 * + + ( - col0 ) AS col2 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT col2 / + col0 * + + ( - col0 ) AS col2 FROM tab2
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-6493
SELECT + 48 DIV - 90 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6493
SELECT + 48 / - 90 AS col0 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 col1 FROM tab0
----
-84
-84
-84
query I rowsort
SELECT DISTINCT - 28 AS col2 FROM tab1
----
-28
query I rowsort
SELECT ALL + ( - - 98 ) AS col1 FROM tab0
----
98
98
98
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 = NULL
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-6498
SELECT ALL CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6499
SELECT + COUNT( * ) * + + 97 + + CAST( NULL AS SIGNED ) * - 36 * COUNT( * ) * - COUNT( * ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6499
SELECT + COUNT ( * ) * + + 97 + + CAST ( NULL AS INTEGER ) * - 36 * COUNT ( * ) * - COUNT ( * ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT + 86 + + 1 FROM tab2 AS cor0
----
87
87
87
query I rowsort
SELECT - + col0 + + col0 + - col0 FROM tab2 AS cor0
----
-46
-64
-75
query II rowsort
SELECT - col0 + - - 13 - - col2 * + col0 AS col0, - col0 AS col1 FROM tab0
----
703
-15
796
-87
9519
-97
query II rowsort
SELECT ALL + 87 AS col1, + ( + + col1 ) AS col0 FROM tab0
----
87
1
87
21
87
81
query II rowsort
SELECT - + 59 AS col0, + col2 FROM tab1 WHERE + 57 IS NULL
----
query III rowsort
SELECT * FROM tab0 WHERE ( + col1 ) IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-6506
SELECT ALL col2 + - 47 DIV - 77 FROM tab1 AS cor0
----
59
68
96
skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL col2 + - 47 / - 77 FROM tab1 AS cor0
----
59
68
96
query I rowsort
SELECT + 18 * - col2 * + col0 FROM tab0 AS cor0
----
-12690
-15660
-172854
onlyif mysql # aggregate syntax:
query I rowsort label-6508
SELECT DISTINCT - - MIN( - col1 ) FROM tab2 AS cor0
----
-77
skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT - - MIN ( - col1 ) FROM tab2 AS cor0
----
-77
query I rowsort
SELECT ALL - + 9 * + - 10 FROM tab1 AS cor0
----
90
90
90
onlyif mysql # aggregate syntax:
query I rowsort label-6510
SELECT + - COUNT( * ) * + 78 FROM tab0 AS cor0
----
-234
skipif mysql # not compatible
query I rowsort label-6510
SELECT + - COUNT ( * ) * + 78 FROM tab0 AS cor0
----
-234
query II rowsort
SELECT - col1 AS col0, - col0 FROM tab1 cor0
----
-14
-51
-47
-91
-5
-85
query I rowsort
SELECT - ( + + col1 ) FROM tab1 AS cor0
----
-14
-47
-5
query I rowsort
SELECT - - 92 - + + 47 + col1 - - col0 * 25 * + col2 AS col2 FROM tab1 AS cor0
----
122459
125425
154792
query I rowsort
SELECT DISTINCT 12 + col1 + + + 35 + - - col0 FROM tab2 AS cor0
----
144
188
189
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6515
SELECT DISTINCT CAST( + - 46 AS SIGNED ) + + col1 - + - col1 col1 FROM tab1 WHERE col0 * - col1 IS NOT NULL
----
-18
-36
48
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6515
SELECT DISTINCT CAST ( + - 46 AS INTEGER ) + + col1 - + - col1 col1 FROM tab1 WHERE col0 * - col1 IS NOT NULL
----
-18
-36
48
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6516
SELECT - col0 FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-51
-85
-91
skipif mysql # not compatible
query I rowsort label-6516
SELECT - col0 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-51
-85
-91
query I rowsort
SELECT + col1 + + - 9 FROM tab1
----
-4
38
5
query II rowsort
SELECT ALL + col1 * + + col1, + 22 AS col1 FROM tab1 AS cor0
----
196
22
2209
22
25
22
onlyif mysql # aggregate syntax:
query I rowsort label-6519
SELECT + COUNT( ALL - col1 ) * + + SUM( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-597
skipif mysql # not compatible
query I rowsort label-6519
SELECT + COUNT ( ALL - col1 ) * + + SUM ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-597
onlyif mysql # aggregate syntax:
query I rowsort label-6520
SELECT ALL - + 76 * + 61 * COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
-41724
skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL - + 76 * + 61 * COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
-41724
onlyif mysql # aggregate syntax:
query I rowsort label-6521
SELECT COUNT( * ) * - + 12 AS col1 FROM tab0
----
-36
skipif mysql # not compatible
query I rowsort label-6521
SELECT COUNT ( * ) * - + 12 AS col1 FROM tab0
----
-36
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6522
SELECT ALL 11 DIV + + COUNT( * ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL 11 / + + COUNT ( * ) FROM tab0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6523
SELECT DISTINCT + ( - CAST( + col2 AS SIGNED ) ) * 60 * - - col1 + - col0 * col2 AS col2 FROM tab0
----
-13470
-15543
-229125
skipif mysql # not compatible
query I rowsort label-6523
SELECT DISTINCT + ( - CAST ( + col2 AS INTEGER ) ) * 60 * - - col1 + - col0 * col2 AS col2 FROM tab0
----
-13470
-15543
-229125
query II rowsort
SELECT + col1 AS col2, - 1 FROM tab1
----
14
-1
47
-1
5
-1
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 7 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query II rowsort label-6526
SELECT + 82 AS col2, - col0 DIV 65 AS col2 FROM tab0
----
82
-1
82
-1
82
0
skipif mysql # not compatible
query II rowsort label-6526
SELECT + 82 AS col2, - col0 / 65 AS col2 FROM tab0
----
82
-1
82
-1
82
0
query I rowsort
SELECT 96 * + - col0 FROM tab1 cor0
----
-4896
-8160
-8736
onlyif mysql # aggregate syntax:
query I rowsort label-6528
SELECT MAX( DISTINCT - - col2 ) FROM tab0 AS cor0
----
99
skipif mysql # not compatible
query I rowsort label-6528
SELECT MAX ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
99
onlyif mysql # aggregate syntax:
query I rowsort label-6529
SELECT DISTINCT + MIN( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6529
SELECT DISTINCT + MIN ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
1
query I rowsort
SELECT DISTINCT ( + + col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + - - ( 84 ) + - + ( col2 ) / + + col2 IS NOT NULL
----
query I rowsort
SELECT 39 AS col2 FROM tab2 WHERE NOT + + col1 IS NULL
----
39
39
39
onlyif mysql # aggregate syntax:
query I rowsort label-6533
SELECT DISTINCT - COUNT( ALL - 58 ) FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-6533
SELECT DISTINCT - COUNT ( ALL - 58 ) FROM tab0
----
-3
query I rowsort
SELECT 87 * col2 * - col2 AS col0 FROM tab0
----
-192183
-852687
-8700
query I rowsort
SELECT ALL - col2 * - 81 AS col1 FROM tab0
----
3807
8019
810
onlyif mysql # aggregate syntax:
query I rowsort label-6536
SELECT ALL + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6536
SELECT ALL + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 48 ) col0 FROM tab1 AS cor0
----
48
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col0 + + col0
----
query I rowsort
SELECT - - 83 + - col1 * - col0 * col2 + + 35 AS col2 FROM tab1 cor0
----
25193
290954
68662
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6540
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 <> + + CAST( NULL AS SIGNED ) * + col0 + - col0
----
skipif mysql # not compatible
query III rowsort label-6540
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 <> + + CAST ( NULL AS INTEGER ) * + col0 + - col0
----
query I rowsort
SELECT DISTINCT + - col2 + col0 - 12 FROM tab2 AS cor0
----
11
12
5
onlyif mysql # aggregate syntax:
query I rowsort label-6542
SELECT DISTINCT COUNT( DISTINCT + 27 ) AS col0 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-6542
SELECT DISTINCT COUNT ( DISTINCT + 27 ) AS col0 FROM tab0 cor0
----
1
onlyif mysql # aggregate syntax:
query I rowsort label-6543
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3
skipif mysql # not compatible
query I rowsort label-6543
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3
query I rowsort
SELECT ALL col1 - - col1 AS col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----
query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col2 FROM tab1
----
-60
-60
-60
query I rowsort
SELECT ALL - 51 + + col2 * + 24 FROM tab0
----
1077
189
2325
onlyif mysql # aggregate syntax:
query I rowsort label-6548
SELECT + + COUNT( * ) * - + COUNT( * ) - + + 40 AS col0 FROM tab2 WHERE NULL IS NULL
----
-49
skipif mysql # not compatible
query I rowsort label-6548
SELECT + + COUNT ( * ) * - + COUNT ( * ) - + + 40 AS col0 FROM tab2 WHERE NULL IS NULL
----
-49
onlyif mysql # aggregate syntax:
query I rowsort label-6549
SELECT - MAX( DISTINCT col1 ) AS col2 FROM tab2
----
-77
skipif mysql # not compatible
query I rowsort label-6549
SELECT - MAX ( DISTINCT col1 ) AS col2 FROM tab2
----
-77
query I rowsort
SELECT DISTINCT - col2 + + - col1 FROM tab1
----
-110
-115
-64
onlyif mysql # aggregate syntax:
query I rowsort label-6551
SELECT DISTINCT COUNT( * ) - + MAX( ALL - col0 ) FROM tab0
----
18
skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT COUNT ( * ) - + MAX ( ALL - col0 ) FROM tab0
----
18
query I rowsort
SELECT col0 * col1 - - col0 + + - 60 FROM tab2
----
2332
4932
5040
query I rowsort
SELECT ( col2 ) - 74 FROM tab2
----
-16
-34
-51
onlyif mysql # DIV for integer division:
query II rowsort label-6554
SELECT - col1 - - 13 * 20 DIV 51, + ( col1 ) + + col1 * + + col1 AS col2 FROM tab0
----
-16
462
-76
6642
4
2
skipif mysql # not compatible
query II rowsort label-6554
SELECT - col1 - - 13 * 20 / 51, + ( col1 ) + + col1 * + + col1 AS col2 FROM tab0
----
-16
462
-76
6642
4
2
query II rowsort
SELECT col2, + col1 * - col2 - + col0 FROM tab2 AS cor0
----
23
-1219
40
-3144
58
-3961
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-6556
SELECT DISTINCT + 45 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT + 45 * + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, col0 AS col1 FROM tab2 cor0
----
23
46
40
64
58
75
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( ( col2 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - 41 ) col0, + col0 AS col1 FROM tab0
----
41
15
41
87
41
97
query I rowsort
SELECT DISTINCT col0 * ( - col1 ) AS col0 FROM tab1
----
-425
-4277
-714
query I rowsort
SELECT DISTINCT col0 * - 57 AS col0 FROM tab0 AS cor0
----
-4959
-5529
-855
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-6562
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= col0 + + CAST( NULL AS DECIMAL )
----
skipif mysql # not compatible
query III rowsort label-6562
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= col0 + + CAST ( NULL AS REAL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-6563
SELECT + + COUNT( - + col1 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 + - 62 AND - - 42
----
0
skipif mysql # not compatible
query I rowsort label-6563
SELECT + + COUNT ( - + col1 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 + - 62 AND - - 42
----
0
onlyif mysql # aggregate syntax:
query II rowsort label-6564
SELECT + 55 * + + COUNT( * ) col2, COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6564
SELECT + 55 * + + COUNT ( * ) col2, COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0
0
query I rowsort
SELECT - 43 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6566
SELECT ALL * FROM tab2 WHERE + 73 <> + col1 + - CAST( - col2 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-6566
SELECT ALL * FROM tab2 WHERE + 73 <> + col1 + - CAST ( - col2 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT col0 * + 64 FROM tab0
----
5568
6208
960
onlyif mysql # aggregate syntax:
query I rowsort label-6568
SELECT ALL COUNT( + col2 ) * + + COUNT( * ) FROM tab2
----
9
skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL COUNT ( + col2 ) * + + COUNT ( * ) FROM tab2
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-6569
SELECT ALL - + COUNT( - col0 ) AS col2 FROM tab2 WHERE NOT ( + col2 <> + ( - col0 ) )
----
0
skipif mysql # not compatible
query I rowsort label-6569
SELECT ALL - + COUNT ( - col0 ) AS col2 FROM tab2 WHERE NOT ( + col2 <> + ( - col0 ) )
----
0
query I rowsort
SELECT DISTINCT - 5 FROM tab1 WHERE NOT ( NOT + col0 * + col1 IS NOT NULL )
----
-5
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6571
SELECT ALL - 17 / CAST( NULL AS SIGNED ) * + AVG ( DISTINCT + 60 ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL - 17 / CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + 60 ) FROM tab1
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6572
SELECT COUNT( * ) + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6572
SELECT COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - 65 + - - col1 * - + col1 - + col2 FROM tab1 AS cor0 WHERE NOT - 52 BETWEEN + col2 AND - 73
----
-149
-2342
-357
query I rowsort
SELECT - - 77 * + col1 + - 36 AS col1 FROM tab2 cor0
----
3891
5123
5893
query I rowsort
SELECT - 78 * + col1 AS col2 FROM tab1
----
-1092
-3666
-390
onlyif mysql # aggregate syntax:
query I rowsort label-6576
SELECT COUNT( + 72 ) FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-6576
SELECT COUNT ( + 72 ) FROM tab1
----
3
onlyif mysql # DIV for integer division:
query I rowsort label-6577
SELECT ALL 24 DIV + col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL 24 / + col2 FROM tab1
----
0
0
0
query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 + col0 ) <= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6579
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT NULL <> NULL
----
0
skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT NULL <> NULL
----
0
query I rowsort
SELECT - col2 FROM tab1 WHERE NOT + col0 * col2 IS NULL
----
-59
-68
-96
onlyif mysql # aggregate syntax:
query I rowsort label-6581
SELECT - ( ( + ( - COUNT( * ) ) ) ) - + COUNT( * ) FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-6581
SELECT - ( ( + ( - COUNT ( * ) ) ) ) - + COUNT ( * ) FROM tab2
----
0
query III rowsort
SELECT * FROM tab2 WHERE NOT 97 IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT AVG ( col0 ) * - 49 AS col0 FROM tab0 WHERE NOT NULL BETWEEN col1 AND ( 64 )
----
NULL
query I rowsort
SELECT DISTINCT - 84 * col2 FROM tab0
----
-3948
-8316
-840
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 8 * ( - 55 ) + col1 NOT BETWEEN - 36 + + 43 AND col0 + 40
----
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-6586
SELECT DISTINCT * FROM tab1 WHERE ( + col0 - CAST( NULL AS DECIMAL ) ) IN ( 67 * ( col1 * col1 ) - 23 )
----
skipif mysql # not compatible
query III rowsort label-6586
SELECT DISTINCT * FROM tab1 WHERE ( + col0 - CAST ( NULL AS REAL ) ) IN ( 67 * ( col1 * col1 ) - 23 )
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6587
SELECT 45 DIV - COUNT( * ) AS col0 FROM tab2
----
-15
skipif mysql # not compatible
query I rowsort label-6587
SELECT 45 / - COUNT ( * ) AS col0 FROM tab2
----
-15
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * col0 <= ( + col0 * - col1 + - col0 )
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6589
SELECT 51 DIV ( - 97 * + COUNT( * ) ) col1 FROM tab1
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6589
SELECT 51 / ( - 97 * + COUNT ( * ) ) col1 FROM tab1
----
0
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - col1 FROM tab0 WHERE col1 - col2 IS NOT NULL
----
-1
-21
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 43 col2 FROM tab2
----
107
118
89
query I rowsort
SELECT ALL + col1 * + 27 FROM tab1 WHERE + 20 NOT BETWEEN ( NULL ) AND 19
----
1269
135
378
query I rowsort
SELECT + 90 * - col2 AS col2 FROM tab2
----
-2070
-3600
-5220
onlyif mysql # aggregate syntax:
query I rowsort label-6595
SELECT DISTINCT - MAX( DISTINCT + 25 ) FROM tab1
----
-25
skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT - MAX ( DISTINCT + 25 ) FROM tab1
----
-25
query I rowsort
SELECT ALL 80 * ( + ( - 73 ) ) FROM tab0
----
-5840
-5840
-5840
query I rowsort
SELECT col2 + col0 * col0 AS col0 FROM tab2
----
2139
4136
5683
query I rowsort
SELECT 43 * + 78 AS col0 FROM tab0
----
3354
3354
3354
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-6599
SELECT col2 * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6599
SELECT col2 * CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * col0 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col0 ) <= 32
----
onlyif mysql # aggregate syntax:
query I rowsort label-6602
SELECT DISTINCT - COUNT( ALL - 20 ) FROM tab1 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT - COUNT ( ALL - 20 ) FROM tab1 cor0
----
-3
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) = + 15 - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 37 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6605
SELECT ALL * FROM tab2 cor0 WHERE ( + CAST( col2 AS SIGNED ) * 10 ) NOT BETWEEN NULL AND NULL
----
skipif mysql # not compatible
query III rowsort label-6605
SELECT ALL * FROM tab2 cor0 WHERE ( + CAST ( col2 AS INTEGER ) * 10 ) NOT BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6606
SELECT ALL + SUM( ALL + ( + col2 ) ) * MIN( ALL + 11 ) FROM tab0 AS cor0
----
1716
skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL + SUM ( ALL + ( + col2 ) ) * MIN ( ALL + 11 ) FROM tab0 AS cor0
----
1716
query I rowsort
SELECT col1 + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) BETWEEN + col2 + + col1 * - col1 AND NULL
----
query I rowsort
SELECT DISTINCT + 59 * + col1 AS col0 FROM tab2 AS cor0 WHERE ( + col2 * col1 ) NOT BETWEEN ( NULL ) AND - 78 * col1
----
3009
3953
4543
onlyif mysql # aggregate syntax:
query I rowsort label-6609
SELECT SUM( DISTINCT col2 ) + 94 AS col0 FROM tab1 AS cor0
----
317
skipif mysql # not compatible
query I rowsort label-6609
SELECT SUM ( DISTINCT col2 ) + 94 AS col0 FROM tab1 AS cor0
----
317
onlyif mysql # DIV for integer division:
query I rowsort label-6610
SELECT DISTINCT + 94 DIV - col0 AS col0 FROM tab2 AS cor0
----
-1
-2
skipif mysql # not compatible
query I rowsort label-6610
SELECT DISTINCT + 94 / - col0 AS col0 FROM tab2 AS cor0
----
-1
-2
query I rowsort
SELECT ALL - col0 + + 22 * ( col1 ) AS col2 FROM tab1 AS cor0
----
25
257
943
onlyif mysql # aggregate syntax:
query I rowsort label-6612
SELECT ALL COUNT( DISTINCT col1 ) FROM tab2 AS cor0 WHERE ( ( - col1 ) ) IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL COUNT ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE ( ( - col1 ) ) IS NULL
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 40 col0 FROM tab2 AS cor0
----
-40
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6614
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <> - 34
----
skipif mysql # not compatible
query III rowsort label-6614
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> - 34
----
query I rowsort
SELECT ALL col2 + 11 AS col0 FROM tab0 WHERE col2 + - 34 >= ( NULL )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 IS NULL
----
query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( + col1 + 92 * col1 ) = ( NULL )
----
query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( ( 8 ) ) BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6619
SELECT MIN( ALL + + 60 ) + COUNT( ALL + 48 + 4 ) FROM tab1
----
63
skipif mysql # not compatible
query I rowsort label-6619
SELECT MIN ( ALL + + 60 ) + COUNT ( ALL + 48 + 4 ) FROM tab1
----
63
query III rowsort
SELECT * FROM tab2 WHERE col0 - - 96 <> ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query I rowsort label-6621
SELECT ALL ( 59 ) DIV col0 + col1 FROM tab0
----
1
21
84
skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL ( 59 ) / col0 + col1 FROM tab0
----
1
21
84
query I rowsort
SELECT DISTINCT - 83 * + + col1 * - col2 FROM tab1
----
111552
24485
265268
query I rowsort
SELECT - 68 FROM tab1 WHERE - col2 > + col2
----
query I rowsort
SELECT ALL + ( col2 ) + 83 FROM tab2
----
106
123
141
query III rowsort
SELECT * FROM tab0 WHERE - col1 BETWEEN - 28 * 79 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6626
SELECT DISTINCT 4 + - MIN( - 62 ) AS col1 FROM tab1
----
66
skipif mysql # not compatible
query I rowsort label-6626
SELECT DISTINCT 4 + - MIN ( - 62 ) AS col1 FROM tab1
----
66
query I rowsort
SELECT + col1 * - - 42 AS col0 FROM tab0
----
3402
42
882
onlyif mysql # aggregate syntax:
query I rowsort label-6628
SELECT + COUNT( * ) * + - 87 FROM tab1
----
-261
skipif mysql # not compatible
query I rowsort label-6628
SELECT + COUNT ( * ) * + - 87 FROM tab1
----
-261
onlyif mysql # aggregate syntax:
query I rowsort label-6629
SELECT + - COUNT( ALL - col2 ) FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-6629
SELECT + - COUNT ( ALL - col2 ) FROM tab2 AS cor0
----
-3
query I rowsort
SELECT 74 + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6631
SELECT ALL + + SUM( col0 ) DIV + COUNT( * ) FROM tab2 AS cor0
----
61
skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL + + SUM ( col0 ) / + COUNT ( * ) FROM tab2 AS cor0
----
61
query I rowsort
SELECT + col0 * ( + col0 ) * 0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-6633
SELECT DISTINCT + COUNT( DISTINCT - 25 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + 78 ) IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-6633
SELECT DISTINCT + COUNT ( DISTINCT - 25 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + 78 ) IS NOT NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-6634
SELECT ALL + COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( 90 * - ( col2 * 28 ) )
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6634
SELECT ALL + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( 90 * - ( col2 * 28 ) )
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-6635
SELECT - - 89 * 36 - - ( + MIN( + col1 ) ) AS col2 FROM tab2 AS cor0
----
3255
skipif mysql # not compatible
query I rowsort label-6635
SELECT - - 89 * 36 - - ( + MIN ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
3255
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6636
SELECT - CAST( NULL AS SIGNED ) * + col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6636
SELECT - CAST ( NULL AS INTEGER ) * + col1 FROM tab2 cor0
----
NULL
NULL
NULL
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 - col0 = NULL
----
query I rowsort
SELECT DISTINCT 98 AS col2 FROM tab2 AS cor0 WHERE ( - col0 / col0 + - col1 ) > col2
----
onlyif mysql # CAST syntax: SIGNED type:
query IIIIII rowsort label-6639
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( CAST( NULL AS SIGNED ) ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187
skipif mysql # not compatible
query IIIIII rowsort label-6639
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( CAST ( NULL AS INTEGER ) ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187
query I rowsort
SELECT ALL 19 / - col0 FROM tab0 WHERE NULL NOT IN ( + col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-6641
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-6641
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-6642
SELECT DISTINCT MAX( DISTINCT 29 ) / COUNT( * ) FROM tab1 WHERE NOT col1 NOT BETWEEN ( - col1 ) AND NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT MAX ( DISTINCT 29 ) / COUNT ( * ) FROM tab1 WHERE NOT col1 NOT BETWEEN ( - col1 ) AND NULL
----
NULL
query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE ( + 92 ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e
onlyif mysql # aggregate syntax:
query I rowsort label-6644
SELECT DISTINCT COUNT( * ) - - ( + - COUNT( * ) ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT COUNT ( * ) - - ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT - ( - + col0 ) + + col1 AS col0 FROM tab0 cor0
----
108
96
98
query I rowsort
SELECT DISTINCT + col2 * + col2 + col0 FROM tab2 AS cor0 WHERE NOT - 68 IS NOT NULL
----
query I rowsort
SELECT ALL - - col2 * col1 AS col0 FROM tab0 AS cor0
----
210
3807
99
query I rowsort
SELECT col0 * - + col2 - + - col0 AS col1 FROM tab0 AS cor0
----
-690
-783
-9506
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6649
SELECT - SUM( ALL + CAST( col1 AS SIGNED ) ) AS col0 FROM tab0 WHERE NOT + col0 BETWEEN 55 + - 34 AND NULL
----
-81
skipif mysql # not compatible
query I rowsort label-6649
SELECT - SUM ( ALL + CAST ( col1 AS INTEGER ) ) AS col0 FROM tab0 WHERE NOT + col0 BETWEEN 55 + - 34 AND NULL
----
-81
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6650
SELECT DISTINCT * FROM tab0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) BETWEEN ( NULL ) AND + col2 - - col0
----
skipif mysql # not compatible
query III rowsort label-6650
SELECT DISTINCT * FROM tab0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) BETWEEN ( NULL ) AND + col2 - - col0
----
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) >= + col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-6652
SELECT ALL COUNT( * ) * - 25 FROM tab2
----
-75
skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL COUNT ( * ) * - 25 FROM tab2
----
-75
onlyif mysql # DIV for integer division:
query I rowsort label-6653
SELECT ALL col0 DIV - 43 AS col2 FROM tab1
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL col0 / - 43 AS col2 FROM tab1
----
-1
-1
-2
query I rowsort
SELECT DISTINCT - 56 * - 99 FROM tab2
----
5544
onlyif mysql # DIV for integer division:
query I rowsort label-6655
SELECT DISTINCT - 50 DIV + col0 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-6655
SELECT DISTINCT - 50 / + col0 FROM tab1
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6656
SELECT CAST( NULL AS SIGNED ) * + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6656
SELECT CAST ( NULL AS INTEGER ) * + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - ( + 95 )
----
query I rowsort
SELECT DISTINCT - 67 + col2 * col1 AS col2 FROM tab1 WHERE NOT + - 98 NOT IN ( + col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-6659
SELECT DISTINCT MIN( col2 ) FROM tab2
----
23
skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT MIN ( col2 ) FROM tab2
----
23
query I rowsort
SELECT ( + + col0 ) AS col0 FROM tab2
----
46
64
75
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6661
SELECT DISTINCT - CAST( + + ( - - col2 ) AS SIGNED ) FROM tab1
----
-59
-68
-96
skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT - CAST ( + + ( - - col2 ) AS INTEGER ) FROM tab1
----
-59
-68
-96
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6662
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( + CAST( + col0 AS SIGNED ) AS SIGNED ) + col0 >= - col1
----
skipif mysql # not compatible
query III rowsort label-6662
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( + CAST ( + col0 AS INTEGER ) AS INTEGER ) + col0 >= - col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-6663
SELECT + MIN( ALL + 18 ) AS col0 FROM tab0 AS cor0
----
18
skipif mysql # not compatible
query I rowsort label-6663
SELECT + MIN ( ALL + 18 ) AS col0 FROM tab0 AS cor0
----
18
onlyif mysql # aggregate syntax:
query I rowsort label-6664
SELECT ALL - COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6664
SELECT ALL - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
query I rowsort
SELECT 13 * + col1 AS col0 FROM tab2
----
1001
663
871
query I rowsort
SELECT DISTINCT - 19 * col2 FROM tab2
----
-1102
-437
-760
query I rowsort
SELECT col2 * + - 59 AS col2 FROM tab0
----
-2773
-5841
-590
query I rowsort
SELECT - 28 * + 77 AS col2 FROM tab1
----
-2156
-2156
-2156
query I rowsort
SELECT DISTINCT - + 57 FROM tab1 AS cor0
----
-57
query I rowsort
SELECT ALL ( col0 ) AS col0 FROM tab0 AS cor0 WHERE + col2 + 55 + + col2 < ( + - 29 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-6671
SELECT DISTINCT + 65 * + COUNT( * ) FROM tab0 AS cor0 WHERE 56 * - col2 * - col0 * col2 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-6671
SELECT DISTINCT + 65 * + COUNT ( * ) FROM tab0 AS cor0 WHERE 56 * - col2 * - col0 * col2 IS NULL
----
0
query II rowsort
SELECT ALL col0 AS col2, col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 > ( NULL )
----
onlyif mysql # DIV for integer division:
query I rowsort label-6674
SELECT ALL + col1 DIV + + col2 + - + 69 + - col1 + - col2 FROM tab0 cor0
----
-169
-196
-98
skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL + col1 / + + col2 + - + 69 + - col1 + - col2 FROM tab0 cor0
----
-169
-196
-98
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > + 86
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6676
SELECT - CAST( + 6 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-6
-6
-6
skipif mysql # not compatible
query I rowsort label-6676
SELECT - CAST ( + 6 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-6
-6
-6
onlyif mysql # aggregate syntax:
query I rowsort label-6677
SELECT ALL COUNT( * ) + - - COUNT( * ) FROM tab1
----
6
skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL COUNT ( * ) + - - COUNT ( * ) FROM tab1
----
6
onlyif mysql # aggregate syntax:
query I rowsort label-6678
SELECT + MIN( + 98 ) FROM tab1
----
98
skipif mysql # not compatible
query I rowsort label-6678
SELECT + MIN ( + 98 ) FROM tab1
----
98
query I rowsort
SELECT DISTINCT - 23 + - + ( + col1 ) + - 11 + - col0 FROM tab1
----
-124
-172
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + AVG ( DISTINCT + 11 ) col0 FROM tab2 WHERE NOT NULL >= + 15
----
NULL
query I rowsort
SELECT DISTINCT - col1 * + col0 + - 12 AS col1 FROM tab0
----
-109
-1227
-1839
query I rowsort
SELECT + 67 * ( - col0 ) * col0 + - col1 * 52 AS col0 FROM tab0 WHERE ( col0 ) IS NOT NULL
----
-19287
-508215
-630455
onlyif mysql # aggregate syntax:
query I rowsort label-6683
SELECT + COUNT( * ) FROM tab1 WHERE ( - 46 ) IS NOT NULL
----
3
skipif mysql # not compatible
query I rowsort label-6683
SELECT + COUNT ( * ) FROM tab1 WHERE ( - 46 ) IS NOT NULL
----
3
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col2 / + ( - ( + 66 ) ) + 90 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-6685
SELECT - SUM( - + col2 ) AS col2 FROM tab0 AS cor0
----
156
skipif mysql # not compatible
query I rowsort label-6685
SELECT - SUM ( - + col2 ) AS col2 FROM tab0 AS cor0
----
156
query II rowsort
SELECT 33, col1 AS col2 FROM tab0 AS cor0
----
33
1
33
21
33
81
query I rowsort
SELECT ALL - col0 - + col2 * - - col2 + col2 * - - col0 AS col0 FROM tab2 AS cor0
----
483
896
911
onlyif mysql # aggregate syntax:
query I rowsort label-6688
SELECT + COUNT( * ) * + 45 - - - COUNT( + - col0 ) AS col1 FROM tab2 AS cor0
----
132
skipif mysql # not compatible
query I rowsort label-6688
SELECT + COUNT ( * ) * + 45 - - - COUNT ( + - col0 ) AS col1 FROM tab2 AS cor0
----
132
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query I rowsort label-6690
SELECT - + 49 DIV - 34 - 33 - 69 * + col0 AS col2 FROM tab1 cor0
----
-3551
-5897
-6311
skipif mysql # not compatible
query I rowsort label-6690
SELECT - + 49 / - 34 - 33 - 69 * + col0 AS col2 FROM tab1 cor0
----
-3551
-5897
-6311
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= 92
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 IN ( + + col2, - col0 * - 60 )
----
query I rowsort
SELECT DISTINCT - - ( 58 ) FROM tab2 AS cor0
----
58
onlyif mysql # aggregate syntax:
query I rowsort label-6694
SELECT + 9 * - COUNT( * ) * + - COUNT( - ( + 81 ) ) FROM tab2 AS cor0
----
81
skipif mysql # not compatible
query I rowsort label-6694
SELECT + 9 * - COUNT ( * ) * + - COUNT ( - ( + 81 ) ) FROM tab2 AS cor0
----
81
query II rowsort
SELECT - ( col2 ) * + col2 AS col0, + col2 + - + col0 / col0 FROM tab0 WHERE NOT NULL <= col1
----
query III rowsort
SELECT ALL * FROM tab2 WHERE + ( + col1 ) IN ( - 74, - 75 * + - 51 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - col2 * - 35 + + - col0 - + 47 ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6698
SELECT ALL - SUM( - col0 ) FROM tab0
----
199
skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL - SUM ( - col0 ) FROM tab0
----
199
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT ( - 97 ) AS col2 FROM tab1 AS cor0
----
-97
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 IS NULL
----
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-6703
SELECT * FROM tab2 WHERE NOT - - ( + col1 ) NOT BETWEEN NULL AND ( - - ( CAST( NULL AS DECIMAL ) ) )
----
skipif mysql # not compatible
query III rowsort label-6703
SELECT * FROM tab2 WHERE NOT - - ( + col1 ) NOT BETWEEN NULL AND ( - - ( CAST ( NULL AS REAL ) ) )
----
onlyif mysql # aggregate syntax:
query I rowsort label-6704
SELECT DISTINCT COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-6705
SELECT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-6705
SELECT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-6706
SELECT 28 + + ( - SUM( + - 26 ) ) AS col1 FROM tab1 AS cor0
----
106
skipif mysql # not compatible
query I rowsort label-6706
SELECT 28 + + ( - SUM ( + - 26 ) ) AS col1 FROM tab1 AS cor0
----
106
onlyif mysql # aggregate syntax:
query I rowsort label-6707
SELECT + - 44 + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-41
skipif mysql # not compatible
query I rowsort label-6707
SELECT + - 44 + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-41
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( col1 )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6709
SELECT DISTINCT + - MAX( + - 32 ) FROM tab1 AS cor0 WHERE col0 / - ( + col0 ) + - CAST( NULL AS SIGNED ) + - col0 * + col0 IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT + - MAX ( + - 32 ) FROM tab1 AS cor0 WHERE col0 / - ( + col0 ) + - CAST ( NULL AS INTEGER ) + - col0 * + col0 IS NOT NULL
----
NULL
query I rowsort
SELECT - ( - - 61 ) + - col1 AS col1 FROM tab2 AS cor0
----
-112
-128
-138
onlyif mysql # aggregate syntax:
query I rowsort label-6711
SELECT ALL + MAX( DISTINCT - 64 ) AS col2 FROM tab2 cor0
----
-64
skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL + MAX ( DISTINCT - 64 ) AS col2 FROM tab2 cor0
----
-64
query I rowsort
SELECT ALL col2 * - col1 + + - 26 FROM tab0 cor0
----
-125
-236
-3833
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6713
SELECT ALL CAST( + col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97
skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97
query I rowsort
SELECT + col0 + + col1 - - 94 AS col0 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN + col1 AND NULL
----
query I rowsort
SELECT DISTINCT + 42 AS col2 FROM tab2 WHERE col1 * - + col1 + + + col2 IS NOT NULL
----
42
query I rowsort
SELECT ALL + 12 + ( - col1 ) AS col0 FROM tab2
----
-39
-55
-65
query I rowsort
SELECT - ( + - col0 ) AS col2 FROM tab0
----
15
87
97
query III rowsort
SELECT * FROM tab1 WHERE - - ( - 74 ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6719
SELECT SUM( - - 84 ) col1 FROM tab1
----
252
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6719
SELECT SUM ( - - 84 ) col1 FROM tab1
----
252
onlyif mysql # aggregate syntax:
query I rowsort label-6720
SELECT + SUM( + 76 ) AS col0 FROM tab0
----
228
skipif mysql # not compatible
query I rowsort label-6720
SELECT + SUM ( + 76 ) AS col0 FROM tab0
----
228
query I rowsort
SELECT ALL - 86 + - col0 AS col0 FROM tab1
----
-137
-171
-177
onlyif mysql # aggregate syntax:
query I rowsort label-6722
SELECT ALL + SUM( ALL - - col1 ) AS col0 FROM tab0
----
103
skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL + SUM ( ALL - - col1 ) AS col0 FROM tab0
----
103
onlyif mysql # aggregate syntax:
query I rowsort label-6723
SELECT - ( - - COUNT( * ) ) AS col2 FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-6723
SELECT - ( - - COUNT ( * ) ) AS col2 FROM tab1
----
-3
onlyif mysql # DIV for integer division:
query I rowsort label-6724
SELECT DISTINCT 24 - + col2 DIV + col1 FROM tab2
----
24
skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT 24 - + col2 / + col1 FROM tab2
----
24
onlyif mysql # aggregate syntax:
query I rowsort label-6725
SELECT + SUM( DISTINCT + col0 ) AS col0 FROM tab2
----
185
skipif mysql # not compatible
query I rowsort label-6725
SELECT + SUM ( DISTINCT + col0 ) AS col0 FROM tab2
----
185
onlyif mysql # aggregate syntax:
query I rowsort label-6726
SELECT + 77 * + COUNT( * ) FROM tab0
----
231
skipif mysql # not compatible
query I rowsort label-6726
SELECT + 77 * + COUNT ( * ) FROM tab0
----
231
query I rowsort
SELECT 87 - - - 40 AS col0 FROM tab1 AS cor0
----
47
47
47
onlyif mysql # aggregate syntax:
query I rowsort label-6728
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE ( NOT col1 + + col2 + + col1 IS NOT NULL )
----
0
skipif mysql # not compatible
query I rowsort label-6728
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NOT col1 + + col2 + + col1 IS NOT NULL )
----
0
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6729
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - 17 / ( col1 ) BETWEEN + + col0 * - - col2 AND - CAST( + col1 AS SIGNED ) )
----
skipif mysql # not compatible
query III rowsort label-6729
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - 17 / ( col1 ) BETWEEN + + col0 * - - col2 AND - CAST ( + col1 AS INTEGER ) )
----
onlyif mysql # aggregate syntax:
query I rowsort label-6730
SELECT ALL - + COUNT( * ) - COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
-6
skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL - + COUNT ( * ) - COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
-6
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 26 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT + 43 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
43
query I rowsort
SELECT ALL - - col2 * + + col1 FROM tab2 AS cor0
----
1173
3080
3886
query II rowsort
SELECT col2 * - col2 AS col1, col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( col1 ) AND NULL
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - col1 * - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT + - ( + - col0 ) * - + col2 + - - col2 * col1 AS col2 FROM tab1 AS cor0
----
-2992
-3552
-4720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab2 AS cor0 WHERE NOT 23 BETWEEN 89 + - + col2 AND - + col0 + - col1
----
51
67
77
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 NOT IN ( - - 44, - col1, - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6740
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-6741
SELECT - + 29 col1, - CAST( NULL AS SIGNED ) / - 58 FROM tab2 AS cor0
----
-29
NULL
-29
NULL
-29
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6741
SELECT - + 29 col1, - CAST ( NULL AS INTEGER ) / - 58 FROM tab2 AS cor0
----
-29
NULL
-29
NULL
-29
NULL
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + 47 * - 69 * col0 IS NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-6743
SELECT ALL COUNT( ALL - + col0 ) FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL COUNT ( ALL - + col0 ) FROM tab1
----
3
query I rowsort
SELECT + 69 * + col0 FROM tab0
----
1035
6003
6693
onlyif mysql # DIV for integer division:
query I rowsort label-6745
SELECT ALL col1 DIV 37 AS col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL col1 / 37 AS col2 FROM tab1
----
0
0
1
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6746
SELECT ALL CAST( + col0 AS SIGNED ) AS col0 FROM tab0
----
15
87
97
skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL CAST ( + col0 AS INTEGER ) AS col0 FROM tab0
----
15
87
97
query I rowsort
SELECT DISTINCT col1 * 83 FROM tab1
----
1162
3901
415
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6748
SELECT - MIN( + + 70 ) FROM tab1 WHERE NOT ( NOT - col0 < CAST( NULL AS SIGNED ) * 53 + col1 )
----
NULL
skipif mysql # not compatible
query I rowsort label-6748
SELECT - MIN ( + + 70 ) FROM tab1 WHERE NOT ( NOT - col0 < CAST ( NULL AS INTEGER ) * 53 + col1 )
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 = ( - - col1 + + 88 * - - 47 )
----
query I rowsort
SELECT ALL + col0 - - 31 AS col2 FROM tab0 WHERE NULL IS NULL
----
118
128
46
onlyif mysql # aggregate syntax:
query I rowsort label-6751
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1, tab2 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1, tab2 AS cor0
----
9
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 18 NOT IN ( + 30 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 * - ( 87 ) )
----
onlyif mysql # aggregate syntax:
query II rowsort label-6754
SELECT DISTINCT + - 0 * + - 83 AS col2, COUNT( * ) - - 52 FROM tab0 AS cor0
----
0
55
skipif mysql # not compatible
query II rowsort label-6754
SELECT DISTINCT + - 0 * + - 83 AS col2, COUNT ( * ) - - 52 FROM tab0 AS cor0
----
0
55
query I rowsort
SELECT + + col2 * - - col0 + + col2 FROM tab1 AS cor0
----
4992
5074
6256
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 < NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6757
SELECT MIN( DISTINCT + + col1 ) AS col0 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6757
SELECT MIN ( DISTINCT + + col1 ) AS col0 FROM tab0 AS cor0
----
1
query II rowsort
SELECT 17, - col2 AS col2 FROM tab0 AS cor0
----
17
-10
17
-47
17
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 98 col0, + col0 AS col2 FROM tab0 AS cor0
----
98
15
98
87
98
97
onlyif mysql # aggregate syntax:
query II rowsort label-6760
SELECT COUNT( * ) AS col1, MIN( DISTINCT - + col0 ) FROM tab2 AS cor0
----
3
-75
skipif mysql # not compatible
query II rowsort label-6760
SELECT COUNT ( * ) AS col1, MIN ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
3
-75
onlyif mysql # DIV for integer division:
query I rowsort label-6761
SELECT - - col2 DIV col0 + + - col2 + - + col2 AS col2 FROM tab1 AS cor0 WHERE col0 * col2 * 96 IS NOT NULL
----
-118
-136
-191
skipif mysql # not compatible
query I rowsort label-6761
SELECT - - col2 / col0 + + - col2 + - + col2 AS col2 FROM tab1 AS cor0 WHERE col0 * col2 * 96 IS NOT NULL
----
-118
-136
-191
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5
query I rowsort
SELECT DISTINCT col0 + - 3 * + col1 FROM tab1 AS cor0 WHERE ( NULL ) IN ( 37, ( - col1 ) )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6764
SELECT - - CAST( - col0 AS SIGNED ) - - + 88 AS col1 FROM tab2 cor0
----
13
24
42
skipif mysql # not compatible
query I rowsort label-6764
SELECT - - CAST ( - col0 AS INTEGER ) - - + 88 AS col1 FROM tab2 cor0
----
13
24
42
query III rowsort
SELECT ALL * FROM tab0 WHERE 61 BETWEEN col1 - - col2 + + - col2 / + + col2 AND - col1
----
query I rowsort
SELECT ALL 40 AS col2 FROM tab1
----
40
40
40
onlyif mysql # aggregate syntax:
query I rowsort label-6767
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 WHERE - + 2 > - col2
----
-3
skipif mysql # not compatible
query I rowsort label-6767
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 WHERE - + 2 > - col2
----
-3
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6768
SELECT ALL COUNT( * ) DIV + SUM( + + 45 ) + + - COUNT( * ) col2 FROM tab2
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6768
SELECT ALL COUNT ( * ) / + SUM ( + + 45 ) + + - COUNT ( * ) col2 FROM tab2
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6769
SELECT ALL - CAST( - col1 AS SIGNED ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL - CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6770
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0
query I rowsort
SELECT ALL + 51 - + col2 FROM tab0
----
-48
4
41
query I rowsort
SELECT ALL 92 AS col0 FROM tab2
----
92
92
92
query II rowsort
SELECT - 98 + + ( col0 ) AS col1, + col2 AS col0 FROM tab1 AS cor0 WHERE ( col2 * - col2 / + col0 * col1 ) NOT IN ( col1 )
----
-13
59
-47
96
-7
68
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6774
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 99 - + col0 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 99 - + col0 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT ALL + 8 + + - col2 + + + 72 * - col1 * - 56 + + - col2 AS col2 FROM tab0 AS cor0
----
326506
3842
84660
query II rowsort
SELECT ALL col2 * - col0, + col1 AS col2 FROM tab1 AS cor0
----
-4896
14
-5015
5
-6188
47
query I rowsort
SELECT - 80 * - AVG ( col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL
query I rowsort
SELECT ALL 27 * + - 43 AS col0 FROM tab1
----
-1161
-1161
-1161
onlyif mysql # aggregate syntax:
query I rowsort label-6779
SELECT ALL + MIN( - + col2 ) AS col2 FROM tab1 AS cor0
----
-96
skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL + MIN ( - + col2 ) AS col2 FROM tab1 AS cor0
----
-96
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + + col0 IS NULL
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + 66 IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col2 )
----
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 67 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 39 <> + col2
----
query II rowsort
SELECT ALL 35 AS col0, col0 + - col0 - + 3 * + col0 FROM tab0
----
35
-261
35
-291
35
-45
query I rowsort
SELECT DISTINCT col2 * + col2 * - + col2 AS col1 FROM tab2
----
-12167
-195112
-64000
query I rowsort
SELECT - col2 * ( + col0 ) AS col2 FROM tab2
----
-1058
-2560
-4350
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6790
SELECT MIN( DISTINCT + - col2 ) AS col1 FROM tab1
----
-96
skipif mysql # not compatible
query I rowsort label-6790
SELECT MIN ( DISTINCT + - col2 ) AS col1 FROM tab1
----
-96
onlyif mysql # aggregate syntax:
query I rowsort label-6791
SELECT DISTINCT + COUNT( * ) * ( + 82 ) * 51 + + 6 AS col2 FROM tab0
----
12552
skipif mysql # not compatible
query I rowsort label-6791
SELECT DISTINCT + COUNT ( * ) * ( + 82 ) * 51 + + 6 AS col2 FROM tab0
----
12552
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6792
SELECT + CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6792
SELECT + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6793
SELECT DISTINCT MAX( DISTINCT - 5 ) DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-6793
SELECT DISTINCT MAX ( DISTINCT - 5 ) / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-1
onlyif mysql # aggregate syntax:
query I rowsort label-6794
SELECT ALL + - 54 * - SUM( col1 ) AS col0 FROM tab2 AS cor0
----
10530
skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL + - 54 * - SUM ( col1 ) AS col0 FROM tab2 AS cor0
----
10530
onlyif mysql # DIV for integer division:
query I rowsort label-6795
SELECT DISTINCT - 64 DIV + 15 AS col2 FROM tab1 AS cor0
----
-4
skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT - 64 / + 15 AS col2 FROM tab1 AS cor0
----
-4
onlyif mysql # aggregate syntax:
query I rowsort label-6796
SELECT MIN( ALL + 95 ) AS col1 FROM tab1 AS cor0
----
95
skipif mysql # not compatible
query I rowsort label-6796
SELECT MIN ( ALL + 95 ) AS col1 FROM tab1 AS cor0
----
95
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-6797
SELECT DISTINCT col0 DIV - + col2 + + - col0 + + CAST( + - 64 AS SIGNED ) * + + ( col2 ) * - 72 - + + 21 + col2 DIV + col0 - ( col0 ) AS col2 FROM tab2 AS cor0
----
105869
184170
267092
skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT col0 / - + col2 + + - col0 + + CAST ( + - 64 AS INTEGER ) * + + ( col2 ) * - 72 - + + 21 + col2 / + col0 - ( col0 ) AS col2 FROM tab2 AS cor0
----
105869
184170
267092
query I rowsort
SELECT DISTINCT + col0 + - 33 FROM tab1
----
18
52
58
onlyif mysql # aggregate syntax:
query I rowsort label-6799
SELECT DISTINCT MAX( + 86 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
86
skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT MAX ( + 86 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
86
query III rowsort
SELECT * FROM tab0 WHERE NULL >= + - col0 * col2 / col1 / + col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945
query I rowsort
SELECT - col0 * + col2 + + 82 * - + col1 AS col0 FROM tab2
----
-5240
-8874
-9844
onlyif mysql # aggregate syntax:
query I rowsort label-6803
SELECT COUNT( * ) + + 28 * + 69 FROM tab1
----
1935
skipif mysql # not compatible
query I rowsort label-6803
SELECT COUNT ( * ) + + 28 * + 69 FROM tab1
----
1935
onlyif mysql # aggregate syntax:
query I rowsort label-6804
SELECT + COUNT( - - 50 ) + + - MIN( - col1 ) AS col2 FROM tab0
----
84
skipif mysql # not compatible
query I rowsort label-6804
SELECT + COUNT ( - - 50 ) + + - MIN ( - col1 ) AS col2 FROM tab0
----
84
onlyif mysql # aggregate syntax:
query I rowsort label-6805
SELECT + - COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-6
skipif mysql # not compatible
query I rowsort label-6805
SELECT + - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-6
onlyif mysql # aggregate syntax:
query I rowsort label-6806
SELECT + COUNT( * ) + + + ( COUNT( * ) ) FROM tab1 AS cor0
----
6
skipif mysql # not compatible
query I rowsort label-6806
SELECT + COUNT ( * ) + + + ( COUNT ( * ) ) FROM tab1 AS cor0
----
6
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * - 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-6808
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + col1 * - ( col0 ) IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + col1 * - ( col0 ) IS NOT NULL
----
0
query I rowsort
SELECT + 20 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
20
20
20
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6810
SELECT DISTINCT - - 26 + - - COUNT( * ) * - 55 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT - - 26 + - - COUNT ( * ) * - 55 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE col2 + - col2 IS NOT NULL
----
-10
-47
-99
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-6812
SELECT CAST( + - 43 AS SIGNED ) - + - col0 AS col1, + col2 AS col1 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
42
59
48
68
8
96
skipif mysql # not compatible
query II rowsort label-6812
SELECT CAST ( + - 43 AS INTEGER ) - + - col0 AS col1, + col2 AS col1 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
42
59
48
68
8
96
query I rowsort
SELECT + - col1 AS col1 FROM tab0 WHERE NULL > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab1 WHERE - + 38 NOT IN ( + ( + col1 ), + col0 )
----
14
47
5
onlyif mysql # aggregate syntax:
query I rowsort label-6815
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) + + MAX( ALL + col1 ) AS col1 FROM tab0
----
81
skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) + + MAX ( ALL + col1 ) AS col1 FROM tab0
----
81
query II rowsort
SELECT col0, + 46 AS col0 FROM tab2
----
46
46
64
46
75
46
onlyif mysql # aggregate syntax:
query I rowsort label-6817
SELECT COUNT( * ) * + 16 AS col0 FROM tab2, tab0 AS cor0
----
144
skipif mysql # not compatible
query I rowsort label-6817
SELECT COUNT ( * ) * + 16 AS col0 FROM tab2, tab0 AS cor0
----
144
query I rowsort
SELECT ALL - col0 + - - 92 AS col0 FROM tab2
----
17
28
46
onlyif mysql # aggregate syntax:
query II rowsort label-6819
SELECT COUNT( * ) AS col2, + COUNT( * ) FROM tab0
----
3
3
skipif mysql # not compatible
query II rowsort label-6819
SELECT COUNT ( * ) AS col2, + COUNT ( * ) FROM tab0
----
3
3
onlyif mysql # aggregate syntax:
query I rowsort label-6820
SELECT ALL 3 + + + MIN( ALL 4 ) * + 94 FROM tab2
----
379
skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL 3 + + + MIN ( ALL 4 ) * + 94 FROM tab2
----
379
query II rowsort
SELECT ALL col2 - - + col2 * + + col0, col2 AS col1 FROM tab1
----
4992
96
5074
59
6256
68
onlyif mysql # aggregate syntax:
query I rowsort label-6822
SELECT DISTINCT MIN( ALL col1 ) FROM tab1
----
5
skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT MIN ( ALL col1 ) FROM tab1
----
5
query I rowsort
SELECT DISTINCT col1 * 43 - col2 AS col2 FROM tab1
----
156
1953
506
query II rowsort
SELECT ALL + col0, + col0 AS col0 FROM tab2 cor0
----
46
46
64
64
75
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 48, col1 col2 FROM tab1 AS cor0
----
-48
14
-48
47
-48
5
onlyif mysql # aggregate syntax:
query I rowsort label-6826
SELECT + ( + - COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-6826
SELECT + ( + - COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-6827
SELECT - MAX( ALL 37 ) FROM tab1 cor0
----
-37
skipif mysql # not compatible
query I rowsort label-6827
SELECT - MAX ( ALL 37 ) FROM tab1 cor0
----
-37
query II rowsort
SELECT + - ( + - col1 ) AS col2, + 48 FROM tab2 AS cor0
----
51
48
67
48
77
48
query I rowsort
SELECT col0 * + col0 - 65 FROM tab2 cor0 WHERE NOT 3 * + col1 IS NULL
----
2051
4031
5560
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6830
SELECT + CAST( - + 90 AS SIGNED ) * - 89 + - 14 * 93 AS col1 FROM tab1 AS cor0
----
6708
6708
6708
skipif mysql # not compatible
query I rowsort label-6830
SELECT + CAST ( - + 90 AS INTEGER ) * - 89 + - 14 * 93 AS col1 FROM tab1 AS cor0
----
6708
6708
6708
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + + col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - + col1 col2 FROM tab1
----
1344
295
3196
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 90 * - 16 * - col2 col0, col2 FROM tab2
----
33120
23
57600
40
83520
58
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * - col2 NOT BETWEEN NULL AND ( NULL )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6835
SELECT DISTINCT COUNT( * ) * + - ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-6835
SELECT DISTINCT COUNT ( * ) * + - ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
query I rowsort
SELECT ALL 21 * - + 80 AS col0 FROM tab0
----
-1680
-1680
-1680
onlyif mysql # aggregate syntax:
query I rowsort label-6837
SELECT ALL 3 * 65 * + SUM( 17 ) FROM tab2 AS cor0
----
9945
skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL 3 * 65 * + SUM ( 17 ) FROM tab2 AS cor0
----
9945
query I rowsort
SELECT DISTINCT - + 8 AS col2 FROM tab2 AS cor0
----
-8
onlyif mysql # aggregate syntax:
query I rowsort label-6839
SELECT ALL + COUNT( * ) * + - 85 + - - COUNT( DISTINCT - col1 ) FROM tab1
----
-252
skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL + COUNT ( * ) * + - 85 + - - COUNT ( DISTINCT - col1 ) FROM tab1
----
-252
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6840
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-6840
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
3
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT DISTINCT ( 81 ) * 81 FROM tab2
----
6561
onlyif mysql # aggregate syntax:
query I rowsort label-6843
SELECT DISTINCT - MIN( - - col0 ) AS col2 FROM tab0 AS cor0
----
-15
skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT - MIN ( - - col0 ) AS col2 FROM tab0 AS cor0
----
-15
onlyif mysql # aggregate syntax:
query I rowsort label-6844
SELECT - MIN( - col0 ) AS col2 FROM tab2 AS cor0
----
75
skipif mysql # not compatible
query I rowsort label-6844
SELECT - MIN ( - col0 ) AS col2 FROM tab2 AS cor0
----
75
onlyif mysql # DIV for integer division:
query I rowsort label-6845
SELECT - col1 DIV - 86 - + - 23 col0 FROM tab1 AS cor0
----
23
23
23
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6845
SELECT - col1 / - 86 - + - 23 col0 FROM tab1 AS cor0
----
23
23
23
query I rowsort
SELECT 28 * - col0 - + col1 FROM tab1 AS cor0
----
-1442
-2385
-2595
query II rowsort
SELECT ALL 81 AS col1, 81 * col2 FROM tab2 AS cor0
----
81
1863
81
3240
81
4698
onlyif mysql # aggregate syntax:
query I rowsort label-6848
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 14 IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 14 IS NULL
----
3
query I rowsort
SELECT DISTINCT col0 * - col0 * + col1 + + col2 * + col0 FROM tab1 AS cor0
----
-31110
-31518
-383019
onlyif mysql # DIV for integer division:
query I rowsort label-6850
SELECT col0 DIV ( 59 ) + - + col1 AS col1 FROM tab2
----
-51
-66
-76
skipif mysql # not compatible
query I rowsort label-6850
SELECT col0 / ( 59 ) + - + col1 AS col1 FROM tab2
----
-51
-66
-76
query I rowsort
SELECT DISTINCT 1 * col0 + col1 - col1 AS col1 FROM tab2
----
46
64
75
onlyif mysql # aggregate syntax:
query I rowsort label-6852
SELECT - COUNT( DISTINCT - col1 ) AS col0 FROM tab0 WHERE NULL > NULL
----
0
skipif mysql # not compatible
query I rowsort label-6852
SELECT - COUNT ( DISTINCT - col1 ) AS col0 FROM tab0 WHERE NULL > NULL
----
0
query I rowsort
SELECT ALL + col2 - + col1 AS col0 FROM tab1
----
21
54
82
query I rowsort
SELECT DISTINCT + col2 * + col2 FROM tab1 WHERE + + col2 IS NULL
----
query II rowsort
SELECT ALL 59 * - ( - col0 ) + - + col0 + - 71, - col2 * - + col1 AS col2 FROM tab1
----
2887
1344
4859
295
5207
3196
query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE + 79 IS NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-6857
SELECT DISTINCT - MAX( - 55 ) AS col1, - 43 AS col2 FROM tab1 AS cor0
----
55
-43
skipif mysql # not compatible
query II rowsort label-6857
SELECT DISTINCT - MAX ( - 55 ) AS col1, - 43 AS col2 FROM tab1 AS cor0
----
55
-43
query I rowsort
SELECT DISTINCT + 55 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( - col0 * 89, - 21 + - col2 )
----
onlyif mysql # aggregate syntax:
query II rowsort label-6859
SELECT DISTINCT - SUM( 91 ) AS col0, ( - 88 ) FROM tab0 AS cor0
----
-273
-88
skipif mysql # not compatible
query II rowsort label-6859
SELECT DISTINCT - SUM ( 91 ) AS col0, ( - 88 ) FROM tab0 AS cor0
----
-273
-88
query I rowsort
SELECT DISTINCT + + col0 * + col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
2346
4928
5025
query I rowsort
SELECT DISTINCT - 24 AS col1 FROM tab1
----
-24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + + col1 * + col0 col0 FROM tab2 AS cor0 WHERE col1 + + + 12 * 98 IS NOT NULL
----
107916
315392
376875
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-6863
SELECT DISTINCT - 75, 72 DIV - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-75
24
skipif mysql # not compatible
query II rowsort label-6863
SELECT DISTINCT - 75, 72 / - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-75
24
query II rowsort
SELECT - col0, - 69 AS col0 FROM tab2 AS cor0
----
-46
-69
-64
-69
-75
-69
onlyif mysql # aggregate syntax:
query I rowsort label-6865
SELECT COUNT( DISTINCT + 2 ) AS col0 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6865
SELECT COUNT ( DISTINCT + 2 ) AS col0 FROM tab2 AS cor0
----
1
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6866
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 96 - + - col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 / - + col0 * - 3 + - 5 * - 30 - + + 59 * - - CAST( NULL AS SIGNED ) AND - + 62
----
skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 96 - + - col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 / - + col0 * - 3 + - 5 * - 30 - + + 59 * - - CAST ( NULL AS INTEGER ) AND - + 62
----
query I rowsort
SELECT + col1 * - - col1 FROM tab2 AS cor0 WHERE NOT NULL = - ( - col1 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN - - 95 AND - + col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 45 col0 FROM tab2
----
1035
1800
2610
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col1 FROM tab0
----
74
74
74
query I rowsort
SELECT - ( + - col0 ) AS col0 FROM tab2
----
46
64
75
query I rowsort
SELECT col1 * - 63 AS col1 FROM tab2
----
-3213
-4221
-4851
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-6873
SELECT 21 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6873
SELECT 21 * + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-6874
SELECT DISTINCT + MAX( 57 ) AS col0, + 22 FROM tab1 AS cor0
----
57
22
skipif mysql # not compatible
query II rowsort label-6874
SELECT DISTINCT + MAX ( 57 ) AS col0, + 22 FROM tab1 AS cor0
----
57
22
query I rowsort
SELECT ALL - col2 * + col0 + + - col2 FROM tab2
----
-1081
-2600
-4408
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6876
SELECT + SUM( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-6876
SELECT + SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
query III rowsort
SELECT * FROM tab1 WHERE - col2 + - + 68 IS NULL
----
query I rowsort
SELECT + col2 + + col0 + 19 + - col2 FROM tab0 AS cor0
----
106
116
34
query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT - - 13 AS col1 FROM tab1 cor0
----
13
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6881
SELECT DISTINCT + 85 * + + ( + CAST( + - col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-4335
-7225
-7735
skipif mysql # not compatible
query I rowsort label-6881
SELECT DISTINCT + 85 * + + ( + CAST ( + - col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-4335
-7225
-7735
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6882
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) >= NULL
----
skipif mysql # not compatible
query III rowsort label-6882
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) >= NULL
----
query I rowsort
SELECT ( - + 41 ) FROM tab2 AS cor0
----
-41
-41
-41
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6884
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6884
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6885
SELECT COUNT( - col2 ) AS col1 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-6885
SELECT COUNT ( - col2 ) AS col1 FROM tab2
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-6886
SELECT - 92 - 39 - + COUNT( * ) AS col2 FROM tab0
----
-134
skipif mysql # not compatible
query I rowsort label-6886
SELECT - 92 - 39 - + COUNT ( * ) AS col2 FROM tab0
----
-134
query II rowsort
SELECT col2 - + 37, col2 FROM tab0
----
-27
10
10
47
62
99
query II rowsort
SELECT 64 * - + col2 * - col0 - + col2 + ( col1 ) * - col0, col1 AS col2 FROM tab1
----
312534
14
320476
5
391687
47
onlyif mysql # DIV for integer division:
query I rowsort label-6889
SELECT DISTINCT + ( - - col2 ) DIV + col2 AS col0 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-6889
SELECT DISTINCT + ( - - col2 ) / + col2 AS col0 FROM tab0
----
1
query I rowsort
SELECT DISTINCT 50 * + - ( + 32 ) + col0 FROM tab2
----
-1525
-1536
-1554
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6891
SELECT ALL * FROM tab2 WHERE + col1 < CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-6891
SELECT ALL * FROM tab2 WHERE + col1 < CAST ( NULL AS INTEGER )
----
query I rowsort
SELECT ALL col1 * - col2 FROM tab0 AS cor0 WHERE + col2 <= - 10
----
query II rowsort
SELECT ALL + + col2 AS col1, + col2 * + 93 + + col2 AS col1 FROM tab0 AS cor0
----
10
940
47
4418
99
9306
query I rowsort
SELECT + ( - 73 ) * + col1 AS col2 FROM tab2
----
-3723
-4891
-5621
query I rowsort
SELECT 3 FROM tab1 WHERE NOT ( - + col0 ) IS NULL
----
3
3
3
onlyif mysql # aggregate syntax:
query I rowsort label-6896
SELECT DISTINCT SUM( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE + 93 IN ( + col0 )
----
NULL
skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT SUM ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE + 93 IN ( + col0 )
----
NULL
query I rowsort
SELECT DISTINCT - - 77 * + col2 FROM tab0 AS cor0
----
3619
7623
770
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 27 * - col0 col1, 78 AS col0 FROM tab2 AS cor0
----
-1242
78
-1728
78
-2025
78
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6899
SELECT DISTINCT - ( - col0 ) * - col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6899
SELECT DISTINCT - ( - col0 ) * - col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 / + col0 * - - 79 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT ( + - ( + 40 ) ) + + 28 AS col1 FROM tab0 AS cor0
----
-12
onlyif mysql # aggregate syntax:
query I rowsort label-6902
SELECT ( + MAX( col2 ) ) FROM tab2 cor0
----
58
skipif mysql # not compatible
query I rowsort label-6902
SELECT ( + MAX ( col2 ) ) FROM tab2 cor0
----
58
query III rowsort
SELECT * FROM tab2 WHERE NOT - + 11 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6904
SELECT MAX( - col0 ) AS col1 FROM tab1
----
-51
skipif mysql # not compatible
query I rowsort label-6904
SELECT MAX ( - col0 ) AS col1 FROM tab1
----
-51
query I rowsort
SELECT ( - - col0 ) AS col1 FROM tab1
----
51
85
91
query I rowsort
SELECT ALL - ( + 12 ) AS col1 FROM tab1
----
-12
-12
-12
onlyif mysql # aggregate syntax:
query I rowsort label-6907
SELECT MAX( DISTINCT + - 1 ) FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-6907
SELECT MAX ( DISTINCT + - 1 ) FROM tab1
----
-1
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 <= NULL
----
query I rowsort
SELECT ( col1 ) * - 19 + + - col0 FROM tab0 AS cor0
----
-116
-1554
-486
query I rowsort
SELECT col2 + + 4 FROM tab2 AS cor0
----
27
44
62
onlyif mysql # aggregate syntax:
query I rowsort label-6911
SELECT DISTINCT - COUNT( * ) * - 92 FROM tab0 AS cor0
----
276
skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT - COUNT ( * ) * - 92 FROM tab0 AS cor0
----
276
query I rowsort
SELECT DISTINCT ( - col1 ) + + col2 + + ( - + 32 ) FROM tab2
----
-41
-60
-69
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 41 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6914
SELECT DISTINCT + SUM( DISTINCT + col2 ) + 14 FROM tab2
----
135
skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT + SUM ( DISTINCT + col2 ) + 14 FROM tab2
----
135
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6915
SELECT ALL CAST( NULL AS SIGNED ) - + col2 + - + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL CAST ( NULL AS INTEGER ) - + col2 + - + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6916
SELECT DISTINCT CAST( 15 AS SIGNED ) FROM tab2 AS cor0
----
15
skipif mysql # not compatible
query I rowsort label-6916
SELECT DISTINCT CAST ( 15 AS INTEGER ) FROM tab2 AS cor0
----
15
query I rowsort
SELECT - col0 + - + col0 FROM tab1 cor0
----
-102
-170
-182
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 70 NOT IN ( - 43 + + + col0, col1 + col1, - + col2 + - - 45 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # DIV for integer division:
query I rowsort label-6919
SELECT DISTINCT + 14 DIV + 79 col1 FROM tab2
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6919
SELECT DISTINCT + 14 / + 79 col1 FROM tab2
----
0
query I rowsort
SELECT ( 33 ) AS col2 FROM tab1
----
33
33
33
query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT ( NOT ( ( + col1 / + + col1 IS NULL ) ) )
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-6922
SELECT + col0 AS col0, + CAST( + - 53 AS SIGNED ) AS col2 FROM tab2
----
46
-53
64
-53
75
-53
skipif mysql # not compatible
query II rowsort label-6922
SELECT + col0 AS col0, + CAST ( + - 53 AS INTEGER ) AS col2 FROM tab2
----
46
-53
64
-53
75
-53
query I rowsort
SELECT + ( col2 ) * - col2 * - col0 AS col2 FROM tab0
----
33135
8700
950697
query I rowsort
SELECT - 75 * - col1 FROM tab2
----
3825
5025
5775
query I rowsort
SELECT ALL - col1 + - col1 AS col1 FROM tab0 AS cor0 WHERE NULL > - col2
----
query I rowsort
SELECT + 70 AS col1 FROM tab0 cor0
----
70
70
70
onlyif mysql # aggregate syntax:
query II rowsort label-6927
SELECT ALL 30 AS col2, COUNT( * ) FROM tab0
----
30
3
skipif mysql # not compatible
query II rowsort label-6927
SELECT ALL 30 AS col2, COUNT ( * ) FROM tab0
----
30
3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-6928
SELECT DISTINCT + COUNT( * ) col2, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
3
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6928
SELECT DISTINCT + COUNT ( * ) col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
3
NULL
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6929
SELECT ALL MIN( DISTINCT - + CAST( + col2 AS SIGNED ) ) * + + CAST( NULL AS SIGNED ) * + AVG ( ALL + + col1 ) + - 28 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL MIN ( DISTINCT - + CAST ( + col2 AS INTEGER ) ) * + + CAST ( NULL AS INTEGER ) * + AVG ( ALL + + col1 ) + - 28 FROM tab2 AS cor0
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6930
SELECT + col0 + - - col1 - + col1 / col1 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6930
SELECT + col0 + - - col1 - + col1 / col1 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col0 * col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND - col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-6932
SELECT - MIN( + - col1 ) + + 57 + COUNT( * ) FROM tab0 AS cor0
----
141
skipif mysql # not compatible
query I rowsort label-6932
SELECT - MIN ( + - col1 ) + + 57 + COUNT ( * ) FROM tab0 AS cor0
----
141
query I rowsort
SELECT - col0 + + 62 * + - col1 + 39 * - 27 AS col0 FROM tab0 AS cor0
----
-1212
-2442
-6090
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT + col1 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL + + col0 + - - col0 + - - col0 FROM tab1 AS cor0
----
153
255
273
query I rowsort
SELECT + col0 + - - 18 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
105
115
33
query I rowsort
SELECT DISTINCT + 91 + 2 + + 23 FROM tab2 AS cor0
----
116
query II rowsort
SELECT ALL + 81 + + - col1, - col2 AS col2 FROM tab1
----
34
-68
67
-96
76
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + + col0 col1, ( + col2 ) AS col2 FROM tab0
----
108
10
96
47
98
99
onlyif mysql # aggregate syntax:
query I rowsort label-6940
SELECT + COUNT( * ) * + 99 * + SUM( ALL col2 ) AS col2 FROM tab2
----
35937
skipif mysql # not compatible
query I rowsort label-6940
SELECT + COUNT ( * ) * + 99 * + SUM ( ALL col2 ) AS col2 FROM tab2
----
35937
onlyif mysql # aggregate syntax:
query I rowsort label-6941
SELECT DISTINCT MIN( DISTINCT - col0 ) col0 FROM tab0 WHERE NOT + col2 + col0 IS NOT NULL
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6941
SELECT DISTINCT MIN ( DISTINCT - col0 ) col0 FROM tab0 WHERE NOT + col2 + col0 IS NOT NULL
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1, + col2 col0 FROM tab2 WHERE - col0 IS NOT NULL
----
-51
23
-67
58
-77
40
onlyif mysql # aggregate syntax:
query I rowsort label-6943
SELECT ( + - COUNT( * ) ) + + SUM( + 44 ) AS col2 FROM tab1 WHERE ( col1 IS NULL )
----
NULL
skipif mysql # not compatible
query I rowsort label-6943
SELECT ( + - COUNT ( * ) ) + + SUM ( + 44 ) AS col2 FROM tab1 WHERE ( col1 IS NULL )
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6944
SELECT - + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-6944
SELECT - + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
query I rowsort
SELECT ALL + col1 + + 60 AS col0 FROM tab2
----
111
127
137
onlyif mysql # aggregate syntax:
query I rowsort label-6946
SELECT DISTINCT - COUNT( * ) - + 2 FROM tab2
----
-5
skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT - COUNT ( * ) - + 2 FROM tab2
----
-5
query I rowsort
SELECT - 11 AS col0 FROM tab0 AS cor0 WHERE NOT + 8 IS NULL
----
-11
-11
-11
query I rowsort
SELECT ALL - - 62 FROM tab2 cor0
----
62
62
62
query I rowsort
SELECT DISTINCT + - col0 + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < col0
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6950
SELECT DISTINCT + + col2 * col2 + + ( - - 77 ) - + + CAST( NULL AS SIGNED ) * + col0 * + col0 AS col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT + + col2 * col2 + + ( - - 77 ) - + + CAST ( NULL AS INTEGER ) * + col0 * + col0 AS col2 FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL - 61 AS col2 FROM tab1
----
-61
-61
-61
query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT NULL >= 63
----
query I rowsort
SELECT ALL col2 * + col1 * + col2 AS col0 FROM tab0
----
178929
2100
9801
query II rowsort
SELECT ALL - col0 * - col2 * + - 17 * - 57 AS col0, + ( + - col0 ) AS col2 FROM tab0
----
683145
-15
843030
-87
9305307
-97
query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT NULL > col2 * + col0
----
query I rowsort
SELECT + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 8 col1 FROM tab1 AS cor0
----
-39
-6
3
query I rowsort
SELECT - ( + - 82 ) FROM tab0
----
82
82
82
onlyif mysql # aggregate syntax:
query I rowsort label-6959
SELECT + - COUNT( * ) * - + 30 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
270
skipif mysql # not compatible
query I rowsort label-6959
SELECT + - COUNT ( * ) * - + 30 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
270
onlyif mysql # aggregate syntax:
query I rowsort label-6960
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col1 FROM tab1
----
-9
skipif mysql # not compatible
query I rowsort label-6960
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1
----
-9
onlyif mysql # aggregate syntax:
query I rowsort label-6961
SELECT ALL 48 * + SUM( - 0 ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL 48 * + SUM ( - 0 ) FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - 88 FROM tab2 cor0
----
-88
-88
-88
query I rowsort
SELECT DISTINCT + 82 * + col1 FROM tab0 AS cor0
----
1722
6642
82
query II rowsort
SELECT ALL + 53 AS col0, col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
53
51
53
85
53
91
query I rowsort
SELECT + 34 * + - 62 AS col0 FROM tab2 AS cor0
----
-2108
-2108
-2108
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 85 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT + col1 AS col1, 99 AS col1 FROM tab2 AS cor0
----
51
99
67
99
77
99
onlyif mysql # DIV for integer division:
query I rowsort label-6968
SELECT ALL ( - - col0 ) DIV col2 + - col2 AS col2 FROM tab2 AS cor0
----
-21
-39
-57
skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL ( - - col0 ) / col2 + - col2 AS col2 FROM tab2 AS cor0
----
-21
-39
-57
onlyif mysql # aggregate syntax:
query I rowsort label-6969
SELECT DISTINCT + COUNT( * ) + - + 8 AS col1 FROM tab2
----
-5
skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT + COUNT ( * ) + - + 8 AS col1 FROM tab2
----
-5
query III rowsort
SELECT * FROM tab1 WHERE ( NULL > ( NULL ) )
----
query I rowsort
SELECT ALL - col2 * col1 + + + col1 FROM tab1
----
-1330
-290
-3149
query II rowsort
SELECT DISTINCT col1, col2 FROM tab0 WHERE NOT ( ( - + col2 IS NULL ) )
----
1
99
21
10
81
47
query I rowsort
SELECT ALL 91 + - 78 AS col0 FROM tab1
----
13
13
13
query I rowsort
SELECT DISTINCT + 83 - ( 30 ) AS col1 FROM tab2 AS cor0
----
53
onlyif mysql # aggregate syntax:
query I rowsort label-6975
SELECT DISTINCT + SUM( 96 ) - 27 FROM tab1 AS cor0
----
261
skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT + SUM ( 96 ) - 27 FROM tab1 AS cor0
----
261
onlyif mysql # aggregate syntax:
query I rowsort label-6976
SELECT + COUNT( * ) col1 FROM tab0 cor0 WHERE col0 + col1 * + - 18 + - col1 IS NULL
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6976
SELECT + COUNT ( * ) col1 FROM tab0 cor0 WHERE col0 + col1 * + - 18 + - col1 IS NULL
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-6977
SELECT + col2 DIV + - 93 + 23 AS col0 FROM tab0 AS cor0
----
22
23
23
skipif mysql # not compatible
query I rowsort label-6977
SELECT + col2 / + - 93 + 23 AS col0 FROM tab0 AS cor0
----
22
23
23
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query II rowsort label-6978
SELECT DISTINCT COUNT( * ) + + 88, + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
91
NULL
skipif mysql # not compatible
query II rowsort label-6978
SELECT DISTINCT COUNT ( * ) + + 88, + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
91
NULL
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6979
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-6979
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6980
SELECT DISTINCT + COUNT( * ) col1 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6980
SELECT DISTINCT + COUNT ( * ) col1 FROM tab1 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-6981
SELECT DISTINCT - MAX( DISTINCT - - col0 ) AS col1 FROM tab0 AS cor0
----
-97
skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT - MAX ( DISTINCT - - col0 ) AS col1 FROM tab0 AS cor0
----
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 col0 FROM tab2 AS cor0
----
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 col2 FROM tab1
----
69
query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + + col2 ) + + + ( col2 ) = NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * 3 + - - col1 + + 77 IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - + 8 col0 FROM tab1
----
-408
-680
-728
query I rowsort
SELECT col0 * 14 AS col1 FROM tab2
----
1050
644
896
onlyif mysql # aggregate syntax:
query II rowsort label-6988
SELECT ALL - 2 AS col1, COUNT( * ) + + 24 col0 FROM tab1
----
-2
27
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6988
SELECT ALL - 2 AS col1, COUNT ( * ) + + 24 col0 FROM tab1
----
-2
27
query II rowsort
SELECT ALL + 45 AS col2, col2 AS col2 FROM tab0
----
45
10
45
47
45
99
onlyif mysql # aggregate syntax:
query I rowsort label-6990
SELECT + ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3
skipif mysql # not compatible
query I rowsort label-6990
SELECT + ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3
onlyif mysql # aggregate syntax:
query II rowsort label-6991
SELECT + MIN( DISTINCT col0 ) * + + 57, - 41 AS col1 FROM tab2 AS cor0
----
2622
-41
skipif mysql # not compatible
query II rowsort label-6991
SELECT + MIN ( DISTINCT col0 ) * + + 57, - 41 AS col1 FROM tab2 AS cor0
----
2622
-41
query II rowsort
SELECT - + col1, 76 * - 20 AS col2 FROM tab1 AS cor0
----
-14
-1520
-47
-1520
-5
-1520
query I rowsort
SELECT DISTINCT + col0 + 29 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6994
SELECT + COUNT( * ) + - - 91 FROM tab2 AS cor0
----
94
skipif mysql # not compatible
query I rowsort label-6994
SELECT + COUNT ( * ) + - - 91 FROM tab2 AS cor0
----
94
query I rowsort
SELECT + col1 + - - 30 FROM tab0 AS cor0
----
111
31
51
query I rowsort
SELECT DISTINCT - + ( - 16 ) AS col0 FROM tab0 AS cor0
----
16
query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6998
SELECT ALL + - COUNT( * ) FROM tab1 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-6998
SELECT ALL + - COUNT ( * ) FROM tab1 cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-6999
SELECT DISTINCT + COUNT( DISTINCT - - col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-6999
SELECT DISTINCT + COUNT ( DISTINCT - - col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3
query I rowsort
SELECT DISTINCT - 52 + + + col0 AS col0 FROM tab1 AS cor0
----
-1
33
39
query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 >= NULL
----
query I rowsort
SELECT DISTINCT col2 + - + 22 AS col0 FROM tab0
----
-12
25
77
query III rowsort
SELECT * FROM tab2 WHERE col1 = col0
----
query I rowsort
SELECT ALL + 86 + + + col0 FROM tab0
----
101
173
183
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-7005
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - CAST( + - col0 AS SIGNED ) AND + col1 - - - 65 * + + 47
----
skipif mysql # not compatible
query III rowsort label-7005
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - CAST ( + - col0 AS INTEGER ) AND + col1 - - - 65 * + + 47
----
onlyif mysql # DIV for integer division:
query I rowsort label-7006
SELECT col2 * 76 DIV - - col1 col0 FROM tab1
----
109
521
896
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7006
SELECT col2 * 76 / - - col1 col0 FROM tab1
----
109
521
896
query I rowsort
SELECT DISTINCT + 59 + + col0 FROM tab2
----
105
123
134
query I rowsort
SELECT DISTINCT ( 88 ) + + col1 AS col1 FROM tab1
----
102
135
93
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = NULL AND NOT - col1 IS NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7010
SELECT + ( + 53 ) * - COUNT( * ) DIV ( COUNT( * ) ) - - - COUNT( * ) FROM tab1
----
-56
skipif mysql # not compatible
query I rowsort label-7010
SELECT + ( + 53 ) * - COUNT ( * ) / ( COUNT ( * ) ) - - - COUNT ( * ) FROM tab1
----
-56
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL <= + + 25 )
----
query I rowsort
SELECT 12 + - col0 AS col0 FROM tab1 WHERE NOT - - col0 < NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 NOT IN ( + col0 * + ( col2 ), 46 )
----
46
51
23
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 17 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-7016
SELECT ALL + COUNT( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL + COUNT ( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-7017
SELECT ALL - COUNT( col0 ) AS col2 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL - COUNT ( col0 ) AS col2 FROM tab2 AS cor0
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-7018
SELECT - - ( + - col1 ), + CAST( + + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77
skipif mysql # not compatible
query II rowsort label-7018
SELECT - - ( + - col1 ), + CAST ( + + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77
query I rowsort
SELECT DISTINCT 99 * - col0 AS col0 FROM tab1 AS cor0
----
-5049
-8415
-9009
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7020
SELECT DISTINCT + CAST( - MIN( ALL col2 ) AS SIGNED ) AS col2 FROM tab2
----
-23
skipif mysql # not compatible
query I rowsort label-7020
SELECT DISTINCT + CAST ( - MIN ( ALL col2 ) AS INTEGER ) AS col2 FROM tab2
----
-23
query I rowsort
SELECT + 72 * + - ( col2 ) * + + 51 AS col0 FROM tab0
----
-172584
-363528
-36720
query I rowsort
SELECT - 11 * + 65 FROM tab0
----
-715
-715
-715
query I rowsort
SELECT 2 * + - col1 AS col0 FROM tab0
----
-162
-2
-42
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7024
SELECT ALL CAST( NULL AS SIGNED ) * + + col0 / - - col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL CAST ( NULL AS INTEGER ) * + + col0 / - - col2 AS col1 FROM tab1
----
NULL
NULL
NULL
query II rowsort
SELECT col2 * - 82, 42 + - 89 + 99 + + 47 AS col0 FROM tab0
----
-3854
99
-8118
99
-820
99
onlyif mysql # aggregate syntax:
query I rowsort label-7026
SELECT ALL SUM( ALL + col2 ) FROM tab0
----
156
skipif mysql # not compatible
query I rowsort label-7026
SELECT ALL SUM ( ALL + col2 ) FROM tab0
----
156
onlyif mysql # aggregate syntax:
query I rowsort label-7027
SELECT + ( - + 11 ) + COUNT( * ) FROM tab2 AS cor0
----
-8
skipif mysql # not compatible
query I rowsort label-7027
SELECT + ( - + 11 ) + COUNT ( * ) FROM tab2 AS cor0
----
-8
onlyif mysql # aggregate syntax:
query I rowsort label-7028
SELECT ALL - + COUNT( * ) col2 FROM tab0 cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7028
SELECT ALL - + COUNT ( * ) col2 FROM tab0 cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-7029
SELECT - - COUNT( * ) + + - MIN( DISTINCT 94 ) AS col1 FROM tab2 AS cor0
----
-91
skipif mysql # not compatible
query I rowsort label-7029
SELECT - - COUNT ( * ) + + - MIN ( DISTINCT 94 ) AS col1 FROM tab2 AS cor0
----
-91
query I rowsort
SELECT + + col2 FROM tab1 AS cor0 WHERE - 73 IS NOT NULL
----
59
68
96
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 0 <> - + 61 + + col0 - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-7032
SELECT DISTINCT MIN( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-91
skipif mysql # not compatible
query I rowsort label-7032
SELECT DISTINCT MIN ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-91
query I rowsort
SELECT DISTINCT - 84 + - 71 AS col2 FROM tab0 AS cor0
----
-155
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col0 col2 FROM tab2 AS cor0
----
104
133
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - + 25 col2 FROM tab2 AS cor0
----
-2
15
33
onlyif mysql # aggregate syntax:
query I rowsort label-7036
SELECT - ( COUNT( * ) ) + + 41 FROM tab1 AS cor0
----
38
skipif mysql # not compatible
query I rowsort label-7036
SELECT - ( COUNT ( * ) ) + + 41 FROM tab1 AS cor0
----
38
query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE NULL IS NULL
----
59
68
96
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7038
SELECT + 87 * - col0 + CAST( + + col0 AS SIGNED ) AS col0 FROM tab2
----
-3956
-5504
-6450
skipif mysql # not compatible
query I rowsort label-7038
SELECT + 87 * - col0 + CAST ( + + col0 AS INTEGER ) AS col0 FROM tab2
----
-3956
-5504
-6450
query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE + - ( + + 66 ) IS NOT NULL
----
-14
-47
-5
query I rowsort
SELECT DISTINCT - + 70 * - col0 + - col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
1035
6003
6693
query III rowsort
SELECT * FROM tab2 WHERE - 43 NOT IN ( - 34 - - - col2, + 65, - 51 - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab2 WHERE - + col0 / + col2 - + - col2 IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 col2 FROM tab1
----
-42
-42
-42
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7044
SELECT CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-7044
SELECT CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7045
SELECT + MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7045
SELECT + MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT 17 * 15 * - - col1 FROM tab0 AS cor0
----
20655
255
5355
onlyif mysql # aggregate syntax:
query I rowsort label-7047
SELECT ALL - - 30 * - - 94 - - COUNT( * ) FROM tab2 AS cor0
----
2823
skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL - - 30 * - - 94 - - COUNT ( * ) FROM tab2 AS cor0
----
2823
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7048
SELECT ALL - MAX( + col1 ) DIV + 44 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL - MAX ( + col1 ) / + 44 FROM tab1 AS cor0
----
-1
onlyif mysql # DIV for integer division:
query I rowsort label-7049
SELECT - - 55 DIV 64 * - + col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7049
SELECT - - 55 / 64 * - + col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * + + 81 * + - 28 FROM tab0 AS cor0
----
-106596
-224532
-22680
query I rowsort
SELECT DISTINCT 97 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
97
onlyif mysql # DIV for integer division:
query I rowsort label-7052
SELECT ALL - col0 DIV - col1 AS col0 FROM tab1
----
1
17
3
skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL - col0 / - col1 AS col0 FROM tab1
----
1
17
3
query I rowsort
SELECT DISTINCT + + 11 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
11
onlyif mysql # aggregate syntax:
query I rowsort label-7054
SELECT DISTINCT ( + COUNT( DISTINCT + col1 ) ) AS col1 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-7054
SELECT DISTINCT ( + COUNT ( DISTINCT + col1 ) ) AS col1 FROM tab2 AS cor0
----
3
query II rowsort
SELECT DISTINCT + + col2 * - + col0 + + 27 AS col1, ( + ( + 25 ) ) * + + 49 * col1 - col2 FROM tab0 AS cor0
----
-678
99178
-843
25715
-9576
1126
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 col2 FROM tab1 AS cor0
----
33
33
33
onlyif mysql # aggregate syntax:
query I rowsort label-7057
SELECT MAX( DISTINCT + - 83 ) FROM tab0 AS cor0
----
-83
skipif mysql # not compatible
query I rowsort label-7057
SELECT MAX ( DISTINCT + - 83 ) FROM tab0 AS cor0
----
-83
query I rowsort
SELECT - col2 * + + col1 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196
onlyif mysql # DIV for integer division:
query I rowsort label-7059
SELECT ALL + col1 DIV - col1 + + col0 AS col2 FROM tab2 AS cor0
----
45
63
74
skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL + col1 / - col1 + + col0 AS col2 FROM tab2 AS cor0
----
45
63
74
onlyif mysql # aggregate syntax:
query I rowsort label-7060
SELECT - - MAX( col0 ) AS col2 FROM tab2 cor0 WHERE NOT - 54 IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-7060
SELECT - - MAX ( col0 ) AS col2 FROM tab2 cor0 WHERE NOT - 54 IS NOT NULL
----
NULL
query II rowsort
SELECT DISTINCT 74, + col2 FROM tab1
----
74
59
74
68
74
96
query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT NULL IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-7063
SELECT - CAST( NULL AS SIGNED ) * - - col1 AS col2, 61 col1 FROM tab0
----
NULL
61
NULL
61
NULL
61
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7063
SELECT - CAST ( NULL AS INTEGER ) * - - col1 AS col2, 61 col1 FROM tab0
----
NULL
61
NULL
61
NULL
61
query II rowsort
SELECT DISTINCT - col0, + 40 AS col0 FROM tab0 AS cor0
----
-15
40
-87
40
-97
40
query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL <= - 75 )
----
query II rowsort
SELECT ALL - col2 * + + col1 AS col0, + col0 AS col1 FROM tab0 AS cor0
----
-210
87
-3807
15
-99
97
query II rowsort
SELECT ALL 0, 34 AS col2 FROM tab0 AS cor0
----
0
34
0
34
0
34
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 84 / + - 52 / + + col1 IS NULL
----
query I rowsort
SELECT + col1 * 26 + col0 AS col0 FROM tab2
----
1372
1817
2066
query I rowsort
SELECT - col0 + + col2 * - - col1 * + 88 AS col2 FROM tab2
----
103178
270976
341893
onlyif mysql # aggregate syntax:
query I rowsort label-7071
SELECT 6 + + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
6
skipif mysql # not compatible
query I rowsort label-7071
SELECT 6 + + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
6
query I rowsort
SELECT + col2 + + + col2 FROM tab2 AS cor0
----
116
46
80
onlyif mysql # aggregate syntax:
query I rowsort label-7073
SELECT ALL + SUM( DISTINCT + + ( - + col0 ) ) AS col0 FROM tab2 cor0
----
-185
skipif mysql # not compatible
query I rowsort label-7073
SELECT ALL + SUM ( DISTINCT + + ( - + col0 ) ) AS col0 FROM tab2 cor0
----
-185
query II rowsort
SELECT + - col1 * - col2, col2 AS col2 FROM tab0 cor0
----
210
10
3807
47
99
99
query I rowsort
SELECT ALL 25 * + 10 FROM tab0
----
250
250
250
onlyif mysql # aggregate syntax:
query I rowsort label-7076
SELECT + - COUNT( * ) AS col0 FROM tab2 WHERE - col2 + col2 IS NOT NULL
----
-3
skipif mysql # not compatible
query I rowsort label-7076
SELECT + - COUNT ( * ) AS col0 FROM tab2 WHERE - col2 + col2 IS NOT NULL
----
-3
query I rowsort
SELECT DISTINCT col1 + - - col0 AS col1 FROM tab2
----
141
142
97
onlyif mysql # DIV for integer division:
query I rowsort label-7078
SELECT DISTINCT - 23 * col2 - col0 DIV col0 AS col2 FROM tab0
----
-1082
-2278
-231
skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT - 23 * col2 - col0 / col0 AS col2 FROM tab0
----
-1082
-2278
-231
onlyif mysql # DIV for integer division:
query I rowsort label-7079
SELECT 30 DIV + - 84 - col0 * col2 AS col1 FROM tab0
----
-705
-870
-9603
skipif mysql # not compatible
query I rowsort label-7079
SELECT 30 / + - 84 - col0 * col2 AS col1 FROM tab0
----
-705
-870
-9603
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7080
SELECT ALL + CAST( NULL AS SIGNED ) + - 89 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7080
SELECT ALL + CAST ( NULL AS INTEGER ) + - 89 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-7081
SELECT ALL COUNT( * ), 74 * + 64 AS col1 FROM tab2
----
3
4736
skipif mysql # not compatible
query II rowsort label-7081
SELECT ALL COUNT ( * ), 74 * + 64 AS col1 FROM tab2
----
3
4736
query I rowsort
SELECT ALL - 75 * col1 AS col0 FROM tab1
----
-1050
-3525
-375
query I rowsort
SELECT - - 24 AS col1 FROM tab1 AS cor0
----
24
24
24
onlyif mysql # aggregate syntax:
query I rowsort label-7084
SELECT SUM( + 65 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----
NULL
skipif mysql # not compatible
query I rowsort label-7084
SELECT SUM ( + 65 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----
NULL
query I rowsort
SELECT DISTINCT - - col1 * + 63 FROM tab0 AS cor0
----
1323
5103
63
onlyif mysql # aggregate syntax:
query I rowsort label-7086
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT 2 / - col0 <> - col1
----
0
skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 2 / - col0 <> - col1
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7087
SELECT + 98 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7087
SELECT + 98 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99
query I rowsort
SELECT DISTINCT 93 FROM tab0 WHERE NOT - col1 * - col1 + + 72 / - col1 >= col0 + - col1 * + col0
----
93
onlyif mysql # aggregate syntax:
query I rowsort label-7090
SELECT 44 * COUNT( * ) - 9 * COUNT( - 61 + col2 ) FROM tab2 WHERE ( 81 ) IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-7090
SELECT 44 * COUNT ( * ) - 9 * COUNT ( - 61 + col2 ) FROM tab2 WHERE ( 81 ) IS NULL
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7091
SELECT - col2 AS col2 FROM tab0 WHERE ( - CAST( NULL AS SIGNED ) ) IS NULL
----
-10
-47
-99
skipif mysql # not compatible
query I rowsort label-7091
SELECT - col2 AS col2 FROM tab0 WHERE ( - CAST ( NULL AS INTEGER ) ) IS NULL
----
-10
-47
-99
query I rowsort
SELECT + ( + 93 ) AS col0 FROM tab2
----
93
93
93
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - col1 * - col2 )
----
query III rowsort
SELECT * FROM tab0 WHERE 1 > + 22
----
query III rowsort
SELECT ALL * FROM tab0 WHERE ( 16 ) < ( NULL )
----
query III rowsort
SELECT * FROM tab1 WHERE + col1 < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-7097
SELECT DISTINCT MAX( col1 ) FROM tab2
----
77
skipif mysql # not compatible
query I rowsort label-7097
SELECT DISTINCT MAX ( col1 ) FROM tab2
----
77
query I rowsort
SELECT 88 + 10 AS col1 FROM tab0
----
98
98
98
query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 65 + - col0 ) = NULL
----
query I rowsort
SELECT ALL + col2 + 86 FROM tab1
----
145
154
182
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7101
SELECT ALL + COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7101
SELECT ALL + COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 / 91 col1 FROM tab1 WHERE NOT - col1 <> + col0
----
query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 ) BETWEEN + col2 * - col0 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-7104
SELECT MIN( ALL col2 ) AS col2 FROM tab0
----
10
skipif mysql # not compatible
query I rowsort label-7104
SELECT MIN ( ALL col2 ) AS col2 FROM tab0
----
10
query I rowsort
SELECT ALL 39 * - 36 FROM tab1
----
-1404
-1404
-1404
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 + + 26 * 20 col1 FROM tab1
----
549
549
549
query I rowsort
SELECT + col0 * + col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT - 1 + 56 * col0 AS col1 FROM tab1
----
2855
4759
5095
onlyif mysql # aggregate syntax:
query I rowsort label-7109
SELECT - COUNT( * ) * 60 FROM tab1
----
-180
skipif mysql # not compatible
query I rowsort label-7109
SELECT - COUNT ( * ) * 60 FROM tab1
----
-180
query I rowsort
SELECT - ( - 6 ) * + col2 AS col2 FROM tab2
----
138
240
348
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > ( NULL )
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7112
SELECT DISTINCT + 93 DIV COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 52 + col0 <= ( - col2 )
----
31
skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT + 93 / COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 52 + col0 <= ( - col2 )
----
31
onlyif mysql # DIV for integer division:
query I rowsort label-7113
SELECT ALL 13 * - 81 + + col1 DIV + 66 FROM tab0 AS cor0
----
-1052
-1053
-1053
skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL 13 * - 81 + + col1 / + 66 FROM tab0 AS cor0
----
-1052
-1053
-1053
query I rowsort
SELECT - col1 * + 66 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + 35 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7116
SELECT - col2 * + CAST( col0 * + col1 AS SIGNED ) + + CAST( 69 AS SIGNED ) col1 FROM tab0 cor0
----
-18201
-57036
-9534
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7116
SELECT - col2 * + CAST ( col0 * + col1 AS INTEGER ) + + CAST ( 69 AS INTEGER ) col1 FROM tab0 cor0
----
-18201
-57036
-9534
query I rowsort
SELECT + 33 AS col2 FROM tab2 cor0
----
33
33
33
query I rowsort
SELECT ALL 5 + + col2 AS col1 FROM tab0 AS cor0
----
104
15
52
query III rowsort
SELECT * FROM tab1 WHERE ( - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT ALL * FROM tab2 WHERE col2 IN ( col2 + + col1 )
----
query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN + 33 AND - col1 * + 33
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * + 24 IS NOT NULL
----
query I rowsort
SELECT ALL 78 - 87 * - 98 AS col1 FROM tab2 AS cor0
----
8604
8604
8604
query I rowsort
SELECT + col0 - + 11 FROM tab2 AS cor0
----
35
53
64
query I rowsort
SELECT DISTINCT - ( 33 ) - + col1 AS col1 FROM tab1 cor0
----
-38
-47
-80
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-7126
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 + + col1 ) NOT BETWEEN ( + col1 ) AND - CAST( NULL AS DECIMAL )
----
skipif mysql # not compatible
query III rowsort label-7126
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 + + col1 ) NOT BETWEEN ( + col1 ) AND - CAST ( NULL AS REAL )
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 99 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-7128
SELECT - COUNT( * ) - - COUNT( * ) col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7128
SELECT - COUNT ( * ) - - COUNT ( * ) col2 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 * ( + 20 ) + col1 col2 FROM tab2 AS cor0
----
-523
-533
-549
query I rowsort
SELECT col1 - - col0 FROM tab1 AS cor0 WHERE ( + 15 + - 92 * - col2 ) IS NULL
----
query I rowsort
SELECT DISTINCT + 10 * + ( + col2 ) AS col0 FROM tab2 AS cor0
----
230
400
580
query I rowsort
SELECT + 69 + + + 56 AS col2 FROM tab2
----
125
125
125
query I rowsort
SELECT ALL - 74 + + 13 FROM tab0
----
-61
-61
-61
onlyif mysql # aggregate syntax:
query I rowsort label-7134
SELECT DISTINCT + COUNT( - - col2 ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT + COUNT ( - - col2 ) FROM tab0
----
3
query I rowsort
SELECT DISTINCT + 41 + col1 AS col1 FROM tab2
----
108
118
92
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( - 8 ) / col1 > ( NULL )
----
query I rowsort
SELECT - 16 AS col2 FROM tab0 WHERE NOT NULL <= NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-7138
SELECT ALL * FROM tab2 WHERE ( col1 ) NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----
skipif mysql # not compatible
query III rowsort label-7138
SELECT ALL * FROM tab2 WHERE ( col1 ) NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7139
SELECT ALL + MIN( - CAST( + col1 AS SIGNED ) ) AS col0 FROM tab1
----
-47
skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL + MIN ( - CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab1
----
-47
onlyif mysql # aggregate syntax:
query I rowsort label-7140
SELECT DISTINCT - 65 * - + COUNT( * ) * - 46 AS col0 FROM tab0
----
-8970
skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT - 65 * - + COUNT ( * ) * - 46 AS col0 FROM tab0
----
-8970
query I rowsort
SELECT DISTINCT - col1 * - + col0 AS col2 FROM tab0
----
1215
1827
97
query I rowsort
SELECT - 6 * + + col2 FROM tab0 cor0
----
-282
-594
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - 37 col1 FROM tab1 AS cor0
----
-1739
-185
-518
query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( 4 ) BETWEEN NULL AND - 42 )
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-7146
SELECT * FROM tab0 WHERE NOT 91 * - CAST( NULL AS SIGNED ) BETWEEN ( + col1 ) AND NULL
----
skipif mysql # not compatible
query III rowsort label-7146
SELECT * FROM tab0 WHERE NOT 91 * - CAST ( NULL AS INTEGER ) BETWEEN ( + col1 ) AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7147
SELECT + COUNT( * ) * 6 AS col2 FROM tab2 AS cor0
----
18
skipif mysql # not compatible
query I rowsort label-7147
SELECT + COUNT ( * ) * 6 AS col2 FROM tab2 AS cor0
----
18
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col1 IS NULL
----
onlyif mysql # DIV for integer division:
query II rowsort label-7149
SELECT + col2 AS col1, - ( - + col2 ) DIV + col0 AS col2 FROM tab1 AS cor0
----
59
0
68
0
96
1
skipif mysql # not compatible
query II rowsort label-7149
SELECT + col2 AS col1, - ( - + col2 ) / + col0 AS col2 FROM tab1 AS cor0
----
59
0
68
0
96
1
query I rowsort
SELECT ALL - 69 AS col0 FROM tab2 AS cor0
----
-69
-69
-69
query I rowsort
SELECT + + 56 + + col2 AS col2 FROM tab1 AS cor0
----
115
124
152
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-7152
SELECT ALL + - CAST( NULL AS DECIMAL ) / + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL + - CAST ( NULL AS REAL ) / + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 47 + col1 + + - col0 FROM tab0
----
-19
-49
113
query I rowsort
SELECT ALL + 41 * col0 FROM tab2
----
1886
2624
3075
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 95 < ( NULL )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7156
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7156
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT + 8 * + + col1 FROM tab1
----
112
376
40
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7158
SELECT CAST( + ( + - col0 ) AS SIGNED ) * + ( col0 ) * col2 AS col1 FROM tab1
----
-249696
-426275
-563108
skipif mysql # not compatible
query I rowsort label-7158
SELECT CAST ( + ( + - col0 ) AS INTEGER ) * + ( col0 ) * col2 AS col1 FROM tab1
----
-249696
-426275
-563108
query I rowsort
SELECT DISTINCT 14 * col1 FROM tab1
----
196
658
70
onlyif mysql # aggregate syntax:
query I rowsort label-7160
SELECT + 63 * - COUNT( * ) AS col1 FROM tab0
----
-189
skipif mysql # not compatible
query I rowsort label-7160
SELECT + 63 * - COUNT ( * ) AS col1 FROM tab0
----
-189
query III rowsort
SELECT * FROM tab0 WHERE NULL <> + 68
----
query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT col2 * col1 + + 57 BETWEEN ( NULL ) AND + col0 + col0
----
10
47
query I rowsort
SELECT ALL + col2 * - col2 + 31 + + 89 * + col1 FROM tab0
----
-9681
1800
5031
onlyif mysql # DIV for integer division:
query I rowsort label-7164
SELECT DISTINCT - col1 DIV - - col2 col0 FROM tab0
----
-1
-2
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7164
SELECT DISTINCT - col1 / - - col2 col0 FROM tab0
----
-1
-2
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7165
SELECT DISTINCT + 46 * - 45 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT + 46 * - 45 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT - col0 * + + 96 FROM tab2 cor0
----
-4416
-6144
-7200
onlyif mysql # aggregate syntax:
query I rowsort label-7167
SELECT ALL COUNT( DISTINCT - col0 ) * + MIN( DISTINCT + col1 ) AS col0 FROM tab1 cor0
----
15
skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL COUNT ( DISTINCT - col0 ) * + MIN ( DISTINCT + col1 ) AS col0 FROM tab1 cor0
----
15
query I rowsort
SELECT DISTINCT - col0 + + 28 AS col2 FROM tab0 AS cor0
----
-59
-69
13
query I rowsort
SELECT 21 + col2 AS col1 FROM tab0 AS cor0
----
120
31
68
onlyif mysql # aggregate syntax:
query I rowsort label-7170
SELECT DISTINCT + 1 - + + COUNT( + 76 ) * + 51 * - + 50 FROM tab0 AS cor0
----
7651
skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT + 1 - + + COUNT ( + 76 ) * + 51 * - + 50 FROM tab0 AS cor0
----
7651
query I rowsort
SELECT ALL + + ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT 13 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7172
SELECT ALL + COUNT( - - col1 ) - COUNT( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL + COUNT ( - - col1 ) - COUNT ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
0
onlyif mysql # aggregate syntax:
query II rowsort label-7173
SELECT DISTINCT + + COUNT( * ), + 9 - + - COUNT( * ) col1 FROM tab1 cor0
----
3
12
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7173
SELECT DISTINCT + + COUNT ( * ), + 9 - + - COUNT ( * ) col1 FROM tab1 cor0
----
3
12
onlyif mysql # aggregate syntax:
query I rowsort label-7174
SELECT DISTINCT - SUM( + col0 ) FROM tab0 cor0
----
-199
skipif mysql # not compatible
query I rowsort label-7174
SELECT DISTINCT - SUM ( + col0 ) FROM tab0 cor0
----
-199
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 * + + 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-7176
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 cor0
----
3
skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 cor0
----
3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-7177
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) col1, 3 FROM tab2
----
3
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7177
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) col1, 3 FROM tab2
----
3
3
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > - col0
----
query I rowsort
SELECT + 34 * 34 AS col0 FROM tab0
----
1156
1156
1156
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7180
SELECT + col1 * CAST( NULL AS SIGNED ) * + + col1 / + ( + 96 ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7180
SELECT + col1 * CAST ( NULL AS INTEGER ) * + + col1 / + ( + 96 ) AS col0 FROM tab0
----
NULL
NULL
NULL
query II rowsort
SELECT DISTINCT + 51 AS col2, col0 AS col0 FROM tab1
----
51
51
51
85
51
91
query II rowsort
SELECT col0 AS col1, + col1 * - 43 + 64 AS col2 FROM tab0
----
15
-3419
87
-839
97
21
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( ( ( col0 ) ) NOT IN ( ( - col0 ) ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NULL < + 24
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 29 IS NOT NULL
----
query I rowsort
SELECT ALL - 67 AS col2 FROM tab2 cor0
----
-67
-67
-67
query II rowsort
SELECT - + col2, 45 AS col1 FROM tab0 cor0
----
-10
45
-47
45
-99
45
onlyif mysql # DIV for integer division:
query I rowsort label-7188
SELECT - col1 * - - col2 DIV + col2 FROM tab1
----
-14
-47
-5
skipif mysql # not compatible
query I rowsort label-7188
SELECT - col1 * - - col2 / + col2 FROM tab1
----
-14
-47
-5
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-7189
SELECT DISTINCT - COUNT( * ) * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7189
SELECT DISTINCT - COUNT ( * ) * CAST ( NULL AS REAL ) FROM tab0
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-7190
SELECT ALL + + col1 * - + CAST( + + 88 AS SIGNED ), + col1 AS col2 FROM tab2 AS cor0
----
-4488
51
-5896
67
-6776
77
skipif mysql # not compatible
query II rowsort label-7190
SELECT ALL + + col1 * - + CAST ( + + 88 AS INTEGER ), + col1 AS col2 FROM tab2 AS cor0
----
-4488
51
-5896
67
-6776
77
query I rowsort
SELECT DISTINCT - 84 + ( - col1 ) FROM tab0 AS cor0
----
-105
-165
-85
query I rowsort
SELECT - 45 * - 42 * + + 62 * + + 92 FROM tab0 AS cor0 WHERE NULL <> + col0
----
onlyif mysql # DIV for integer division:
query I rowsort label-7193
SELECT ALL 24 * + col1 * col2 + + col2 + ( - col0 ) DIV + col1 FROM tab1 AS cor0
----
32349
7122
76771
skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL 24 * + col1 * col2 + + col2 + ( - col0 ) / + col1 FROM tab1 AS cor0
----
32349
7122
76771
onlyif mysql # aggregate syntax:
query I rowsort label-7194
SELECT DISTINCT + 75 + + SUM( DISTINCT - 2 ) AS col2 FROM tab1 AS cor0
----
73
skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT + 75 + + SUM ( DISTINCT - 2 ) AS col2 FROM tab1 AS cor0
----
73
onlyif mysql # aggregate syntax:
query I rowsort label-7195
SELECT + COUNT( DISTINCT ( - + ( 40 ) ) ) col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7195
SELECT + COUNT ( DISTINCT ( - + ( 40 ) ) ) col0 FROM tab1 AS cor0
----
1
query I rowsort
SELECT DISTINCT col0 + - + col0 AS col0 FROM tab1
----
0
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) = col1
----
onlyif mysql # DIV for integer division:
query I rowsort label-7198
SELECT ALL ( + ( - 86 ) ) + + col1 DIV - col1 FROM tab2
----
-87
-87
-87
skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL ( + ( - 86 ) ) + + col1 / - col1 FROM tab2
----
-87
-87
-87
onlyif mysql # aggregate syntax:
query I rowsort label-7199
SELECT + COUNT( ( - col1 ) ) FROM tab2 WHERE + col2 IN ( + 16, col2 / + - col2 )
----
0
skipif mysql # not compatible
query I rowsort label-7199
SELECT + COUNT ( ( - col1 ) ) FROM tab2 WHERE + col2 IN ( + 16, col2 / + - col2 )
----
0
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-7200
SELECT ALL * FROM tab2 WHERE 47 <> - CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-7200
SELECT ALL * FROM tab2 WHERE 47 <> - CAST ( NULL AS INTEGER )
----
onlyif mysql # aggregate syntax:
query I rowsort label-7201
SELECT ALL ( COUNT( * ) ) AS col1 FROM tab2 WHERE 82 IS NOT NULL
----
3
skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL ( COUNT ( * ) ) AS col1 FROM tab2 WHERE 82 IS NOT NULL
----
3
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( ( - - col2 ) )
----
query III rowsort
SELECT * FROM tab0 WHERE 12 + + 27 * - + 56 * - - 26 IN ( + col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-7204
SELECT ALL + 85 + + - COUNT( * ) FROM tab1
----
82
skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL + 85 + + - COUNT ( * ) FROM tab1
----
82
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( col2 * col1 + col0 + + + 81 / - col0 )
----
onlyif mysql # DIV for integer division:
query I rowsort label-7206
SELECT - 16 DIV + col1 + - ( - col0 ) + + 41 - + col2 * + col0 * + col2 * col1 FROM tab2 AS cor0
----
-1240947
-16903984
-7884695
skipif mysql # not compatible
query I rowsort label-7206
SELECT - 16 / + col1 + - ( - col0 ) + + 41 - + col2 * + col0 * + col2 * col1 FROM tab2 AS cor0
----
-1240947
-16903984
-7884695
query I rowsort
SELECT - 79 * - 69 FROM tab0 cor0
----
5451
5451
5451
onlyif mysql # DIV for integer division:
query I rowsort label-7208
SELECT ALL ( - - 49 ) DIV 12 + - ( 56 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-52
-52
-52
skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL ( - - 49 ) / 12 + - ( 56 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-52
-52
-52
query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-7210
SELECT + COUNT( ALL 71 ) AS col1 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-7210
SELECT + COUNT ( ALL 71 ) AS col1 FROM tab2 AS cor0
----
3
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-7211
SELECT + + col0, - col2 - CAST( NULL AS DECIMAL ) FROM tab1 WHERE - col1 IN ( col0 * - 48, col2 )
----
skipif mysql # not compatible
query II rowsort label-7211
SELECT + + col0, - col2 - CAST ( NULL AS REAL ) FROM tab1 WHERE - col1 IN ( col0 * - 48, col2 )
----
query I rowsort
SELECT - col0 * + col0 - - 91 FROM tab2 AS cor0
----
-2025
-4005
-5534
query I rowsort
SELECT DISTINCT col2 - 25 FROM tab1 AS cor0
----
34
43
71
onlyif mysql # DIV for integer division:
query I rowsort label-7214
SELECT - - col0 DIV - + 2 + - col1 FROM tab1 cor0
----
-39
-47
-92
skipif mysql # not compatible
query I rowsort label-7214
SELECT - - col0 / - + 2 + - col1 FROM tab1 cor0
----
-39
-47
-92
onlyif mysql # aggregate syntax:
query I rowsort label-7215
SELECT ALL + COUNT( DISTINCT - col1 ) col1 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7215
SELECT ALL + COUNT ( DISTINCT - col1 ) col1 FROM tab0 AS cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7216
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col1 * + - col0 + + 32 FROM tab2 AS cor0
----
-2314
-4896
-4993
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query III rowsort label-7218
SELECT - 4 * + + CAST( NULL AS SIGNED ) AS col1, + col0 - - 14 DIV - - 80 + + + col0 + - col2 AS col1, - - col2 * - 20 FROM tab1 AS cor0
----
9 values hashing to 59a6176133b6aed5c2e4973d243ec782
skipif mysql # not compatible
query III rowsort label-7218
SELECT - 4 * + + CAST ( NULL AS INTEGER ) AS col1, + col0 - - 14 / - - 80 + + + col0 + - col2 AS col1, - - col2 * - 20 FROM tab1 AS cor0
----
9 values hashing to 59a6176133b6aed5c2e4973d243ec782
onlyif mysql # aggregate syntax:
query I rowsort label-7219
SELECT DISTINCT + COUNT( * ) * - - SUM( col1 ) FROM tab1 AS cor0
----
198
skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT + COUNT ( * ) * - - SUM ( col1 ) FROM tab1 AS cor0
----
198
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-7220
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( - 93 * - col2, CAST( + col2 AS SIGNED ) + - col2, + 95 / - col2 )
----
skipif mysql # not compatible
query III rowsort label-7220
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( - 93 * - col2, CAST ( + col2 AS INTEGER ) + - col2, + 95 / - col2 )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7221
SELECT ALL - CAST( ( + COUNT( * ) ) AS SIGNED ) * + MIN( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL - CAST ( ( + COUNT ( * ) ) AS INTEGER ) * + MIN ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT 98 * 32 FROM tab2
----
3136
3136
3136
query I rowsort
SELECT ALL - 7 - - col0 + - + 34 * col2 AS col1 FROM tab2 WHERE NOT + 54 <> NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 IN ( 67 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7225
SELECT ( + 1 ) * + - COUNT( * ) DIV + 14 * + - 38 AS col1 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-7225
SELECT ( + 1 ) * + - COUNT ( * ) / + 14 * + - 38 AS col1 FROM tab2
----
0
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-7226
SELECT DISTINCT + 52 DIV - CAST( col1 AS SIGNED ) FROM tab0
----
-2
-52
0
skipif mysql # not compatible
query I rowsort label-7226
SELECT DISTINCT + 52 / - CAST ( col1 AS INTEGER ) FROM tab0
----
-2
-52
0
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7227
SELECT - MAX( DISTINCT - CAST( col1 AS SIGNED ) ) FROM tab1
----
5
skipif mysql # not compatible
query I rowsort label-7227
SELECT - MAX ( DISTINCT - CAST ( col1 AS INTEGER ) ) FROM tab1
----
5
onlyif mysql # aggregate syntax:
query I rowsort label-7228
SELECT DISTINCT - + COUNT( * ) FROM tab1 AS cor0 WHERE ( NOT ( NOT - col2 IS NULL ) )
----
0
skipif mysql # not compatible
query I rowsort label-7228
SELECT DISTINCT - + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT ( NOT - col2 IS NULL ) )
----
0
query I rowsort
SELECT + 73 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
73
73
73
onlyif mysql # aggregate syntax:
query I rowsort label-7230
SELECT DISTINCT MIN( - ( + ( + 29 ) ) ) FROM tab0 WHERE NOT + 14 + + + col1 NOT BETWEEN + 48 AND NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT MIN ( - ( + ( + 29 ) ) ) FROM tab0 WHERE NOT + 14 + + + col1 NOT BETWEEN + 48 AND NULL
----
NULL
query II rowsort
SELECT DISTINCT + col1 AS col2, - col0 AS col0 FROM tab2
----
51
-46
67
-75
77
-64
onlyif mysql # aggregate syntax:
query I rowsort label-7232
SELECT + - COUNT( * ) * - 44 + - 63 * + COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-54
skipif mysql # not compatible
query I rowsort label-7232
SELECT + - COUNT ( * ) * - 44 + - 63 * + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-54
onlyif mysql # aggregate syntax:
query I rowsort label-7233
SELECT 56 * - MAX( ALL - col2 ) + COUNT( * ) FROM tab1 AS cor0
----
3307
skipif mysql # not compatible
query I rowsort label-7233
SELECT 56 * - MAX ( ALL - col2 ) + COUNT ( * ) FROM tab1 AS cor0
----
3307
onlyif mysql # aggregate syntax:
query I rowsort label-7234
SELECT DISTINCT + + COUNT( + - col0 ) AS col1 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-7234
SELECT DISTINCT + + COUNT ( + - col0 ) AS col1 FROM tab0 AS cor0
----
3
query I rowsort
SELECT DISTINCT - + ( - 31 ) FROM tab2 AS cor0
----
31
query I rowsort
SELECT + + col1 + - 12 + - - 51 FROM tab0 AS cor0
----
120
40
60
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 >= NULL
----
query I rowsort
SELECT col2 * + col0 + + 30 FROM tab1 AS cor0
----
4926
5045
6218
onlyif mysql # aggregate syntax:
query I rowsort label-7239
SELECT + 16 * + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NULL > + 66
----
0
skipif mysql # not compatible
query I rowsort label-7239
SELECT + 16 * + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NULL > + 66
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-7240
SELECT - MAX( DISTINCT col1 ) + - COUNT( * ) FROM tab2 AS cor0
----
-80
skipif mysql # not compatible
query I rowsort label-7240
SELECT - MAX ( DISTINCT col1 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-80
onlyif mysql # aggregate syntax:
query I rowsort label-7241
SELECT ALL - MIN( ALL ( - + 76 ) ) AS col0 FROM tab1 AS cor0
----
76
skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL - MIN ( ALL ( - + 76 ) ) AS col0 FROM tab1 AS cor0
----
76
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT + 97 * + col0 + + ( - col2 ) AS col1 FROM tab2
----
4439
6168
7217
query I rowsort
SELECT 76 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT DISTINCT 89 + - ( 6 ) AS col0 FROM tab1
----
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col0 col2 FROM tab1
----
425
4277
714
query II rowsort
SELECT ALL col2 * + 24 - ( - 50 ) + - 5 AS col0, - 37 AS col0 FROM tab2
----
1005
-37
1437
-37
597
-37
query I rowsort
SELECT - col2 FROM tab1 WHERE col1 IS NOT NULL
----
-59
-68
-96
onlyif mysql # aggregate syntax:
query I rowsort label-7249
SELECT + ( - MAX( - 71 ) ) AS col1 FROM tab0
----
71
skipif mysql # not compatible
query I rowsort label-7249
SELECT + ( - MAX ( - 71 ) ) AS col1 FROM tab0
----
71
query I rowsort
SELECT + 43 * 96 - + col1 FROM tab0 AS cor0
----
4047
4107
4127
onlyif mysql # aggregate syntax:
query I rowsort label-7251
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96
query I rowsort
SELECT ALL - col1 + - 37 FROM tab2
----
-104
-114
-88
query II rowsort
SELECT ALL col1 - - col2 * - col0 * + + col2 * - 3 + - col2 AS col0, col2 * - col1 AS col0 FROM tab1
----
1262331
-3196
1409966
-1344
887601
-295
query I rowsort
SELECT + col1 * - + col0 + - + col0 AS col1 FROM tab1
----
-4368
-510
-765
onlyif mysql # aggregate syntax:
query I rowsort label-7256
SELECT ALL + - COUNT( * ) * + + COUNT( * ) FROM tab0 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL + - COUNT ( * ) * + + COUNT ( * ) FROM tab0 AS cor0
----
-9
onlyif mysql # aggregate syntax:
query I rowsort label-7257
SELECT MAX( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 + - - 43 >= col2 * - ( 25 ) - col0 + + col2 * col1
----
47
skipif mysql # not compatible
query I rowsort label-7257
SELECT MAX ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 + - - 43 >= col2 * - ( 25 ) - col0 + + col2 * col1
----
47
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7258
SELECT - col0 - + - 30 + - 50 * + CAST( NULL AS SIGNED ) * - col0 / col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND 25
----
skipif mysql # not compatible
query I rowsort label-7258
SELECT - col0 - + - 30 + - 50 * + CAST ( NULL AS INTEGER ) * - col0 / col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND 25
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> 47 * + col2
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7260
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( 98 * + col2 + + + CAST( NULL AS SIGNED ) + + col1 )
----
skipif mysql # not compatible
query I rowsort label-7260
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( 98 * + col2 + + + CAST ( NULL AS INTEGER ) + + col1 )
----
query I rowsort
SELECT 72 * - 59 AS col2 FROM tab2 AS cor0
----
-4248
-4248
-4248
onlyif mysql # DIV for integer division:
query I rowsort label-7262
SELECT DISTINCT col0 DIV - - col0 AS col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-7262
SELECT DISTINCT col0 / - - col0 AS col0 FROM tab1 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - col2 * col1 col1, 15 - col0 FROM tab1 AS cor0
----
129024
-36
17405
-70
217328
-76
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * - col0 NOT BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-7265
SELECT COUNT( * ) * - + COUNT( * ) AS col2, - COUNT( * ) col1 FROM tab0
----
-9
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7265
SELECT COUNT ( * ) * - + COUNT ( * ) AS col2, - COUNT ( * ) col1 FROM tab0
----
-9
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col2 + col2 col2 FROM tab0 WHERE NOT + 2 IS NOT NULL
----
query II rowsort
SELECT - 19 AS col0, + ( - col1 ) FROM tab1 WHERE NOT - 33 IS NOT NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * + col0 = - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT DISTINCT + ( - 74 ) AS col2, - col1 * 1 AS col0 FROM tab2 AS cor0
----
-74
-51
-74
-67
-74
-77
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( - col1 )
----
query I rowsort
SELECT + 55 AS col1 FROM tab1
----
55
55
55
onlyif mysql # aggregate syntax:
query I rowsort label-7272
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9
skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9
onlyif mysql # aggregate syntax:
query I rowsort label-7273
SELECT ALL COUNT( + col2 ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-7273
SELECT ALL COUNT ( + col2 ) FROM tab0
----
3
query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - 10 col1, ( + 27 ), + + 42 AS col2 FROM tab1 AS cor0
----
9 values hashing to 6ef2779c942bbcd9053fc85bbb3f56d9
query I rowsort
SELECT ALL + + 64 AS col2 FROM tab2 AS cor0
----
64
64
64
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7277
SELECT DISTINCT 65 + - col2 / 40 FROM tab2 AS cor0 WHERE NOT NULL < ( col1 * - + CAST( - col2 AS SIGNED ) + + + col0 )
----
skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT 65 + - col2 / 40 FROM tab2 AS cor0 WHERE NOT NULL < ( col1 * - + CAST ( - col2 AS INTEGER ) + + + col0 )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7278
SELECT DISTINCT + SUM( ALL - ( - + CAST( NULL AS SIGNED ) ) ) + - + 34 col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7278
SELECT DISTINCT + SUM ( ALL - ( - + CAST ( NULL AS INTEGER ) ) ) + - + 34 col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-7279
SELECT - + 52 * COUNT( * ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-7279
SELECT - + 52 * COUNT ( * ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
0
query I rowsort
SELECT + 49 + - - 23 AS col2 FROM tab1 cor0
----
72
72
72
query I rowsort
SELECT DISTINCT + col2 + - + col0 FROM tab1 AS cor0
----
-23
-26
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 44 + + col0 col0, + col2 + - + col2 AS col0 FROM tab0
----
131
0
141
0
59
0
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7283
SELECT - CAST( NULL AS SIGNED ) / - + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7283
SELECT - CAST ( NULL AS INTEGER ) / - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 20 col1 FROM tab2
----
66
84
95
query I rowsort
SELECT DISTINCT col0 + + 32 * - col1 FROM tab2
----
-1586
-2069
-2400
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-7286
SELECT DISTINCT + + col1 * - 37 - + 41 AS col1 FROM tab1 WHERE col1 / CAST( NULL AS DECIMAL ) IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-7286
SELECT DISTINCT + + col1 * - 37 - + 41 AS col1 FROM tab1 WHERE col1 / CAST ( NULL AS REAL ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7287
SELECT ALL - COUNT( * ) + + COUNT( * ) FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL - COUNT ( * ) + + COUNT ( * ) FROM tab1
----
0
query I rowsort
SELECT ALL ( + col0 ) - - col1 FROM tab0
----
108
96
98
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7289
SELECT ALL + CAST( + - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) col2 FROM tab0 AS cor0
----
-10
-47
-99
query I rowsort
SELECT DISTINCT - + ( + col0 ) + 31 FROM tab1 AS cor0
----
-20
-54
-60
onlyif mysql # aggregate syntax:
query I rowsort label-7292
SELECT - MIN( ALL - - 94 ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-7292
SELECT - MIN ( ALL - - 94 ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NOT NULL
----
NULL
query I rowsort
SELECT ALL col0 * - 4 + - col2 FROM tab2 AS cor0
----
-207
-296
-358
query I rowsort
SELECT 71 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
71
71
71
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> - 5
----
onlyif mysql # DIV for integer division:
query I rowsort label-7296
SELECT - col0 * + col1 DIV - - col1 AS col1 FROM tab1 cor0
----
-51
-85
-91
skipif mysql # not compatible
query I rowsort label-7296
SELECT - col0 * + col1 / - - col1 AS col1 FROM tab1 cor0
----
-51
-85
-91
onlyif mysql # aggregate syntax:
query I rowsort label-7297
SELECT DISTINCT - - COUNT( * ) * - - 7 AS col2 FROM tab1 AS cor0
----
21
skipif mysql # not compatible
query I rowsort label-7297
SELECT DISTINCT - - COUNT ( * ) * - - 7 AS col2 FROM tab1 AS cor0
----
21
query II rowsort
SELECT + 50 * 2 AS col1, + col2 AS col1 FROM tab1 AS cor0
----
100
59
100
68
100
96
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-7299
SELECT * FROM tab0 WHERE NOT + CAST( 35 AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-7299
SELECT * FROM tab0 WHERE NOT + CAST ( 35 AS INTEGER ) IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> + 5
----
query I rowsort
SELECT + 55 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT DISTINCT 43 FROM tab0, tab2 cor0
----
43
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + - col2 * + - col1 IS NOT NULL
----
query II rowsort
SELECT ALL col1 AS col2, col2 FROM tab0
----
1
99
21
10
81
47
onlyif mysql # DIV for integer division:
query I rowsort label-7305
SELECT + 70 DIV - 30 AS col0 FROM tab1
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-7305
SELECT + 70 / - 30 AS col0 FROM tab1
----
-2
-2
-2
query I rowsort
SELECT ALL - 9 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 61 col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
61
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-7308
SELECT * FROM tab2 WHERE + col0 / CAST( NULL AS SIGNED ) + + col2 - 82 * + col0 * - ( ( - - col1 ) ) * + 37 = + col2
----
skipif mysql # not compatible
query III rowsort label-7308
SELECT * FROM tab2 WHERE + col0 / CAST ( NULL AS INTEGER ) + + col2 - 82 * + col0 * - ( ( - - col1 ) ) * + 37 = + col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-7309
SELECT - ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-7309
SELECT - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7310
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7310
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 30 BETWEEN NULL AND NULL
----
query I rowsort
SELECT - 52 + + col1 + - 11 * col2 + + 46 + + - 73 AS col0 FROM tab2 AS cor0
----
-281
-442
-650
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 / - 21 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT + 55 + - 46 FROM tab1 AS cor0
----
9
9
9
query I rowsort
SELECT + col1 + - col1 - + - 65 FROM tab1 cor0
----
65
65
65
onlyif mysql # aggregate syntax:
query I rowsort label-7316
SELECT ALL + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT + ( + - col0 ) > col1 - - ( - col1 ) )
----
0
skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT + ( + - col0 ) > col1 - - ( - col1 ) )
----
0
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-7317
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) + - col2 IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-7317
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) + - col2 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query II rowsort label-7318
SELECT ALL - col0 DIV col1 + col2 AS col0, 69 * col0 AS col0 FROM tab0
----
2
6693
47
1035
6
6003
skipif mysql # not compatible
query II rowsort label-7318
SELECT ALL - col0 / col1 + col2 AS col0, 69 * col0 AS col0 FROM tab0
----
2
6693
47
1035
6
6003
query I rowsort
SELECT ALL - ( col1 ) - - + col0 FROM tab1
----
37
44
80
query I rowsort
SELECT + col1 - + - 81 FROM tab0
----
102
162
82
onlyif mysql # aggregate syntax:
query I rowsort label-7321
SELECT + - ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-7321
SELECT + - ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3
query II rowsort
SELECT col0 AS col2, + 41 AS col2 FROM tab1
----
51
41
85
41
91
41
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + col2
----
query III rowsort
SELECT * FROM tab2 WHERE NOT - 64 * - col1 * col2 > 16
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7325
SELECT COUNT( * ) DIV MAX( DISTINCT + 45 ) AS col0 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-7325
SELECT COUNT ( * ) / MAX ( DISTINCT + 45 ) AS col0 FROM tab2
----
0
query I rowsort
SELECT ALL - 50 AS col1 FROM tab2 AS cor0
----
-50
-50
-50
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * 61 IS NOT NULL
----
query II rowsort
SELECT DISTINCT col2 AS col0, 71 FROM tab2 cor0
----
23
71
40
71
58
71
query I rowsort
SELECT + + ( 1 ) FROM tab0 AS cor0
----
1
1
1
query II rowsort
SELECT ALL + - 42 AS col1, + col2 * col2 AS col1 FROM tab2 AS cor0
----
-42
1600
-42
3364
-42
529
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-7331
SELECT + ( + COUNT( * ) ) AS col1, + ( CAST( + - 59 AS SIGNED ) ) FROM tab2
----
3
-59
skipif mysql # not compatible
query II rowsort label-7331
SELECT + ( + COUNT ( * ) ) AS col1, + ( CAST ( + - 59 AS INTEGER ) ) FROM tab2
----
3
-59
onlyif mysql # aggregate syntax:
query I rowsort label-7332
SELECT - COUNT( * ) * - 97 AS col0 FROM tab2
----
291
skipif mysql # not compatible
query I rowsort label-7332
SELECT - COUNT ( * ) * - 97 AS col0 FROM tab2
----
291
query I rowsort
SELECT + - 34 * + + col2 + + col2 / - col2 + 30 FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT - ( + + col0 ) AS col2 FROM tab0
----
-15
-87
-97
query I rowsort
SELECT ALL + col1 * 25 AS col2 FROM tab2
----
1275
1675
1925
query II rowsort
SELECT DISTINCT col0 * col2 AS col2, 77 - + + 6 + - 56 AS col1 FROM tab2
----
1058
15
2560
15
4350
15
onlyif mysql # aggregate syntax:
query I rowsort label-7337
SELECT DISTINCT - COUNT( * ) + 5 FROM tab2
----
2
skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT - COUNT ( * ) + 5 FROM tab2
----
2
query I rowsort
SELECT ALL 47 * + col1 * col2 FROM tab1
----
13865
150212
63168
query I rowsort
SELECT - ( col2 ) * - - col1 * - + col2 FROM tab2
----
123200
225388
26979
onlyif mysql # aggregate syntax:
query I rowsort label-7340
SELECT ALL 86 * + COUNT( * ) AS col1 FROM tab2
----
258
skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL 86 * + COUNT ( * ) AS col1 FROM tab2
----
258
query I rowsort
SELECT ALL col0 * 13 AS col1 FROM tab1
----
1105
1183
663
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7342
SELECT DISTINCT + - 26 * 78 + - COUNT( * ) - + - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + - col2 + 50 * - ( 89 ) + col2 = - - ( ( - col0 ) )
----
NULL
skipif mysql # not compatible
query I rowsort label-7342
SELECT DISTINCT + - 26 * 78 + - COUNT ( * ) - + - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + - col2 + 50 * - ( 89 ) + col2 = - - ( ( - col0 ) )
----
NULL
query III rowsort
SELECT * FROM tab2 WHERE NOT + 54 NOT BETWEEN NULL AND NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7344
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-7344
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
3
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 60 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7346
SELECT + 63 + COUNT( * ) FROM tab2 AS cor0
----
66
skipif mysql # not compatible
query I rowsort label-7346
SELECT + 63 + COUNT ( * ) FROM tab2 AS cor0
----
66
onlyif mysql # aggregate syntax:
query I rowsort label-7347
SELECT DISTINCT 86 + + COUNT( * ) FROM tab1
----
89
skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT 86 + + COUNT ( * ) FROM tab1
----
89
onlyif mysql # DIV for integer division:
query I rowsort label-7348
SELECT ALL col0 * - 12 + col1 DIV col1 DIV + col2 FROM tab1
----
-1020
-1092
-612
skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL col0 * - 12 + col1 / col1 / + col2 FROM tab1
----
-1020
-1092
-612
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7349
SELECT ALL - CAST( + + ( - 72 ) AS SIGNED ) AS col0 FROM tab0 WHERE NOT ( col0 ) * + col1 - col0 - col0 <> NULL
----
skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL - CAST ( + + ( - 72 ) AS INTEGER ) AS col0 FROM tab0 WHERE NOT ( col0 ) * + col1 - col0 - col0 <> NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7350
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-7350
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7351
SELECT DISTINCT - 94 DIV COUNT( * ) * + COUNT( + col2 ) FROM tab0 AS cor0
----
-93
skipif mysql # not compatible
query I rowsort label-7351
SELECT DISTINCT - 94 / COUNT ( * ) * + COUNT ( + col2 ) FROM tab0 AS cor0
----
-93
query II rowsort
SELECT col0, col0 FROM tab2 AS cor0 WHERE + col1 + col1 IS NULL AND NOT NULL BETWEEN col1 AND ( NULL )
----
query I rowsort
SELECT 32 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT DISTINCT + - col1 - 96 + - - col2 * + 11 * 95 * + col1 * + col0 AS col0 FROM tab0 cor0
----
10035038
19092033
59674548
query I rowsort
SELECT + - 20 * + + col2 + - 50 + + - 23 * + - col2 FROM tab0 cor0
----
-20
247
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + 34 * + 47 * col2 * 18 col0 FROM tab2 AS cor0
----
1150600
1668370
661595
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab2 WHERE + + col2 * + ( - + 1 ) * 16 + col1 - + col2 NOT BETWEEN - col0 AND - col1
----
-23
-40
-58
query III rowsort
SELECT * FROM tab0 WHERE - + col2 / + col1 NOT IN ( + col2, col1, - + 37 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # DIV for integer division:
query II rowsort label-7359
SELECT DISTINCT col2 DIV - - col2 AS col1, - col1 FROM tab2
----
1
-51
1
-67
1
-77
skipif mysql # not compatible
query II rowsort label-7359
SELECT DISTINCT col2 / - - col2 AS col1, - col1 FROM tab2
----
1
-51
1
-67
1
-77
query I rowsort
SELECT col1 * + 39 FROM tab2
----
1989
2613
3003
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 23 + - col1 AND NULL
----
query I rowsort
SELECT - ( + col0 ) * + + col2 FROM tab0 AS cor0
----
-705
-870
-9603
onlyif mysql # aggregate syntax:
query II rowsort label-7363
SELECT - MIN( + 29 ) * + + 45 + 3 AS col0, - ( 97 ) FROM tab1 AS cor0
----
-1302
-97
skipif mysql # not compatible
query II rowsort label-7363
SELECT - MIN ( + 29 ) * + + 45 + 3 AS col0, - ( 97 ) FROM tab1 AS cor0
----
-1302
-97
query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL OR NOT - - col2 IS NOT NULL
----
14
47
5
query I rowsort
SELECT + - 50 * - col1 * col2 + - ( 52 ) + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= 70
----
query I rowsort
SELECT 37 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 col1 FROM tab1
----
8
query I rowsort
SELECT + - 71 * + col1 AS col1 FROM tab2 AS cor0
----
-3621
-4757
-5467
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + 10 IS NOT NULL
----
query I rowsort
SELECT ALL - 81 * + col1 AS col0 FROM tab2 AS cor0
----
-4131
-5427
-6237
query II rowsort
SELECT DISTINCT + col1 AS col2, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64
query II rowsort
SELECT ALL + + ( - - ( + - 69 ) ) AS col0, + col1 FROM tab1 AS cor0
----
-69
14
-69
47
-69
5
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 29 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-7375
SELECT DISTINCT - SUM( - col2 ) col0 FROM tab0 AS cor0
----
156
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7375
SELECT DISTINCT - SUM ( - col2 ) col0 FROM tab0 AS cor0
----
156
query I rowsort
SELECT - - 93 + col1 * col0 * - ( - - col0 ) * 37 AS col0 FROM tab1 AS cor0
----
-1336532
-1347225
-14400566
query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col1 ) >= + col0
----
query I rowsort
SELECT ALL 61 * - col1 AS col2 FROM tab2 WHERE NOT 76 < ( NULL )
----
query II rowsort
SELECT ALL 31 AS col0, + col0 * - 4 * 2 AS col0 FROM tab1
----
31
-408
31
-680
31
-728
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 72 NOT BETWEEN ( - col2 ) + - col0 AND NULL
----
query I rowsort
SELECT ALL - ( - - 24 ) FROM tab2 AS cor0
----
-24
-24
-24
query I rowsort
SELECT ALL + - 84 FROM tab1 WHERE - col2 <> - - col0 / + col1 + - col0
----
-84
-84
-84
query I rowsort
SELECT col1 * - 28 + + - col1 AS col1 FROM tab2
----
-1479
-1943
-2233
query I rowsort
SELECT + 41 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query II rowsort
SELECT col0 + + col2 AS col2, - 1 FROM tab0
----
196
-1
62
-1
97
-1
onlyif mysql # aggregate syntax:
query I rowsort label-7386
SELECT + - 12 + - ( COUNT( * ) ) FROM tab0 AS cor0
----
-15
skipif mysql # not compatible
query I rowsort label-7386
SELECT + - 12 + - ( COUNT ( * ) ) FROM tab0 AS cor0
----
-15
onlyif mysql # DIV for integer division:
query I rowsort label-7387
SELECT DISTINCT - - col2 - - 22 DIV 36 * 17 + - col0 - - 29 AS col0 FROM tab2 AS cor0
----
12
5
6
skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT - - col2 - - 22 / 36 * 17 + - col0 - - 29 AS col0 FROM tab2 AS cor0
----
12
5
6
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= - 0 * - - ( - + col2 ) + - col2
----
query I rowsort
SELECT ALL - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= + col2 - + col1
----
query I rowsort
SELECT ALL col0 / + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT 12 - ( + col2 ) + - col2 + 58 AS col1 FROM tab1
----
-122
-48
-66
query II rowsort
SELECT ALL - col2 AS col0, + 70 FROM tab2
----
-23
70
-40
70
-58
70
query II rowsort
SELECT 38 AS col1, + col0 AS col0 FROM tab1
----
38
51
38
85
38
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 col0 FROM tab0
----
88
88
88
query III rowsort
SELECT ALL * FROM tab1 WHERE ( + - col0 ) NOT IN ( - col1 - - col2 + - ( - col0 ) - - - col0 + + + col0 - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-7396
SELECT DISTINCT - SUM( ALL + 28 ) AS col1 FROM tab0
----
-84
skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT - SUM ( ALL + 28 ) AS col1 FROM tab0
----
-84
query I rowsort
SELECT - 32 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
query II rowsort
SELECT - 11 AS col0, - col2 * + col1 FROM tab0
----
-11
-210
-11
-3807
-11
-99
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 22 * col2 * + col0 * - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL + col1 * - - col1 FROM tab2 AS cor0
----
2601
4489
5929
query I rowsort
SELECT col0 * 91 + - + 65 FROM tab1 AS cor0
----
4576
7670
8216
query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT - 54 + + col0 * + ( 85 ) <= col0 * col0
----
23
40
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 8 col1 FROM tab2 AS cor0
----
-8
-8
-8
onlyif mysql # aggregate syntax:
query I rowsort label-7404
SELECT DISTINCT + MAX( DISTINCT - - col2 ) AS col0 FROM tab2 AS cor0
----
58
skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT + MAX ( DISTINCT - - col2 ) AS col0 FROM tab2 AS cor0
----
58
query I rowsort
SELECT ALL + + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 97 > NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7407
SELECT ALL + - col1 * CAST( col0 AS SIGNED ) + - + 64 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 + - - 3, - col1, + col0 + col1 + + - col2 * + col1 * col2, 67 / 95 / - col2 + 88 - + col1 )
----
skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL + - col1 * CAST ( col0 AS INTEGER ) + - + 64 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 + - - 3, - col1, + col0 + col1 + + - col2 * + col1 * col2, 67 / 95 / - col2 + 88 - + col1 )
----
query I rowsort
SELECT ALL - 41 + + ( + - col1 ) * + 15 AS col1 FROM tab0 AS cor0
----
-1256
-356
-56
query I rowsort
SELECT DISTINCT col0 * + 83 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE ( NOT ( NOT - - col1 IS NOT NULL ) )
----
-23
-40
-58
query III rowsort
SELECT * FROM tab1 WHERE + + 48 * - col0 + + 24 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT ALL - col1 + col0 * + col1 * + col2 * 90, + col2 FROM tab1
----
2256745
59
26175193
68
6168946
96
onlyif mysql # DIV for integer division:
query I rowsort label-7413
SELECT col2 + + 10 DIV col1 DIV - - col2 + + col1 + col0 * + col0 FROM tab1
----
2711
7289
8396
skipif mysql # not compatible
query I rowsort label-7413
SELECT col2 + + 10 / col1 / - - col2 + + col1 + col0 * + col0 FROM tab1
----
2711
7289
8396
query I rowsort
SELECT ALL + ( 16 ) + + col1 AS col1 FROM tab1
----
21
30
63
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7415
SELECT + 43 * 18 * - col2 + - col0 col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-45751
-52723
-74355
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7415
SELECT + 43 * 18 * - col2 + - col0 col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-45751
-52723
-74355
query I rowsort
SELECT ALL col0 / + + col2 FROM tab0 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7417
SELECT ALL ( + SUM( DISTINCT - 23 ) ) AS col2 FROM tab0, tab0 cor0
----
-23
skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL ( + SUM ( DISTINCT - 23 ) ) AS col2 FROM tab0, tab0 cor0
----
-23
onlyif mysql # aggregate syntax:
query I rowsort label-7418
SELECT DISTINCT + COUNT( + col1 ) FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT + COUNT ( + col1 ) FROM tab2 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-7419
SELECT + 44 + + COUNT( * ) - - 74 AS col2 FROM tab0 AS cor0
----
121
skipif mysql # not compatible
query I rowsort label-7419
SELECT + 44 + + COUNT ( * ) - - 74 AS col2 FROM tab0 AS cor0
----
121
query I rowsort
SELECT - + col0 + + col2 + - col0 + + - col0 AS col2 FROM tab2 AS cor0
----
-115
-152
-167
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 - + col0 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7422
SELECT ALL + + ( + + COUNT( * ) ) FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL + + ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
3
query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 + - col1 / + - 11 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7424
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-7424
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
3
query I rowsort
SELECT DISTINCT - 76 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-76
query I rowsort
SELECT DISTINCT 79 + - 64 AS col2 FROM tab0
----
15
onlyif mysql # DIV for integer division:
query I rowsort label-7427
SELECT col1 DIV + ( - col1 ) - - 79 FROM tab1 AS cor0
----
78
78
78
skipif mysql # not compatible
query I rowsort label-7427
SELECT col1 / + ( - col1 ) - - 79 FROM tab1 AS cor0
----
78
78
78
query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE ( + - col1 <> - 47 )
----
-10
-47
-99
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query I rowsort label-7429
SELECT DISTINCT + ( CAST( NULL AS DECIMAL ) ) - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT + ( CAST ( NULL AS REAL ) ) - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7430
SELECT + ( + CAST( NULL AS SIGNED ) ) + + col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7430
SELECT + ( + CAST ( NULL AS INTEGER ) ) + + col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + + + 86 AS col2 FROM tab1 AS cor0
----
137
171
177
query I rowsort
SELECT + 14 * + col1 + - col2 AS col1 FROM tab0 AS cor0
----
-85
1087
284
query I rowsort
SELECT ALL + - 15 * ( + col2 ) FROM tab0 AS cor0
----
-1485
-150
-705
query I rowsort
SELECT + col1 + - + col1 FROM tab0 cor0
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-7435
SELECT ALL COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9
onlyif mysql # DIV for integer division:
query I rowsort label-7436
SELECT + 78 DIV - + 54 + + col0 + + + col2 FROM tab0 AS cor0
----
195
61
96
skipif mysql # not compatible
query I rowsort label-7436
SELECT + 78 / - + 54 + + col0 + + + col2 FROM tab0 AS cor0
----
195
61
96
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 = NULL
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( + col2 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7439
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT - + ( + - col0 ) + + col0 * + 76 + 90 * + col0 IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-7439
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT - + ( + - col0 ) + + col0 * + 76 + 90 * + col0 IS NULL
----
NULL
query I rowsort
SELECT col2 * + + col2 AS col2 FROM tab0
----
100
2209
9801
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 col1 FROM tab1
----
26
26
26
query I rowsort
SELECT ALL + + col0 * - + ( col0 ) + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-306
-7590
-9410
onlyif mysql # aggregate syntax:
query II rowsort label-7443
SELECT DISTINCT + SUM( - col0 ) AS col1, COUNT( * ) FROM tab2 WHERE NOT + - 84 * + - col0 IS NOT NULL
----
NULL
0
skipif mysql # not compatible
query II rowsort label-7443
SELECT DISTINCT + SUM ( - col0 ) AS col1, COUNT ( * ) FROM tab2 WHERE NOT + - 84 * + - col0 IS NOT NULL
----
NULL
0
query I rowsort
SELECT - 77 + + col0 AS col2 FROM tab0 AS cor0
----
-62
10
20
query I rowsort
SELECT + + col2 + - 51 FROM tab2 cor0
----
-11
-28
7
query I rowsort
SELECT + col0 + col1 - - + 84 + - ( - + col1 ) FROM tab2 AS cor0
----
232
293
302
query I rowsort
SELECT 48 + 60 FROM tab2 AS cor0
----
108
108
108
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7448
SELECT DISTINCT + + COUNT( ALL - ( + + CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2 AS cor0 WHERE NULL > + col2 * + - ( - - 76 ) + - + col1 * - col2 * col2 * col0
----
0
skipif mysql # not compatible
query I rowsort label-7448
SELECT DISTINCT + + COUNT ( ALL - ( + + CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2 AS cor0 WHERE NULL > + col2 * + - ( - - 76 ) + - + col1 * - col2 * col2 * col0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-7449
SELECT MAX( DISTINCT 66 ) + + + 25 AS col2 FROM tab0 AS cor0
----
91
skipif mysql # not compatible
query I rowsort label-7449
SELECT MAX ( DISTINCT 66 ) + + + 25 AS col2 FROM tab0 AS cor0
----
91
query I rowsort
SELECT col2 - + ( - + 6 ) - - 94 * + col2 FROM tab2 AS cor0 WHERE NULL < col1
----
query I rowsort
SELECT + - col1 + + 51 + - + 96 FROM tab0 cor0 WHERE - 56 * + col0 + + col2 IS NOT NULL
----
-126
-46
-66
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = - col0 / - ( - col2 )
----
query III rowsort
SELECT * FROM tab1 WHERE col1 IS NULL
----
query II rowsort
SELECT DISTINCT 16 + - - 81, + col1 AS col2 FROM tab1
----
97
14
97
47
97
5
query I rowsort
SELECT DISTINCT + col1 + + 65 FROM tab2
----
116
132
142
onlyif mysql # aggregate syntax:
query II rowsort label-7456
SELECT ALL 36 + COUNT( * ) AS col0, + 58 col1 FROM tab2
----
39
58
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7456
SELECT ALL 36 + COUNT ( * ) AS col0, + 58 col1 FROM tab2
----
39
58
query I rowsort
SELECT DISTINCT - col0 + ( + col2 ) AS col1 FROM tab1
----
-23
-26
45
query III rowsort
SELECT ALL * FROM tab1 WHERE + 74 - - col2 IS NULL
----
onlyif mysql # DIV for integer division:
query II rowsort label-7459
SELECT - 16 DIV - col0 * + 78 * + + col2, + col0 AS col1 FROM tab1
----
0
51
0
85
0
91
skipif mysql # not compatible
query II rowsort label-7459
SELECT - 16 / - col0 * + 78 * + + col2, + col0 AS col1 FROM tab1
----
0
51
0
85
0
91
query I rowsort
SELECT + - col0 - - + col1 FROM tab1 AS cor0
----
-37
-44
-80
onlyif mysql # aggregate syntax:
query I rowsort label-7461
SELECT DISTINCT - 49 * + ( 94 ) + - MIN( ALL col0 ) FROM tab1 AS cor0
----
-4657
skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT - 49 * + ( 94 ) + - MIN ( ALL col0 ) FROM tab1 AS cor0
----
-4657
onlyif mysql # aggregate syntax:
query I rowsort label-7462
SELECT + MIN( + + col2 ) FROM tab2 AS cor0 WHERE col1 * - - 23 IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-7462
SELECT + MIN ( + + col2 ) FROM tab2 AS cor0 WHERE col1 * - - 23 IS NULL
----
NULL
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
query II rowsort
SELECT ALL + col0, - ( col0 ) FROM tab1 AS cor0
----
51
-51
85
-85
91
-91
onlyif mysql # aggregate syntax:
query I rowsort label-7466
SELECT DISTINCT + + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT + + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7467
SELECT + CAST( + col0 AS SIGNED ) * - + col2 FROM tab2
----
-1058
-2560
-4350
skipif mysql # not compatible
query I rowsort label-7467
SELECT + CAST ( + col0 AS INTEGER ) * - + col2 FROM tab2
----
-1058
-2560
-4350
query I rowsort
SELECT ( 23 ) AS col0 FROM tab2
----
23
23
23
query I rowsort
SELECT - col0 * + 0 * col2 FROM tab0
----
0
0
0
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-7470
SELECT + 93 FROM tab1, tab1 cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
skipif mysql # not compatible
query I rowsort label-7470
SELECT + 93 FROM tab1, tab1 cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query II rowsort
SELECT col1, 44 FROM tab1
----
14
44
47
44
5
44
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-7472
SELECT ALL col0 * 41 AS col1, - CAST( NULL AS DECIMAL ) / - - col1 + - + col0 + - col0 - - col0 col1 FROM tab0
----
3567
NULL
3977
NULL
615
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7472
SELECT ALL col0 * 41 AS col1, - CAST ( NULL AS REAL ) / - - col1 + - + col0 + - col0 - - col0 col1 FROM tab0
----
3567
NULL
3977
NULL
615
NULL
query I rowsort
SELECT DISTINCT - 65 * - 13 * + + col2 AS col0 FROM tab0 AS cor0
----
39715
83655
8450
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-7474
SELECT DISTINCT - - CAST( 36 AS SIGNED ) * col1 - - 60 AS col0, + col1 AS col2 FROM tab0 AS cor0
----
2976
81
816
21
96
1
skipif mysql # not compatible
query II rowsort label-7474
SELECT DISTINCT - - CAST ( 36 AS INTEGER ) * col1 - - 60 AS col0, + col1 AS col2 FROM tab0 AS cor0
----
2976
81
816
21
96
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
query II rowsort
SELECT DISTINCT col2 AS col1, col2 FROM tab2 AS cor0 WHERE col2 / col1 <= NULL
----
query II rowsort
SELECT - col2 * col2 AS col0, 73 AS col1 FROM tab1
----
-3481
73
-4624
73
-9216
73
query III rowsort
SELECT ALL * FROM tab1 WHERE 59 > + col0
----
51
14
96
onlyif mysql # aggregate syntax:
query I rowsort label-7479
SELECT DISTINCT COUNT( * ) * + - 58 AS col1 FROM tab0 AS cor0
----
-174
skipif mysql # not compatible
query I rowsort label-7479
SELECT DISTINCT COUNT ( * ) * + - 58 AS col1 FROM tab0 AS cor0
----
-174
onlyif mysql # aggregate syntax:
query I rowsort label-7480
SELECT DISTINCT - SUM( + ( + - col1 ) ) FROM tab2 cor0
----
195
skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT - SUM ( + ( + - col1 ) ) FROM tab2 cor0
----
195
onlyif mysql # DIV for integer division:
query I rowsort label-7481
SELECT DISTINCT - + col2 DIV col1 * - + col0 FROM tab2 cor0
----
0
skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT - + col2 / col1 * - + col0 FROM tab2 cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-7482
SELECT DISTINCT - MIN( - ( col1 ) ) * + 17 FROM tab1 AS cor0
----
799
skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT - MIN ( - ( col1 ) ) * + 17 FROM tab1 AS cor0
----
799
onlyif mysql # aggregate syntax:
query I rowsort label-7483
SELECT DISTINCT + - COUNT( * ) * COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
-6
skipif mysql # not compatible
query I rowsort label-7483
SELECT DISTINCT + - COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col1 ) + col1 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + 46 + + col2 AS col2 FROM tab1
----
105
114
142
query I rowsort
SELECT DISTINCT ( + + col0 ) + + - ( + + col2 ) FROM tab1
----
-45
23
26
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 NOT IN ( + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT - 13 + + col0 * + 2 AS col0 FROM tab2
----
115
137
79
query I rowsort
SELECT DISTINCT col2 + + 93 FROM tab1
----
152
161
189
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + col2 col2 FROM tab0 WHERE 63 > NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7491
SELECT ALL ( - - MIN( DISTINCT col2 ) ) FROM tab0
----
10
skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL ( - - MIN ( DISTINCT col2 ) ) FROM tab0
----
10
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7492
SELECT DISTINCT - COUNT( * ) DIV - 53 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-7492
SELECT DISTINCT - COUNT ( * ) / - 53 FROM tab1
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7493
SELECT ALL col2 + + col1 FROM tab1 AS cor0 WHERE NOT + CAST( + col0 AS SIGNED ) IS NULL
----
110
115
64
skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL col2 + + col1 FROM tab1 AS cor0 WHERE NOT + CAST ( + col0 AS INTEGER ) IS NULL
----
110
115
64
onlyif mysql # aggregate syntax:
query I rowsort label-7494
SELECT COUNT( - col1 ) AS col1 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-7494
SELECT COUNT ( - col1 ) AS col1 FROM tab2 AS cor0
----
3
query II rowsort
SELECT ALL + + col1 AS col0, ( - + col1 ) AS col0 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81
onlyif mysql # aggregate syntax:
query I rowsort label-7496
SELECT DISTINCT - - MAX( ALL + + col1 ) FROM tab1 AS cor0
----
47
skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT - - MAX ( ALL + + col1 ) FROM tab1 AS cor0
----
47
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type:
query I rowsort label-7497
SELECT DISTINCT + - ( COUNT( * ) ) FROM tab2 WHERE - - 78 * - + col0 * - + col1 + + 23 + - 40 - + - CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) = NULL
----
0
skipif mysql # not compatible
query I rowsort label-7497
SELECT DISTINCT + - ( COUNT ( * ) ) FROM tab2 WHERE - - 78 * - + col0 * - + col1 + + 23 + - 40 - + - CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) = NULL
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7498
SELECT DISTINCT - + col0 * - 96 + + - CAST( - + col2 AS SIGNED ) * col1 FROM tab0 WHERE ( - 29 NOT IN ( - CAST( - + col1 AS SIGNED ), col0, + ( - col2 ), + col1, ( + + 67 ) + - - 57, 48, + col0 - + - col2 * - - 47 + + + col2 ) )
----
5247
8562
9411
skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT - + col0 * - 96 + + - CAST ( - + col2 AS INTEGER ) * col1 FROM tab0 WHERE ( - 29 NOT IN ( - CAST ( - + col1 AS INTEGER ), col0, + ( - col2 ), + col1, ( + + 67 ) + - - 57, 48, + col0 - + - col2 * - - 47 + + + col2 ) )
----
5247
8562
9411
onlyif mysql # aggregate syntax:
query I rowsort label-7499
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-7499
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7500
SELECT ALL + COUNT( * ) * - + CAST( + + ( COUNT( * ) ) AS SIGNED ) * - COUNT( * ) + - MIN( ALL - col2 ) col2 FROM tab2 AS cor0
----
85
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7500
SELECT ALL + COUNT ( * ) * - + CAST ( + + ( COUNT ( * ) ) AS INTEGER ) * - COUNT ( * ) + - MIN ( ALL - col2 ) col2 FROM tab2 AS cor0
----
85
onlyif mysql # aggregate syntax:
query I rowsort label-7501
SELECT DISTINCT - COUNT( - col2 ) FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT - COUNT ( - col2 ) FROM tab1 AS cor0
----
-3
query I rowsort
SELECT - + ( + + col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96
query I rowsort
SELECT - + ( - col2 ) AS col0 FROM tab2 AS cor0
----
23
40
58
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7504
SELECT DISTINCT ( AVG ( - CAST( NULL AS SIGNED ) ) ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7504
SELECT DISTINCT ( AVG ( - CAST ( NULL AS INTEGER ) ) ) FROM tab2 cor0
----
NULL
query III rowsort
SELECT * FROM tab2 WHERE NOT + 86 - col0 <> + + 57
----
query I rowsort
SELECT DISTINCT col1 + + 56 FROM tab0 WHERE NOT + col0 NOT IN ( - + col0 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= + col0 * + col2 * + - col0 + col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-7508
SELECT DISTINCT COUNT( * ) * - 16 FROM tab1
----
-48
skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT COUNT ( * ) * - 16 FROM tab1
----
-48
query I rowsort
SELECT - 6 * + col1 AS col1 FROM tab0
----
-126
-486
-6
query I rowsort
SELECT ALL 52 AS col0 FROM tab0 cor0
----
52
52
52
query I rowsort
SELECT ( + 73 ) * - col0 * + 55 FROM tab2 AS cor0
----
-184690
-256960
-301125
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7512
SELECT - COUNT( * ) DIV 49 col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7512
SELECT - COUNT ( * ) / 49 col0 FROM tab2 AS cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-7513
SELECT - SUM( 52 ) FROM tab1 AS cor0
----
-156
skipif mysql # not compatible
query I rowsort label-7513
SELECT - SUM ( 52 ) FROM tab1 AS cor0
----
-156
query II rowsort
SELECT + 52 AS col0, 35 FROM tab1 AS cor0
----
52
35
52
35
52
35
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7515
SELECT ALL CAST( NULL AS SIGNED ) * col2 * + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL CAST ( NULL AS INTEGER ) * col2 * + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( 84 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
query II rowsort
SELECT + + col0, + col1 FROM tab2 AS cor0
----
46
51
64
77
75
67
query I rowsort
SELECT col0 + - + col2 + - col2 FROM tab2
----
-16
-41
0
onlyif mysql # aggregate syntax:
query II rowsort label-7519
SELECT COUNT( * ) + - 4, + 93 AS col0 FROM tab1
----
-1
93
skipif mysql # not compatible
query II rowsort label-7519
SELECT COUNT ( * ) + - 4, + 93 AS col0 FROM tab1
----
-1
93
query I rowsort
SELECT ALL ( 34 ) AS col1 FROM tab2 AS cor0
----
34
34
34
onlyif mysql # aggregate syntax:
query I rowsort label-7521
SELECT DISTINCT COUNT( + 52 ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-7521
SELECT DISTINCT COUNT ( + 52 ) FROM tab1 AS cor0
----
3
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 16 > NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-7523
SELECT ALL - col0 + - + 54 DIV + col0 AS col2 FROM tab0 AS cor0
----
-18
-87
-97
skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL - col0 + - + 54 / + col0 AS col2 FROM tab0 AS cor0
----
-18
-87
-97
query I rowsort
SELECT ALL + col2 + - - col2 FROM tab1 cor0
----
118
136
192
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-7525
SELECT * FROM tab2 AS cor0 WHERE col0 + - col1 * 69 * col1 <> - col0 * + col2 + + CAST( + col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-7525
SELECT * FROM tab2 AS cor0 WHERE col0 + - col1 * 69 * col1 <> - col0 * + col2 + + CAST ( + col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT DISTINCT col0 + - col2 - + col0 AS col2, col1 FROM tab0
----
-10
21
-47
81
-99
1
onlyif mysql # aggregate syntax:
query I rowsort label-7527
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE ( ( col2 ) IN ( col1, col1, col1 + + 69 ) )
----
0
skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE ( ( col2 ) IN ( col1, col1, col1 + + 69 ) )
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7528
SELECT ALL + CAST( NULL AS SIGNED ) - + col0 - + - col1 * - + col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL + CAST ( NULL AS INTEGER ) - + col0 - + - col1 * - + col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-7529
SELECT DISTINCT col1 DIV - col2 - + 19 + - col1 * + 53 * + col1 DIV col1 FROM tab1
----
-2510
-284
-761
skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT col1 / - col2 - + 19 + - col1 * + 53 * + col1 / col1 FROM tab1
----
-2510
-284
-761
query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( NULL ) > - col0 )
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-7531
SELECT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-7531
SELECT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT col0 * 98 - col1 * + 69 FROM tab2
----
2727
959
989
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + - 30 col2 FROM tab0 AS cor0
----
-51
29
9
onlyif mysql # DIV for integer division:
query I rowsort label-7534
SELECT + col2 DIV ( - col0 ) + - col0 col2 FROM tab1 cor0
----
-52
-85
-91
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7534
SELECT + col2 / ( - col0 ) + - col0 col2 FROM tab1 cor0
----
-52
-85
-91
query I rowsort
SELECT DISTINCT - 91 AS col1 FROM tab0 AS cor0 WHERE NOT col1 * + col2 + + - 96 / + - 30 IS NULL
----
-91
onlyif mysql # aggregate syntax:
query I rowsort label-7536
SELECT ALL + 50 * SUM( DISTINCT + col1 ) FROM tab2 cor0
----
9750
skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL + 50 * SUM ( DISTINCT + col1 ) FROM tab2 cor0
----
9750
onlyif mysql # DIV for integer division:
query I rowsort label-7537
SELECT col1 DIV 52 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7537
SELECT col1 / 52 FROM tab0
----
0
0
1
onlyif mysql # aggregate syntax:
query I rowsort label-7538
SELECT ALL 29 * + - COUNT( * ) * - COUNT( * ) col1 FROM tab0
----
261
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7538
SELECT ALL 29 * + - COUNT ( * ) * - COUNT ( * ) col1 FROM tab0
----
261
onlyif mysql # aggregate syntax:
query I rowsort label-7539
SELECT + COUNT( 22 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-7539
SELECT + COUNT ( 22 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-7540
SELECT 31 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
279
skipif mysql # not compatible
query I rowsort label-7540
SELECT 31 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
279
onlyif mysql # aggregate syntax:
query I rowsort label-7541
SELECT SUM( - 28 ) AS col1 FROM tab0
----
-84
skipif mysql # not compatible
query I rowsort label-7541
SELECT SUM ( - 28 ) AS col1 FROM tab0
----
-84
query II rowsort
SELECT - col0, col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-7543
SELECT ALL - col0 AS col1, - 73 * + - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
3358
-64
4672
-75
5475
skipif mysql # not compatible
query II rowsort label-7543
SELECT ALL - col0 AS col1, - 73 * + - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
3358
-64
4672
-75
5475
onlyif mysql # aggregate syntax:
query I rowsort label-7544
SELECT ALL + COUNT( * ) * 48 AS col0 FROM tab1 cor0
----
144
skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL + COUNT ( * ) * 48 AS col0 FROM tab1 cor0
----
144
query I rowsort
SELECT ALL + + 99 AS col1 FROM tab1 AS cor0
----
99
99
99
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 98 - - col1 IS NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 29 + - col2 <> - col1
----
query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT + col2 NOT BETWEEN ( col0 ) AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 * + 39 * - 63 col2 FROM tab1
----
-117936
-117936
-117936
query II rowsort
SELECT 42 * - col0 AS col2, - ( + col1 ) FROM tab2
----
-1932
-51
-2688
-77
-3150
-67
query I rowsort
SELECT ALL - ( + + col1 ) AS col0 FROM tab0
----
-1
-21
-81
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( + + col2 ) > 14 * + 8 + - col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + - 53, + col1 col0 FROM tab2 AS cor0
----
-2
51
14
67
24
77
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-7555
SELECT DISTINCT MAX( DISTINCT - col2 ) FROM tab1
----
-59
skipif mysql # not compatible
query I rowsort label-7555
SELECT DISTINCT MAX ( DISTINCT - col2 ) FROM tab1
----
-59
query I rowsort
SELECT DISTINCT ( + - 67 ) FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NULL IS NULL
----
-67
onlyif mysql # DIV for integer division:
query I rowsort label-7557
SELECT - ( + 25 ) DIV col1 FROM tab1 AS cor0
----
-1
-5
0
skipif mysql # not compatible
query I rowsort label-7557
SELECT - ( + 25 ) / col1 FROM tab1 AS cor0
----
-1
-5
0
query II rowsort
SELECT DISTINCT - col2 AS col1, + 13 + - col0 + col2 FROM tab0 AS cor0
----
-10
-64
-47
45
-99
15
query I rowsort
SELECT - + col2 + 51 FROM tab2 AS cor0
----
-7
11
28
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1, 77 + + - col1 * + + 29, - col0, + col0 * - col0 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7561
SELECT DISTINCT ( - + 50 ) * + col1 + - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT ( - + 50 ) * + col1 + - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 / - - col2 IS NOT NULL
----
query I rowsort
SELECT ALL 3 + + - col0 - + col1 AS col0 FROM tab1 AS cor0 WHERE ( + col0 ) IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7564
SELECT + - CAST( NULL AS SIGNED ) + + + 64 * - + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7564
SELECT + - CAST ( NULL AS INTEGER ) + + + 64 * - + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 86 AS col1 FROM tab2 WHERE NULL IS NULL
----
86
86
86
onlyif mysql # aggregate syntax:
query I rowsort label-7566
SELECT 64 + + SUM( ALL + 71 ) + + + COUNT( * ) AS col2 FROM tab2
----
280
skipif mysql # not compatible
query I rowsort label-7566
SELECT 64 + + SUM ( ALL + 71 ) + + + COUNT ( * ) AS col2 FROM tab2
----
280
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-7567
SELECT * FROM tab0 WHERE NULL IN ( - col2, - ( - - col0 ), ( - + 18 ), + col1, CAST( + col2 AS SIGNED ), 70, + col1 / - col2 + + col2 + - col1, - col2, - CAST( NULL AS SIGNED ) )
----
skipif mysql # not compatible
query III rowsort label-7567
SELECT * FROM tab0 WHERE NULL IN ( - col2, - ( - - col0 ), ( - + 18 ), + col1, CAST ( + col2 AS INTEGER ), 70, + col1 / - col2 + + col2 + - col1, - col2, - CAST ( NULL AS INTEGER ) )
----
query II rowsort
SELECT + col0, col0 FROM tab2
----
46
46
64
64
75
75
query II rowsort
SELECT + col0, col1 * + 83 FROM tab0
----
15
6723
87
1743
97
83
onlyif mysql # aggregate syntax:
query I rowsort label-7570
SELECT ALL - SUM( ALL - - col0 ) FROM tab0
----
-199
skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL - SUM ( ALL - - col0 ) FROM tab0
----
-199
query I rowsort
SELECT DISTINCT - 86 * + + col1 * + col0 FROM tab2 AS cor0
----
-201756
-423808
-432150
query I rowsort
SELECT ALL - 37 - - 45 * - col2 FROM tab2 AS cor0
----
-1072
-1837
-2647
query II rowsort
SELECT 13, + col2 AS col0 FROM tab2 AS cor0
----
13
23
13
40
13
58
query I rowsort
SELECT ALL - - 64 * - 3 FROM tab2 AS cor0
----
-192
-192
-192
query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 BETWEEN NULL AND - col0 * + col2 + - 25 - 90
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query II rowsort label-7576
SELECT DISTINCT col0 DIV + 44 col2, + col1 AS col1 FROM tab1
----
1
14
1
5
2
47
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7576
SELECT DISTINCT col0 / + 44 col2, + col1 AS col1 FROM tab1
----
1
14
1
5
2
47
onlyif mysql # aggregate syntax:
query I rowsort label-7577
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0
skipif mysql # not compatible
query I rowsort label-7577
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0
query I rowsort
SELECT DISTINCT col0 * + col2 + 6 AS col0 FROM tab0 AS cor0
----
711
876
9609
onlyif mysql # aggregate syntax:
query I rowsort label-7579
SELECT ALL - + MAX( ALL - + 36 ) AS col0 FROM tab0 AS cor0
----
36
skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL - + MAX ( ALL - + 36 ) AS col0 FROM tab0 AS cor0
----
36
onlyif mysql # aggregate syntax:
query I rowsort label-7580
SELECT ALL MIN( ALL - 92 ) FROM tab2 AS cor0
----
-92
skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL MIN ( ALL - 92 ) FROM tab2 AS cor0
----
-92
query I rowsort
SELECT - - col2 AS col2 FROM tab0 cor0 WHERE NOT NULL >= - col2 * - - col0 + - col2 + 64 AND + col2 <> - col1 * - col2 - + 11 + - + 54
----
query I rowsort
SELECT ALL + + col0 AS col0 FROM tab0 WHERE NOT - ( - col0 ) IS NULL
----
15
87
97
onlyif mysql # DIV for integer division:
query I rowsort label-7583
SELECT col2 DIV - 98 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7583
SELECT col2 / - 98 AS col2 FROM tab2
----
0
0
0
query II rowsort
SELECT + 59, col0 FROM tab1
----
59
51
59
85
59
91
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7585
SELECT CAST( NULL AS SIGNED ) * + 64 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7585
SELECT CAST ( NULL AS INTEGER ) * + 64 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-7586
SELECT + col0 DIV - - col0 AS col2 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7586
SELECT + col0 / - - col0 AS col2 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # DIV for integer division:
query I rowsort label-7587
SELECT DISTINCT - - col0 DIV + + col0 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT - - col0 / + + col0 FROM tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 col0 FROM tab0 AS cor0
----
-67
-67
-67
query I rowsort
SELECT + 49 FROM tab2 AS cor0 WHERE 24 <= col0
----
49
49
49
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7590
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + - MIN( col2 ) AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7590
SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + - MIN ( col2 ) AS col1 FROM tab0
----
NULL
query I rowsort
SELECT + col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( + 40 ) AND + col2
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-7592
SELECT * FROM tab2 WHERE ( col2 / + col1 ) BETWEEN - CAST( NULL AS SIGNED ) - 63 AND ( + col1 - 79 )
----
skipif mysql # not compatible
query III rowsort label-7592
SELECT * FROM tab2 WHERE ( col2 / + col1 ) BETWEEN - CAST ( NULL AS INTEGER ) - 63 AND ( + col1 - 79 )
----
query I rowsort
SELECT - col2 * 62 AS col2 FROM tab0
----
-2914
-6138
-620
query I rowsort
SELECT - 26 * - 7 FROM tab2
----
182
182
182
query III rowsort
SELECT ALL * FROM tab2 WHERE col0 >= NULL
----
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-7596
SELECT ALL CAST( NULL AS DECIMAL ) / + COUNT( * ) col2 FROM tab2 WHERE 92 IS NULL
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7596
SELECT ALL CAST ( NULL AS REAL ) / + COUNT ( * ) col2 FROM tab2 WHERE 92 IS NULL
----
NULL
query I rowsort
SELECT DISTINCT - 46 * - ( + 35 ) AS col2 FROM tab2
----
1610
query I rowsort
SELECT ALL - col1 + col1 FROM tab1 WHERE col2 * col2 <> + col1 + col2
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-7599
SELECT + MIN( ALL col0 ) * + COUNT( * ) FROM tab0
----
45
skipif mysql # not compatible
query I rowsort label-7599
SELECT + MIN ( ALL col0 ) * + COUNT ( * ) FROM tab0
----
45
query I rowsort
SELECT - col1 + - col2 AS col0 FROM tab2 WHERE NOT ( - col2 ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7601
SELECT ALL ( - 54 ) + COUNT( * ) FROM tab1
----
-51
skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL ( - 54 ) + COUNT ( * ) FROM tab1
----
-51
query III rowsort
SELECT * FROM tab0 WHERE NOT 4 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-7603
SELECT ALL 77 + - col0 DIV col2 FROM tab1
----
76
76
77
skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL 77 + - col0 / col2 FROM tab1
----
76
76
77
query I rowsort
SELECT + 5 * 28 AS col1 FROM tab1
----
140
140
140
query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) IN ( 12 / + col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-7606
SELECT COUNT( * ) * COUNT( * ) FROM tab2
----
9
skipif mysql # not compatible
query I rowsort label-7606
SELECT COUNT ( * ) * COUNT ( * ) FROM tab2
----
9
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7607
SELECT ALL CAST( + col2 AS SIGNED ) * col0 FROM tab1
----
4896
5015
6188
skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL CAST ( + col2 AS INTEGER ) * col0 FROM tab1
----
4896
5015
6188
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 26 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7609
SELECT DISTINCT - col0 FROM tab1 WHERE NOT ( 65 / CAST( NULL AS SIGNED ) ) IS NOT NULL
----
-51
-85
-91
skipif mysql # not compatible
query I rowsort label-7609
SELECT DISTINCT - col0 FROM tab1 WHERE NOT ( 65 / CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
-51
-85
-91
query I rowsort
SELECT ALL - 2 * + 62 FROM tab0
----
-124
-124
-124
query I rowsort
SELECT ALL + col1 * + 63 FROM tab2
----
3213
4221
4851
query I rowsort
SELECT - ( + col2 ) * ( + ( col0 ) * - 98 ) + - 15 FROM tab2
----
103669
250865
426285
onlyif mysql # DIV for integer division:
query I rowsort label-7613
SELECT col2 DIV + 68 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7613
SELECT col2 / + 68 FROM tab2
----
0
0
0
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7614
SELECT + COUNT( * ) DIV MAX( 65 * + col1 ) FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-7614
SELECT + COUNT ( * ) / MAX ( 65 * + col1 ) FROM tab1
----
0
query III rowsort
SELECT * FROM tab2 WHERE NOT ( 50 * col0 ) > - col1
----
query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE ( - 1 ) IS NOT NULL
----
-51
-85
-91
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-7617
SELECT DISTINCT * FROM tab1 WHERE - col1 <= CAST( 60 AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-7617
SELECT DISTINCT * FROM tab1 WHERE - col1 <= CAST ( 60 AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-7618
SELECT - COUNT( * ) FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND + col1
----
0
skipif mysql # not compatible
query I rowsort label-7618
SELECT - COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND + col1
----
0
query I rowsort
SELECT DISTINCT + 28 - col0 FROM tab0 WHERE col1 + - col1 IS NOT NULL
----
-59
-69
13
onlyif mysql # aggregate syntax:
query I rowsort label-7620
SELECT ALL ( COUNT( * ) ) * - SUM( DISTINCT + col2 ) FROM tab0
----
-468
skipif mysql # not compatible
query I rowsort label-7620
SELECT ALL ( COUNT ( * ) ) * - SUM ( DISTINCT + col2 ) FROM tab0
----
-468
query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
23
40
58
onlyif mysql # aggregate syntax:
query I rowsort label-7622
SELECT + MIN( - col0 ) * + 72 FROM tab1 AS cor0
----
-6552
skipif mysql # not compatible
query I rowsort label-7622
SELECT + MIN ( - col0 ) * + 72 FROM tab1 AS cor0
----
-6552
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN - col0 AND - 3
----
87
21
10
onlyif mysql # aggregate syntax:
query I rowsort label-7624
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT ( col0 ) IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-7624
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( col0 ) IS NULL
----
3
onlyif mysql # DIV for integer division:
query I rowsort label-7625
SELECT DISTINCT 17 DIV col1 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-7625
SELECT DISTINCT 17 / col1 FROM tab2
----
0
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 ) IS NOT NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT 12 IS NOT NULL
----
query I rowsort
SELECT DISTINCT + 79 + - 93 FROM tab0 cor0 CROSS JOIN tab0
----
-14
query I rowsort
SELECT DISTINCT - ( col2 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99
query I rowsort
SELECT ALL 3 * 89 FROM tab2
----
267
267
267
onlyif mysql # DIV for integer division:
query I rowsort label-7631
SELECT ALL + + col2 DIV 44 AS col0 FROM tab1 cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL + + col2 / 44 AS col0 FROM tab1 cor0
----
1
1
2
onlyif mysql # aggregate syntax:
query I rowsort label-7632
SELECT DISTINCT - - MAX( ALL 55 ) * + 92 col0 FROM tab1 AS cor0
----
5060
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7632
SELECT DISTINCT - - MAX ( ALL 55 ) * + 92 col0 FROM tab1 AS cor0
----
5060
query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81
query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE NOT ( col2 * 22 ) BETWEEN - col0 * - col0 AND col0 / col0 + 78
----
59
68
96
query I rowsort
SELECT ALL + - 42 * col1 FROM tab0 AS cor0
----
-3402
-42
-882
onlyif mysql # aggregate syntax:
query I rowsort label-7636
SELECT - COUNT( ALL + 20 ) AS col2 FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-7636
SELECT - COUNT ( ALL + 20 ) AS col2 FROM tab1 AS cor0
----
-3
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 30 IN ( - col0 + - 87 )
----
query I rowsort
SELECT DISTINCT - 32 * col0 FROM tab2 cor0
----
-1472
-2048
-2400
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + col1 AND NULL
----
query I rowsort
SELECT ALL - col2 * - col2 + col0 FROM tab2 AS cor0
----
1664
3439
575
query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----
query I rowsort
SELECT 91 * - - col1 * - 41 FROM tab1
----
-175357
-18655
-52234
onlyif mysql # aggregate syntax:
query I rowsort label-7643
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col2 FROM tab1
----
6
skipif mysql # not compatible
query I rowsort label-7643
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1
----
6
query I rowsort
SELECT col2 * + + 40 FROM tab1
----
2360
2720
3840
onlyif mysql # DIV for integer division:
query I rowsort label-7645
SELECT ALL col0 + + ( - col1 ) DIV + 58 AS col1 FROM tab0
----
14
87
97
skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL col0 + + ( - col1 ) / + 58 AS col1 FROM tab0
----
14
87
97
query III rowsort
SELECT * FROM tab0 WHERE NULL >= - col1 * + ( - col0 * col2 )
----
query I rowsort
SELECT ALL + ( 3 ) AS col2 FROM tab2
----
3
3
3
onlyif mysql # aggregate syntax:
query I rowsort label-7648
SELECT DISTINCT COUNT( * ) * - ( - COUNT( * ) ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT COUNT ( * ) * - ( - COUNT ( * ) ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-7649
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE NOT + 13 + col2 NOT BETWEEN ( + 38 * 70 ) AND ( - 18 )
----
0
skipif mysql # not compatible
query I rowsort label-7649
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE NOT + 13 + col2 NOT BETWEEN ( + 38 * 70 ) AND ( - 18 )
----
0
query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN ( - 13 + col1 ) AND + ( + col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col1 FROM tab1
----
62
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 < col2
----
87
21
10
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 + col0 ) IS NOT NULL
----
query I rowsort
SELECT DISTINCT - 60 * col1 AS col0 FROM tab0 cor0
----
-1260
-4860
-60
query I rowsort
SELECT - col1 + - + col1 FROM tab2 AS cor0
----
-102
-134
-154
query I rowsort
SELECT - col1 + col2 + + col2 AS col2 FROM tab1 AS cor0
----
113
178
89
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7657
SELECT + col0 + - ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-7657
SELECT + col0 + - ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
query I rowsort
SELECT 36 AS col0 FROM tab1 cor0
----
36
36
36
query I rowsort
SELECT DISTINCT 50 FROM tab2 cor0 WHERE ( NULL ) IN ( + col1 )
----
onlyif mysql # DIV for integer division:
query II rowsort label-7660
SELECT - 55 AS col1, - col2 DIV + 13 col2 FROM tab2
----
-55
-1
-55
-3
-55
-4
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7660
SELECT - 55 AS col1, - col2 / + 13 col2 FROM tab2
----
-55
-1
-55
-3
-55
-4
query I rowsort
SELECT DISTINCT 34 AS col1 FROM tab1 WHERE NOT + col0 * + col0 IS NULL
----
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 * col1 - col0 * - col1 col1 FROM tab2
----
-1071
-231
536
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-7663
SELECT * FROM tab2 AS cor0 WHERE - CAST( + 56 AS SIGNED ) * - 23 < col1 / col0
----
skipif mysql # not compatible
query III rowsort label-7663
SELECT * FROM tab2 AS cor0 WHERE - CAST ( + 56 AS INTEGER ) * - 23 < col1 / col0
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 > - col2
----
87
21
10
onlyif mysql # aggregate syntax:
query I rowsort label-7665
SELECT ALL - MIN( DISTINCT + + 78 ) * + COUNT( * ) + 46 col2 FROM tab0 AS cor0
----
-188
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7665
SELECT ALL - MIN ( DISTINCT + + 78 ) * + COUNT ( * ) + 46 col2 FROM tab0 AS cor0
----
-188
onlyif mysql # aggregate syntax:
query I rowsort label-7666
SELECT DISTINCT - + COUNT( * ) - 93 AS col2 FROM tab0 AS cor0
----
-96
skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT - + COUNT ( * ) - 93 AS col2 FROM tab0 AS cor0
----
-96
onlyif mysql # aggregate syntax:
query I rowsort label-7667
SELECT ( + ( - - COUNT( ALL + 41 ) ) ) + - MIN( + col0 ) FROM tab0 AS cor0
----
-12
skipif mysql # not compatible
query I rowsort label-7667
SELECT ( + ( - - COUNT ( ALL + 41 ) ) ) + - MIN ( + col0 ) FROM tab0 AS cor0
----
-12
query I rowsort
SELECT + 74 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-7670
SELECT DISTINCT + COUNT( DISTINCT - 51 ) AS col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT + COUNT ( DISTINCT - 51 ) AS col2 FROM tab0
----
1
query I rowsort
SELECT col2 * col0 FROM tab0 WHERE NOT ( - col0 ) > NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( + - ( - 79 ) ) + col1 NOT BETWEEN ( col2 ) AND ( - col2 + - 20 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col1 AND NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-7674
SELECT SUM( - 93 ), COUNT( * ) DIV - ( COUNT( * ) ) AS col0 FROM tab2
----
-279
-1
skipif mysql # not compatible
query II rowsort label-7674
SELECT SUM ( - 93 ), COUNT ( * ) / - ( COUNT ( * ) ) AS col0 FROM tab2
----
-279
-1
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7675
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col1 * + 56 ) BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----
0
skipif mysql # not compatible
query I rowsort label-7675
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col1 * + 56 ) BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-7676
SELECT 87 * - COUNT( * ) col0 FROM tab2 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( 47 * col2 - - 13 )
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7676
SELECT 87 * - COUNT ( * ) col0 FROM tab2 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( 47 * col2 - - 13 )
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-7677
SELECT COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9
skipif mysql # not compatible
query I rowsort label-7677
SELECT COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-7678
SELECT DISTINCT + COUNT( ALL col1 ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-7678
SELECT DISTINCT + COUNT ( ALL col1 ) FROM tab2
----
3
query I rowsort
SELECT DISTINCT 46 * col1 + - col1 + - col2 FROM tab1 AS cor0
----
166
2047
534
onlyif mysql # DIV for integer division:
query I rowsort label-7680
SELECT ALL - - col0 DIV 77 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL - - col0 / 77 / + col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ( + - ( + + col2 ) ) + - col0 FROM tab0 AS cor0
----
-196
-62
-97
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7683
SELECT ALL - - COUNT( * ) DIV + 61 AS col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL - - COUNT ( * ) / + 61 AS col0 FROM tab2 AS cor0
----
0
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <= - 34
----
query I rowsort
SELECT + col1 * col0 + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND ( - 35 * + 21 ) IS NOT NULL
----
query I rowsort
SELECT + col0 + + - 64 AS col2 FROM tab0 AS cor0
----
-49
23
33
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + + + col2 IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 * + - 64 col1 FROM tab1 AS cor0
----
-448
query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE ( - + 9 + + + col1 ) IS NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT - 24 * + col2 * + col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-7691
SELECT - COUNT( * ) * - + 68 FROM tab0
----
204
skipif mysql # not compatible
query I rowsort label-7691
SELECT - COUNT ( * ) * - + 68 FROM tab0
----
204
query I rowsort
SELECT + 52 * - col1 AS col2 FROM tab0
----
-1092
-4212
-52
query I rowsort
SELECT + col0 * + 33 FROM tab1
----
1683
2805
3003
query I rowsort
SELECT ALL - 71 * - - 53 * + col0 * col1 AS col1 FROM tab2
----
-18544064
-18909075
-8827998
query I rowsort
SELECT DISTINCT + 61 * 72 + - col0 + - 73 + col2 FROM tab2
----
4295
4296
4302
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7696
SELECT DISTINCT - 73 col2 FROM tab2 cor0 WHERE NOT + col0 * col0 = + CAST( NULL AS SIGNED ) + + col1
----
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7696
SELECT DISTINCT - 73 col2 FROM tab2 cor0 WHERE NOT + col0 * col0 = + CAST ( NULL AS INTEGER ) + + col1
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-7697
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - CAST( + col0 AS SIGNED ) * + + ( - 58 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-7697
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - CAST ( + col0 AS INTEGER ) * + + ( - 58 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT 36 FROM tab1 AS cor0 WHERE NULL IS NULL
----
36
36
36
query I rowsort
SELECT 16 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
onlyif mysql # aggregate syntax:
query II rowsort label-7700
SELECT DISTINCT + MIN( DISTINCT 46 ) AS col1, - 96 * - ( + + COUNT( * ) ) FROM tab2
----
46
288
skipif mysql # not compatible
query II rowsort label-7700
SELECT DISTINCT + MIN ( DISTINCT 46 ) AS col1, - 96 * - ( + + COUNT ( * ) ) FROM tab2
----
46
288
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-7701
SELECT CAST( + 2 AS SIGNED ) AS col0, - col0 FROM tab0 AS cor0
----
2
-15
2
-87
2
-97
skipif mysql # not compatible
query II rowsort label-7701
SELECT CAST ( + 2 AS INTEGER ) AS col0, - col0 FROM tab0 AS cor0
----
2
-15
2
-87
2
-97
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 33 + - 25 NOT BETWEEN NULL AND - - 22
----
query I rowsort
SELECT + + 54 FROM tab2 cor0 WHERE ( NULL IS NOT NULL )
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT ( ( 55 ) IS NOT NULL ) )
----
onlyif mysql # aggregate syntax:
query I rowsort label-7705
SELECT ALL - MAX( 75 ) FROM tab0 cor0
----
-75
skipif mysql # not compatible
query I rowsort label-7705
SELECT ALL - MAX ( 75 ) FROM tab0 cor0
----
-75
onlyif mysql # aggregate syntax:
query I rowsort label-7706
SELECT ALL SUM( ALL + col2 ) FROM tab2 AS cor0
----
121
skipif mysql # not compatible
query I rowsort label-7706
SELECT ALL SUM ( ALL + col2 ) FROM tab2 AS cor0
----
121
query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT - col1 * col2 * + col0 + + - col0 FROM tab1 AS cor0
----
-25160
-290927
-68595
onlyif mysql # aggregate syntax:
query I rowsort label-7709
SELECT ALL COUNT( - + col2 ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL COUNT ( - + col2 ) FROM tab0
----
3
query II rowsort
SELECT 57 AS col1, col1 + + + col1 AS col2 FROM tab2
----
57
102
57
134
57
154
onlyif mysql # aggregate syntax:
query I rowsort label-7711
SELECT - - COUNT( * ) FROM tab0 WHERE NOT 2 <> + + col0
----
0
skipif mysql # not compatible
query I rowsort label-7711
SELECT - - COUNT ( * ) FROM tab0 WHERE NOT 2 <> + + col0
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7712
SELECT 92 * - col0 * + CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
-239292
-664700
-761852
skipif mysql # not compatible
query I rowsort label-7712
SELECT 92 * - col0 * + CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
-239292
-664700
-761852
query I rowsort
SELECT + col1 * + + col1 AS col1 FROM tab2
----
2601
4489
5929
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7714
SELECT - AVG ( - col2 ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7714
SELECT - AVG ( - col2 ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
query III rowsort
SELECT * FROM tab0 WHERE NOT 47 >= ( - 80 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-7716
SELECT ALL MAX( - col0 ) FROM tab1
----
-51
skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL MAX ( - col0 ) FROM tab1
----
-51
query II rowsort
SELECT ALL - col0 AS col0, - col1 AS col1 FROM tab2
----
-46
-51
-64
-77
-75
-67
query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 51 * + 72 + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( + 75 ) * - + col2 - + 68 NOT BETWEEN ( - col2 - + - 62 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-7721
SELECT DISTINCT - MIN( - 17 ) FROM tab2 cor0
----
17
skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT - MIN ( - 17 ) FROM tab2 cor0
----
17
onlyif mysql # DIV for integer division:
query II rowsort label-7722
SELECT + col2 col2, - col1 DIV col0 FROM tab2 AS cor0
----
23
-1
40
-1
58
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7722
SELECT + col2 col2, - col1 / col0 FROM tab2 AS cor0
----
23
-1
40
-1
58
0
query I rowsort
SELECT ALL + - 79 AS col0 FROM tab0 AS cor0 WHERE NOT + 98 IS NULL
----
-79
-79
-79
query I rowsort
SELECT 81 * + 61 AS col2 FROM tab1 AS cor0
----
4941
4941
4941
query I rowsort
SELECT - col1 + - 3 FROM tab0 WHERE NOT - - 13 IS NULL
----
-24
-4
-84
query I rowsort
SELECT DISTINCT 26 FROM tab1 cor0
----
26
query I rowsort
SELECT ALL + + 19 AS col2 FROM tab1 cor0
----
19
19
19
onlyif mysql # aggregate syntax:
query II rowsort label-7728
SELECT ALL + + COUNT( ALL col0 ), COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
3
skipif mysql # not compatible
query II rowsort label-7728
SELECT ALL + + COUNT ( ALL col0 ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
3
onlyif mysql # aggregate syntax:
query II rowsort label-7729
SELECT DISTINCT COUNT( * ), 13 * + + SUM( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
NULL
skipif mysql # not compatible
query II rowsort label-7729
SELECT DISTINCT COUNT ( * ), 13 * + + SUM ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
NULL
query II rowsort
SELECT - - ( - + 24 ) AS col2, 74 + col1 FROM tab1 AS cor0
----
-24
121
-24
79
-24
88
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-7731
SELECT * FROM tab1 AS cor0 WHERE + 71 > + 77 * + ( + - col2 ) - ( ( - - CAST( NULL AS SIGNED ) ) )
----
skipif mysql # not compatible
query III rowsort label-7731
SELECT * FROM tab1 AS cor0 WHERE + 71 > + 77 * + ( + - col2 ) - ( ( - - CAST ( NULL AS INTEGER ) ) )
----
query I rowsort
SELECT - col0 + + ( - + col2 ) FROM tab1 AS cor0
----
-144
-147
-159
query I rowsort
SELECT + 31 * + col1 AS col0 FROM tab2 WHERE - - col1 <= + + col0
----
2077
onlyif mysql # aggregate syntax:
query I rowsort label-7734
SELECT ALL 68 + - COUNT( * ) AS col2 FROM tab2
----
65
skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL 68 + - COUNT ( * ) AS col2 FROM tab2
----
65
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7735
SELECT ALL ( + + col0 ) * + CAST( NULL AS SIGNED ) + - - col0 * col2 + - 48 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL ( + + col0 ) * + CAST ( NULL AS INTEGER ) + - - col0 * col2 + - 48 AS col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-7736
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * col2, col0 FROM tab1
----
4896
51
5015
85
6188
91
skipif mysql # not compatible
query II rowsort label-7736
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * col2, col0 FROM tab1
----
4896
51
5015
85
6188
91
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-7737
SELECT DISTINCT + CAST( + 32 AS SIGNED ) * col1 DIV - 96 + + - col1 * - col0 - - 69 AS col1 FROM tab1
----
4331
493
779
skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT + CAST ( + 32 AS INTEGER ) * col1 / - 96 + + - col1 * - col0 - - 69 AS col1 FROM tab1
----
4331
493
779
query I rowsort
SELECT + col0 + + col1 + + 30 + - + col0 * + col1 FROM tab1
----
-305
-4109
-619
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 65 col1 FROM tab2 cor0
----
65
query I rowsort
SELECT + ( + + col1 ) AS col0 FROM tab2 cor0
----
51
67
77
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-7741
SELECT CAST( - 61 AS SIGNED ) * col0 AS col1, - col0 FROM tab0 AS cor0
----
-5307
-87
-5917
-97
-915
-15
skipif mysql # not compatible
query II rowsort label-7741
SELECT CAST ( - 61 AS INTEGER ) * col0 AS col1, - col0 FROM tab0 AS cor0
----
-5307
-87
-5917
-97
-915
-15
query II rowsort
SELECT + col1, 81 FROM tab1 AS cor0
----
14
81
47
81
5
81
onlyif mysql # aggregate syntax:
query I rowsort label-7743
SELECT - - MIN( DISTINCT - 15 ) * - 21 * 26 FROM tab2 AS cor0
----
8190
skipif mysql # not compatible
query I rowsort label-7743
SELECT - - MIN ( DISTINCT - 15 ) * - 21 * 26 FROM tab2 AS cor0
----
8190
query I rowsort
SELECT DISTINCT col1 + + - col1 + ( + col1 ) + + + 21 * - - 89 AS col0 FROM tab1
----
1874
1883
1916
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-7745
SELECT ALL - 51 - + CAST( + col2 AS SIGNED ) DIV - + col0 FROM tab2
----
-51
-51
-51
skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL - 51 - + CAST ( + col2 AS INTEGER ) / - + col0 FROM tab2
----
-51
-51
-51
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7746
SELECT CAST( - col1 AS SIGNED ) - col2 FROM tab2
----
-117
-125
-74
skipif mysql # not compatible
query I rowsort label-7746
SELECT CAST ( - col1 AS INTEGER ) - col2 FROM tab2
----
-117
-125
-74
query II rowsort
SELECT ALL 39, 72 AS col2 FROM tab0 AS cor0
----
39
72
39
72
39
72
onlyif mysql # aggregate syntax:
query I rowsort label-7748
SELECT DISTINCT + COUNT( - + col0 ) col0 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7748
SELECT DISTINCT + COUNT ( - + col0 ) col0 FROM tab0 AS cor0
----
3
query II rowsort
SELECT ALL - col0 AS col0, - col0 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97
query I rowsort
SELECT - col0 * col0 + + 6 AS col1 FROM tab2 AS cor0 WHERE NOT 92 IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - 72 col2 FROM tab1 AS cor0
----
-1008
-3384
-360
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7752
SELECT MAX( + 64 ) / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7752
SELECT MAX ( + 64 ) / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 0 * - col1 AS col1 FROM tab1 AS cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-7754
SELECT ALL - SUM( + - col0 ) FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
227
skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL - SUM ( + - col0 ) FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
227
onlyif mysql # aggregate syntax:
query I rowsort label-7755
SELECT - SUM( DISTINCT col0 ) FROM tab1 cor0
----
-227
skipif mysql # not compatible
query I rowsort label-7755
SELECT - SUM ( DISTINCT col0 ) FROM tab1 cor0
----
-227
onlyif mysql # aggregate syntax:
query I rowsort label-7756
SELECT ALL + MIN( DISTINCT - - col2 ) FROM tab1 cor0
----
59
skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL + MIN ( DISTINCT - - col2 ) FROM tab1 cor0
----
59
query I rowsort
SELECT - + ( - col0 ) FROM tab2 WHERE NOT ( col0 ) > - col1
----
query I rowsort
SELECT ALL - - col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 34 col1 FROM tab2 AS cor0
----
34
34
34
onlyif mysql # DIV for integer division:
query I rowsort label-7760
SELECT + col1 DIV + 73 AS col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7760
SELECT + col1 / + 73 AS col0 FROM tab0 AS cor0
----
0
0
1
onlyif mysql # aggregate syntax:
query I rowsort label-7761
SELECT DISTINCT 6 * MIN( DISTINCT - ( + col1 ) ) + 16 FROM tab2 AS cor0
----
-446
skipif mysql # not compatible
query I rowsort label-7761
SELECT DISTINCT 6 * MIN ( DISTINCT - ( + col1 ) ) + 16 FROM tab2 AS cor0
----
-446
query II rowsort
SELECT DISTINCT + ( - col0 ) AS col1, - col1 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47
onlyif mysql # aggregate syntax:
query I rowsort label-7763
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE NOT col0 BETWEEN - 44 AND ( + + col1 )
----
2
skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE NOT col0 BETWEEN - 44 AND ( + + col1 )
----
2
query II rowsort
SELECT ALL + 6 + + col0 + - col1 AS col0, + col2 FROM tab1
----
43
96
50
68
86
59
query I rowsort
SELECT + 42 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col2 + + col2 ) IS NOT NULL
----
query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29
query III rowsort
SELECT * FROM tab2 WHERE + 86 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT col2 * - col1 + + 43 + - col2 FROM tab2 AS cor0
----
-1153
-3077
-3901
onlyif mysql # DIV for integer division:
query I rowsort label-7770
SELECT - 0 DIV col1 + - - col0 AS col0 FROM tab1 AS cor0
----
51
85
91
skipif mysql # not compatible
query I rowsort label-7770
SELECT - 0 / col1 + - - col0 AS col0 FROM tab1 AS cor0
----
51
85
91
query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 * + col0 = + col0
----
97
1
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7773
SELECT DISTINCT CAST( 65 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-7773
SELECT DISTINCT CAST ( 65 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
query II rowsort
SELECT + - col1 + + col1 * - col1 AS col2, ( - 97 ) AS col2 FROM tab0 AS cor0
----
-2
-97
-462
-97
-6642
-97
query I rowsort
SELECT + col1 + col2 + - + col0 FROM tab2 AS cor0
----
28
50
53
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7776
SELECT + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7776
SELECT + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - AVG ( ALL - col1 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( col1 ) AND + 56
----
NULL
query II rowsort
SELECT DISTINCT - col0 + + - col2 AS col0, col0 AS col1 FROM tab1
----
-144
85
-147
51
-159
91
onlyif mysql # aggregate syntax:
query I rowsort label-7779
SELECT COUNT( DISTINCT col2 ) + - + 82 AS col1 FROM tab2 WHERE NULL NOT BETWEEN + 40 AND NULL
----
-82
skipif mysql # not compatible
query I rowsort label-7779
SELECT COUNT ( DISTINCT col2 ) + - + 82 AS col1 FROM tab2 WHERE NULL NOT BETWEEN + 40 AND NULL
----
-82
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7780
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7780
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-7781
SELECT ALL - MIN( + col2 ) AS col1 FROM tab2
----
-23
skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL - MIN ( + col2 ) AS col1 FROM tab2
----
-23
query I rowsort
SELECT DISTINCT + ( - 70 ) AS col1 FROM tab1
----
-70
onlyif mysql # aggregate syntax:
query I rowsort label-7783
SELECT ALL COUNT( * ) - + - ( COUNT( * ) ) AS col2 FROM tab2
----
6
skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL COUNT ( * ) - + - ( COUNT ( * ) ) AS col2 FROM tab2
----
6
query III rowsort
SELECT * FROM tab0 WHERE + ( - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - col0 * + ( col0 ) - + + col1 + + col2 * col1 - + col0 + + col0 AS col0 FROM tab2
----
-1093
-1806
-994
onlyif mysql # DIV for integer division:
query I rowsort label-7786
SELECT + col0 DIV + 95 - + 32 AS col0 FROM tab0 cor0
----
-31
-32
-32
skipif mysql # not compatible
query I rowsort label-7786
SELECT + col0 / + 95 - + 32 AS col0 FROM tab0 cor0
----
-31
-32
-32
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-7787
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + - + CAST( NULL AS SIGNED ) IS NOT NULL AND NOT NULL IS NULL
----
skipif mysql # not compatible
query III rowsort label-7787
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + - + CAST ( NULL AS INTEGER ) IS NOT NULL AND NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7788
SELECT DISTINCT + ( - - COUNT( * ) ) FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-7788
SELECT DISTINCT + ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
3
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < - + 68
----
onlyif mysql # aggregate syntax:
query I rowsort label-7790
SELECT ALL + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9
query II rowsort
SELECT ALL + + col0, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91
query II rowsort
SELECT ALL col1 AS col1, col1 * + col2 FROM tab1 cor0
----
14
1344
47
3196
5
295
query I rowsort
SELECT DISTINCT - + ( 97 ) FROM tab2 AS cor0 WHERE NULL > 61
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 < NULL
----
query I rowsort
SELECT ALL - + ( + ( - col1 ) ) FROM tab0 AS cor0
----
1
21
81
onlyif mysql # aggregate syntax:
query II rowsort label-7796
SELECT + COUNT( * ) AS col2, + 65 AS col1 FROM tab2 AS cor0
----
3
65
skipif mysql # not compatible
query II rowsort label-7796
SELECT + COUNT ( * ) AS col2, + 65 AS col1 FROM tab2 AS cor0
----
3
65
onlyif mysql # DIV for integer division:
query I rowsort label-7797
SELECT ALL - 94 DIV - 87 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL - 94 / - 87 FROM tab0
----
1
1
1
query I rowsort
SELECT + 50 * - col2 FROM tab1
----
-2950
-3400
-4800
onlyif mysql # DIV for integer division:
query I rowsort label-7799
SELECT col0 DIV - + col1 col2 FROM tab1
----
-1
-17
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7799
SELECT col0 / - + col1 col2 FROM tab1
----
-1
-17
-3
onlyif mysql # aggregate syntax:
query I rowsort label-7800
SELECT DISTINCT + SUM( ALL - - col0 ) FROM tab1
----
227
skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT + SUM ( ALL - - col0 ) FROM tab1
----
227
query I rowsort
SELECT col0 * col1 + - 4 FROM tab0 AS cor0
----
1211
1823
93
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-7803
SELECT ALL - 62 + CAST( NULL AS DECIMAL ) + + + 65 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7803
SELECT ALL - 62 + CAST ( NULL AS REAL ) + + + 65 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * - - 30 * + - col2 FROM tab1
----
-104430
-138720
-276480
query I rowsort
SELECT DISTINCT - 39 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-39
query II rowsort
SELECT - col1 * - 26 AS col1, - col1 + + col0 FROM tab2
----
1326
-5
1742
8
2002
-13
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7807
SELECT + COUNT( * ) + + COUNT( * ) * - - CAST( - COUNT( ALL + col2 ) AS SIGNED ) * - + 9 FROM tab0 AS cor0
----
84
skipif mysql # not compatible
query I rowsort label-7807
SELECT + COUNT ( * ) + + COUNT ( * ) * - - CAST ( - COUNT ( ALL + col2 ) AS INTEGER ) * - + 9 FROM tab0 AS cor0
----
84
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( col2 / + col0 ) AND NULL
----
query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT 26 NOT IN ( ( + col1 ), col2 ) AND NOT + 70 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7810
SELECT COUNT( * ) * + 27 + MIN( DISTINCT + - 9 ) * - 2 * 47 AS col0 FROM tab0
----
927
skipif mysql # not compatible
query I rowsort label-7810
SELECT COUNT ( * ) * + 27 + MIN ( DISTINCT + - 9 ) * - 2 * 47 AS col0 FROM tab0
----
927
query I rowsort
SELECT col1 + + col0 * col1 + + col0 AS col1 FROM tab0
----
1311
1935
195
onlyif mysql # aggregate syntax:
query I rowsort label-7812
SELECT + COUNT( * ) FROM tab0 WHERE col1 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-7812
SELECT + COUNT ( * ) FROM tab0 WHERE col1 IS NULL
----
0
query I rowsort
SELECT DISTINCT col2 - + - col1 FROM tab0
----
100
128
31
query I rowsort
SELECT DISTINCT - 66 - + + 24 FROM tab2
----
-90
onlyif mysql # aggregate syntax:
query I rowsort label-7815
SELECT ( - COUNT( DISTINCT - - 32 ) ) * + COUNT( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-7815
SELECT ( - COUNT ( DISTINCT - - 32 ) ) * + COUNT ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-3
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-7816
SELECT ALL ( COUNT( - ( CAST( + + col2 AS DECIMAL ) ) ) ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL ( COUNT ( - ( CAST ( + + col2 AS REAL ) ) ) ) FROM tab0 AS cor0
----
3
query I rowsort
SELECT 53 * 96 AS col2 FROM tab1 AS cor0
----
5088
5088
5088
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col1
----
query I rowsort
SELECT ALL + 34 AS col2 FROM tab1 AS cor0
----
34
34
34
query I rowsort
SELECT ALL col0 * - - 93 * + col0 AS col0 FROM tab1 cor0
----
241893
671925
770133
onlyif mysql # aggregate syntax:
query I rowsort label-7821
SELECT DISTINCT - SUM( DISTINCT + + 5 ) AS col0 FROM tab0
----
-5
skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT - SUM ( DISTINCT + + 5 ) AS col0 FROM tab0
----
-5
onlyif mysql # aggregate syntax:
query I rowsort label-7822
SELECT DISTINCT - + 91 * COUNT( * ) FROM tab2 AS cor0
----
-273
skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT - + 91 * COUNT ( * ) FROM tab2 AS cor0
----
-273
query I rowsort
SELECT ALL - + 31 AS col1 FROM tab1 AS cor0
----
-31
-31
-31
onlyif mysql # aggregate syntax:
query I rowsort label-7824
SELECT + SUM( DISTINCT - col0 ) col1 FROM tab1 AS cor0
----
-227
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7824
SELECT + SUM ( DISTINCT - col0 ) col1 FROM tab1 AS cor0
----
-227
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col2 ) col2 FROM tab0 AS cor0
----
10
47
99
onlyif mysql # aggregate syntax:
query I rowsort label-7826
SELECT + - COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-7826
SELECT + - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
-9
query I rowsort
SELECT DISTINCT - + 83 AS col1 FROM tab0 AS cor0 WHERE NOT col2 > - ( + + col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + col1 ) * + col0 col1 FROM tab0 AS cor0
----
1215
1827
97
query I rowsort
SELECT + 96 FROM tab2 AS cor0 WHERE NOT - 9 IS NULL
----
96
96
96
query I rowsort
SELECT - - col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT DISTINCT col2 + + + col2 AS col0 FROM tab1
----
118
136
192
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-7832
SELECT + CAST( + col0 AS SIGNED ) DIV col2 * + col0 FROM tab2
----
64
75
92
skipif mysql # not compatible
query I rowsort label-7832
SELECT + CAST ( + col0 AS INTEGER ) / col2 * + col0 FROM tab2
----
64
75
92
onlyif mysql # aggregate syntax:
query I rowsort label-7833
SELECT ALL MAX( + 86 ) * - 80 FROM tab0 AS cor0
----
-6880
skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL MAX ( + 86 ) * - 80 FROM tab0 AS cor0
----
-6880
onlyif mysql # aggregate syntax:
query I rowsort label-7834
SELECT + MIN( ALL + - col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-58
skipif mysql # not compatible
query I rowsort label-7834
SELECT + MIN ( ALL + - col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-58
onlyif mysql # DIV for integer division:
query II rowsort label-7835
SELECT + col0 AS col0, col2 DIV - col2 AS col1 FROM tab1 cor0
----
51
-1
85
-1
91
-1
skipif mysql # not compatible
query II rowsort label-7835
SELECT + col0 AS col0, col2 / - col2 AS col1 FROM tab1 cor0
----
51
-1
85
-1
91
-1
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT - 72 FROM tab0, tab1 cor0
----
-72
onlyif mysql # aggregate syntax:
query I rowsort label-7838
SELECT ALL + 43 + - 19 * + + ( - + COUNT( * ) ) + - 16 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
198
skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL + 43 + - 19 * + + ( - + COUNT ( * ) ) + - 16 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
198
query I rowsort
SELECT - 1 + + 15 AS col2 FROM tab2
----
14
14
14
onlyif mysql # aggregate syntax:
query I rowsort label-7840
SELECT + COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7840
SELECT + COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
0
query II rowsort
SELECT ALL + col1 AS col2, + 30 * col0 FROM tab1 AS cor0
----
14
1530
47
2730
5
2550
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > col0 + - - ( + 87 ) / - col0
----
query II rowsort
SELECT - col1, - col1 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81
query I rowsort
SELECT + 61 - - col2 FROM tab0 AS cor0 WHERE 58 IS NOT NULL
----
108
160
71
query I rowsort
SELECT DISTINCT 25 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
25
query I rowsort
SELECT DISTINCT - col2 - + - col0 + - + col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-101
-79
67
query II rowsort
SELECT DISTINCT - 12 + + col1, + 73 AS col1 FROM tab2 AS cor0
----
39
73
55
73
65
73
query I rowsort
SELECT ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE 52 + + col2 + + - col1 IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - 52 ) + 61 + + col2 * + col2 col1 FROM tab1 AS cor0
----
3490
4633
9225
query II rowsort
SELECT 79 * + + 37 - + 27 AS col2, col1 AS col1 FROM tab2
----
2896
51
2896
67
2896
77
query I rowsort
SELECT 44 - 65 FROM tab1
----
-21
-21
-21
onlyif mysql # DIV for integer division:
query I rowsort label-7852
SELECT ALL - 64 DIV + 82 + - col2 * + 13 * + 45 FROM tab2
----
-13455
-23400
-33930
skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL - 64 / + 82 + - col2 * + 13 * + 45 FROM tab2
----
-13455
-23400
-33930
onlyif mysql # aggregate syntax:
query I rowsort label-7853
SELECT + 67 - + COUNT( * ) AS col2 FROM tab2
----
64
skipif mysql # not compatible
query I rowsort label-7853
SELECT + 67 - + COUNT ( * ) AS col2 FROM tab2
----
64
query I rowsort
SELECT - 33 - + col2 + - col0 AS col2 FROM tab0
----
-130
-229
-95
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-7855
SELECT ALL col1 DIV + CAST( + col1 AS SIGNED ) - + col1 col0 FROM tab0
----
-20
-80
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7855
SELECT ALL col1 / + CAST ( + col1 AS INTEGER ) - + col1 col0 FROM tab0
----
-20
-80
0
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 35 + col0 + 17 )
----
query I rowsort
SELECT - + col2 * - 32 AS col0 FROM tab0 AS cor0
----
1504
3168
320
onlyif mysql # aggregate syntax:
query II rowsort label-7858
SELECT - - ( 57 ), + COUNT( * ) AS col0 FROM tab0 AS cor0
----
57
3
skipif mysql # not compatible
query II rowsort label-7858
SELECT - - ( 57 ), + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
57
3
onlyif mysql # DIV for integer division:
query I rowsort label-7859
SELECT 13 DIV col2 * 91 AS col2 FROM tab0
----
0
0
91
skipif mysql # not compatible
query I rowsort label-7859
SELECT 13 / col2 * 91 AS col2 FROM tab0
----
0
0
91
onlyif mysql # DIV for integer division:
query I rowsort label-7860
SELECT ( + col2 ) DIV - col1 + 13 AS col2 FROM tab1
----
12
2
7
skipif mysql # not compatible
query I rowsort label-7860
SELECT ( + col2 ) / - col1 + 13 AS col2 FROM tab1
----
12
2
7
query I rowsort
SELECT col0 * - col0 * + col0 FROM tab2 AS cor0
----
-262144
-421875
-97336
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 68 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT DISTINCT + + col2, col2 FROM tab0 cor0
----
10
10
47
47
99
99
query I rowsort
SELECT ALL - col2 * col0 * + 30 FROM tab2 AS cor0 WHERE + col0 NOT IN ( 20, 0 )
----
-130500
-31740
-76800
onlyif mysql # aggregate syntax:
query I rowsort label-7866
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3
skipif mysql # not compatible
query I rowsort label-7866
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-7867
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 cor0
----
3
skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7868
SELECT - CAST( - 15 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
15
15
15
skipif mysql # not compatible
query I rowsort label-7868
SELECT - CAST ( - 15 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
15
15
15
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7869
SELECT + + ( + - CAST( - - COUNT( * ) AS SIGNED ) ) col2 FROM tab0 cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7869
SELECT + + ( + - CAST ( - - COUNT ( * ) AS INTEGER ) ) col2 FROM tab0 cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-7870
SELECT DISTINCT 5 * - + COUNT( DISTINCT col0 ) FROM tab1
----
-15
skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT 5 * - + COUNT ( DISTINCT col0 ) FROM tab1
----
-15
onlyif mysql # aggregate syntax:
query I rowsort label-7871
SELECT DISTINCT 12 * COUNT( * ) AS col1 FROM tab2
----
36
skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT 12 * COUNT ( * ) AS col1 FROM tab2
----
36
onlyif mysql # DIV for integer division:
query I rowsort label-7872
SELECT ALL + ( col2 ) DIV - 68 FROM tab1 cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL + ( col2 ) / - 68 FROM tab1 cor0
----
-1
-1
0
query I rowsort
SELECT ALL + - col0 - + 42 FROM tab0 AS cor0
----
-129
-139
-57
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7874
SELECT ALL - 3 DIV COUNT( * ) FROM tab2 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL - 3 / COUNT ( * ) FROM tab2 cor0
----
-1
query I rowsort
SELECT DISTINCT 78 AS col0 FROM tab2 AS cor0
----
78
query I rowsort
SELECT + 96 + + 37 AS col1 FROM tab1 cor0
----
133
133
133
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + 19 IS NOT NULL )
----
query I rowsort
SELECT + 90 * + col2 + + 25 + - + col1 FROM tab2 AS cor0
----
2044
3548
5178
query I rowsort
SELECT - - 29 + + col2 AS col0 FROM tab0 AS cor0
----
128
39
76
query I rowsort
SELECT ALL - 61 * - col0 + - + 69 FROM tab2 AS cor0
----
2737
3835
4506
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7881
SELECT DISTINCT - 24 + - CAST( + - col1 AS SIGNED ) AS col2 FROM tab2
----
27
43
53
skipif mysql # not compatible
query I rowsort label-7881
SELECT DISTINCT - 24 + - CAST ( + - col1 AS INTEGER ) AS col2 FROM tab2
----
27
43
53
query I rowsort
SELECT DISTINCT col2 * + col1 + - + col2 FROM tab1
----
1248
236
3128
query I rowsort
SELECT DISTINCT + 39 + col2 * + col0 FROM tab0
----
744
909
9642
onlyif mysql # aggregate syntax:
query II rowsort label-7884
SELECT + COUNT( * ), + COUNT( * ) FROM tab0
----
3
3
skipif mysql # not compatible
query II rowsort label-7884
SELECT + COUNT ( * ), + COUNT ( * ) FROM tab0
----
3
3
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + + 67, - col0, col2 )
----
query II rowsort
SELECT ALL 80 AS col1, col0 FROM tab2
----
80
46
80
64
80
75
onlyif mysql # aggregate syntax:
query I rowsort label-7887
SELECT ALL - + COUNT( * ) AS col0 FROM tab1 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL - + COUNT ( * ) AS col0 FROM tab1 cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-7888
SELECT + MIN( DISTINCT + 2 ) FROM tab0 AS cor0
----
2
skipif mysql # not compatible
query I rowsort label-7888
SELECT + MIN ( DISTINCT + 2 ) FROM tab0 AS cor0
----
2
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 >= + - 17 * + col1
----
onlyif mysql # DIV for integer division:
query I rowsort label-7890
SELECT 82 DIV - + col0 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7890
SELECT 82 / - + col0 FROM tab1
----
-1
0
0
query I rowsort
SELECT + col2 * - col0 AS col1 FROM tab1 WHERE NOT - + 5 IS NULL
----
-4896
-5015
-6188
onlyif mysql # aggregate syntax:
query I rowsort label-7892
SELECT - COUNT( ALL + - 24 ) AS col1 FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-7892
SELECT - COUNT ( ALL + - 24 ) AS col1 FROM tab1 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-7893
SELECT DISTINCT COUNT( - + col2 ) AS col0 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-7893
SELECT DISTINCT COUNT ( - + col2 ) AS col0 FROM tab0 AS cor0
----
3
query II rowsort
SELECT - col1 * + col1 + col0 + + col1 * + 81 AS col2, + col1 AS col2 FROM tab2 AS cor0
----
1013
67
1576
51
372
77
query I rowsort
SELECT DISTINCT - - AVG ( - 33 ) * AVG ( ALL - col2 ) FROM tab1 AS cor0 WHERE + col0 > + col0
----
NULL
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 98 <> NULL
----
query II rowsort
SELECT DISTINCT 30, + col2 AS col2 FROM tab2
----
30
23
30
40
30
58
query I rowsort
SELECT ALL - ( + 66 ) * + + 17 FROM tab2
----
-1122
-1122
-1122
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7900
SELECT ALL 33 * + COUNT( * ) FROM tab1
----
99
skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL 33 * + COUNT ( * ) FROM tab1
----
99
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7901
SELECT DISTINCT - 95 * 74 * - + CAST( + + 93 AS SIGNED ) AS col1 FROM tab1
----
653790
skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT - 95 * 74 * - + CAST ( + + 93 AS INTEGER ) AS col1 FROM tab1
----
653790
onlyif mysql # aggregate syntax:
query I rowsort label-7902
SELECT DISTINCT + - MAX( ALL - col2 ) FROM tab0 AS cor0
----
10
skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT + - MAX ( ALL - col2 ) FROM tab0 AS cor0
----
10
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7903
SELECT ALL CAST( NULL AS SIGNED ) * - + COUNT( * ) - 35 + - 58 AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7903
SELECT ALL CAST ( NULL AS INTEGER ) * - + COUNT ( * ) - 35 + - 58 AS col2 FROM tab1
----
NULL
query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL < ( NULL )
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 < NULL
----
query I rowsort
SELECT + + 23 AS col1 FROM tab1 AS cor0
----
23
23
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col1 FROM tab0 AS cor0
----
32
32
32
onlyif mysql # aggregate syntax:
query I rowsort label-7908
SELECT + + MIN( - - 7 ) AS col0 FROM tab2 AS cor0
----
7
skipif mysql # not compatible
query I rowsort label-7908
SELECT + + MIN ( - - 7 ) AS col0 FROM tab2 AS cor0
----
7
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * 68 >= NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-7911
SELECT - ( - col0 ) - 72 DIV + - col0 - - col2 AS col1 FROM tab1 cor0
----
144
148
159
skipif mysql # not compatible
query I rowsort label-7911
SELECT - ( - col0 ) - 72 / + - col0 - - col2 AS col1 FROM tab1 cor0
----
144
148
159
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 * 18 * - col2 col0 FROM tab1
----
112608
158976
97704
onlyif mysql # aggregate syntax:
query I rowsort label-7913
SELECT + 99 + - ( - COUNT( * ) ) * - - COUNT( * ) FROM tab1, tab0 AS cor0
----
180
skipif mysql # not compatible
query I rowsort label-7913
SELECT + 99 + - ( - COUNT ( * ) ) * - - COUNT ( * ) FROM tab1, tab0 AS cor0
----
180
query I rowsort
SELECT ALL 79 * - - 42 * - - col0 FROM tab2
----
152628
212352
248850
onlyif mysql # aggregate syntax:
query I rowsort label-7915
SELECT ALL + SUM( col0 ) FROM tab0
----
199
skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL + SUM ( col0 ) FROM tab0
----
199
onlyif mysql # DIV for integer division:
query I rowsort label-7916
SELECT 23 DIV + - col1 AS col0 FROM tab0
----
-1
-23
0
skipif mysql # not compatible
query I rowsort label-7916
SELECT 23 / + - col1 AS col0 FROM tab0
----
-1
-23
0
query I rowsort
SELECT ALL ( 30 ) AS col1 FROM tab0
----
30
30
30
onlyif mysql # aggregate syntax:
query I rowsort label-7918
SELECT + MIN( ALL col2 ) FROM tab2
----
23
skipif mysql # not compatible
query I rowsort label-7918
SELECT + MIN ( ALL col2 ) FROM tab2
----
23
onlyif mysql # aggregate syntax:
query II rowsort label-7919
SELECT DISTINCT - COUNT( * ) AS col2, + 43 FROM tab2
----
-3
43
skipif mysql # not compatible
query II rowsort label-7919
SELECT DISTINCT - COUNT ( * ) AS col2, + 43 FROM tab2
----
-3
43
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - - col1 ) IS NULL OR NOT - 58 = NULL
----
query II rowsort
SELECT col0 AS col2, + col0 FROM tab2
----
46
46
64
64
75
75
query I rowsort
SELECT - col2 * + + 3 AS col2 FROM tab1
----
-177
-204
-288
onlyif mysql # aggregate syntax:
query II rowsort label-7923
SELECT COUNT( * ), COUNT( + col2 ) AS col0 FROM tab2
----
3
3
skipif mysql # not compatible
query II rowsort label-7923
SELECT COUNT ( * ), COUNT ( + col2 ) AS col0 FROM tab2
----
3
3
onlyif mysql # aggregate syntax:
query I rowsort label-7924
SELECT ALL + ( - MAX( - 54 ) ) FROM tab0 AS cor0
----
54
skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL + ( - MAX ( - 54 ) ) FROM tab0 AS cor0
----
54
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL IN ( + col2 + + ( col0 ) + - col2, - col2 + - col1, + 23 ) )
----
onlyif mysql # aggregate syntax:
query I rowsort label-7926
SELECT 51 * - + COUNT( * ) FROM tab1 AS cor0
----
-153
skipif mysql # not compatible
query I rowsort label-7926
SELECT 51 * - + COUNT ( * ) FROM tab1 AS cor0
----
-153
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 13 < NULL
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 28 < - col2 * + 50
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT - 79 AS col2, 21 * - col2 + 6 FROM tab1 AS cor0
----
-79
-1233
-79
-1422
-79
-2010
query I rowsort
SELECT DISTINCT - - 83 + + col2 AS col0 FROM tab2 cor0
----
106
123
141
query I rowsort
SELECT + 78 + - + ( - col0 ) AS col0 FROM tab2
----
124
142
153
onlyif mysql # aggregate syntax:
query I rowsort label-7932
SELECT COUNT( col2 ) + - COUNT( * ) - - + MIN( 17 ) + COUNT( * ) col1 FROM tab0
----
20
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7932
SELECT COUNT ( col2 ) + - COUNT ( * ) - - + MIN ( 17 ) + COUNT ( * ) col1 FROM tab0
----
20
query I rowsort
SELECT DISTINCT + ( col2 ) + + + col2 FROM tab2
----
116
46
80
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7934
SELECT + col1 + + - col1 * 88 + + CAST( + CAST( + + 92 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-4345
-5737
-6607
skipif mysql # not compatible
query I rowsort label-7934
SELECT + col1 + + - col1 * 88 + + CAST ( + CAST ( + + 92 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-4345
-5737
-6607
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > col1 - + col2
----
query I rowsort
SELECT DISTINCT + 7 * ( - 55 ) * 31 * - 28 AS col1 FROM tab0
----
334180
onlyif mysql # aggregate syntax:
query I rowsort label-7937
SELECT DISTINCT - COUNT( * ) + 81 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
72
skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT - COUNT ( * ) + 81 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
72
query I rowsort
SELECT ALL + - col2 * + col0 + + col1 FROM tab0 AS cor0
----
-624
-849
-9602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 7 col1 FROM tab1 cor0
----
-58
-92
-98
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 90 * - + col2 + + + col2 / - + col0 + + col1 + + 62 * + col1 * + - col0 > col0
----
15
81
47
87
21
10
query II rowsort
SELECT - col2 AS col1, col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-7943
SELECT DISTINCT COUNT( * ) * + 79 AS col1 FROM tab1
----
237
skipif mysql # not compatible
query I rowsort label-7943
SELECT DISTINCT COUNT ( * ) * + 79 AS col1 FROM tab1
----
237
query I rowsort
SELECT + col2 * + col2 * 45 * + 37 * 46 FROM tab2
----
122544000
257648760
40516110
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7945
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7945
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL
query II rowsort
SELECT DISTINCT + 96 * + 30 AS col1, ( + + col0 ) FROM tab1
----
2880
51
2880
85
2880
91
onlyif mysql # aggregate syntax:
query I rowsort label-7947
SELECT - MIN( DISTINCT - col2 ) * - + ( - COUNT( * ) ) FROM tab2
----
174
skipif mysql # not compatible
query I rowsort label-7947
SELECT - MIN ( DISTINCT - col2 ) * - + ( - COUNT ( * ) ) FROM tab2
----
174
onlyif mysql # aggregate syntax:
query I rowsort label-7948
SELECT - + COUNT( DISTINCT - ( - 25 ) ) AS col1 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7948
SELECT - + COUNT ( DISTINCT - ( - 25 ) ) AS col1 FROM tab1 AS cor0
----
-1
onlyif mysql # aggregate syntax:
query I rowsort label-7949
SELECT - MAX( + + 83 ) AS col1 FROM tab2 AS cor0
----
-83
skipif mysql # not compatible
query I rowsort label-7949
SELECT - MAX ( + + 83 ) AS col1 FROM tab2 AS cor0
----
-83
query I rowsort
SELECT ALL + - 41 * - col1 FROM tab1 AS cor0
----
1927
205
574
onlyif mysql # aggregate syntax:
query I rowsort label-7951
SELECT MAX( 51 ) AS col1 FROM tab1 AS cor0 WHERE NOT 95 IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-7951
SELECT MAX ( 51 ) AS col1 FROM tab1 AS cor0 WHERE NOT 95 IS NOT NULL
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-7952
SELECT DISTINCT 91 DIV - 31 AS col0 FROM tab0 AS cor0
----
-2
skipif mysql # not compatible
query I rowsort label-7952
SELECT DISTINCT 91 / - 31 AS col0 FROM tab0 AS cor0
----
-2
onlyif mysql # aggregate syntax:
query I rowsort label-7953
SELECT DISTINCT + MIN( DISTINCT - 55 ) AS col2 FROM tab1
----
-55
skipif mysql # not compatible
query I rowsort label-7953
SELECT DISTINCT + MIN ( DISTINCT - 55 ) AS col2 FROM tab1
----
-55
query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NOT NULL
----
query II rowsort
SELECT DISTINCT - 23, col0 FROM tab0
----
-23
15
-23
87
-23
97
query I rowsort
SELECT ALL col0 * - 42 FROM tab2
----
-1932
-2688
-3150
onlyif mysql # aggregate syntax:
query I rowsort label-7957
SELECT ( + + COUNT( * ) ) + + + MIN( col2 ) AS col0 FROM tab2 AS cor0
----
26
skipif mysql # not compatible
query I rowsort label-7957
SELECT ( + + COUNT ( * ) ) + + + MIN ( col2 ) AS col0 FROM tab2 AS cor0
----
26
query I rowsort
SELECT + 32 + + col2 FROM tab2 AS cor0
----
55
72
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + + col0 col2 FROM tab0 AS cor0
----
174
194
30
query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
51
85
91
query II rowsort
SELECT + col1 AS col0, col0 * 17 AS col0 FROM tab2
----
51
782
67
1275
77
1088
query I rowsort
SELECT ALL col0 + + - col0 + + col1 * - 97 AS col0 FROM tab2
----
-4947
-6499
-7469
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 col1 FROM tab1
----
70
70
70
query II rowsort
SELECT col1, col0 AS col2 FROM tab0
----
1
97
21
87
81
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - 1 + - 36 + - 48 col0 FROM tab1
----
-132
-90
-99
query I rowsort
SELECT ALL - col0 - - col2 AS col1 FROM tab0
----
-77
2
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col1 * col1 col0 FROM tab0 AS cor0
----
-98
431
6514
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-7968
SELECT DISTINCT - CAST( NULL AS SIGNED ), + col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5
skipif mysql # not compatible
query II rowsort label-7968
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5
query I rowsort
SELECT ALL col1 * ( + 3 ) * + + col1 + + 7 * 51 * + 38 FROM tab1
----
13641
14154
20193
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7970
SELECT DISTINCT - col2 / 65 * + CAST( NULL AS SIGNED ) / + col1 + + + col2 * + col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT - col2 / 65 * + CAST ( NULL AS INTEGER ) / + col1 + + + col2 * + col0 FROM tab2
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * + 51 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7972
SELECT DISTINCT COUNT( * ) * - - 14 + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
45
skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT COUNT ( * ) * - - 14 + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
45
query I rowsort
SELECT DISTINCT - col0 * + + 10 AS col2 FROM tab1 AS cor0 WHERE NOT ( + - ( - col1 ) IS NOT NULL )
----
query I rowsort
SELECT DISTINCT - ( ( - 39 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT 2 < NULL
----
query I rowsort
SELECT ALL - - 39 FROM tab0 cor0
----
39
39
39
query I rowsort
SELECT + 19 * + + 16 AS col0 FROM tab0 AS cor0
----
304
304
304
onlyif mysql # aggregate syntax:
query I rowsort label-7977
SELECT ALL - COUNT( + 91 ) AS col2 FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL - COUNT ( + 91 ) AS col2 FROM tab2
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 52 ) col2 FROM tab1
----
52
52
52
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NULL OR NOT 55 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7980
SELECT CAST( 73 AS SIGNED ) FROM tab2
----
73
73
73
skipif mysql # not compatible
query I rowsort label-7980
SELECT CAST ( 73 AS INTEGER ) FROM tab2
----
73
73
73
onlyif mysql # aggregate syntax:
query II rowsort label-7981
SELECT ALL - COUNT( * ) AS col1, 17 FROM tab0
----
-3
17
skipif mysql # not compatible
query II rowsort label-7981
SELECT ALL - COUNT ( * ) AS col1, 17 FROM tab0
----
-3
17
onlyif mysql # aggregate syntax:
query I rowsort label-7982
SELECT ALL SUM( ALL col0 ) FROM tab2
----
185
skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL SUM ( ALL col0 ) FROM tab2
----
185
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 68 >= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL - + col2 AS col0 FROM tab1 AS cor0 WHERE + 39 NOT BETWEEN + 63 AND - + 91 + col1
----
-59
-68
-96
query I rowsort
SELECT ALL + + ( - 55 ) FROM tab1 cor0
----
-55
-55
-55
query I rowsort
SELECT DISTINCT 37 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
37
query III rowsort
SELECT * FROM tab0 WHERE NOT + 50 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7988
SELECT ALL + - MIN( DISTINCT 94 ) FROM tab1 AS cor0
----
-94
skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL + - MIN ( DISTINCT 94 ) FROM tab1 AS cor0
----
-94
onlyif mysql # aggregate syntax:
query I rowsort label-7989
SELECT ALL MAX( DISTINCT 4 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL MAX ( DISTINCT 4 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL
query I rowsort
SELECT ALL col0 * - col1 + - - col2 * + + col1 AS col0 FROM tab1 cor0
----
-1081
-130
630
query I rowsort
SELECT DISTINCT col1 + col1 + 74 * - 3 FROM tab2 AS cor0
----
-120
-68
-88
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7992
SELECT CAST( NULL AS SIGNED ) + - ( - + 82 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7992
SELECT CAST ( NULL AS INTEGER ) + - ( - + 82 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 16 + + 84 + col1 FROM tab1 AS cor0
----
115
73
82
query I rowsort
SELECT - col1 * 44 + 85 AS col2 FROM tab0 AS cor0
----
-3479
-839
41
query I rowsort
SELECT col1 + + - col1 * + col2 AS col0 FROM tab1
----
-1330
-290
-3149
query I rowsort
SELECT - col0 + + 73 * col2 * - + col0 AS col2 FROM tab2
----
-186944
-317625
-77280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 + - col2 * + 27 col1 FROM tab1
----
-1501
-1744
-2500
query I rowsort
SELECT ALL + col1 + + col2 * - + col1 * - col2 AS col2 FROM tab1
----
129038
17410
217375
onlyif mysql # DIV for integer division:
query II rowsort label-7999
SELECT col1 * - col2 + + + col2 AS col2, + 17 DIV 15 FROM tab2
----
-1150
1
-3040
1
-3828
1
skipif mysql # not compatible
query II rowsort label-7999
SELECT col1 * - col2 + + + col2 AS col2, + 17 / 15 FROM tab2
----
-1150
1
-3040
1
-3828
1
query I rowsort
SELECT ALL col2 * - col2 * - + 74 - col1 FROM tab2
----
118323
248869
39095
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 - - 79 + + + 66 * + col2 * ( + + col2 ) col1 FROM tab1
----
229791
305229
608301
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-8003
SELECT DISTINCT + COUNT( * ) AS col2, 80 + - COUNT( * ) / + 80 / + - 62 - + CAST( NULL AS SIGNED ) + + COUNT( * ) + - 50 / - - COUNT( * ) * AVG ( ALL + 98 ) FROM tab2 cor0
----
3
NULL
skipif mysql # not compatible
query II rowsort label-8003
SELECT DISTINCT + COUNT ( * ) AS col2, 80 + - COUNT ( * ) / + 80 / + - 62 - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - 50 / - - COUNT ( * ) * AVG ( ALL + 98 ) FROM tab2 cor0
----
3
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8004
SELECT - COUNT( * ) DIV + 69 col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8004
SELECT - COUNT ( * ) / + 69 col1 FROM tab1 AS cor0
----
0
query III rowsort
SELECT * FROM tab2 WHERE NULL < - + col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - + col2 ), - 64 col1 FROM tab0
----
-10
-64
-47
-64
-99
-64
query II rowsort
SELECT DISTINCT 42, col1 * 32 + + + 26 AS col0 FROM tab2
----
42
1658
42
2170
42
2490
query I rowsort
SELECT ALL ( - + col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 <= - col1 * + 52
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-8010
SELECT ALL COUNT( * ) FROM tab1 cor0 WHERE NULL <> NULL
----
0
skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL COUNT ( * ) FROM tab1 cor0 WHERE NULL <> NULL
----
0
query II rowsort
SELECT col2 AS col2, + col1 AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + col1 col1 FROM tab0 AS cor0 WHERE - 80 IS NOT NULL
----
0
query II rowsort
SELECT - - 6, ( + col2 ) * - + col0 AS col0 FROM tab2 AS cor0
----
6
-1058
6
-2560
6
-4350
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 26 >= NULL
----
query II rowsort
SELECT ALL + + 3 AS col2, + 32 FROM tab2 AS cor0
----
3
32
3
32
3
32
query II rowsort
SELECT DISTINCT - col2, + col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-8018
SELECT ALL - SUM( ALL - col0 ) col2, 23 FROM tab1
----
227
23
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8018
SELECT ALL - SUM ( ALL - col0 ) col2, 23 FROM tab1
----
227
23
query I rowsort
SELECT col0 * - ( + + ( col1 ) ) FROM tab2
----
-2346
-4928
-5025
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8020
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab0
----
NULL
query I rowsort
SELECT - + 94 FROM tab2 cor0
----
-94
-94
-94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 44 col2 FROM tab2 AS cor0
----
44
44
44
query I rowsort
SELECT DISTINCT col2 * - - col0 AS col1 FROM tab0
----
705
870
9603
query III rowsort
SELECT * FROM tab0 WHERE NULL = + 24 * - - col0
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8025
SELECT ALL CAST( NULL AS SIGNED ) * + 64 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL CAST ( NULL AS INTEGER ) * + 64 AS col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8026
SELECT ALL CAST( + col0 AS SIGNED ) * ( ( col2 ) ) + - col1 AS col2 FROM tab2
----
1007
2483
4283
skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL CAST ( + col0 AS INTEGER ) * ( ( col2 ) ) + - col1 AS col2 FROM tab2
----
1007
2483
4283
query I rowsort
SELECT col0 + - + col1 AS col1 FROM tab2
----
-13
-5
8
query I rowsort
SELECT col1 + - + col0 AS col2 FROM tab2 AS cor0
----
-8
13
5
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8029
SELECT col1 + + col2 + + - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8029
SELECT col1 + + col2 + + - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8030
SELECT ALL CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
40
58
skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
40
58
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + - col0 IS NOT NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8032
SELECT ALL + COUNT( + col0 ) FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL + COUNT ( + col0 ) FROM tab2 AS cor0
----
3
query I rowsort
SELECT col0 * - - col0 + - col1 FROM tab0 AS cor0
----
144
7548
9408
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NULL IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT NULL NOT IN ( + - col2 * + - col0, 35 + + col2 + - 85 + - col0 ) )
----
query I rowsort
SELECT ALL ( col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT + col1 - + + col0 AS col0 FROM tab0
----
-66
-96
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 + ( - - col2 ) col2 FROM tab1
----
117
80
89
query I rowsort
SELECT + col2 FROM tab1 WHERE + - 18 IS NOT NULL
----
59
68
96
query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * 47 <= - col1
----
query I rowsort
SELECT + col2 + - 90 + - 0 AS col2 FROM tab1 AS cor0
----
-22
-31
6
onlyif mysql # aggregate syntax:
query I rowsort label-8042
SELECT DISTINCT + COUNT( * ) - - ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT + COUNT ( * ) - - ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT col2 * 2 * - 29 + - col1 AS col1 FROM tab2 AS cor0
----
-1385
-2397
-3431
query I rowsort
SELECT ALL + ( - + col2 ) - col1 AS col0 FROM tab0 cor0
----
-100
-128
-31
query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT ALL + + 11 * + + 0 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # DIV for integer division:
query I rowsort label-8047
SELECT + ( - col1 ) DIV + col1 col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8047
SELECT + ( - col1 ) / + col1 col1 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # aggregate syntax:
query I rowsort label-8048
SELECT 96 * MAX( ALL - col1 ) FROM tab1
----
-480
skipif mysql # not compatible
query I rowsort label-8048
SELECT 96 * MAX ( ALL - col1 ) FROM tab1
----
-480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 * - - col2 col1 FROM tab0
----
1880
3960
400
query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( + - col0 IS NOT NULL ) )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query III rowsort
SELECT col2 * 69 AS col2, + 58, + col0 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to ecbe184f567f7481c5c477b30deaf0d3
onlyif mysql # DIV for integer division:
query II rowsort label-8053
SELECT - - 75 col2, col2 DIV + + 25 AS col1 FROM tab0 AS cor0
----
75
0
75
1
75
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8053
SELECT - - 75 col2, col2 / + + 25 AS col1 FROM tab0 AS cor0
----
75
0
75
1
75
3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8054
SELECT ALL + MIN( + CAST( - col1 AS SIGNED ) ) AS col0 FROM tab0 cor0
----
-81
skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL + MIN ( + CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab0 cor0
----
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 15 col1 FROM tab2 AS cor0
----
15
15
15
query I rowsort
SELECT ALL - + 69 * + - col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3243
345
966
onlyif mysql # aggregate syntax:
query I rowsort label-8057
SELECT ALL - COUNT( * ) AS col2 FROM tab2 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 cor0
----
-3
query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-21
-81
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 45 * - 8 IS NULL
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + 57 AND - - col1
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 >= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8062
SELECT ALL - MAX( + 5 ) FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL - MAX ( + 5 ) FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-8064
SELECT ALL COUNT( + col2 ) FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL COUNT ( + col2 ) FROM tab2 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-8065
SELECT MAX( + + col2 ) FROM tab2
----
58
skipif mysql # not compatible
query I rowsort label-8065
SELECT MAX ( + + col2 ) FROM tab2
----
58
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8066
SELECT - COUNT( * ) DIV + COUNT( * ) FROM tab1 WHERE NOT + + 60 = - + 55
----
-1
skipif mysql # not compatible
query I rowsort label-8066
SELECT - COUNT ( * ) / + COUNT ( * ) FROM tab1 WHERE NOT + + 60 = - + 55
----
-1
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-8067
SELECT - 20 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8067
SELECT - 20 * - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8068
SELECT ALL 94 + - + CAST( + col0 AS SIGNED ) + col2 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL 94 + - + CAST ( + col0 AS INTEGER ) + col2 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + ( 75 ) * - col0 AS col0 FROM tab0
----
-1125
-6525
-7275
onlyif mysql # DIV for integer division:
query I rowsort label-8070
SELECT 56 DIV + - 44 AS col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8070
SELECT 56 / + - 44 AS col2 FROM tab0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col0 FROM tab2 WHERE NOT NULL IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-8072
SELECT DISTINCT col1, - col0 * - CAST( + col2 AS SIGNED ) + + - col2 * - 30 FROM tab1
----
14
7776
47
8228
5
6785
skipif mysql # not compatible
query II rowsort label-8072
SELECT DISTINCT col1, - col0 * - CAST ( + col2 AS INTEGER ) + + - col2 * - 30 FROM tab1
----
14
7776
47
8228
5
6785
onlyif mysql # aggregate syntax:
query I rowsort label-8073
SELECT + COUNT( * ) + + - COUNT( * ) FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-8073
SELECT + COUNT ( * ) + + - COUNT ( * ) FROM tab1 cor0
----
0
query I rowsort
SELECT - col2 + - 9 - - 96 AS col1 FROM tab1 AS cor0
----
-9
19
28
query I rowsort
SELECT ( + - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 = NULL
----
query II rowsort
SELECT - + 98 AS col1, col2 AS col1 FROM tab1 AS cor0
----
-98
59
-98
68
-98
96
query III rowsort
SELECT - col2 AS col2, col2 AS col1, + col0 FROM tab1 AS cor0
----
9 values hashing to daf267efc6f204279dc5c3f7a5543b9a
onlyif mysql # aggregate syntax:
query I rowsort label-8078
SELECT MIN( col1 ) - + + 24 FROM tab0 cor0
----
-23
skipif mysql # not compatible
query I rowsort label-8078
SELECT MIN ( col1 ) - + + 24 FROM tab0 cor0
----
-23
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8079
SELECT - 58 + + 46 * CAST( + COUNT( col2 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
80
skipif mysql # not compatible
query I rowsort label-8079
SELECT - 58 + + 46 * CAST ( + COUNT ( col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 * 97 * + col2 col2, 59 + 23 AS col1 FROM tab0 AS cor0
----
214273
82
950697
82
9700
82
query I rowsort
SELECT ALL - col2 + - - col2 + - - col0 * + 39 AS col1 FROM tab1 AS cor0
----
1989
3315
3549
onlyif mysql # aggregate syntax:
query I rowsort label-8082
SELECT DISTINCT + COUNT( * ) * - - SUM( + + 55 ) AS col2 FROM tab2 AS cor0
----
495
skipif mysql # not compatible
query I rowsort label-8082
SELECT DISTINCT + COUNT ( * ) * - - SUM ( + + 55 ) AS col2 FROM tab2 AS cor0
----
495
onlyif mysql # aggregate syntax:
query I rowsort label-8083
SELECT 90 + + MIN( ALL + - col1 ) FROM tab2 AS cor0
----
13
skipif mysql # not compatible
query I rowsort label-8083
SELECT 90 + + MIN ( ALL + - col1 ) FROM tab2 AS cor0
----
13
onlyif mysql # aggregate syntax:
query I rowsort label-8084
SELECT DISTINCT COUNT( ALL + col2 ) FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT COUNT ( ALL + col2 ) FROM tab1
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-8085
SELECT + SUM( ALL - 95 ) + - 93 + + 41 AS col0 FROM tab1
----
-337
skipif mysql # not compatible
query I rowsort label-8085
SELECT + SUM ( ALL - 95 ) + - 93 + + 41 AS col0 FROM tab1
----
-337
onlyif mysql # aggregate syntax:
query I rowsort label-8086
SELECT DISTINCT + 24 - + - ( + COUNT( * ) ) AS col2 FROM tab0
----
27
skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT + 24 - + - ( + COUNT ( * ) ) AS col2 FROM tab0
----
27
query II rowsort
SELECT ALL + - 22 AS col1, col0 AS col2 FROM tab2 WHERE NOT NULL >= - - col0
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 ) < NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8089
SELECT DISTINCT + COUNT( DISTINCT + 28 ) FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT + COUNT ( DISTINCT + 28 ) FROM tab1
----
1
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 ) * col0 NOT IN ( 24 )
----
query I rowsort
SELECT ( 10 ) AS col0 FROM tab1
----
10
10
10
onlyif mysql # aggregate syntax:
query I rowsort label-8092
SELECT + MIN( DISTINCT col1 ) FROM tab1
----
5
skipif mysql # not compatible
query I rowsort label-8092
SELECT + MIN ( DISTINCT col1 ) FROM tab1
----
5
query I rowsort
SELECT - ( col0 ) * + col2 FROM tab1 WHERE ( NULL ) >= - col0
----
query I rowsort
SELECT - ( - col0 ) FROM tab0 WHERE ( NULL ) <> + 7
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8095
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND ( + CAST( NULL AS SIGNED ) / - col2 + col2 )
----
skipif mysql # not compatible
query III rowsort label-8095
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND ( + CAST ( NULL AS INTEGER ) / - col2 + col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8096
SELECT ( + COUNT( * ) ) AS col1 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-8096
SELECT ( + COUNT ( * ) ) AS col1 FROM tab2
----
3
query III rowsort
SELECT * FROM tab1 WHERE ( 3 ) <= ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8098
SELECT 10 - - COUNT( * ) col0 FROM tab0
----
13
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8098
SELECT 10 - - COUNT ( * ) col0 FROM tab0
----
13
onlyif mysql # aggregate syntax:
query I rowsort label-8099
SELECT ALL - COUNT( * ) - COUNT( * ) AS col1 FROM tab1
----
-6
skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL - COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1
----
-6
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8100
SELECT DISTINCT 61 + + CAST( + COUNT( * ) AS SIGNED ) col1 FROM tab1
----
64
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8100
SELECT DISTINCT 61 + + CAST ( + COUNT ( * ) AS INTEGER ) col1 FROM tab1
----
64
query I rowsort
SELECT col0 FROM tab0 WHERE col0 IS NOT NULL
----
15
87
97
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8102
SELECT * FROM tab2 WHERE ( + ( - col1 ) ) + + col0 BETWEEN ( + CAST( - 23 AS SIGNED ) ) AND ( NULL )
----
skipif mysql # not compatible
query III rowsort label-8102
SELECT * FROM tab2 WHERE ( + ( - col1 ) ) + + col0 BETWEEN ( + CAST ( - 23 AS INTEGER ) ) AND ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8103
SELECT - COUNT( * ) FROM tab2 WHERE NOT NULL IN ( + col2 )
----
0
skipif mysql # not compatible
query I rowsort label-8103
SELECT - COUNT ( * ) FROM tab2 WHERE NOT NULL IN ( + col2 )
----
0
query I rowsort
SELECT col1 + + 53 AS col1 FROM tab1
----
100
58
67
onlyif mysql # aggregate syntax:
query I rowsort label-8105
SELECT DISTINCT - ( + COUNT( * ) ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-3
skipif mysql # not compatible
query I rowsort label-8105
SELECT DISTINCT - ( + COUNT ( * ) ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-3
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + - col1 * - 61 NOT BETWEEN - col1 AND col0
----
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query I rowsort label-8107
SELECT - CAST( NULL AS SIGNED ) / CAST( col1 AS DECIMAL ) + CAST( col1 AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8107
SELECT - CAST ( NULL AS INTEGER ) / CAST ( col1 AS REAL ) + CAST ( col1 AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * ( ( - 85 ) ) IS NOT NULL
----
query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT - col0 * - 26 IS NULL
----
59
68
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 * - col0 + 37 col2 FROM tab1
----
4576
7602
8136
query I rowsort
SELECT + col2 + - col0 * - 17 AS col0 FROM tab2
----
1128
1333
805
query I rowsort
SELECT col2 * col2 + 19 FROM tab0
----
119
2228
9820
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( 77 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8114
SELECT - COUNT( * ) * + 32 FROM tab0 AS cor0
----
-96
skipif mysql # not compatible
query I rowsort label-8114
SELECT - COUNT ( * ) * + 32 FROM tab0 AS cor0
----
-96
query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE - col0 * + col2 <= ( NULL )
----
query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE ( NULL ) BETWEEN col2 AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 + + 95 col1 FROM tab1
----
-2506
-7130
-8186
onlyif mysql # aggregate syntax:
query I rowsort label-8118
SELECT ALL - - 83 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
249
skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL - - 83 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
249
onlyif mysql # aggregate syntax:
query I rowsort label-8119
SELECT DISTINCT - - ( + MIN( col1 ) ) AS col1 FROM tab2 AS cor0
----
51
skipif mysql # not compatible
query I rowsort label-8119
SELECT DISTINCT - - ( + MIN ( col1 ) ) AS col1 FROM tab2 AS cor0
----
51
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > ( NULL )
----
query I rowsort
SELECT ALL - 72 * + col1 FROM tab1 AS cor0
----
-1008
-3384
-360
query I rowsort
SELECT col2 * 82 FROM tab2 AS cor0
----
1886
3280
4756
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8123
SELECT + col0 FROM tab2 AS cor0 WHERE + col0 * col2 < + CAST( col1 AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-8123
SELECT + col0 FROM tab2 AS cor0 WHERE + col0 * col2 < + CAST ( col1 AS INTEGER )
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * + 69 IS NULL
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8126
SELECT + CAST( NULL AS SIGNED ) * 29 - - COUNT( * ) col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8126
SELECT + CAST ( NULL AS INTEGER ) * 29 - - COUNT ( * ) col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE - 49 / 7 IS NOT NULL
----
51
85
91
onlyif mysql # aggregate syntax:
query I rowsort label-8128
SELECT ALL ( + - 95 ) * ( - COUNT( * ) ) + COUNT( * ) FROM tab1
----
288
skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL ( + - 95 ) * ( - COUNT ( * ) ) + COUNT ( * ) FROM tab1
----
288
onlyif mysql # aggregate syntax:
query I rowsort label-8129
SELECT ( 49 ) - - COUNT( * ) AS col2 FROM tab0
----
52
skipif mysql # not compatible
query I rowsort label-8129
SELECT ( 49 ) - - COUNT ( * ) AS col2 FROM tab0
----
52
query I rowsort
SELECT DISTINCT 94 + + 60 + + col2 FROM tab0
----
164
201
253
query I rowsort
SELECT - col1 * col0 * col0 - col2 * + col2 FROM tab0
----
-159049
-19210
-20434
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + 14 ) * col0 + + col1 col0 FROM tab0
----
-1197
-129
-1357
query I rowsort
SELECT + 21 AS col2 FROM tab2
----
21
21
21
query I rowsort
SELECT + ( - 70 ) AS col1 FROM tab0
----
-70
-70
-70
onlyif mysql # aggregate syntax:
query I rowsort label-8135
SELECT DISTINCT + SUM( DISTINCT - 11 ) AS col1 FROM tab1
----
-11
skipif mysql # not compatible
query I rowsort label-8135
SELECT DISTINCT + SUM ( DISTINCT - 11 ) AS col1 FROM tab1
----
-11
query I rowsort
SELECT DISTINCT + + col1 * + col2 AS col2 FROM tab0 cor0
----
210
3807
99
query I rowsort
SELECT DISTINCT - col0 * col1 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN ( col1 * + col0 ) AND NULL
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( 67 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8139
SELECT ALL ( - 21 ) * COUNT( DISTINCT - col1 + + col0 ) col2 FROM tab2 AS cor0
----
-63
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8139
SELECT ALL ( - 21 ) * COUNT ( DISTINCT - col1 + + col0 ) col2 FROM tab2 AS cor0
----
-63
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 = - 76
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT 63 * + 72 AS col1 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( col2 * 91 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 97 + 88 * 33 IN ( - 97 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT - col0 * - 46 AS col0 FROM tab1
----
2346
3910
4186
onlyif mysql # aggregate syntax:
query I rowsort label-8144
SELECT - + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-8144
SELECT - + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8145
SELECT + - COUNT( * ) DIV 78 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
0
skipif mysql # not compatible
query I rowsort label-8145
SELECT + - COUNT ( * ) / 78 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
0
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-8147
SELECT + MIN( - col2 ) AS col1 FROM tab0 AS cor0
----
-99
skipif mysql # not compatible
query I rowsort label-8147
SELECT + MIN ( - col2 ) AS col1 FROM tab0 AS cor0
----
-99
onlyif mysql # aggregate syntax:
query I rowsort label-8148
SELECT ALL - 13 * + COUNT( * ) * + SUM( ALL 42 ) FROM tab0 AS cor0
----
-4914
skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL - 13 * + COUNT ( * ) * + SUM ( ALL 42 ) FROM tab0 AS cor0
----
-4914
onlyif mysql # DIV for integer division:
query II rowsort label-8149
SELECT - col1 AS col0, 79 + + - col0 DIV 23 AS col1 FROM tab0 AS cor0
----
-1
75
-21
76
-81
79
skipif mysql # not compatible
query II rowsort label-8149
SELECT - col1 AS col0, 79 + + - col0 / 23 AS col1 FROM tab0 AS cor0
----
-1
75
-21
76
-81
79
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8150
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) * + + col2 * - col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8150
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) * + + col2 * - col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-8151
SELECT MIN( - + 5 ) col2 FROM tab1 AS cor0
----
-5
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8151
SELECT MIN ( - + 5 ) col2 FROM tab1 AS cor0
----
-5
onlyif mysql # aggregate syntax:
query I rowsort label-8152
SELECT - COUNT( col2 ) FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-8152
SELECT - COUNT ( col2 ) FROM tab2 AS cor0
----
-3
query II rowsort
SELECT + col0, - 84 FROM tab0 AS cor0
----
15
-84
87
-84
97
-84
query I rowsort
SELECT DISTINCT - - 18 + col1 AS col0 FROM tab1 AS cor0
----
23
32
65
onlyif mysql # aggregate syntax:
query I rowsort label-8155
SELECT - 65 * COUNT( * ) - - ( COUNT( * ) ) * - COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-204
skipif mysql # not compatible
query I rowsort label-8155
SELECT - 65 * COUNT ( * ) - - ( COUNT ( * ) ) * - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-204
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8156
SELECT - ( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8156
SELECT - ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-8157
SELECT - COUNT( * ) FROM tab2 WHERE 74 * - 16 NOT IN ( col0 )
----
-3
skipif mysql # not compatible
query I rowsort label-8157
SELECT - COUNT ( * ) FROM tab2 WHERE 74 * - 16 NOT IN ( col0 )
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 + + - 47 col2 FROM tab0
----
25
25
25
onlyif mysql # aggregate syntax:
query I rowsort label-8159
SELECT ALL - MIN( ALL col2 ) FROM tab2
----
-23
skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL - MIN ( ALL col2 ) FROM tab2
----
-23
onlyif mysql # aggregate syntax:
query I rowsort label-8160
SELECT ALL COUNT( * ) + - 53 FROM tab2
----
-50
skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL COUNT ( * ) + - 53 FROM tab2
----
-50
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8161
SELECT 34 DIV + + MAX( ALL - col2 ) * + 86 + - 80 AS col1 FROM tab1
----
-80
skipif mysql # not compatible
query I rowsort label-8161
SELECT 34 / + + MAX ( ALL - col2 ) * + 86 + - 80 AS col1 FROM tab1
----
-80
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 - col1 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL + col1 * - 24 * - + col1 FROM tab0
----
10584
157464
24
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL IN ( - + 29 * - col0 ) )
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8165
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 47 + col0 * col2 / + col0 + CAST( col2 AS SIGNED ) IN ( 83 + + 13 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-8165
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 47 + col0 * col2 / + col0 + CAST ( col2 AS INTEGER ) IN ( 83 + + 13 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query II rowsort label-8166
SELECT DISTINCT - - SUM( - + 94 ), ( - + MAX( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-282
-58
skipif mysql # not compatible
query II rowsort label-8166
SELECT DISTINCT - - SUM ( - + 94 ), ( - + MAX ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-282
-58
query I rowsort
SELECT ALL - 74 AS col2 FROM tab2 AS cor0
----
-74
-74
-74
query I rowsort
SELECT ALL - + col0 * 22 + + - 77 FROM tab0 AS cor0
----
-1991
-2211
-407
query I rowsort
SELECT ALL - + 25 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( col1 ) NOT BETWEEN ( - + col1 ) AND NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8171
SELECT - col0 - - - 18 + - - CAST( + col0 AS SIGNED ) col0 FROM tab2
----
-18
-18
-18
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8171
SELECT - col0 - - - 18 + - - CAST ( + col0 AS INTEGER ) col0 FROM tab2
----
-18
-18
-18
onlyif mysql # aggregate syntax:
query I rowsort label-8172
SELECT ALL 46 - - COUNT( * ) FROM tab1 cor0
----
49
skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL 46 - - COUNT ( * ) FROM tab1 cor0
----
49
query I rowsort
SELECT ALL col0 * col2 * + col2 FROM tab0 AS cor0
----
33135
8700
950697
onlyif mysql # aggregate syntax:
query I rowsort label-8174
SELECT ALL - - ( + - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL - - ( + - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-8175
SELECT 79 + + COUNT( * ) FROM tab2 cor0
----
82
skipif mysql # not compatible
query I rowsort label-8175
SELECT 79 + + COUNT ( * ) FROM tab2 cor0
----
82
onlyif mysql # aggregate syntax:
query I rowsort label-8176
SELECT ALL + SUM( DISTINCT + 95 ) col2 FROM tab1 AS cor0
----
95
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8176
SELECT ALL + SUM ( DISTINCT + 95 ) col2 FROM tab1 AS cor0
----
95
query I rowsort
SELECT - col1 + + - ( 87 ) FROM tab1 AS cor0
----
-101
-134
-92
onlyif mysql # aggregate syntax:
query I rowsort label-8178
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE - col1 * - 28 - + 4 IS NOT NULL
----
3
skipif mysql # not compatible
query I rowsort label-8178
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 * - 28 - + 4 IS NOT NULL
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8179
SELECT - ( + 14 ) + + CAST( - 7 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-21
-21
-21
skipif mysql # not compatible
query I rowsort label-8179
SELECT - ( + 14 ) + + CAST ( - 7 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-21
-21
-21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, col0 col2 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8181
SELECT + 85 * - CAST( NULL AS SIGNED ) / col1 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8181
SELECT + 85 * - CAST ( NULL AS INTEGER ) / col1 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT AVG ( - 50 ) FROM tab1 WHERE NOT - col0 * - col2 + - 54 IS NOT NULL
----
NULL
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 * + 18 ) IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT ALL * FROM tab0 WHERE + 91 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8185
SELECT ALL + MIN( ALL - 19 ) col2 FROM tab1, tab0 AS cor0
----
-19
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8185
SELECT ALL + MIN ( ALL - 19 ) col2 FROM tab1, tab0 AS cor0
----
-19
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8186
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 WHERE - + 76 + - 59 <= NULL
----
skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 WHERE - + 76 + - 59 <= NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( + col1 ) AND NULL
----
query I rowsort
SELECT - col1 + - col1 FROM tab2 WHERE NOT NULL <= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8189
SELECT MAX( - - 1 ) AS col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-8189
SELECT MAX ( - - 1 ) AS col2 FROM tab0
----
1
query I rowsort
SELECT + ( + 63 ) FROM tab2 AS cor0
----
63
63
63
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab2 cor0 WHERE NOT - ( - - 71 ) < NULL
----
query I rowsort
SELECT col1 * - col2 * + 15 * + col1 AS col1 FROM tab1 cor0
----
-22125
-2253180
-282240
query I rowsort
SELECT ALL + 88 FROM tab1 WHERE NOT + ( col2 ) NOT BETWEEN + col1 / + col2 AND NULL
----
query II rowsort
SELECT - col2 * + 56 AS col2, col2 * - + 72 + + + col0 FROM tab2
----
-1288
-1610
-2240
-2816
-3248
-4101
onlyif mysql # aggregate syntax:
query I rowsort label-8196
SELECT DISTINCT 25 * + + COUNT( ALL col2 ) AS col1 FROM tab1
----
75
skipif mysql # not compatible
query I rowsort label-8196
SELECT DISTINCT 25 * + + COUNT ( ALL col2 ) AS col1 FROM tab1
----
75
onlyif mysql # aggregate syntax:
query I rowsort label-8197
SELECT ALL COUNT( * ) * - - MAX( - + col0 ) FROM tab1
----
-153
skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL COUNT ( * ) * - - MAX ( - + col0 ) FROM tab1
----
-153
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col1 ) NOT BETWEEN - col1 AND NULL
----
query I rowsort
SELECT + col0 * col0 + col2 + - col0 * - - col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 < NULL
----
query I rowsort
SELECT 3 AS col1 FROM tab1 AS cor0 WHERE NOT - 88 + - - 55 - + + col2 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-8201
SELECT col0 + - + 49 DIV + col2 FROM tab2 AS cor0
----
44
63
75
skipif mysql # not compatible
query I rowsort label-8201
SELECT col0 + - + 49 / + col2 FROM tab2 AS cor0
----
44
63
75
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8202
SELECT ALL CAST( NULL AS SIGNED ) + + - ( col1 ) col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8202
SELECT ALL CAST ( NULL AS INTEGER ) + + - ( col1 ) col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-8203
SELECT DISTINCT - 87 DIV + 54 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8203
SELECT DISTINCT - 87 / + 54 FROM tab1 AS cor0
----
-1
onlyif mysql # DIV for integer division:
query I rowsort label-8204
SELECT ( col2 ) DIV 46 * - col1 AS col2 FROM tab0 AS cor0
----
-2
-81
0
skipif mysql # not compatible
query I rowsort label-8204
SELECT ( col2 ) / 46 * - col1 AS col2 FROM tab0 AS cor0
----
-2
-81
0
query I rowsort
SELECT DISTINCT 80 + - 95 + + col1 FROM tab2 cor0
----
36
52
62
query I rowsort
SELECT 83 FROM tab2 WHERE + + 64 = + - col0
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----
query I rowsort
SELECT DISTINCT + 35 + col1 + - col2 AS col2 FROM tab0
----
-63
46
69
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8209
SELECT + COUNT( * ) DIV - 9 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-8209
SELECT + COUNT ( * ) / - 9 FROM tab1
----
0
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8210
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 ) NOT BETWEEN ( 93 ) AND - CAST( NULL AS SIGNED ) + col0
----
skipif mysql # not compatible
query III rowsort label-8210
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 ) NOT BETWEEN ( 93 ) AND - CAST ( NULL AS INTEGER ) + col0
----
onlyif mysql # DIV for integer division:
query I rowsort label-8211
SELECT DISTINCT + col2 DIV - 51 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT + col2 / - 51 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN 2 AND 17 + + - 44
----
query II rowsort
SELECT ALL col2, col0 * + - 31 + + col2 FROM tab0 AS cor0
----
10
-2687
47
-418
99
-2908
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 44 IS NULL
----
query I rowsort
SELECT DISTINCT + - 96 + col1 AS col0 FROM tab0 AS cor0
----
-15
-75
-95
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8216
SELECT ( 16 ) DIV COUNT( * ) + + - 26 AS col0 FROM tab1
----
-21
skipif mysql # not compatible
query I rowsort label-8216
SELECT ( 16 ) / COUNT ( * ) + + - 26 AS col0 FROM tab1
----
-21
onlyif mysql # aggregate syntax:
query I rowsort label-8217
SELECT - COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8217
SELECT - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
query I rowsort
SELECT ALL + col2 * + 93 + + col1 AS col1 FROM tab1
----
5492
6371
8942
onlyif mysql # aggregate syntax:
query II rowsort label-8219
SELECT MAX( col2 ) AS col0, + 38 FROM tab2
----
58
38
skipif mysql # not compatible
query II rowsort label-8219
SELECT MAX ( col2 ) AS col0, + 38 FROM tab2
----
58
38
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8220
SELECT - 82 + - COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-82
skipif mysql # not compatible
query I rowsort label-8220
SELECT - 82 + - COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-82
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-8221
SELECT + col0 * + col1 + + col0 - + col1, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
4321
NULL
505
NULL
751
NULL
skipif mysql # not compatible
query II rowsort label-8221
SELECT + col0 * + col1 + + col0 - + col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
4321
NULL
505
NULL
751
NULL
query I rowsort
SELECT DISTINCT 38 FROM tab0 AS cor0 WHERE NOT - 10 IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 col1 FROM tab0 AS cor0 WHERE NOT - 28 + + 11 BETWEEN ( 60 + - + col2 ) AND ( NULL )
----
28
28
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 90 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL 93 FROM tab0 cor0
----
93
93
93
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8226
SELECT ALL * FROM tab0 AS cor0 WHERE ( CAST( NULL AS SIGNED ) * + 79 ) >= - col2 * - col0
----
skipif mysql # not compatible
query III rowsort label-8226
SELECT ALL * FROM tab0 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) * + 79 ) >= - col2 * - col0
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8227
SELECT CAST( NULL AS SIGNED ) * AVG ( ALL - 1 ) AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8227
SELECT CAST ( NULL AS INTEGER ) * AVG ( ALL - 1 ) AS col2 FROM tab0
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-8228
SELECT - col2 * - + col2 DIV col2 FROM tab2
----
23
40
58
skipif mysql # not compatible
query I rowsort label-8228
SELECT - col2 * - + col2 / col2 FROM tab2
----
23
40
58
query I rowsort
SELECT DISTINCT + ( + 76 ) FROM tab1
----
76
query I rowsort
SELECT - - 30 * 68 * - col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-118320
-46920
-81600
onlyif mysql # aggregate syntax:
query I rowsort label-8231
SELECT ALL - - ( - - SUM( ALL - col0 ) ) FROM tab0 AS cor0
----
-199
skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL - - ( - - SUM ( ALL - col0 ) ) FROM tab0 AS cor0
----
-199
query I rowsort
SELECT ALL - + col2 * + + 34 FROM tab0 cor0
----
-1598
-3366
-340
query I rowsort
SELECT ALL - ( - + col1 ) FROM tab2 AS cor0
----
51
67
77
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8234
SELECT ALL CAST( - col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
-59
-68
-96
skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
-59
-68
-96
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 33 ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-8236
SELECT 75 AS col0, COUNT( * ) AS col2 FROM tab2
----
75
3
skipif mysql # not compatible
query II rowsort label-8236
SELECT 75 AS col0, COUNT ( * ) AS col2 FROM tab2
----
75
3
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 34 * col1 * col0 NOT BETWEEN - 69 AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 6 + + - 63 = NULL
----
query II rowsort
SELECT DISTINCT + + col1 AS col1, + col0 * col1 * + + 29 AS col0 FROM tab2 AS cor0
----
51
68034
67
145725
77
142912
query I rowsort
SELECT 50 * col1 AS col0 FROM tab2 AS cor0 WHERE col2 - - ( + col1 ) IS NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 75 + - + col1 = NULL
----
query I rowsort
SELECT - + 68 AS col1 FROM tab0 WHERE NULL > + col2
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8243
SELECT ALL col0 + + ( + + CAST( - col0 AS SIGNED ) ) AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL col0 + + ( + + CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab0
----
0
0
0
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-8245
SELECT ALL 81 * + COUNT( * ) FROM tab1 WHERE NULL < ( NULL )
----
0
skipif mysql # not compatible
query I rowsort label-8245
SELECT ALL 81 * + COUNT ( * ) FROM tab1 WHERE NULL < ( NULL )
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-8246
SELECT ALL + COUNT( * ) * + 86 AS col1 FROM tab0
----
258
skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL + COUNT ( * ) * + 86 AS col1 FROM tab0
----
258
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8247
SELECT ALL * FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-8247
SELECT ALL * FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE ( NOT NULL < - col1 )
----
query I rowsort
SELECT ALL 7 AS col2 FROM tab2
----
7
7
7
query I rowsort
SELECT DISTINCT + col0 * + col0 * + 94 - - 29 * col2 AS col0 FROM tab2
----
199571
386184
530432
onlyif mysql # aggregate syntax:
query I rowsort label-8251
SELECT DISTINCT - 47 + - MIN( + col1 ) AS col0 FROM tab1 cor0
----
-52
skipif mysql # not compatible
query I rowsort label-8251
SELECT DISTINCT - 47 + - MIN ( + col1 ) AS col0 FROM tab1 cor0
----
-52
onlyif mysql # aggregate syntax:
query I rowsort label-8252
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE col0 * - + 44 IN ( - ( col1 ) )
----
0
skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE col0 * - + 44 IN ( - ( col1 ) )
----
0
query II rowsort
SELECT - col1, col1 AS col0 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77
onlyif mysql # aggregate syntax:
query I rowsort label-8254
SELECT - + MAX( ALL - ( + - 37 ) ) AS col0 FROM tab0 AS cor0
----
-37
skipif mysql # not compatible
query I rowsort label-8254
SELECT - + MAX ( ALL - ( + - 37 ) ) AS col0 FROM tab0 AS cor0
----
-37
onlyif mysql # aggregate syntax:
query I rowsort label-8255
SELECT - - MAX( DISTINCT + 8 ) AS col1 FROM tab2 AS cor0
----
8
skipif mysql # not compatible
query I rowsort label-8255
SELECT - - MAX ( DISTINCT + 8 ) AS col1 FROM tab2 AS cor0
----
8
query I rowsort
SELECT ALL - ( - + col1 ) FROM tab1 AS cor0
----
14
47
5
query I rowsort
SELECT + - 72 AS col0 FROM tab2 AS cor0
----
-72
-72
-72
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-8258
SELECT MAX( - col2 ) * COUNT( * ) AS col2, CAST( NULL AS SIGNED ) + + + MAX( ALL col0 ) FROM tab1 cor0
----
-177
NULL
skipif mysql # not compatible
query II rowsort label-8258
SELECT MAX ( - col2 ) * COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) + + + MAX ( ALL col0 ) FROM tab1 cor0
----
-177
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-8259
SELECT - SUM( - 85 ) FROM tab2 AS cor0
----
255
skipif mysql # not compatible
query I rowsort label-8259
SELECT - SUM ( - 85 ) FROM tab2 AS cor0
----
255
query I rowsort
SELECT + 81 * + + ( 75 ) + 22 AS col2 FROM tab1 AS cor0
----
6097
6097
6097
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( col2 ) * - - col1 * ( - - col1 ) ) NOT BETWEEN NULL AND NULL
----
query II rowsort
SELECT col2, - col0 AS col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97
onlyif mysql # aggregate syntax:
query I rowsort label-8263
SELECT ALL 54 * + MAX( - col0 ) * COUNT( * ) + - 92 + 92 + - 33 * + - MIN( col2 ) FROM tab0 AS cor0
----
-2100
skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL 54 * + MAX ( - col0 ) * COUNT ( * ) + - 92 + 92 + - 33 * + - MIN ( col2 ) FROM tab0 AS cor0
----
-2100
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8264
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * - 14, - col0 col2 FROM tab2
----
-322
-46
-560
-64
-812
-75
query I rowsort
SELECT 70 * - - 31 FROM tab0
----
2170
2170
2170
onlyif mysql # aggregate syntax:
query I rowsort label-8267
SELECT DISTINCT + - 64 * - COUNT( DISTINCT col1 ) col0 FROM tab1 WHERE NOT NULL < - 89 * - col0
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8267
SELECT DISTINCT + - 64 * - COUNT ( DISTINCT col1 ) col0 FROM tab1 WHERE NOT NULL < - 89 * - col0
----
0
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 NOT BETWEEN 57 AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 65 col0 FROM tab0 AS cor0
----
-65
-65
-65
query I rowsort
SELECT 64 + + col0 FROM tab0
----
151
161
79
query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE + - col0 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8272
SELECT + col2 + col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8272
SELECT + col2 + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( + - 8 ) AS col1 FROM tab2 AS cor0
----
-8
-8
-8
query I rowsort
SELECT + - col0 + 93 FROM tab2 AS cor0
----
18
29
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 77 col1 FROM tab0 AS cor0
----
-30
-67
22
onlyif mysql # aggregate syntax:
query I rowsort label-8276
SELECT ALL 82 * + COUNT( * ) + + MIN( DISTINCT - col1 ) col2 FROM tab0 AS cor0
----
165
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8276
SELECT ALL 82 * + COUNT ( * ) + + MIN ( DISTINCT - col1 ) col2 FROM tab0 AS cor0
----
165
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8277
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) * - + col1 AND - + col0
----
skipif mysql # not compatible
query III rowsort label-8277
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) * - + col1 AND - + col0
----
query I rowsort
SELECT ALL - - col1 + col2 - + 11 AS col1 FROM tab2 AS cor0
----
106
114
63
query I rowsort
SELECT DISTINCT - ( 81 ) FROM tab2 cor0
----
-81
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT - 94 * 95 * - + col0 + - col1 * - + 92 FROM tab0
----
141402
778842
866302
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8282
SELECT DISTINCT - MIN( DISTINCT CAST( col1 AS SIGNED ) ) col1 FROM tab2
----
-51
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8282
SELECT DISTINCT - MIN ( DISTINCT CAST ( col1 AS INTEGER ) ) col1 FROM tab2
----
-51
query I rowsort
SELECT - + 56 AS col0 FROM tab2 WHERE NULL IS NULL
----
-56
-56
-56
query II rowsort
SELECT 47, + ( 79 ) AS col2 FROM tab2
----
47
79
47
79
47
79
onlyif mysql # aggregate syntax:
query I rowsort label-8285
SELECT MIN( ALL + + col0 ) * - + 28 - + - ( + COUNT( * ) ) AS col1 FROM tab1
----
-1425
skipif mysql # not compatible
query I rowsort label-8285
SELECT MIN ( ALL + + col0 ) * - + 28 - + - ( + COUNT ( * ) ) AS col1 FROM tab1
----
-1425
query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + + col2 * col0
----
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query III rowsort label-8287
SELECT * FROM tab0 AS cor0 WHERE CAST( + - ( + + col0 ) AS SIGNED ) * - - col2 <= CAST( NULL AS DECIMAL ) + + col1 + - col0 * col0 / - 50 * + + col0 * + 22
----
skipif mysql # not compatible
query III rowsort label-8287
SELECT * FROM tab0 AS cor0 WHERE CAST ( + - ( + + col0 ) AS INTEGER ) * - - col2 <= CAST ( NULL AS REAL ) + + col1 + - col0 * col0 / - 50 * + + col0 * + 22
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( ( + - col1 ) ) * + col2 * 6 + - 42 * + + 33 col1 FROM tab1 AS cor0
----
-20562
-3156
-9450
query I rowsort
SELECT ALL - - 45 * col1 + - col0 + + - col2 FROM tab0 AS cor0
----
-151
3583
848
onlyif mysql # aggregate syntax:
query I rowsort label-8290
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT - 26 IS NULL
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8290
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT - 26 IS NULL
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-8291
SELECT 25 * COUNT( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
225
skipif mysql # not compatible
query I rowsort label-8291
SELECT 25 * COUNT ( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
225
query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8293
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - 51 + + 1 * - + col0 + CAST( - col2 AS SIGNED ) + - col2 + + - col2 / - col2 * + col1 + - ( - col0 )
----
skipif mysql # not compatible
query III rowsort label-8293
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - 51 + + 1 * - + col0 + CAST ( - col2 AS INTEGER ) + - col2 + + - col2 / - col2 * + col1 + - ( - col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8294
SELECT ALL + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 70 * + - 23 = NULL
----
0
skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 70 * + - 23 = NULL
----
0
query I rowsort
SELECT - 52 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----
query I rowsort
SELECT - + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 > NULL
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 37 BETWEEN + col0 + 2 AND NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8298
SELECT DISTINCT + ( ( + col1 ) ) / + col2 / - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT + ( ( + col1 ) ) / + col2 / - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
query I rowsort
SELECT - col0 * - 25 AS col0 FROM tab1 AS cor0
----
1275
2125
2275
onlyif mysql # DIV for integer division:
query II rowsort label-8300
SELECT ALL col2 DIV 14 DIV - + ( + - 73 ), - 87 DIV 87 * - + col1 * - col2 AS col0 FROM tab0
----
0
-210
0
-3807
0
-99
skipif mysql # not compatible
query II rowsort label-8300
SELECT ALL col2 / 14 / - + ( + - 73 ), - 87 / 87 * - + col1 * - col2 AS col0 FROM tab0
----
0
-210
0
-3807
0
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col0 - - col1 col1 FROM tab0
----
1
98
21
108
81
96
onlyif mysql # aggregate syntax:
query I rowsort label-8302
SELECT ALL COUNT( DISTINCT + col1 ) AS col0 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-8302
SELECT ALL COUNT ( DISTINCT + col1 ) AS col0 FROM tab0
----
3
query I rowsort
SELECT col0 * + col2 * col2 AS col0 FROM tab2
----
102400
24334
252300
query I rowsort
SELECT + ( - 47 ) AS col1 FROM tab2
----
-47
-47
-47
onlyif mysql # aggregate syntax:
query I rowsort label-8305
SELECT - MAX( col1 ) FROM tab0
----
-81
skipif mysql # not compatible
query I rowsort label-8305
SELECT - MAX ( col1 ) FROM tab0
----
-81
query II rowsort
SELECT DISTINCT col2 AS col0, - col1 * + + col0 FROM tab1
----
59
-425
68
-4277
96
-714
onlyif mysql # aggregate syntax:
query II rowsort label-8307
SELECT - COUNT( * ), 72 AS col2 FROM tab2
----
-3
72
skipif mysql # not compatible
query II rowsort label-8307
SELECT - COUNT ( * ), 72 AS col2 FROM tab2
----
-3
72
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col1 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8309
SELECT DISTINCT - ( + + ( + + col1 ) ) * CAST( NULL AS SIGNED ) + - + col2 FROM tab0 WHERE NOT + + col0 BETWEEN - col0 / + col1 / - col1 AND ( + 99 ) * - + 19
----
NULL
skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT - ( + + ( + + col1 ) ) * CAST ( NULL AS INTEGER ) + - + col2 FROM tab0 WHERE NOT + + col0 BETWEEN - col0 / + col1 / - col1 AND ( + 99 ) * - + 19
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-8310
SELECT DISTINCT 56 AS col0, 61 * + - CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
56
-5307
56
-5917
56
-915
skipif mysql # not compatible
query II rowsort label-8310
SELECT DISTINCT 56 AS col0, 61 * + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
56
-5307
56
-5917
56
-915
onlyif mysql # DIV for integer division:
query I rowsort label-8311
SELECT - col1 + col0 DIV - 44 FROM tab2
----
-52
-68
-78
skipif mysql # not compatible
query I rowsort label-8311
SELECT - col1 + col0 / - 44 FROM tab2
----
-52
-68
-78
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8312
SELECT DISTINCT 1 * 11 + + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
16
25
58
skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT 1 * 11 + + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
16
25
58
onlyif mysql # aggregate syntax:
query I rowsort label-8313
SELECT ALL MIN( - - col2 ) col2 FROM tab1 AS cor0
----
59
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8313
SELECT ALL MIN ( - - col2 ) col2 FROM tab1 AS cor0
----
59
query I rowsort
SELECT DISTINCT + 41 FROM tab1 cor0 WHERE - col2 IS NULL
----
query I rowsort
SELECT ( + + col2 ) AS col2 FROM tab0
----
10
47
99
query I rowsort
SELECT + col2 - col1 FROM tab2 WHERE NULL BETWEEN NULL AND + col0
----
query III rowsort
SELECT * FROM tab0 WHERE 20 IS NULL
----
query I rowsort
SELECT + - col0 + + 97 + - col0 AS col2 FROM tab2 AS cor0 WHERE ( - + col0 IN ( + col0 - + 17, col2 ) )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <> ( NULL )
----
query I rowsort
SELECT DISTINCT 60 * - col0 * + col0 + - - col1 FROM tab0 AS cor0
----
-13419
-454119
-564539
query I rowsort
SELECT - 27 + col0 FROM tab2
----
19
37
48
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8322
SELECT DISTINCT + 76 DIV MIN( ALL - + col0 ) * + COUNT( * ) - COUNT( * ) FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-8322
SELECT DISTINCT + 76 / MIN ( ALL - + col0 ) * + COUNT ( * ) - COUNT ( * ) FROM tab0
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + col1 col0 FROM tab2
----
-28
-37
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 44 * + + 64 col0 FROM tab2
----
143616
188672
216832
onlyif mysql # aggregate syntax:
query I rowsort label-8325
SELECT ALL + COUNT( * ) * + + 20 AS col1 FROM tab0 AS cor0
----
60
skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL + COUNT ( * ) * + + 20 AS col1 FROM tab0 AS cor0
----
60
onlyif mysql # aggregate syntax:
query I rowsort label-8326
SELECT COUNT( * ) - - 40 FROM tab1 AS cor0
----
43
skipif mysql # not compatible
query I rowsort label-8326
SELECT COUNT ( * ) - - 40 FROM tab1 AS cor0
----
43
query I rowsort
SELECT DISTINCT - col0 * - 66 AS col1 FROM tab2 AS cor0
----
3036
4224
4950
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-8328
SELECT - + CAST( - col0 AS SIGNED ) * col0 AS col0, + CAST( - - col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
225
81
7569
21
9409
1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8328
SELECT - + CAST ( - col0 AS INTEGER ) * col0 AS col0, + CAST ( - - col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
225
81
7569
21
9409
1
query II rowsort
SELECT - col2 AS col2, 33 AS col1 FROM tab0
----
-10
33
-47
33
-99
33
query I rowsort
SELECT DISTINCT - 29 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-29
query I rowsort
SELECT - 26 FROM tab1 WHERE NOT + 79 IS NULL
----
-26
-26
-26
onlyif mysql # DIV for integer division:
query I rowsort label-8332
SELECT 25 DIV col2 * 93 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8332
SELECT 25 / col2 * 93 AS col1 FROM tab1
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-8333
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8334
SELECT DISTINCT - CAST( + col0 AS SIGNED ) * + col0 + - + col0 FROM tab1 AS cor0
----
-2652
-7310
-8372
skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) * + col0 + - + col0 FROM tab1 AS cor0
----
-2652
-7310
-8372
onlyif mysql # aggregate syntax:
query I rowsort label-8335
SELECT ALL + - COUNT( * ) * COUNT( * ) - + MAX( - - 35 ) AS col1 FROM tab0 AS cor0
----
-44
skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL + - COUNT ( * ) * COUNT ( * ) - + MAX ( - - 35 ) AS col1 FROM tab0 AS cor0
----
-44
query I rowsort
SELECT ALL - - 9 AS col0 FROM tab2 AS cor0
----
9
9
9
onlyif mysql # DIV for integer division:
query II rowsort label-8337
SELECT DISTINCT - 48 DIV + 21 AS col2, 88 FROM tab2 AS cor0
----
-2
88
skipif mysql # not compatible
query II rowsort label-8337
SELECT DISTINCT - 48 / + 21 AS col2, 88 FROM tab2 AS cor0
----
-2
88
onlyif mysql # DIV for integer division:
query I rowsort label-8338
SELECT ALL + col0 * ( - col1 ) DIV + + 76 + + 74 + + col1 + - - col0 * - + ( col1 ) * col0 AS col1 FROM tab2 AS cor0 WHERE col2 NOT IN ( - + 51 )
----
-107821
-315305
-376800
skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL + col0 * ( - col1 ) / + + 76 + + 74 + + col1 + - - col0 * - + ( col1 ) * col0 AS col1 FROM tab2 AS cor0 WHERE col2 NOT IN ( - + 51 )
----
-107821
-315305
-376800
query I rowsort
SELECT ALL - 69 AS col2 FROM tab1 cor0
----
-69
-69
-69
query I rowsort
SELECT + 0 * col2 AS col1 FROM tab1
----
0
0
0
query II rowsort
SELECT DISTINCT + ( col0 ) AS col2, - 42 * - col1 FROM tab1
----
51
588
85
210
91
1974
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 92 IS NOT NULL
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-8343
SELECT CAST( - 3 AS DECIMAL ) AS col1 FROM tab1 WHERE NOT - 80 IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-8343
SELECT CAST ( - 3 AS REAL ) AS col1 FROM tab1 WHERE NOT - 80 IS NOT NULL
----
query III rowsort
SELECT * FROM tab0 WHERE + col1 - + - col2 NOT BETWEEN - 19 AND + 10 * 57 + - - col0 AND - col2 * - col2 IS NOT NULL
----
query I rowsort
SELECT ALL - 32 FROM tab0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT - col0 * 16 FROM tab1
----
-1360
-1456
-816
onlyif mysql # aggregate syntax:
query I rowsort label-8347
SELECT + MAX( col2 ) FROM tab0 AS cor0
----
99
skipif mysql # not compatible
query I rowsort label-8347
SELECT + MAX ( col2 ) FROM tab0 AS cor0
----
99
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8348
SELECT ALL CAST( NULL AS SIGNED ) / - col2 + + col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL CAST ( NULL AS INTEGER ) / - col2 + + col0 FROM tab0 cor0
----
NULL
NULL
NULL
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 39 / + 25 * col1 IS NOT NULL
----
query I rowsort
SELECT 8 * + + col0 FROM tab2 AS cor0
----
368
512
600
query I rowsort
SELECT DISTINCT - col2 * - - col0 * + + 49 + + col2 * - 55 FROM tab1 AS cor0
----
-245184
-248980
-306952
query II rowsort
SELECT ALL col2, - 81 FROM tab0 AS cor0
----
10
-81
47
-81
99
-81
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-8353
SELECT ALL col1 + - + col2 / - 20 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL col1 + - + col2 / - 20 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 75 + - col0 + + 78 * col2 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-8355
SELECT ALL - col0 + + col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
-52
-86
-92
skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL - col0 + + col0 / - col0 AS col0 FROM tab1 AS cor0
----
-52
-86
-92
onlyif mysql # aggregate syntax:
query I rowsort label-8356
SELECT ALL COUNT( - 77 ) FROM tab2 cor0
----
3
skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL COUNT ( - 77 ) FROM tab2 cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8357
SELECT DISTINCT - CAST( col0 AS SIGNED ) * + 57 + - + 73 FROM tab1 AS cor0
----
-2980
-4918
-5260
skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * + 57 + - + 73 FROM tab1 AS cor0
----
-2980
-4918
-5260
query II rowsort
SELECT DISTINCT + + col1, col1 * 42 * - col0 AS col2 FROM tab1 AS cor0
----
14
-29988
47
-179634
5
-17850
query I rowsort
SELECT DISTINCT col2 + + - col2 FROM tab0
----
0
query II rowsort
SELECT DISTINCT - 53, + col2 FROM tab2 WHERE col1 BETWEEN + col1 * + - col1 AND + col0
----
-53
58
query I rowsort
SELECT ALL - col1 * + 15 - + 61 * + col0 AS col2 FROM tab1
----
-3321
-5260
-6256
query I rowsort
SELECT + ( - 26 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39
onlyif mysql # aggregate syntax:
query I rowsort label-8363
SELECT + SUM( ALL - 54 ) + 25 AS col1 FROM tab0
----
-137
skipif mysql # not compatible
query I rowsort label-8363
SELECT + SUM ( ALL - 54 ) + 25 AS col1 FROM tab0
----
-137
query I rowsort
SELECT - col0 + 12 + - + col0 + 54 * + col2 * + col0 FROM tab1
----
264294
270652
333982
query III rowsort
SELECT * FROM tab2 WHERE 20 NOT IN ( + 51 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 + - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT + col1 * - ( + col0 ) FROM tab2
----
-2346
-4928
-5025
onlyif mysql # aggregate syntax:
query I rowsort label-8368
SELECT DISTINCT 15 * - - COUNT( * ) FROM tab1
----
45
skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT 15 * - - COUNT ( * ) FROM tab1
----
45
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8369
SELECT + SUM( DISTINCT - col1 ) DIV ( COUNT( * ) ) col2 FROM tab0
----
-34
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8369
SELECT + SUM ( DISTINCT - col1 ) / ( COUNT ( * ) ) col2 FROM tab0
----
-34
onlyif mysql # aggregate syntax:
query I rowsort label-8370
SELECT DISTINCT + MIN( ALL - + col1 ) AS col0 FROM tab1 AS cor0
----
-47
skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT + MIN ( ALL - + col1 ) AS col0 FROM tab1 AS cor0
----
-47
query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-15
-87
-97
query I rowsort
SELECT DISTINCT + col0 / col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 AND + 70 * + col1 / - col0 + - + col0 / + + col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-8374
SELECT ALL + ( COUNT( * ) ) * + COUNT( DISTINCT - col2 ) FROM tab2 cor0
----
9
skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL + ( COUNT ( * ) ) * + COUNT ( DISTINCT - col2 ) FROM tab2 cor0
----
9
query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE col1 * col2 * - - col1 IS NOT NULL
----
-14
-47
-5
query II rowsort
SELECT DISTINCT + col0 AS col0, - 64 * col1 * - 37 AS col0 FROM tab1 AS cor0
----
51
33152
85
11840
91
111296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 60 col0, + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8378
SELECT * FROM tab2 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-8378
SELECT * FROM tab2 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT 47 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
47
47
47
onlyif mysql # aggregate syntax:
query I rowsort label-8380
SELECT - - COUNT( * ) * + + COUNT( * ) FROM tab1 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-8380
SELECT - - COUNT ( * ) * + + COUNT ( * ) FROM tab1 AS cor0
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 col0 FROM tab2
----
53
53
53
onlyif mysql # aggregate syntax:
query I rowsort label-8382
SELECT + MIN( ALL - + 92 ) * + 68 AS col2 FROM tab2
----
-6256
skipif mysql # not compatible
query I rowsort label-8382
SELECT + MIN ( ALL - + 92 ) * + 68 AS col2 FROM tab2
----
-6256
query II rowsort
SELECT - col2, + col2 - col2 AS col2 FROM tab1
----
-59
0
-68
0
-96
0
query I rowsort
SELECT ALL 28 * col1 AS col2 FROM tab0
----
2268
28
588
onlyif mysql # aggregate syntax:
query I rowsort label-8385
SELECT ALL + SUM( - 35 ) FROM tab1
----
-105
skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL + SUM ( - 35 ) FROM tab1
----
-105
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 col1 FROM tab0
----
-77
2
32
query II rowsort
SELECT DISTINCT col0, + col2 FROM tab0
----
15
47
87
10
97
99
onlyif mysql # aggregate syntax:
query I rowsort label-8388
SELECT - - COUNT( - - col0 ) AS col0 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-8388
SELECT - - COUNT ( - - col0 ) AS col0 FROM tab2 AS cor0
----
3
onlyif mysql # DIV for integer division:
query I rowsort label-8389
SELECT + col1 DIV - ( - 39 ) FROM tab0 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-8389
SELECT + col1 / - ( - 39 ) FROM tab0 AS cor0
----
0
0
2
query I rowsort
SELECT ALL + 38 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-8391
SELECT - CAST( NULL AS SIGNED ) * + 87 AS col2, + COUNT( * ) FROM tab2
----
NULL
3
skipif mysql # not compatible
query II rowsort label-8391
SELECT - CAST ( NULL AS INTEGER ) * + 87 AS col2, + COUNT ( * ) FROM tab2
----
NULL
3
onlyif mysql # aggregate syntax:
query I rowsort label-8392
SELECT ALL COUNT( * ) + 23 + + ( + COUNT( ALL - - 99 ) ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NOT ( NULL < NULL )
----
23
skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL COUNT ( * ) + 23 + + ( + COUNT ( ALL - - 99 ) ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NOT ( NULL < NULL )
----
23
query I rowsort
SELECT + col2 * + 24 FROM tab0
----
1128
2376
240
query I rowsort
SELECT - 54 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342
onlyif mysql # CAST syntax: SIGNED type:
query IIIIII rowsort label-8395
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN NULL AND CAST( - 53 AS SIGNED )
----
skipif mysql # not compatible
query IIIIII rowsort label-8395
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN NULL AND CAST ( - 53 AS INTEGER )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-8
onlyif mysql # DIV for integer division:
query I rowsort label-8397
SELECT ALL - col2 DIV - 16 + col0 AS col2 FROM tab2 cor0
----
47
66
78
skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL - col2 / - 16 + col0 AS col2 FROM tab2 cor0
----
47
66
78
query I rowsort
SELECT + col1 + + - col2 + - ( + 60 ) AS col0 FROM tab1 AS cor0
----
-114
-142
-81
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8399
SELECT + ( COUNT( * ) ) * - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 WHERE CAST( col0 AS SIGNED ) IS NULL
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8399
SELECT + ( COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 WHERE CAST ( col0 AS INTEGER ) IS NULL
----
NULL
query I rowsort
SELECT ( 90 ) * + - 21 + + - col0 - ( + col0 ) AS col0 FROM tab2 cor0
----
-1982
-2018
-2040
query I rowsort
SELECT + col0 * - 34 + col1 FROM tab2 AS cor0
----
-1513
-2099
-2483
onlyif mysql # aggregate syntax:
query I rowsort label-8402
SELECT DISTINCT + 6 + SUM( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-189
skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT + 6 + SUM ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-189
query I rowsort
SELECT + ( - - 40 ) + + - col1 + + col0 FROM tab0 AS cor0
----
-26
106
136
query I rowsort
SELECT DISTINCT + + 20 FROM tab1 AS cor0 WHERE NOT - ( - col1 ) IS NULL
----
20
query I rowsort
SELECT col1 * + + col0 + + col0 + - 72 * - col2 FROM tab1 AS cor0
----
4758
7677
9264
query I rowsort
SELECT + col1 + - 75 FROM tab0
----
-54
-74
6
onlyif mysql # DIV for integer division:
query I rowsort label-8407
SELECT DISTINCT + col1 - + 64 DIV - col2 AS col0 FROM tab0
----
1
27
82
skipif mysql # not compatible
query I rowsort label-8407
SELECT DISTINCT + col1 - + 64 / - col2 AS col0 FROM tab0
----
1
27
82
query I rowsort
SELECT 4 AS col0 FROM tab0 WHERE NULL > 66 / + ( + col2 )
----
query I rowsort
SELECT ALL ( - 39 ) + + 45 AS col1 FROM tab1 WHERE NOT - + 65 * + + col2 IS NULL
----
6
6
6
onlyif mysql # DIV for integer division:
query I rowsort label-8410
SELECT - 19 DIV + col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8410
SELECT - 19 / + col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + ( - col2 ) + col2 FROM tab0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-8412
SELECT ALL ( + COUNT( * ) ) AS col0 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL ( + COUNT ( * ) ) AS col0 FROM tab2
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-8413
SELECT + COUNT( * ) FROM tab2 WHERE NOT NULL >= - col1
----
0
skipif mysql # not compatible
query I rowsort label-8413
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL >= - col1
----
0
query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 NOT IN ( + col1, - 52 - - - col0, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8415
SELECT DISTINCT ( CAST( + 92 AS SIGNED ) ) FROM tab1
----
92
skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT ( CAST ( + 92 AS INTEGER ) ) FROM tab1
----
92
onlyif mysql # aggregate syntax:
query I rowsort label-8416
SELECT DISTINCT MIN( + col2 ) FROM tab0
----
10
skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT MIN ( + col2 ) FROM tab0
----
10
query III rowsort
SELECT * FROM tab1 WHERE NOT + + 37 NOT BETWEEN + col2 * + + 75 + + col1 AND - col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-8418
SELECT COUNT( * ) * MIN( DISTINCT - col0 ) FROM tab2 AS cor0
----
-225
skipif mysql # not compatible
query I rowsort label-8418
SELECT COUNT ( * ) * MIN ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-225
query II rowsort
SELECT + - col0, col2 AS col1 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8420
SELECT COUNT( - CAST( NULL AS SIGNED ) ) * 5 * COUNT( * ) FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-8420
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) * 5 * COUNT ( * ) FROM tab0 cor0
----
0
query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 10 <= + 26
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 18 + - 25 NOT IN ( - + col1 - + 14, + col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8423
SELECT ALL MIN( DISTINCT - 6 ) FROM tab2
----
-6
skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL MIN ( DISTINCT - 6 ) FROM tab2
----
-6
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8424
SELECT + 60 DIV - MAX( - - col0 ) FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-8424
SELECT + 60 / - MAX ( - - col0 ) FROM tab1
----
0
query I rowsort
SELECT DISTINCT + col2 * + 20 FROM tab1 AS cor0
----
1180
1360
1920
query I rowsort
SELECT ALL - + ( + - ( col1 ) ) FROM tab0 AS cor0
----
1
21
81
query I rowsort
SELECT ALL col1 + 93 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
144
160
170
query I rowsort
SELECT + 63 + - col1 + col0 AS col1 FROM tab0 AS cor0
----
-3
129
159
query I rowsort
SELECT ALL + 94 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL + 39 + + - col2 FROM tab1 cor0
----
-20
-29
-57
onlyif mysql # aggregate syntax:
query I rowsort label-8431
SELECT DISTINCT COUNT( * ) + + COUNT( * ) col1 FROM tab0
----
6
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8431
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) col1 FROM tab0
----
6
query I rowsort
SELECT ALL - 19 / + col0 + + ( + col1 ) AS col2 FROM tab2 WHERE NOT - col1 * 25 < - col0
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NOT 96 <= NULL ) )
----
onlyif mysql # DIV for integer division:
query I rowsort label-8434
SELECT 75 * + + col1 * col0 * + + col0 DIV + - col0 FROM tab1
----
-31875
-320775
-53550
skipif mysql # not compatible
query I rowsort label-8434
SELECT 75 * + + col1 * col0 * + + col0 / + - col0 FROM tab1
----
-31875
-320775
-53550
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8435
SELECT MAX( - CAST( NULL AS SIGNED ) ) * + - COUNT( * ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8435
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) AS col2 FROM tab1
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-8436
SELECT ALL ( + col1 ) DIV 12 AS col0 FROM tab0
----
0
1
6
skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL ( + col1 ) / 12 AS col0 FROM tab0
----
0
1
6
onlyif mysql # aggregate syntax:
query II rowsort label-8437
SELECT - 96 * + 18, + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-1728
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8437
SELECT - 96 * + 18, + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-1728
0
query I rowsort
SELECT - 70 + col1 * + + ( - - col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
2276
4858
4955
onlyif mysql # aggregate syntax:
query I rowsort label-8439
SELECT - ( + - 97 ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
100
skipif mysql # not compatible
query I rowsort label-8439
SELECT - ( + - 97 ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
100
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8440
SELECT ALL 19 + + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
106
116
34
skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL 19 + + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
106
116
34
query I rowsort
SELECT ALL col1 * - col1 + - + col1 FROM tab2
----
-2652
-4556
-6006
query II rowsort
SELECT DISTINCT 15 AS col1, - 52 FROM tab1
----
15
-52
query I rowsort
SELECT DISTINCT 16 + col2 + col1 AS col1 FROM tab1
----
126
131
80
onlyif mysql # aggregate syntax:
query I rowsort label-8444
SELECT DISTINCT SUM( + col0 ) * + - COUNT( * ) FROM tab2 AS cor0
----
-555
skipif mysql # not compatible
query I rowsort label-8444
SELECT DISTINCT SUM ( + col0 ) * + - COUNT ( * ) FROM tab2 AS cor0
----
-555
query II rowsort
SELECT ALL - ( - 91 ), - col0 * + - ( + col0 ) AS col0 FROM tab0 AS cor0
----
91
225
91
7569
91
9409
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= 35
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - 2 col1 FROM tab2 AS cor0
----
49
65
75
query II rowsort
SELECT ALL + 71 AS col2, - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 * + + ( + - 91 ) * - 5 IS NULL
----
71
-15
71
-87
71
-97
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8449
SELECT COUNT( - + ( + col0 ) ) DIV - 74 AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8449
SELECT COUNT ( - + ( + col0 ) ) / - 74 AS col2 FROM tab1 AS cor0
----
0
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 50 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT DISTINCT col1 * + - 87 AS col1, - col1 + col1 FROM tab0
----
-1827
0
-7047
0
-87
0
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL + ( + + col1 ) * - + 59 FROM tab2
----
-3009
-3953
-4543
onlyif mysql # DIV for integer division:
query II rowsort label-8454
SELECT ALL + col0 DIV 64 AS col1, + col0 FROM tab1
----
0
51
1
85
1
91
skipif mysql # not compatible
query II rowsort label-8454
SELECT ALL + col0 / 64 AS col1, + col0 FROM tab1
----
0
51
1
85
1
91
query I rowsort
SELECT - 9 AS col2 FROM tab2
----
-9
-9
-9
onlyif mysql # aggregate syntax:
query I rowsort label-8456
SELECT + MAX( ALL 69 ) AS col1 FROM tab1
----
69
skipif mysql # not compatible
query I rowsort label-8456
SELECT + MAX ( ALL 69 ) AS col1 FROM tab1
----
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col0 FROM tab0
----
-26
-26
-26
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8458
SELECT DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT 9 * col0 AS col0 FROM tab0
----
135
783
873
query II rowsort
SELECT ALL + - col2, col2 AS col0 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58
onlyif mysql # aggregate syntax:
query I rowsort label-8461
SELECT - - MAX( DISTINCT col1 ) AS col2 FROM tab2 cor0
----
77
skipif mysql # not compatible
query I rowsort label-8461
SELECT - - MAX ( DISTINCT col1 ) AS col2 FROM tab2 cor0
----
77
query I rowsort
SELECT DISTINCT - - ( + col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96
onlyif mysql # aggregate syntax:
query I rowsort label-8463
SELECT COUNT( - + 61 ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-8463
SELECT COUNT ( - + 61 ) FROM tab1 AS cor0
----
3
query I rowsort
SELECT ALL - 78 + 50 + 85 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col1 AND + col2
----
onlyif mysql # aggregate syntax:
query II rowsort label-8465
SELECT ALL 31 AS col1, - COUNT( + + col0 ) AS col1 FROM tab0 cor0
----
31
-3
skipif mysql # not compatible
query II rowsort label-8465
SELECT ALL 31 AS col1, - COUNT ( + + col0 ) AS col1 FROM tab0 cor0
----
31
-3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8466
SELECT ALL COUNT( * ) + CAST( + COUNT( * ) AS SIGNED ) + + - 13 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-10
skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL COUNT ( * ) + CAST ( + COUNT ( * ) AS INTEGER ) + + - 13 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-10
onlyif mysql # aggregate syntax:
query I rowsort label-8467
SELECT + 2 + - + COUNT( * ) * 54 FROM tab1
----
-160
skipif mysql # not compatible
query I rowsort label-8467
SELECT + 2 + - + COUNT ( * ) * 54 FROM tab1
----
-160
query I rowsort
SELECT ALL + ( + - col0 ) + - col0 FROM tab1
----
-102
-170
-182
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8469
SELECT ( + 59 ) + CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
-26
-32
8
skipif mysql # not compatible
query I rowsort label-8469
SELECT ( + 59 ) + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
-26
-32
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + col0 ), - 24 col2 FROM tab2
----
46
-24
64
-24
75
-24
query I rowsort
SELECT col1 + - 56 - - + col2 AS col0 FROM tab1
----
54
59
8
query I rowsort
SELECT DISTINCT - ( - col0 ) + - col0 FROM tab0
----
0
query III rowsort
SELECT * FROM tab0 WHERE 21 + + + col0 IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - 99 col0 FROM tab1 cor0
----
1386
4653
495
query I rowsort
SELECT - col2 + - 83 FROM tab2 AS cor0
----
-106
-123
-141
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8476
SELECT ALL + + col1 * + col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL + + col1 * + col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query II rowsort
SELECT + + ( - 5 ) * - - col0 AS col2, + col2 AS col1 FROM tab2 AS cor0
----
-230
23
-320
40
-375
58
query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-8479
SELECT DISTINCT COUNT( * ) * MAX( - - ( - 1 ) ) AS col1 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT COUNT ( * ) * MAX ( - - ( - 1 ) ) AS col1 FROM tab2 AS cor0
----
-3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8480
SELECT DISTINCT - COUNT( ALL + CAST( col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT - COUNT ( ALL + CAST ( col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-3
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 <= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 79 col1, col1 * - + 44 FROM tab0 AS cor0
----
-79
-3564
-79
-44
-79
-924
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + col1 * - col2 / + col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-8484
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT ( NOT ( + 76 ) BETWEEN - 74 AND ( NULL ) )
----
0
skipif mysql # not compatible
query I rowsort label-8484
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( NOT ( + 76 ) BETWEEN - 74 AND ( NULL ) )
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8485
SELECT 61 * - + CAST( - 80 AS SIGNED ) AS col2 FROM tab0
----
4880
4880
4880
skipif mysql # not compatible
query I rowsort label-8485
SELECT 61 * - + CAST ( - 80 AS INTEGER ) AS col2 FROM tab0
----
4880
4880
4880
query II rowsort
SELECT DISTINCT col0 AS col1, col2 - 89 AS col1 FROM tab0
----
15
-42
87
-79
97
10
query III rowsort
SELECT ALL * FROM tab0 WHERE - + col2 = - 38 * - + col1 + + col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-8488
SELECT ALL + SUM( ALL - + 29 ) FROM tab0
----
-87
skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL + SUM ( ALL - + 29 ) FROM tab0
----
-87
query II rowsort
SELECT + col1 AS col1, col2 AS col0 FROM tab1 AS cor0
----
14
96
47
68
5
59
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 - - 14 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2, + 16 + col2 col2 FROM tab2 AS cor0
----
23
39
40
56
58
74
query I rowsort
SELECT + 79 * - + 72 * + - 72 AS col1 FROM tab2 cor0
----
409536
409536
409536
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 <= NULL
----
query II rowsort
SELECT - 49 + col2 AS col1, 0 FROM tab0 AS cor0
----
-2
0
-39
0
50
0
onlyif mysql # DIV for integer division:
query I rowsort label-8495
SELECT ALL + col0 * + col1 * - 92 + - - ( + col2 ) DIV + - col1 FROM tab0 AS cor0
----
-111780
-168084
-9023
skipif mysql # not compatible
query I rowsort label-8495
SELECT ALL + col0 * + col1 * - 92 + - - ( + col2 ) / + - col1 FROM tab0 AS cor0
----
-111780
-168084
-9023
onlyif mysql # aggregate syntax:
query I rowsort label-8496
SELECT COUNT( DISTINCT + col1 ) + 1 col1 FROM tab1 AS cor0
----
4
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8496
SELECT COUNT ( DISTINCT + col1 ) + 1 col1 FROM tab1 AS cor0
----
4
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - col0 IS NOT NULL )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8498
SELECT + + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8498
SELECT + + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-23
-40
-58
query I rowsort
SELECT DISTINCT + col2 + + col2 * + ( ( + col0 ) ) * - 21 + + col0 * - col0 * + col2 * col0 FROM tab2
----
-10539480
-2260923
-24560042
query I rowsort
SELECT ALL 77 FROM tab1 WHERE NOT NULL NOT BETWEEN col2 * - + 11 + ( - col1 ) / + ( col2 ) + col1 AND NULL
----
query II rowsort
SELECT ALL 31, col1 FROM tab0
----
31
1
31
21
31
81
query II rowsort
SELECT - col2, - 79 AS col0 FROM tab0
----
-10
-79
-47
-79
-99
-79
query III rowsort
SELECT ALL * FROM tab0 WHERE + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # DIV for integer division:
query I rowsort label-8505
SELECT + col2 DIV col0 * - + col1 - col1 FROM tab1
----
-28
-47
-5
skipif mysql # not compatible
query I rowsort label-8505
SELECT + col2 / col0 * - + col1 - col1 FROM tab1
----
-28
-47
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 col2 FROM tab2
----
21
onlyif mysql # aggregate syntax:
query I rowsort label-8507
SELECT MAX( 69 ) FROM tab1, tab2 AS cor0
----
69
skipif mysql # not compatible
query I rowsort label-8507
SELECT MAX ( 69 ) FROM tab1, tab2 AS cor0
----
69
query I rowsort
SELECT - ( - + col2 ) FROM tab2
----
23
40
58
onlyif mysql # aggregate syntax:
query I rowsort label-8509
SELECT DISTINCT COUNT( DISTINCT ( + col1 ) ) * COUNT( * ) - + 19 FROM tab1 WHERE NULL < + - 39
----
-19
skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT COUNT ( DISTINCT ( + col1 ) ) * COUNT ( * ) - + 19 FROM tab1 WHERE NULL < + - 39
----
-19
onlyif mysql # aggregate syntax:
query I rowsort label-8510
SELECT ALL - - SUM( + col1 ) FROM tab2 AS cor0
----
195
skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL - - SUM ( + col1 ) FROM tab2 AS cor0
----
195
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8511
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 * 17 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col2 * 17 AS col2 FROM tab1 AS cor0
----
NULL
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 54 > col1 / - 86
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 32 IS NOT NULL
----
query I rowsort
SELECT AVG ( ALL 31 ) FROM tab2 AS cor0 WHERE NOT - col0 / col1 * - 61 IS NOT NULL
----
NULL
query I rowsort
SELECT ALL - ( 66 ) * col2 AS col0 FROM tab0 AS cor0
----
-3102
-6534
-660
onlyif mysql # DIV for integer division:
query I rowsort label-8516
SELECT DISTINCT 87 DIV - col0 AS col2 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT 87 / - col0 AS col2 FROM tab2 AS cor0
----
-1
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8517
SELECT + COUNT( * ) DIV 44 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-8517
SELECT + COUNT ( * ) / 44 FROM tab1
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-8518
SELECT 33 DIV + col2 FROM tab0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-8518
SELECT 33 / + col2 FROM tab0
----
0
0
3
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT - ( + - col1 ) FROM tab2
----
51
67
77
onlyif mysql # aggregate syntax:
query I rowsort label-8521
SELECT DISTINCT MAX( col0 ) AS col2 FROM tab0
----
97
skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT MAX ( col0 ) AS col2 FROM tab0
----
97
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 21 * + - 0 / + col1 = - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # DIV for integer division:
query I rowsort label-8523
SELECT - col0 DIV + 95 * - col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8523
SELECT - col0 / + 95 * - col1 FROM tab1
----
0
0
0
query I rowsort
SELECT - 21 AS col2 FROM tab0
----
-21
-21
-21
query II rowsort
SELECT 85 AS col0, col0 AS col1 FROM tab2
----
85
46
85
64
85
75
onlyif mysql # aggregate syntax:
query I rowsort label-8526
SELECT ALL SUM( ( col0 ) ) AS col0 FROM tab2
----
185
skipif mysql # not compatible
query I rowsort label-8526
SELECT ALL SUM ( ( col0 ) ) AS col0 FROM tab2
----
185
onlyif mysql # aggregate syntax:
query I rowsort label-8527
SELECT MAX( DISTINCT - + col1 ) AS col0 FROM tab2
----
-51
skipif mysql # not compatible
query I rowsort label-8527
SELECT MAX ( DISTINCT - + col1 ) AS col0 FROM tab2
----
-51
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT + 75 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND - col2 * + 40
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT ALL - col0, col1 FROM tab0 AS cor0 WHERE + col2 NOT IN ( + + 76, + col0 )
----
-15
81
-87
21
-97
1
onlyif mysql # aggregate syntax:
query I rowsort label-8532
SELECT ALL COUNT( * ) * - 32 * - 32 FROM tab0 WHERE NOT - + 39 * + + col2 + - col1 BETWEEN NULL AND + 25
----
0
skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL COUNT ( * ) * - 32 * - 32 FROM tab0 WHERE NOT - + 39 * + + col2 + - col1 BETWEEN NULL AND + 25
----
0
query I rowsort
SELECT - col2 * col2 - - - 88 FROM tab2 WHERE + - 69 + + + col1 * + col2 - - col1 BETWEEN + 68 * - col1 AND + col0
----
query I rowsort
SELECT DISTINCT + 94 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
94
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8535
SELECT + - ( - col2 ) * + CAST( 16 AS SIGNED ) FROM tab1 AS cor0 WHERE 54 * + col2 = - 91
----
skipif mysql # not compatible
query I rowsort label-8535
SELECT + - ( - col2 ) * + CAST ( 16 AS INTEGER ) FROM tab1 AS cor0 WHERE 54 * + col2 = - 91
----
query I rowsort
SELECT DISTINCT 98 + - col1 AS col2 FROM tab0 AS cor0
----
17
77
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - 7 + - 99 col0 FROM tab2 AS cor0
----
-31
-42
-60
query I rowsort
SELECT ALL - + 98 + + 92 AS col1 FROM tab2 AS cor0
----
-6
-6
-6
query I rowsort
SELECT + + 48 + - - col2 + col0 FROM tab1 AS cor0
----
192
195
207
query I rowsort
SELECT DISTINCT + ( + col2 ) + - 9 AS col0 FROM tab1
----
50
59
87
query I rowsort
SELECT ALL 82 + 46 * col1 FROM tab0
----
1048
128
3808
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8542
SELECT - 59 * - col0 + - CAST( NULL AS SIGNED ) * + - col0 * + - col1 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8542
SELECT - 59 * - col0 + - CAST ( NULL AS INTEGER ) * + - col0 * + - col1 AS col2 FROM tab0
----
NULL
NULL
NULL
query III rowsort
SELECT ALL * FROM tab2 WHERE + 99 <= col1
----
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-8544
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) < col2 + + - 48 + - col0
----
skipif mysql # not compatible
query III rowsort label-8544
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) < col2 + + - 48 + - col0
----
query I rowsort
SELECT + - col1 AS col1 FROM tab1 AS cor0 WHERE - 72 IS NOT NULL
----
-14
-47
-5
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + + 79 / - 47 * col0 - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT col0 - - ( + col2 ) * + ( + col1 ) FROM tab1 cor0
----
1395
3287
380
query I rowsort
SELECT - ( + + col0 ) - + + col1 FROM tab2 AS cor0
----
-141
-142
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col1 FROM tab2
----
-89
-89
-89
query I rowsort
SELECT ALL + + 89 AS col2 FROM tab1 AS cor0
----
89
89
89
onlyif mysql # aggregate syntax:
query I rowsort label-8551
SELECT DISTINCT + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-8551
SELECT DISTINCT + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3
query II rowsort
SELECT DISTINCT col2, 11 AS col1 FROM tab0 AS cor0
----
10
11
47
11
99
11
onlyif mysql # aggregate syntax:
query I rowsort label-8553
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
query I rowsort
SELECT ALL - ( + ( + col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58
onlyif mysql # aggregate syntax:
query I rowsort label-8555
SELECT DISTINCT + COUNT( * ) * - - ( 25 ) AS col0 FROM tab2 AS cor0
----
75
skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT + COUNT ( * ) * - - ( 25 ) AS col0 FROM tab2 AS cor0
----
75
onlyif mysql # aggregate syntax:
query I rowsort label-8556
SELECT + + MIN( ALL - + col2 ) AS col2 FROM tab2 AS cor0
----
-58
skipif mysql # not compatible
query I rowsort label-8556
SELECT + + MIN ( ALL - + col2 ) AS col2 FROM tab2 AS cor0
----
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 AS col2, - col0 col0 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97
query I rowsort
SELECT DISTINCT + ( + 63 ) FROM tab2
----
63
query III rowsort
SELECT ALL * FROM tab0 WHERE - 38 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8560
SELECT ALL + ( + COUNT( * ) ) AS col1 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL + ( + COUNT ( * ) ) AS col1 FROM tab1
----
3
query I rowsort
SELECT - 6 * 32 FROM tab0
----
-192
-192
-192
query II rowsort
SELECT + col2 * - col0, - ( + col0 ) AS col1 FROM tab1
----
-4896
-51
-5015
-85
-6188
-91
query II rowsort
SELECT ALL 21 * 22, col2 FROM tab2
----
462
23
462
40
462
58
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT + - 24 AS col0 FROM tab1 AS cor0
----
-24
-24
-24
onlyif mysql # aggregate syntax:
query I rowsort label-8566
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9
skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9
query I rowsort
SELECT ALL - col2 + + col0 + + col0 AS col2 FROM tab2
----
69
88
92
query I rowsort
SELECT 37 + col0 + + + col0 FROM tab0
----
211
231
67
query I rowsort
SELECT + ( - - col1 ) + - + col1 FROM tab1
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-8570
SELECT ALL + - 1 * 78 + + COUNT( * ) FROM tab0 AS cor0
----
-75
skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL + - 1 * 78 + + COUNT ( * ) FROM tab0 AS cor0
----
-75
query I rowsort
SELECT ALL - - 14 AS col0 FROM tab2 AS cor0
----
14
14
14
query I rowsort
SELECT ALL + ( ( - 15 ) ) FROM tab1 AS cor0
----
-15
-15
-15
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8573
SELECT 9 DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-8573
SELECT 9 / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-8574
SELECT - COUNT( * ) * + - COUNT( * ) col1 FROM tab2 cor0
----
9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8574
SELECT - COUNT ( * ) * + - COUNT ( * ) col1 FROM tab2 cor0
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-8575
SELECT ALL - - COUNT( * ) AS col2 FROM tab1 WHERE NULL <= - + col0
----
0
skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL - - COUNT ( * ) AS col2 FROM tab1 WHERE NULL <= - + col0
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8576
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE - - 12 <> NULL
----
skipif mysql # not compatible
query I rowsort label-8576
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE - - 12 <> NULL
----
query I rowsort
SELECT DISTINCT - ( - 0 ) - col1 + col0 AS col1 FROM tab0
----
-66
66
96
query II rowsort
SELECT + col1 - + - col0, + col2 AS col0 FROM tab0
----
108
10
96
47
98
99
query I rowsort
SELECT - col2 - - 37 AS col1 FROM tab0
----
-10
-62
27
onlyif mysql # aggregate syntax:
query I rowsort label-8580
SELECT - ( 34 ) - + COUNT( * ) FROM tab1
----
-37
skipif mysql # not compatible
query I rowsort label-8580
SELECT - ( 34 ) - + COUNT ( * ) FROM tab1
----
-37
query I rowsort
SELECT 34 + + col0 FROM tab0
----
121
131
49
onlyif mysql # aggregate syntax:
query I rowsort label-8582
SELECT + 72 + + ( + ( MIN( col0 ) ) ) AS col2 FROM tab1
----
123
skipif mysql # not compatible
query I rowsort label-8582
SELECT + 72 + + ( + ( MIN ( col0 ) ) ) AS col2 FROM tab1
----
123
onlyif mysql # aggregate syntax:
query I rowsort label-8583
SELECT ALL + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 * + 55 * + col0 - - 4 + + + col0 IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 * + 55 * + col0 - - 4 + + + col0 IS NULL
----
3
query II rowsort
SELECT DISTINCT + - col1 - + col2 AS col2, + 87 FROM tab1 AS cor0
----
-110
87
-115
87
-64
87
query II rowsort
SELECT ALL - col1, col1 AS col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81
query I rowsort
SELECT ALL + 25 - + + col2 * + + 6 AS col0 FROM tab0 AS cor0
----
-257
-35
-569
onlyif mysql # aggregate syntax:
query I rowsort label-8587
SELECT DISTINCT + COUNT( - - ( - + col2 ) ) col2 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8587
SELECT DISTINCT + COUNT ( - - ( - + col2 ) ) col2 FROM tab2 AS cor0
----
3
query I rowsort
SELECT col2 * 2 * - ( - col1 ) FROM tab1 AS cor0
----
2688
590
6392
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-8590
SELECT + + MAX( - 64 ) * - 50 AS col2 FROM tab0 WHERE NOT NULL IN ( + col1 + + col0, - 61, col1, - - col1 + + col0 )
----
NULL
skipif mysql # not compatible
query I rowsort label-8590
SELECT + + MAX ( - 64 ) * - 50 AS col2 FROM tab0 WHERE NOT NULL IN ( + col1 + + col0, - 61, col1, - - col1 + + col0 )
----
NULL
query I rowsort
SELECT DISTINCT + + ( - + 89 ) AS col2 FROM tab2 AS cor0
----
-89
query I rowsort
SELECT ALL + ( - - col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75
onlyif mysql # aggregate syntax:
query I rowsort label-8593
SELECT COUNT( * ) - + - COUNT( * ) FROM tab2 cor0 WHERE NOT - col1 + 50 IS NULL
----
6
skipif mysql # not compatible
query I rowsort label-8593
SELECT COUNT ( * ) - + - COUNT ( * ) FROM tab2 cor0 WHERE NOT - col1 + 50 IS NULL
----
6
onlyif mysql # aggregate syntax:
query I rowsort label-8594
SELECT ALL COUNT( DISTINCT + + col1 ) AS col1 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL COUNT ( DISTINCT + + col1 ) AS col1 FROM tab2 AS cor0
----
3
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 87 + - + col0 <> - - 47
----
onlyif mysql # aggregate syntax:
query I rowsort label-8596
SELECT ALL COUNT( ALL + 39 ) FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL COUNT ( ALL + 39 ) FROM tab1
----
3
query I rowsort
SELECT 17 * + 49 AS col0 FROM tab1
----
833
833
833
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query I rowsort label-8598
SELECT + CAST( - COUNT( DISTINCT + 64 ) AS SIGNED ) DIV + + COUNT( * ) * - 4 * + 19 AS col0 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-8598
SELECT + CAST ( - COUNT ( DISTINCT + 64 ) AS INTEGER ) / + + COUNT ( * ) * - 4 * + 19 AS col0 FROM tab1
----
0
query I rowsort
SELECT 15 + col0 FROM tab1 WHERE NOT - - col2 < NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8600
SELECT COUNT( * ) * + + 0 * + 56 AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-8600
SELECT COUNT ( * ) * + + 0 * + 56 AS col0 FROM tab0
----
0
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8601
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * - ( CAST( - + AVG ( col2 ) AS SIGNED ) ) FROM tab2
----
360
skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * - ( CAST ( - + AVG ( col2 ) AS INTEGER ) ) FROM tab2
----
360
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8602
SELECT ALL - 16 * + MAX( ALL + 33 ) * - - CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
1584
skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL - 16 * + MAX ( ALL + 33 ) * - - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
1584
query I rowsort
SELECT col0 + - ( - col2 ) + + + col2 * 99 FROM tab0
----
1087
4715
9997
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col1 FROM tab1
----
88
query I rowsort
SELECT ALL col1 * - + col1 FROM tab1
----
-196
-2209
-25
onlyif mysql # DIV for integer division:
query I rowsort label-8606
SELECT 77 + + col2 + - col2 DIV + + col2 + + + ( + + col2 ) - + - col2 + + 34 * col0 DIV - 5 AS col0 FROM tab0 AS cor0
----
-286
-485
115
skipif mysql # not compatible
query I rowsort label-8606
SELECT 77 + + col2 + - col2 / + + col2 + + + ( + + col2 ) - + - col2 + + 34 * col0 / - 5 AS col0 FROM tab0 AS cor0
----
-286
-485
115
query I rowsort
SELECT DISTINCT 12 + - 49 FROM tab1 AS cor0
----
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 18, + col0 col0 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----
query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT + 49 IS NULL
----
15
87
97
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8610
SELECT ALL - 1 * + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL - 1 * + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 90 - col0 FROM tab0
----
-105
-177
-187
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8612
SELECT ALL col0 + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8612
SELECT ALL col0 + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-8613
SELECT 22 DIV col2 FROM tab0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-8613
SELECT 22 / col2 FROM tab0
----
0
0
2
onlyif mysql # aggregate syntax:
query I rowsort label-8614
SELECT ALL + 16 - COUNT( * ) * 88 FROM tab1
----
-248
skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL + 16 - COUNT ( * ) * 88 FROM tab1
----
-248
onlyif mysql # aggregate syntax:
query I rowsort label-8615
SELECT - 79 - - COUNT( * ) AS col1 FROM tab2
----
-76
skipif mysql # not compatible
query I rowsort label-8615
SELECT - 79 - - COUNT ( * ) AS col1 FROM tab2
----
-76
onlyif mysql # aggregate syntax:
query I rowsort label-8616
SELECT ALL - COUNT( + 40 ) AS col1 FROM tab1 WHERE NULL BETWEEN ( ( + col2 ) ) AND - col1
----
0
skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL - COUNT ( + 40 ) AS col1 FROM tab1 WHERE NULL BETWEEN ( ( + col2 ) ) AND - col1
----
0
query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8618
SELECT ALL - 50 + COUNT( * ) AS col1 FROM tab1
----
-47
skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL - 50 + COUNT ( * ) AS col1 FROM tab1
----
-47
onlyif mysql # aggregate syntax:
query I rowsort label-8619
SELECT DISTINCT + 24 - 81 * - COUNT( * ) AS col1 FROM tab0
----
267
skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT + 24 - 81 * - COUNT ( * ) AS col1 FROM tab0
----
267
query III rowsort
SELECT * FROM tab0 WHERE NOT - 77 IS NOT NULL
----
query I rowsort
SELECT 96 * - col2 AS col2 FROM tab0
----
-4512
-9504
-960
query I rowsort
SELECT ALL + 17 AS col0 FROM tab2 WHERE NULL NOT IN ( 9 )
----
query I rowsort
SELECT - col0 * 92 FROM tab1
----
-4692
-7820
-8372
query I rowsort
SELECT + col1 FROM tab2 WHERE + col2 >= NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT col2 <= - col2 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8626
SELECT + COUNT( DISTINCT col1 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-8626
SELECT + COUNT ( DISTINCT col1 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
query I rowsort
SELECT + ( + col2 ) * ( 42 ) FROM tab0
----
1974
4158
420
query I rowsort
SELECT ( col0 ) * 72 FROM tab1
----
3672
6120
6552
onlyif mysql # aggregate syntax:
query I rowsort label-8629
SELECT DISTINCT MIN( DISTINCT - 29 ) AS col1 FROM tab1
----
-29
skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT MIN ( DISTINCT - 29 ) AS col1 FROM tab1
----
-29
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8630
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 + col0 * - col0 col0 FROM tab0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8630
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 + col0 * - col0 col0 FROM tab0
----
NULL
query I rowsort
SELECT 63 * 71 FROM tab1
----
4473
4473
4473
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 74 ) NOT BETWEEN ( col1 + 82 * - col2 ) AND 32
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 col2 FROM tab0
----
67
67
67
onlyif mysql # DIV for integer division:
query I rowsort label-8634
SELECT DISTINCT - col2 DIV 74 AS col1 FROM tab1
----
-1
0
skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT - col2 / 74 AS col1 FROM tab1
----
-1
0
query I rowsort
SELECT - col1 FROM tab0 WHERE NOT 17 = NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-8636
SELECT DISTINCT - 54 DIV col2 AS col0 FROM tab0
----
-1
-5
0
skipif mysql # not compatible
query I rowsort label-8636
SELECT DISTINCT - 54 / col2 AS col0 FROM tab0
----
-1
-5
0
onlyif mysql # aggregate syntax:
query I rowsort label-8637
SELECT MAX( DISTINCT 81 ) FROM tab2
----
81
skipif mysql # not compatible
query I rowsort label-8637
SELECT MAX ( DISTINCT 81 ) FROM tab2
----
81
onlyif mysql # aggregate syntax:
query I rowsort label-8638
SELECT DISTINCT - MIN( - col1 ) AS col2 FROM tab1 AS cor0
----
47
skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT - MIN ( - col1 ) AS col2 FROM tab1 AS cor0
----
47
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8639
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9
query I rowsort
SELECT + 55 * col2 AS col2 FROM tab2 AS cor0
----
1265
2200
3190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
query I rowsort
SELECT - col0 * - 2 AS col0 FROM tab0 AS cor0
----
174
194
30
query I rowsort
SELECT 61 FROM tab2 WHERE NOT NULL IS NOT NULL
----
61
61
61
onlyif mysql # DIV for integer division:
query I rowsort label-8644
SELECT DISTINCT 95 DIV col0 FROM tab2
----
1
2
skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT 95 / col0 FROM tab2
----
1
2
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 ) * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8646
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8647
SELECT COUNT( * ) DIV + 61 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-8647
SELECT COUNT ( * ) / + 61 FROM tab1 cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-8648
SELECT + - MIN( DISTINCT col2 ) FROM tab2 AS cor0
----
-23
skipif mysql # not compatible
query I rowsort label-8648
SELECT + - MIN ( DISTINCT col2 ) FROM tab2 AS cor0
----
-23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + 15 col2 FROM tab1 AS cor0
----
-210
-705
-75
query I rowsort
SELECT + col2 AS col1 FROM tab1 cor0 WHERE NOT + 11 + 86 * 10 >= ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8651
SELECT ALL - COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
-9
onlyif mysql # DIV for integer division:
query I rowsort label-8652
SELECT ALL + + col1 DIV - 25 FROM tab0 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL + + col1 / - 25 FROM tab0 AS cor0
----
-3
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 4 col0 FROM tab1 cor0 WHERE NULL IS NULL
----
-236
-272
-384
query I rowsort
SELECT + ( - 93 ) AS col0 FROM tab1 AS cor0
----
-93
-93
-93
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * col0 + col2 BETWEEN NULL AND ( - col0 )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 - + col1 NOT BETWEEN ( NULL ) AND ( 86 )
----
query I rowsort
SELECT ALL 46 AS col1 FROM tab0
----
46
46
46
query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT ( - 38 ) IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8659
SELECT DISTINCT col2 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT col2 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8660
SELECT 94 * CAST( 3 AS SIGNED ) AS col0 FROM tab0
----
282
282
282
skipif mysql # not compatible
query I rowsort label-8660
SELECT 94 * CAST ( 3 AS INTEGER ) AS col0 FROM tab0
----
282
282
282
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 ) <= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT - col2 * + + ( - col0 ) AS col1 FROM tab1
----
4896
5015
6188
query I rowsort
SELECT 35 * + col2 AS col2 FROM tab0
----
1645
3465
350
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col0 * - col2 > ( - 38 ) )
----
query III rowsort
SELECT * FROM tab2 WHERE ( + col0 * - col0 ) NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT + 82 - - col1 AS col2 FROM tab0
----
103
163
83
onlyif mysql # aggregate syntax:
query I rowsort label-8668
SELECT + COUNT( * ) * COUNT( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-8668
SELECT + COUNT ( * ) * COUNT ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 58 ) - - + col0 col0 FROM tab2 AS cor0
----
104
122
133
query I rowsort
SELECT ALL col1 * - col2 FROM tab1 cor0 WHERE NOT + col0 NOT IN ( - 76 )
----
query I rowsort
SELECT - 25 * + - 65 FROM tab1 AS cor0
----
1625
1625
1625
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 3 + - col0 col0 FROM tab2 AS cor0
----
-199
-276
-295
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( col0 ) AND + col1
----
query I rowsort
SELECT - 15 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 AND + 34 / - ( col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT col1 * - + col0 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025
query I rowsort
SELECT ALL col2 * - col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = col2 * 82 AND + col1 + + col1 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8679
SELECT col1 * + CAST( - 15 AS SIGNED ) FROM tab1 WHERE ( col1 ) IN ( - 96 )
----
skipif mysql # not compatible
query I rowsort label-8679
SELECT col1 * + CAST ( - 15 AS INTEGER ) FROM tab1 WHERE ( col1 ) IN ( - 96 )
----
query I rowsort
SELECT + col1 * 28 - col2 * - 25 AS col0 FROM tab0
----
2503
3443
838
query I rowsort
SELECT ALL 47 AS col1 FROM tab2
----
47
47
47
query I rowsort
SELECT ALL col0 * ( + col0 ) AS col1 FROM tab0
----
225
7569
9409
onlyif mysql # aggregate syntax:
query I rowsort label-8683
SELECT DISTINCT MIN( DISTINCT - + 87 ) AS col0 FROM tab2
----
-87
skipif mysql # not compatible
query I rowsort label-8683
SELECT DISTINCT MIN ( DISTINCT - + 87 ) AS col0 FROM tab2
----
-87
query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE + - col0 + + col1 < NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8685
SELECT DISTINCT col2 + 57 AS col0 FROM tab1 WHERE + + CAST( NULL AS SIGNED ) + - col2 NOT IN ( col1 + + col1 * - col1 )
----
skipif mysql # not compatible
query I rowsort label-8685
SELECT DISTINCT col2 + 57 AS col0 FROM tab1 WHERE + + CAST ( NULL AS INTEGER ) + - col2 NOT IN ( col1 + + col1 * - col1 )
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8686
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 + + - col2 ) BETWEEN ( + CAST( NULL AS SIGNED ) ) AND ( NULL )
----
skipif mysql # not compatible
query III rowsort label-8686
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 + + - col2 ) BETWEEN ( + CAST ( NULL AS INTEGER ) ) AND ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8687
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-3
skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 col1 FROM tab0 AS cor0 WHERE NOT NULL < + 83 * col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-8689
SELECT ALL 60 + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 + col1 * - col0 + col1 IS NULL
----
63
skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL 60 + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 + col1 * - col0 + col1 IS NULL
----
63
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8690
SELECT * FROM tab2 AS cor0 WHERE NOT ( + ( + - CAST( NULL AS SIGNED ) ) ) + ( col1 + CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED ) IN ( + 75 )
----
skipif mysql # not compatible
query III rowsort label-8690
SELECT * FROM tab2 AS cor0 WHERE NOT ( + ( + - CAST ( NULL AS INTEGER ) ) ) + ( col1 + CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) IN ( + 75 )
----
query I rowsort
SELECT ALL - col1 * - + col0 FROM tab0 AS cor0
----
1215
1827
97
query III rowsort
SELECT * FROM tab1 WHERE NOT col1 <> + + 65
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8693
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - - CAST( NULL AS SIGNED ) )
----
skipif mysql # not compatible
query III rowsort label-8693
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - - CAST ( NULL AS INTEGER ) )
----
query I rowsort
SELECT DISTINCT - 75 * - - 75 AS col1 FROM tab1 AS cor0
----
-5625
query I rowsort
SELECT DISTINCT - - col2 * - - 90 FROM tab0 AS cor0
----
4230
8910
900
query I rowsort
SELECT DISTINCT + col2 * - - col0 * - col0 FROM tab2 cor0
----
-163840
-326250
-48668
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 IN ( - col0 * - 12 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 13 col2 FROM tab0 cor0
----
13
13
13
query I rowsort
SELECT col0 + ( - - 23 ) AS col1 FROM tab2
----
69
87
98
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8700
SELECT ALL CAST( + 37 AS SIGNED ) + + 22 FROM tab0
----
59
59
59
skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL CAST ( + 37 AS INTEGER ) + + 22 FROM tab0
----
59
59
59
query I rowsort
SELECT DISTINCT col0 + - + 83 FROM tab2
----
-19
-37
-8
query I rowsort
SELECT DISTINCT col2 * - - col1 FROM tab1
----
1344
295
3196
query III rowsort
SELECT ALL col1 AS col1, 59, + 76 AS col0 FROM tab1
----
9 values hashing to 6230515ca88cdf257fab675e12cdebb9
query I rowsort
SELECT + 3 + - col2 FROM tab2
----
-20
-37
-55
query II rowsort
SELECT DISTINCT + 22 AS col2, ( + col1 ) AS col1 FROM tab0
----
22
1
22
21
22
81
query II rowsort
SELECT col2 AS col1, 34 FROM tab0 cor0
----
10
34
47
34
99
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, 67 + + - col2 col2 FROM tab2 AS cor0
----
51
44
67
9
77
27
onlyif mysql # aggregate syntax:
query I rowsort label-8708
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
query I rowsort
SELECT 27 * + 88 - + col1 FROM tab1
----
2329
2362
2371
query III rowsort
SELECT * FROM tab2 WHERE ( + - 76 ) = col1
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT DISTINCT - 62 - 2 AS col0, 9 AS col2 FROM tab0 AS cor0
----
-64
9
query I rowsort
SELECT ALL + + 37 - + col0 * - + col0 + + + col2 FROM tab2 AS cor0
----
2176
4173
5720
query I rowsort
SELECT + 7 + 41 FROM tab0 AS cor0
----
48
48
48
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 84 + - col1 + - ( + col2 ) * + col2 + + + col1 + col0 * col1 NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT col2 * - 36 AS col1 FROM tab1 cor0 WHERE col1 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8717
SELECT - CAST( NULL AS SIGNED ) * + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8717
SELECT - CAST ( NULL AS INTEGER ) * + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + 80 AS col0 FROM tab0 AS cor0
----
80
query II rowsort
SELECT col2 * + + col1 + - col0, + col0 FROM tab0 AS cor0
----
123
87
2
97
3792
15
onlyif mysql # aggregate syntax:
query II rowsort label-8720
SELECT + COUNT( * ) AS col0, SUM( + col0 ) FROM tab2
----
3
185
skipif mysql # not compatible
query II rowsort label-8720
SELECT + COUNT ( * ) AS col0, SUM ( + col0 ) FROM tab2
----
3
185
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, - col0 * col1 AS col2 FROM tab2
----
46
-2346
64
-4928
75
-5025
query III rowsort
SELECT * FROM tab1 WHERE NOT col0 / + col2 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < col0
----
onlyif mysql # aggregate syntax:
query II rowsort label-8724
SELECT DISTINCT COUNT( * ), COUNT( * ) AS col2 FROM tab1
----
3
3
skipif mysql # not compatible
query II rowsort label-8724
SELECT DISTINCT COUNT ( * ), COUNT ( * ) AS col2 FROM tab1
----
3
3
query I rowsort
SELECT + - 98 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-8726
SELECT DISTINCT + + col1 DIV 30 * + col0 AS col0 FROM tab0 AS cor0
----
0
30
skipif mysql # not compatible
query I rowsort label-8726
SELECT DISTINCT + + col1 / 30 * + col0 AS col0 FROM tab0 AS cor0
----
0
30
onlyif mysql # aggregate syntax:
query I rowsort label-8727
SELECT ALL + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 14 col2, col2 AS col2 FROM tab0 AS cor0
----
14
10
14
47
14
99
onlyif mysql # aggregate syntax:
query I rowsort label-8729
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT NULL >= 82
----
0
skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT NULL >= 82
----
0
query I rowsort
SELECT DISTINCT - 77 + - - 7 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-70
onlyif mysql # aggregate syntax:
query I rowsort label-8731
SELECT ALL SUM( ALL - col0 ) AS col2 FROM tab1
----
-227
skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL SUM ( ALL - col0 ) AS col2 FROM tab1
----
-227
query II rowsort
SELECT DISTINCT + col2 * + col0 AS col2, + col2 + - col0 * col0 * + ( + ( + - col2 ) ) FROM tab1 AS cor0
----
4896
249792
5015
426334
6188
563176
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # DIV for integer division:
query I rowsort label-8734
SELECT - 98 DIV - col1 - - col0 + + - col1 AS col1 FROM tab1 AS cor0
----
44
46
99
skipif mysql # not compatible
query I rowsort label-8734
SELECT - 98 / - col1 - - col0 + + - col1 AS col1 FROM tab1 AS cor0
----
44
46
99
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT + + 81 AS col2 FROM tab0 AS cor0
----
81
query I rowsort
SELECT ALL + 11 FROM tab2 cor0 WHERE + col0 < NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-8738
SELECT ALL ( + - ( - col0 ) ) DIV + ( - + 99 ) + col1 FROM tab1
----
14
47
5
skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL ( + - ( - col0 ) ) / + ( - + 99 ) + col1 FROM tab1
----
14
47
5
onlyif mysql # aggregate syntax:
query I rowsort label-8739
SELECT ALL COUNT( * ) + - COUNT( * ) + + COUNT( * ) + - 55 + - MIN( DISTINCT - + col2 ) FROM tab0
----
47
skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL COUNT ( * ) + - COUNT ( * ) + + COUNT ( * ) + - 55 + - MIN ( DISTINCT - + col2 ) FROM tab0
----
47
query I rowsort
SELECT ALL 14 * col1 FROM tab0
----
1134
14
294
query I rowsort
SELECT ALL col2 + - 2 FROM tab0
----
45
8
97
query III rowsort
SELECT * FROM tab1 WHERE + col0 < NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8743
SELECT - ( COUNT( * ) ) * + 23 - ( COUNT( * ) ) - - ( COUNT( * ) ) FROM tab0
----
-69
skipif mysql # not compatible
query I rowsort label-8743
SELECT - ( COUNT ( * ) ) * + 23 - ( COUNT ( * ) ) - - ( COUNT ( * ) ) FROM tab0
----
-69
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8744
SELECT - CAST( 10 AS SIGNED ) + + + col2 AS col0 FROM tab0 WHERE NULL BETWEEN - + 30 AND + - col1
----
skipif mysql # not compatible
query I rowsort label-8744
SELECT - CAST ( 10 AS INTEGER ) + + + col2 AS col0 FROM tab0 WHERE NULL BETWEEN - + 30 AND + - col1
----
onlyif mysql # DIV for integer division:
query I rowsort label-8745
SELECT DISTINCT col0 DIV + 43 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT col0 / + 43 FROM tab2 AS cor0
----
1
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + ( - 85 ) IN ( col1 ) )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8747
SELECT DISTINCT 30 + - COUNT( * ) * - + 14 FROM tab2 AS cor0
----
72
skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT 30 + - COUNT ( * ) * - + 14 FROM tab2 AS cor0
----
72
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( + + col0 * + - 85 + col0 + + - 57 )
----
query III rowsort
SELECT * FROM tab2 WHERE - + col1 <> - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8750
SELECT DISTINCT col0 - CAST( - col2 AS SIGNED ) AS col0 FROM tab1
----
144
147
159
skipif mysql # not compatible
query I rowsort label-8750
SELECT DISTINCT col0 - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1
----
144
147
159
query I rowsort
SELECT DISTINCT 74 + + 47 AS col1 FROM tab1
----
121
query I rowsort
SELECT - - 2 * + 17 - - col2 + + col0 + 20 + - - col0 * + col0 AS col2 FROM tab2 AS cor0
----
2239
4254
5812
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8754
SELECT COUNT( * ) * 27 * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
243
skipif mysql # not compatible
query I rowsort label-8754
SELECT COUNT ( * ) * 27 * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
243
onlyif mysql # aggregate syntax:
query I rowsort label-8755
SELECT DISTINCT - ( + - SUM( DISTINCT - ( + col1 ) ) ) FROM tab2 AS cor0
----
-195
skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT - ( + - SUM ( DISTINCT - ( + col1 ) ) ) FROM tab2 AS cor0
----
-195
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT - AVG ( - - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL
query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 97 <= + + 3
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT + col1 * - - col1 FROM tab1
----
196
2209
25
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8761
SELECT - CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
15
87
97
skipif mysql # not compatible
query I rowsort label-8761
SELECT - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
15
87
97
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( col0 * + 66 / - col2 * col0 + - col0 + + col1 )
----
query I rowsort
SELECT DISTINCT - ( + col2 ) FROM tab0 WHERE NOT - 20 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8764
SELECT DISTINCT - MIN( DISTINCT 68 ) FROM tab0
----
-68
skipif mysql # not compatible
query I rowsort label-8764
SELECT DISTINCT - MIN ( DISTINCT 68 ) FROM tab0
----
-68
query I rowsort
SELECT ALL 26 * 6 FROM tab0
----
156
156
156
query III rowsort
SELECT * FROM tab1 WHERE NOT 80 BETWEEN + col2 * + col0 + - col2 AND col0 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 * + col2 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-8768
SELECT + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 68 IS NULL
----
-3
skipif mysql # not compatible
query I rowsort label-8768
SELECT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 68 IS NULL
----
-3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8769
SELECT COUNT( - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-8769
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
0
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + col1 + + 45
----
onlyif mysql # aggregate syntax:
query I rowsort label-8771
SELECT DISTINCT + COUNT( * ) * - + 65 FROM tab0
----
-195
skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT + COUNT ( * ) * - + 65 FROM tab0
----
-195
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8772
SELECT DISTINCT + col2 + 71 * + - col2 * + CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8772
SELECT DISTINCT + col2 + 71 * + - col2 * + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
query I rowsort
SELECT + - 19 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
query I rowsort
SELECT + AVG ( ALL - ( + 26 ) ) * 68 AS col2 FROM tab1 WHERE NOT col2 * col0 + col2 NOT IN ( col0 )
----
NULL
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query III rowsort label-8775
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( - CAST( 27 AS SIGNED ) AS DECIMAL ) IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-8775
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( - CAST ( 27 AS INTEGER ) AS REAL ) IS NOT NULL
----
query I rowsort
SELECT ALL col2 * - 96 FROM tab1
----
-5664
-6528
-9216
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8777
SELECT ALL + - CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL + - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT col0 + - col2 AS col0 FROM tab1 cor0
----
-45
23
26
query I rowsort
SELECT + - ( + + col0 ) + + col1 FROM tab1 AS cor0
----
-37
-44
-80
onlyif mysql # aggregate syntax:
query I rowsort label-8780
SELECT ALL 53 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
50
skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL 53 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
50
onlyif mysql # aggregate syntax:
query II rowsort label-8781
SELECT ALL - 71 + COUNT( * ) AS col1, - 32 AS col2 FROM tab2
----
-68
-32
skipif mysql # not compatible
query II rowsort label-8781
SELECT ALL - 71 + COUNT ( * ) AS col1, - 32 AS col2 FROM tab2
----
-68
-32
query I rowsort
SELECT - col0 * - col2 FROM tab0 WHERE + + 76 >= - col0
----
705
870
9603
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + 91 col2, 20 + + 57 FROM tab2
----
137
77
155
77
166
77
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-8784
SELECT ALL * FROM tab2 WHERE NULL IN ( CAST( - 68 AS DECIMAL ) )
----
skipif mysql # not compatible
query III rowsort label-8784
SELECT ALL * FROM tab2 WHERE NULL IN ( CAST ( - 68 AS REAL ) )
----
onlyif mysql # DIV for integer division:
query I rowsort label-8785
SELECT + col2 + - 14 DIV - 48 AS col0 FROM tab2
----
23
40
58
skipif mysql # not compatible
query I rowsort label-8785
SELECT + col2 + - 14 / - 48 AS col0 FROM tab2
----
23
40
58
query III rowsort
SELECT * FROM tab2 WHERE + col2 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab0 WHERE ( - + col2 * col0 / - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-8788
SELECT ( + SUM( - col2 ) ) * - 64 FROM tab1
----
14272
skipif mysql # not compatible
query I rowsort label-8788
SELECT ( + SUM ( - col2 ) ) * - 64 FROM tab1
----
14272
onlyif mysql # aggregate syntax:
query I rowsort label-8789
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= + col1 / + + col1
----
0
skipif mysql # not compatible
query I rowsort label-8789
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= + col1 / + + col1
----
0
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 31 IS NOT NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8791
SELECT + COUNT( DISTINCT - + col1 ) DIV - - 96 AS col2 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8791
SELECT + COUNT ( DISTINCT - + col1 ) / - - 96 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ( + - 27 ) - - col1 FROM tab0
----
-26
-6
54
query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 37 * + 3 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-8795
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-8796
SELECT - - COUNT( DISTINCT - col0 ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-8796
SELECT - - COUNT ( DISTINCT - col0 ) FROM tab0 AS cor0
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 58, col0 col2 FROM tab2 cor0
----
58
46
58
64
58
75
query I rowsort
SELECT - col2 * - + 1 + - - col2 AS col0 FROM tab2 AS cor0
----
116
46
80
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8799
SELECT - + 64 * 67 DIV + + COUNT( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-1429
skipif mysql # not compatible
query I rowsort label-8799
SELECT - + 64 * 67 / + + COUNT ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-1429
query I rowsort
SELECT - + 50 * + - col0 * col1 FROM tab0 AS cor0
----
4850
60750
91350
query I rowsort
SELECT - col0 * - col0 FROM tab1 AS cor0 WHERE NOT ( - 86 ) > NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8802
SELECT DISTINCT MAX( + col0 ) FROM tab2 AS cor0
----
75
skipif mysql # not compatible
query I rowsort label-8802
SELECT DISTINCT MAX ( + col0 ) FROM tab2 AS cor0
----
75
onlyif mysql # aggregate syntax:
query I rowsort label-8803
SELECT - MAX( - + col1 ) / COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----
NULL
skipif mysql # not compatible
query I rowsort label-8803
SELECT - MAX ( - + col1 ) / COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----
NULL
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query III rowsort label-8804
SELECT ALL - col2, col1 * - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1, col1 FROM tab0
----
9 values hashing to 5c137a565df5bc8d21107d30c98f3e6c
skipif mysql # not compatible
query III rowsort label-8804
SELECT ALL - col2, col1 * - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS col1, col1 FROM tab0
----
9 values hashing to 5c137a565df5bc8d21107d30c98f3e6c
query III rowsort
SELECT * FROM tab0 WHERE NOT + 68 + - col1 + - - col1 IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + + col0 col0 FROM tab2
----
-2346
-4928
-5025
onlyif mysql # aggregate syntax:
query II rowsort label-8807
SELECT ALL COUNT( * ) AS col1, - COUNT( * ) * + 64 FROM tab2
----
3
-192
skipif mysql # not compatible
query II rowsort label-8807
SELECT ALL COUNT ( * ) AS col1, - COUNT ( * ) * + 64 FROM tab2
----
3
-192
query II rowsort
SELECT col2 AS col1, col2 FROM tab1
----
59
59
68
68
96
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27 / 20 AS col0, col2 col0 FROM tab2 cor0 WHERE NOT col1 <= NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8810
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----
skipif mysql # not compatible
query III rowsort label-8810
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8811
SELECT DISTINCT - - col2 FROM tab1 WHERE - + col2 / + - CAST( - 56 AS SIGNED ) IS NULL
----
skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT - - col2 FROM tab1 WHERE - + col2 / + - CAST ( - 56 AS INTEGER ) IS NULL
----
query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col2 FROM tab2 AS cor0
----
-5
-5
-5
query I rowsort
SELECT ALL - - 60 FROM tab1 AS cor0
----
60
60
60
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 31 + - col0 IS NULL
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN + 19 AND 14 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-8817
SELECT DISTINCT + MAX( - 71 ) * + - MIN( 88 ) + - 99 FROM tab1
----
6149
skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT + MAX ( - 71 ) * + - MIN ( 88 ) + - 99 FROM tab1
----
6149
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - - col0 col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - ( - - col1 ) FROM tab1
----
-14
-47
-5
onlyif mysql # DIV for integer division:
query I rowsort label-8820
SELECT - col0 * col2 DIV 97 DIV + 49 - - 42 AS col0 FROM tab1
----
41
41
41
skipif mysql # not compatible
query I rowsort label-8820
SELECT - col0 * col2 / 97 / + 49 - - 42 AS col0 FROM tab1
----
41
41
41
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < 76 * 37 + - col2
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 >= 18 * + 12
----
onlyif mysql # aggregate syntax:
query I rowsort label-8823
SELECT ALL + 0 - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL + 0 - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-8824
SELECT ALL + COUNT( + col1 ) * + 32 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN ( - 29 + col1 + + col1 - 28 ) AND NULL
----
0
skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL + COUNT ( + col1 ) * + 32 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN ( - 29 + col1 + + col1 - 28 ) AND NULL
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-8825
SELECT ALL + ( + + col2 ) DIV + 37 FROM tab0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL + ( + + col2 ) / + 37 FROM tab0
----
0
1
2
query I rowsort
SELECT ALL 31 * + col0 * + 62 FROM tab2 AS cor0
----
123008
144150
88412
onlyif mysql # aggregate syntax:
query II rowsort label-8827
SELECT ALL - COUNT( * ) * + - COUNT( * ), COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
9
9
skipif mysql # not compatible
query II rowsort label-8827
SELECT ALL - COUNT ( * ) * + - COUNT ( * ), COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
9
9
query I rowsort
SELECT + + col0 * + - col0 + - 55 AS col0 FROM tab0 AS cor0
----
-280
-7624
-9464
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( ( NOT col0 IS NULL ) ) )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8830
SELECT DISTINCT - MAX( - + 57 ) FROM tab2
----
57
skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT - MAX ( - + 57 ) FROM tab2
----
57
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-8831
SELECT ALL + COUNT( * ) DIV 40 * COUNT( * ) AS col1, - 12 AS col1 FROM tab1
----
0
-12
skipif mysql # not compatible
query II rowsort label-8831
SELECT ALL + COUNT ( * ) / 40 * COUNT ( * ) AS col1, - 12 AS col1 FROM tab1
----
0
-12
query I rowsort
SELECT ALL + ( - + 2 ) FROM tab0
----
-2
-2
-2
onlyif mysql # DIV for integer division:
query I rowsort label-8833
SELECT col2 DIV - 34 col0 FROM tab1
----
-1
-2
-2
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8833
SELECT col2 / - 34 col0 FROM tab1
----
-1
-2
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 18 ) * - col2 * 0 col2 FROM tab2
----
0
0
0
onlyif mysql # DIV for integer division:
query I rowsort label-8835
SELECT col0 + - + col2 DIV + col2 FROM tab1
----
50
84
90
skipif mysql # not compatible
query I rowsort label-8835
SELECT col0 + - + col2 / + col2 FROM tab1
----
50
84
90
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE ( ( NULL IS NOT NULL ) )
----
query II rowsort
SELECT col2 AS col2, col2 FROM tab0
----
10
10
47
47
99
99
query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 63 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8839
SELECT DISTINCT * FROM tab1 WHERE NOT + + CAST( 43 AS SIGNED ) + + - col2 + col1 NOT BETWEEN - col0 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-8839
SELECT DISTINCT * FROM tab1 WHERE NOT + + CAST ( 43 AS INTEGER ) + + - col2 + col1 NOT BETWEEN - col0 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-8840
SELECT - COUNT( * ) * + - 64 FROM tab1
----
192
skipif mysql # not compatible
query I rowsort label-8840
SELECT - COUNT ( * ) * + - 64 FROM tab1
----
192
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8841
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-8841
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
3
query II rowsort
SELECT ALL col1 AS col1, col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 <= ( + - col2 + col1 + + - 60 )
----
1
1
21
21
query II rowsort
SELECT + - 67, - col1 AS col0 FROM tab2 AS cor0 WHERE ( 64 ) <> - col1
----
-67
-51
-67
-67
-67
-77
query I rowsort
SELECT + + col2 + 73 + - 14 + + col0 * - - 39 * - col2 FROM tab2 AS cor0
----
-169533
-41180
-99741
onlyif mysql # aggregate syntax:
query I rowsort label-8845
SELECT DISTINCT - COUNT( ALL - - col0 ) AS col2 FROM tab1 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT - COUNT ( ALL - - col0 ) AS col2 FROM tab1 cor0
----
-3
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-8846
SELECT COUNT( * ) DIV COUNT( * ) + - + MAX( ALL + 18 ) AS col1, - 88 AS col2 FROM tab0 AS cor0
----
-17
-88
skipif mysql # not compatible
query II rowsort label-8846
SELECT COUNT ( * ) / COUNT ( * ) + - + MAX ( ALL + 18 ) AS col1, - 88 AS col2 FROM tab0 AS cor0
----
-17
-88
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < col2
----
query I rowsort
SELECT - 84 AS col2 FROM tab2 AS cor0 WHERE NULL > NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8849
SELECT - + ( - 93 ) + col0 + + col2 + + 83 / + CAST( NULL AS SIGNED ) / 38 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8849
SELECT - + ( - 93 ) + col0 + + col2 + + 83 / + CAST ( NULL AS INTEGER ) / 38 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * + 13 AS col0 FROM tab2 AS cor0 WHERE + col0 + + col2 IS NULL
----
query I rowsort
SELECT col0 + - 43 * + col2 * - 57 FROM tab0 AS cor0
----
115212
242746
24597
query I rowsort
SELECT DISTINCT - col2 + + 71 AS col2 FROM tab0 AS cor0
----
-28
24
61
query I rowsort
SELECT DISTINCT - ( + 66 ) * + ( - 9 ) + - ( - + col1 ) AS col1 FROM tab1
----
599
608
641
onlyif mysql # aggregate syntax:
query I rowsort label-8854
SELECT ( - + COUNT( * ) ) + - + 27 AS col0 FROM tab1
----
-30
skipif mysql # not compatible
query I rowsort label-8854
SELECT ( - + COUNT ( * ) ) + - + 27 AS col0 FROM tab1
----
-30
query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE - col0 * - 87 IS NOT NULL
----
23
40
58
query I rowsort
SELECT + 55 * - - col2 FROM tab1 AS cor0
----
3245
3740
5280
query II rowsort
SELECT ALL 63, + col1 FROM tab0
----
63
1
63
21
63
81
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 88 + col0 * - col2 <= ( + col1 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8859
SELECT DISTINCT + col0 * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT + col0 * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT 9 * 5 * + col0 AS col1 FROM tab2 AS cor0
----
2070
2880
3375
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8861
SELECT + CAST( - + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99
skipif mysql # not compatible
query I rowsort label-8861
SELECT + CAST ( - + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99
onlyif mysql # DIV for integer division:
query I rowsort label-8862
SELECT ALL + col1 DIV + + col1 AS col2 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL + col1 / + + col1 AS col2 FROM tab2 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 * + 16 col0 FROM tab2 AS cor0
----
-1280
-1280
-1280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 col1 FROM tab2 AS cor0
----
13
13
13
onlyif mysql # aggregate syntax:
query I rowsort label-8865
SELECT ALL - MAX( ALL - 82 ) FROM tab0 AS cor0
----
82
skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL - MAX ( ALL - 82 ) FROM tab0 AS cor0
----
82
query I rowsort
SELECT DISTINCT col2 + - + col0 FROM tab1
----
-23
-26
45
query I rowsort
SELECT + - 32 AS col0 FROM tab2 WHERE NOT ( NOT - 68 + col0 * col1 IS NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8868
SELECT DISTINCT - MIN( - 31 ) AS col1 FROM tab2
----
31
skipif mysql # not compatible
query I rowsort label-8868
SELECT DISTINCT - MIN ( - 31 ) AS col1 FROM tab2
----
31
onlyif mysql # aggregate syntax:
query II rowsort label-8869
SELECT ALL - COUNT( * ) * - - MAX( 98 ) * + SUM( - col2 ) AS col1, 25 AS col0 FROM tab1
----
65562
25
skipif mysql # not compatible
query II rowsort label-8869
SELECT ALL - COUNT ( * ) * - - MAX ( 98 ) * + SUM ( - col2 ) AS col1, 25 AS col0 FROM tab1
----
65562
25
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 97 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-8871
SELECT ALL - col2 + + - 3 col0, - CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-62
-85
-71
-91
-99
-51
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8871
SELECT ALL - col2 + + - 3 col0, - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-62
-85
-71
-91
-99
-51
query I rowsort
SELECT DISTINCT + 65 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
65
onlyif mysql # aggregate syntax:
query I rowsort label-8873
SELECT SUM( ALL - 9 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-81
skipif mysql # not compatible
query I rowsort label-8873
SELECT SUM ( ALL - 9 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-81
query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 12 ) NOT BETWEEN NULL AND 65 + + 37
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8875
SELECT COUNT( * ) DIV - 10 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-8875
SELECT COUNT ( * ) / - 10 FROM tab2
----
0
query I rowsort
SELECT + ( - col0 ) FROM tab1 cor0 WHERE + 52 = + + col1
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
query I rowsort
SELECT + ( + col0 ) AS col2 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-8879
SELECT ALL COUNT( * ) AS col1, 96 * - SUM( ALL - + col2 ) FROM tab2 AS cor0
----
3
11616
skipif mysql # not compatible
query II rowsort label-8879
SELECT ALL COUNT ( * ) AS col1, 96 * - SUM ( ALL - + col2 ) FROM tab2 AS cor0
----
3
11616
query I rowsort
SELECT DISTINCT - + col1 + 46 AS col2 FROM tab0 cor0
----
-35
25
45
onlyif mysql # aggregate syntax:
query I rowsort label-8881
SELECT - + ( + - COUNT( * ) ) FROM tab0 WHERE NULL IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-8881
SELECT - + ( + - COUNT ( * ) ) FROM tab0 WHERE NULL IS NOT NULL
----
0
query I rowsort
SELECT ALL + col1 + - - col1 FROM tab2
----
102
134
154
onlyif mysql # DIV for integer division:
query I rowsort label-8883
SELECT + 17 DIV + + col2 - - 91 AS col1 FROM tab2
----
91
91
91
skipif mysql # not compatible
query I rowsort label-8883
SELECT + 17 / + + col2 - - 91 AS col1 FROM tab2
----
91
91
91
query I rowsort
SELECT DISTINCT - ( 61 ) - col0 AS col1 FROM tab0
----
-148
-158
-76
onlyif mysql # aggregate syntax:
query I rowsort label-8885
SELECT 99 + COUNT( * ) + + - 13 + - 85 + + ( MIN( DISTINCT + col1 ) ) FROM tab1
----
9
skipif mysql # not compatible
query I rowsort label-8885
SELECT 99 + COUNT ( * ) + + - 13 + - 85 + + ( MIN ( DISTINCT + col1 ) ) FROM tab1
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col2 FROM tab2 WHERE col2 BETWEEN + col0 AND + ( - col1 ) * + + col2 * col0 + 31
----
onlyif mysql # aggregate syntax:
query I rowsort label-8887
SELECT SUM( DISTINCT col2 ) + - COUNT( * ) FROM tab0
----
153
skipif mysql # not compatible
query I rowsort label-8887
SELECT SUM ( DISTINCT col2 ) + - COUNT ( * ) FROM tab0
----
153
onlyif mysql # aggregate syntax:
query I rowsort label-8888
SELECT ALL - 72 - + - COUNT( * ) AS col0 FROM tab2
----
-69
skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL - 72 - + - COUNT ( * ) AS col0 FROM tab2
----
-69
query I rowsort
SELECT ALL + col2 * + - col0 * col0 FROM tab2 WHERE NULL NOT BETWEEN - col1 * + col0 AND NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT + - 59 <> - col1 * + 85 * - + col2 + - + col2 * 69
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 75 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query II rowsort label-8892
SELECT ALL + COUNT( * ), + COUNT( * ) col1 FROM tab2 AS cor0
----
3
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8892
SELECT ALL + COUNT ( * ), + COUNT ( * ) col1 FROM tab2 AS cor0
----
3
3
query I rowsort
SELECT DISTINCT - 46 * col1 FROM tab1 AS cor0
----
-2162
-230
-644
query II rowsort
SELECT DISTINCT + col1 AS col0, 52 FROM tab0 cor0
----
1
52
21
52
81
52
onlyif mysql # aggregate syntax:
query I rowsort label-8895
SELECT - MAX( - - col1 ) FROM tab2 AS cor0
----
-77
skipif mysql # not compatible
query I rowsort label-8895
SELECT - MAX ( - - col1 ) FROM tab2 AS cor0
----
-77
query I rowsort
SELECT ALL + ( 49 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
onlyif mysql # aggregate syntax:
query I rowsort label-8897
SELECT ( - - COUNT( * ) ) * COUNT( * ) * + + 44 FROM tab2
----
396
skipif mysql # not compatible
query I rowsort label-8897
SELECT ( - - COUNT ( * ) ) * COUNT ( * ) * + + 44 FROM tab2
----
396
query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 >= NULL )
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8899
SELECT COUNT( * ) DIV 13 AS col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-8899
SELECT COUNT ( * ) / 13 AS col2 FROM tab1
----
0
query I rowsort
SELECT ALL + col0 * + - 67 AS col0 FROM tab0 cor0
----
-1005
-5829
-6499
query I rowsort
SELECT 78 * + 91 * - 51 AS col2 FROM tab2 cor0
----
-361998
-361998
-361998
query I rowsort
SELECT DISTINCT - + ( + 44 ) AS col1 FROM tab1 AS cor0
----
-44
query I rowsort
SELECT - col0 * - ( + 62 ) + 96 * + col1 FROM tab2 AS cor0
----
11082
11360
7748
query I rowsort
SELECT ALL 82 + 80 * + col2 FROM tab2 AS cor0
----
1922
3282
4722
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 42 IS NOT NULL
----
query I rowsort
SELECT DISTINCT + 5 AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8907
SELECT ALL - SUM( DISTINCT - + 64 ) + 88 + + 75 AS col0 FROM tab1
----
227
skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL - SUM ( DISTINCT - + 64 ) + 88 + + 75 AS col0 FROM tab1
----
227
query I rowsort
SELECT 90 + - col1 FROM tab1
----
43
76
85
query I rowsort
SELECT DISTINCT ( + 52 ) AS col1 FROM tab0
----
52
query I rowsort
SELECT + col2 + + 30 AS col0 FROM tab0
----
129
40
77
query I rowsort
SELECT ALL - col1 * 98 * 81 * 21 FROM tab0
----
-13502538
-166698
-3500658
query I rowsort
SELECT DISTINCT + ( col0 ) * + + col2 AS col1 FROM tab2
----
1058
2560
4350
query III rowsort
SELECT * FROM tab0 WHERE NULL > col2 + + - col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-8914
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + - 34 col1 FROM tab2 AS cor0
----
-57
-74
-92
query II rowsort
SELECT + col0, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91
query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT DISTINCT + col2 + + + 7 FROM tab1 AS cor0
----
103
66
75
query I rowsort
SELECT DISTINCT - ( + - col0 ) FROM tab2 AS cor0
----
46
64
75
query I rowsort
SELECT ALL ( - 46 ) AS col0 FROM tab0 AS cor0
----
-46
-46
-46
onlyif mysql # aggregate syntax:
query I rowsort label-8921
SELECT + 69 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
72
skipif mysql # not compatible
query I rowsort label-8921
SELECT + 69 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 77 + + col0, + 9 * - col0 * - + col0 col0 FROM tab0 cor0
----
164
68121
174
84681
92
2025
onlyif mysql # aggregate syntax:
query I rowsort label-8923
SELECT DISTINCT SUM( 14 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
42
skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT SUM ( 14 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
42
query I rowsort
SELECT - ( + col0 ) + - col1 + - col2 FROM tab2 AS cor0
----
-120
-181
-200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 + + + col0 col0 FROM tab2 AS cor0
----
-1127
-3016
-3811
onlyif mysql # aggregate syntax:
query I rowsort label-8926
SELECT - + COUNT( * ) FROM tab1 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-8926
SELECT - + COUNT ( * ) FROM tab1 cor0
----
-3
query I rowsort
SELECT - 25 * - col0 * + + col0 FROM tab0
----
189225
235225
5625
query I rowsort
SELECT - col1 * + - col1 FROM tab0
----
1
441
6561
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 86 <= - ( - col2 ) / - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 69 * ( - col1 ) col2 FROM tab0
----
30429
452709
69
query I rowsort
SELECT DISTINCT - ( - + 5 ) AS col2 FROM tab0 AS cor0
----
5
onlyif mysql # aggregate syntax:
query I rowsort label-8932
SELECT ALL COUNT( * ) * + AVG ( + + col1 ) + - - SUM( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 89 AND - col1 + col2
----
NULL
skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL COUNT ( * ) * + AVG ( + + col1 ) + - - SUM ( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 89 AND - col1 + col2
----
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-8933
SELECT ALL + 80, COUNT( * ) AS col2 FROM tab1
----
80
3
skipif mysql # not compatible
query II rowsort label-8933
SELECT ALL + 80, COUNT ( * ) AS col2 FROM tab1
----
80
3
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-8934
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL <> - col2 + - CAST( NULL AS DECIMAL ) )
----
skipif mysql # not compatible
query III rowsort label-8934
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL <> - col2 + - CAST ( NULL AS REAL ) )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + - 42 ) col0 FROM tab0 AS cor0
----
42
42
42
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * + - 15 + - col2 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8937
SELECT ALL SUM( ALL + col0 ) FROM tab2 AS cor0
----
185
skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL SUM ( ALL + col0 ) FROM tab2 AS cor0
----
185
onlyif mysql # aggregate syntax:
query I rowsort label-8938
SELECT - - SUM( ALL 33 ) FROM tab2 AS cor0
----
99
skipif mysql # not compatible
query I rowsort label-8938
SELECT - - SUM ( ALL 33 ) FROM tab2 AS cor0
----
99
query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 AS cor0 WHERE col1 * col2 IS NOT NULL
----
59
68
96
onlyif mysql # DIV for integer division:
query I rowsort label-8941
SELECT DISTINCT - col2 + 82 DIV - - col0 FROM tab1 AS cor0
----
-59
-68
-95
skipif mysql # not compatible
query I rowsort label-8941
SELECT DISTINCT - col2 + 82 / - - col0 FROM tab1 AS cor0
----
-59
-68
-95
query II rowsort
SELECT + + col1, - col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type:
query I rowsort label-8943
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) + - AVG ( ALL - + col0 ) * - + MIN( DISTINCT + 58 ) / - MAX( DISTINCT - + col2 ) AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) + - AVG ( ALL - + col0 ) * - + MIN ( DISTINCT + 58 ) / - MAX ( DISTINCT - + col2 ) AS col2 FROM tab0
----
NULL
query I rowsort
SELECT ALL - ( - + 94 ) * + 78 AS col2 FROM tab2
----
7332
7332
7332
query I rowsort
SELECT DISTINCT - 78 * - - 14 FROM tab1
----
-1092
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 * + 50 col2 FROM tab2
----
1150
1150
1150
query III rowsort
SELECT * FROM tab2 WHERE col1 IS NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8948
SELECT ALL + ( - 73 ) DIV + + SUM( DISTINCT - 44 ) AS col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL + ( - 73 ) / + + SUM ( DISTINCT - 44 ) AS col2 FROM tab0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 * + + col1 col1 FROM tab0
----
-18270
-57105
-9603
query III rowsort
SELECT * FROM tab1 WHERE 4 * + + col2 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8951
SELECT - COUNT( * ) * COUNT( * ) * + 28 FROM tab1 AS cor0 WHERE NULL BETWEEN + 76 + - col2 AND - col2
----
0
skipif mysql # not compatible
query I rowsort label-8951
SELECT - COUNT ( * ) * COUNT ( * ) * + 28 FROM tab1 AS cor0 WHERE NULL BETWEEN + 76 + - col2 AND - col2
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-8952
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-8952
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
onlyif mysql # aggregate syntax:
query I rowsort label-8953
SELECT DISTINCT + COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT + col1 + - + col0 * col2 IS NULL
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8953
SELECT DISTINCT + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT + col1 + - + col0 * col2 IS NULL
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8954
SELECT DISTINCT + CAST( col1 AS SIGNED ) FROM tab1 cor0
----
14
47
5
skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT + CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
14
47
5
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-8956
SELECT ALL - 38 DIV + + 60 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL - 38 / + + 60 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-8957
SELECT SUM( ALL 6 ) FROM tab0
----
18
skipif mysql # not compatible
query I rowsort label-8957
SELECT SUM ( ALL 6 ) FROM tab0
----
18
query I rowsort
SELECT - - col0 AS col2 FROM tab0 WHERE NOT - 10 + + col0 * - col1 - + col1 >= - col1 - + + 57 * - - 23
----
87
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8959
SELECT - CAST( NULL AS SIGNED ) / col1 col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8959
SELECT - CAST ( NULL AS INTEGER ) / col1 col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-8960
SELECT ALL col0 DIV - 5 FROM tab0
----
-17
-19
-3
skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL col0 / - 5 FROM tab0
----
-17
-19
-3
query I rowsort
SELECT ALL col1 FROM tab1 WHERE + ( - col0 ) = + + 76 * + 74
----
query I rowsort
SELECT DISTINCT - + 78 FROM tab0 cor0
----
-78
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 >= 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query I rowsort label-8964
SELECT DISTINCT - - col0 DIV 89 col2 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8964
SELECT DISTINCT - - col0 / 89 col2 FROM tab0 AS cor0
----
0
1
onlyif mysql # aggregate syntax:
query I rowsort label-8965
SELECT + MIN( DISTINCT col0 ) * - SUM( + col1 ) FROM tab2
----
-8970
skipif mysql # not compatible
query I rowsort label-8965
SELECT + MIN ( DISTINCT col0 ) * - SUM ( + col1 ) FROM tab2
----
-8970
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= col0
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8967
SELECT - + ( col0 ) * - - ( - CAST( NULL AS SIGNED ) ) - - 10 + + - col1 + + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8967
SELECT - + ( col0 ) * - - ( - CAST ( NULL AS INTEGER ) ) - - 10 + + - col1 + + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 37 AS col2 FROM tab1 cor0 WHERE NULL >= + col0 + - col1
----
query I rowsort
SELECT - col1 + 43 FROM tab0 AS cor0
----
-38
22
42
query I rowsort
SELECT col1 + + col0 + - col1 FROM tab2 AS cor0
----
46
64
75
query I rowsort
SELECT col0 + 19 AS col2 FROM tab1
----
104
110
70
query I rowsort
SELECT col1 + + + col0 * + col1 FROM tab0
----
1296
1848
98
query I rowsort
SELECT DISTINCT col0 * 65 FROM tab0
----
5655
6305
975
query I rowsort
SELECT ALL col2 * - - 56 + + col2 AS col1 FROM tab0
----
2679
5643
570
query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( - - 0 ) AND NULL
----
query II rowsort
SELECT col1, - col2 + 14 FROM tab2 WHERE 43 IS NULL
----
query I rowsort
SELECT ALL + col2 * - ( - - 42 ) - 92 FROM tab1
----
-2570
-2948
-4124
onlyif mysql # DIV for integer division:
query II rowsort label-8978
SELECT - col0 AS col1, + col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
-15
1
-87
2
-97
0
skipif mysql # not compatible
query II rowsort label-8978
SELECT - col0 AS col1, + col1 / + col2 AS col0 FROM tab0 AS cor0
----
-15
1
-87
2
-97
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8979
SELECT - col1 / - + 47 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8979
SELECT - col1 / - + 47 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( - col2 ) + - 60 FROM tab2 AS cor0
----
-100
-118
-83
query I rowsort
SELECT ALL - 13 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
query I rowsort
SELECT DISTINCT col0 - 59 FROM tab1
----
-8
26
32
query I rowsort
SELECT col2 - + - 48 AS col2 FROM tab0
----
147
58
95
query I rowsort
SELECT - col1 - col1 * - ( + col0 ) FROM tab1
----
420
4230
700
query I rowsort
SELECT ALL 99 - + 83 AS col0 FROM tab0
----
16
16
16
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-8986
SELECT DISTINCT - CAST( NULL AS SIGNED ) - 58, - COUNT( * ) AS col0 FROM tab2
----
NULL
-3
skipif mysql # not compatible
query II rowsort label-8986
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 58, - COUNT ( * ) AS col0 FROM tab2
----
NULL
-3
query I rowsort
SELECT ALL + 29 * + + col2 FROM tab2 AS cor0
----
1160
1682
667
onlyif mysql # aggregate syntax:
query I rowsort label-8988
SELECT - + SUM( + 26 ) * + + 77 FROM tab2 AS cor0
----
-6006
skipif mysql # not compatible
query I rowsort label-8988
SELECT - + SUM ( + 26 ) * + + 77 FROM tab2 AS cor0
----
-6006
query I rowsort
SELECT DISTINCT - + col2 * + ( col1 ) + + + col0 AS col2 FROM tab2 AS cor0
----
-1127
-3016
-3811
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( ( col2 ) <= NULL )
----
onlyif mysql # DIV for integer division:
query I rowsort label-8991
SELECT + + col2 DIV - + col0 + - 56 FROM tab1 AS cor0
----
-56
-56
-57
skipif mysql # not compatible
query I rowsort label-8991
SELECT + + col2 / - + col0 + - 56 FROM tab1 AS cor0
----
-56
-56
-57
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8992
SELECT + ( - - CAST( + - col0 AS SIGNED ) ) * + + col0 * + - col2 * 17 AS col0 FROM tab2 AS cor0
----
2785280
5546250
827356
skipif mysql # not compatible
query I rowsort label-8992
SELECT + ( - - CAST ( + - col0 AS INTEGER ) ) * + + col0 * + - col2 * 17 AS col0 FROM tab2 AS cor0
----
2785280
5546250
827356
onlyif mysql # DIV for integer division:
query II rowsort label-8993
SELECT DISTINCT + - col2 DIV col2 AS col1, - col2 FROM tab0 AS cor0
----
-1
-10
-1
-47
-1
-99
skipif mysql # not compatible
query II rowsort label-8993
SELECT DISTINCT + - col2 / col2 AS col1, - col2 FROM tab0 AS cor0
----
-1
-10
-1
-47
-1
-99
query II rowsort
SELECT DISTINCT - col1 AS col1, col2 FROM tab1
----
-14
96
-47
68
-5
59
onlyif mysql # aggregate syntax:
query I rowsort label-8995
SELECT DISTINCT - SUM( ALL + 11 ) AS col0 FROM tab0
----
-33
skipif mysql # not compatible
query I rowsort label-8995
SELECT DISTINCT - SUM ( ALL + 11 ) AS col0 FROM tab0
----
-33
query II rowsort
SELECT + col2, + 13 FROM tab2 AS cor0 WHERE NOT NULL = + col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-8997
SELECT ALL + MIN( DISTINCT - 36 ) AS col2 FROM tab1 AS cor0
----
-36
skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL + MIN ( DISTINCT - 36 ) AS col2 FROM tab1 AS cor0
----
-36
onlyif mysql # aggregate syntax:
query I rowsort label-8998
SELECT - + MAX( DISTINCT - 69 ) AS col2 FROM tab1 cor0
----
69
skipif mysql # not compatible
query I rowsort label-8998
SELECT - + MAX ( DISTINCT - 69 ) AS col2 FROM tab1 cor0
----
69
query II rowsort
SELECT + ( + col0 ) * + col1 AS col0, col1 FROM tab1 AS cor0
----
425
5
4277
47
714
14
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9000
SELECT ALL + 96 DIV MIN( ALL - ( - + col0 ) ) AS col1 FROM tab2 AS cor0
----
2
skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL + 96 / MIN ( ALL - ( - + col0 ) ) AS col1 FROM tab2 AS cor0
----
2
onlyif mysql # aggregate syntax:
query I rowsort label-9001
SELECT COUNT( col2 ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-9001
SELECT COUNT ( col2 ) FROM tab1 AS cor0
----
3
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND + col1 + + col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-9003
SELECT DISTINCT + ( - - COUNT( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT + ( - - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
query II rowsort
SELECT DISTINCT - col0 * 45, col1 * 96 AS col0 FROM tab0 AS cor0
----
-3915
2016
-4365
96
-675
7776
query I rowsort
SELECT ALL + col1 FROM tab1 cor0 WHERE - 11 / 39 < NULL
----
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 99 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL - 85 + + - 36 + - - 51 * 99 * + 96 FROM tab2
----
484583
484583
484583
query I rowsort
SELECT ALL col0 + + 63 * + - 69 AS col0 FROM tab1
----
-4256
-4262
-4296
query I rowsort
SELECT ALL - 83 + - col0 AS col0 FROM tab0
----
-170
-180
-98
query I rowsort
SELECT - 8 - - 46 + - + ( - col0 ) * 72 + 57 FROM tab2
----
3407
4703
5495
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-9011
SELECT CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9011
SELECT CAST ( NULL AS REAL ) + + COUNT ( * ) AS col1 FROM tab1
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9012
SELECT - COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9012
SELECT - COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
0
query II rowsort
SELECT ALL + - col1, + col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77
query I rowsort
SELECT - col1 + + col2 AS col0 FROM tab2 cor0 WHERE - 98 IS NOT NULL
----
-28
-37
-9
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9015
SELECT DISTINCT CAST( 17 AS SIGNED ) AS col1 FROM tab0
----
17
skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT CAST ( 17 AS INTEGER ) AS col1 FROM tab0
----
17
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9016
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-9016
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT 97 * + ( - 52 ) * - col2 - + col2 FROM tab0 cor0
----
237021
499257
50430
query I rowsort
SELECT ALL - - col2 * + col0 AS col0 FROM tab1 cor0
----
4896
5015
6188
onlyif mysql # DIV for integer division:
query I rowsort label-9019
SELECT ALL + + col2 DIV - - col2 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL + + col2 / - - col2 AS col2 FROM tab0 AS cor0
----
1
1
1
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 * 1, col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9021
SELECT DISTINCT - 3 * 27 + - COUNT( * ) - + + 73 FROM tab0 AS cor0
----
-157
skipif mysql # not compatible
query I rowsort label-9021
SELECT DISTINCT - 3 * 27 + - COUNT ( * ) - + + 73 FROM tab0 AS cor0
----
-157
query I rowsort
SELECT - 29 AS col0 FROM tab2 AS cor0 WHERE NOT + 62 IS NULL
----
-29
-29
-29
onlyif mysql # aggregate syntax:
query I rowsort label-9023
SELECT ALL - SUM( + - 15 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL - SUM ( + - 15 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL
query I rowsort
SELECT - - col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT col2 * + ( - col2 ) * - - col1 FROM tab1
----
-129024
-17405
-217328
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9026
SELECT - CAST( - + col2 AS SIGNED ) AS col0 FROM tab1
----
59
68
96
skipif mysql # not compatible
query I rowsort label-9026
SELECT - CAST ( - + col2 AS INTEGER ) AS col0 FROM tab1
----
59
68
96
onlyif mysql # aggregate syntax:
query I rowsort label-9027
SELECT + ( COUNT( * ) ) AS col1 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-9027
SELECT + ( COUNT ( * ) ) AS col1 FROM tab2
----
3
query I rowsort
SELECT ALL - 0 * - 17 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL col0 * + 98 * + 10 * + 43 AS col0 FROM tab1
----
2149140
3581900
3834740
query I rowsort
SELECT col0 * - - col2 AS col0 FROM tab1
----
4896
5015
6188
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9031
SELECT DISTINCT + ( - CAST( - ( + col2 ) AS SIGNED ) ) + - col0 FROM tab1
----
-23
-26
45
skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT + ( - CAST ( - ( + col2 ) AS INTEGER ) ) + - col0 FROM tab1
----
-23
-26
45
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT - 16 * col1 AS col0 FROM tab1 AS cor0
----
-224
-752
-80
query II rowsort
SELECT ALL col1 AS col1, - col2 AS col0 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) col2 FROM tab0 AS cor0
----
-1
-21
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 col1 FROM tab1 cor0
----
6
6
6
query II rowsort
SELECT DISTINCT - + 98 AS col1, 14 AS col0 FROM tab0 AS cor0
----
-98
14
query I rowsort
SELECT ALL - col1 + - - col1 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col2 * - col0 + + 36 + - 89 + + col2 FROM tab0 AS cor0
----
699
827
9649
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9040
SELECT DISTINCT CAST( NULL AS SIGNED ) - col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9040
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col2 FROM tab2
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9041
SELECT ALL - ( + MAX( - 4 ) ) + + SUM( ALL + 65 ) AS col1 FROM tab0
----
199
skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL - ( + MAX ( - 4 ) ) + + SUM ( ALL + 65 ) AS col1 FROM tab0
----
199
query III rowsort
SELECT * FROM tab2 WHERE + col0 + + 89 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT + col0 + ( + + col1 ) FROM tab2
----
141
142
97
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 24 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT - 3 * - col2 + col1 FROM tab1 AS cor0
----
182
251
302
onlyif mysql # DIV for integer division:
query I rowsort label-9046
SELECT + col1 DIV - - col2 col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9046
SELECT + col1 / - - col2 col1 FROM tab1
----
0
0
0
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9047
SELECT DISTINCT 82 DIV - MIN( + + 66 ) FROM tab0, tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9047
SELECT DISTINCT 82 / - MIN ( + + 66 ) FROM tab0, tab2 AS cor0
----
-1
query I rowsort
SELECT DISTINCT 70 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
70
query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
51
67
77
onlyif mysql # aggregate syntax:
query I rowsort label-9050
SELECT ( + - COUNT( * ) ) FROM tab1 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-9050
SELECT ( + - COUNT ( * ) ) FROM tab1 cor0
----
-3
query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NULL < + col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-9052
SELECT - + MIN( + col1 ) FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9052
SELECT - + MIN ( + col1 ) FROM tab0 AS cor0
----
-1
query II rowsort
SELECT ALL 97 AS col2, 78 FROM tab1 AS cor0
----
97
78
97
78
97
78
query II rowsort
SELECT - col0, col2 - - col1 AS col1 FROM tab2
----
-46
74
-64
117
-75
125
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 < NULL
----
query II rowsort
SELECT + col1 - + col1, col0 AS col0 FROM tab1 WHERE NOT - 53 <> + + col2
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9057
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( - col0, col0 )
----
skipif mysql # not compatible
query III rowsort label-9057
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( - col0, col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9058
SELECT ALL + COUNT( * ) * + - COUNT( * ) AS col1 FROM tab0
----
-9
skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab0
----
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 col0 FROM tab2
----
2
query I rowsort
SELECT ALL 44 * + + col2 FROM tab1
----
2596
2992
4224
query II rowsort
SELECT 14 AS col1, - col1 AS col1 FROM tab0
----
14
-1
14
-21
14
-81
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 57 + - col1 IS NOT NULL
----
query I rowsort
SELECT 6 AS col1 FROM tab2 cor0
----
6
6
6
query I rowsort
SELECT ALL - ( - - col1 ) * - - 17 + col2 FROM tab2 AS cor0
----
-1081
-1269
-844
query I rowsort
SELECT DISTINCT + 71 + - col2 * - + col2 AS col1 FROM tab2 AS cor0
----
1671
3435
600
query I rowsort
SELECT DISTINCT + col0 + + - 15 FROM tab2 AS cor0
----
31
49
60
query I rowsort
SELECT ALL + - col2 + 18 FROM tab1 cor0
----
-41
-50
-78
query I rowsort
SELECT - col0 * - 85 * + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
221085
614125
703885
query I rowsort
SELECT DISTINCT 83 * + - 48 AS col1 FROM tab1
----
-3984
query II rowsort
SELECT ALL - col2 * + col1, + col2 FROM tab0
----
-210
10
-3807
47
-99
99
onlyif mysql # DIV for integer division:
query I rowsort label-9071
SELECT ALL - col0 DIV - 30 FROM tab2 AS cor0
----
1
2
2
skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL - col0 / - 30 FROM tab2 AS cor0
----
1
2
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col1 FROM tab1 AS cor0 WHERE NOT + 63 - col0 IS NULL
----
59
68
96
onlyif mysql # DIV for integer division:
query I rowsort label-9073
SELECT ALL - col0 DIV - col0 - + 75 + - - col2 FROM tab0 AS cor0 WHERE 95 - col0 IS NOT NULL
----
-27
-64
25
skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL - col0 / - col0 - + 75 + - - col2 FROM tab0 AS cor0 WHERE 95 - col0 IS NOT NULL
----
-27
-64
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + ( - col2 ) col1 FROM tab0 AS cor0
----
100
2209
9801
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, col1 + + 18 + + col2 FROM tab1 cor0 WHERE NULL IS NULL
----
51
128
85
82
91
133
query I rowsort
SELECT DISTINCT - 95 * col1 * - - col1 + - col2 FROM tab0 AS cor0
----
-194
-41905
-623342
onlyif mysql # aggregate syntax:
query I rowsort label-9077
SELECT DISTINCT + MIN( ALL - - 43 ) + - 14 AS col1 FROM tab0 AS cor0
----
29
skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT + MIN ( ALL - - 43 ) + - 14 AS col1 FROM tab0 AS cor0
----
29
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 - - col1 IS NULL
----
query I rowsort
SELECT ALL + ( - + col2 ) + + ( col1 ) - - 61 + + + 84 AS col1 FROM tab2 AS cor0
----
154
173
182
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9080
SELECT ALL - AVG ( DISTINCT - col1 ) * - 63 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * + ( + col1 ) - col1 IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL - AVG ( DISTINCT - col1 ) * - 63 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + ( + col1 ) - col1 IS NOT NULL
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 81 col1 FROM tab1
----
132
166
172
query I rowsort
SELECT col2 - + ( 18 ) + + 86 FROM tab1
----
127
136
164
query III rowsort
SELECT * FROM tab2 WHERE - + col1 > col2
----
query I rowsort
SELECT + 51 + - 69 FROM tab0
----
-18
-18
-18
query I rowsort
SELECT + 82 + - col1 AS col2 FROM tab1
----
35
68
77
query I rowsort
SELECT ALL - 38 - + col1 FROM tab1
----
-43
-52
-85
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9087
SELECT - + col1 FROM tab1 WHERE - 94 * + col2 + - col2 + + + CAST( NULL AS SIGNED ) IS NULL
----
-14
-47
-5
skipif mysql # not compatible
query I rowsort label-9087
SELECT - + col1 FROM tab1 WHERE - 94 * + col2 + - col2 + + + CAST ( NULL AS INTEGER ) IS NULL
----
-14
-47
-5
query I rowsort
SELECT 35 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( 57, col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9089
SELECT ALL + ( + - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-9089
SELECT ALL + ( + - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3
query I rowsort
SELECT DISTINCT ( col0 ) - - 33 AS col1 FROM tab1
----
118
124
84
query III rowsort
SELECT ALL * FROM tab0 WHERE ( 22 + + 60 ) <= 31 + + col0
----
87
21
10
97
1
99
query I rowsort
SELECT + 75 FROM tab2 WHERE NOT col1 * - col1 + + col1 > NULL
----
query I rowsort
SELECT DISTINCT + col0 + 63 FROM tab1
----
114
148
154
onlyif mysql # aggregate syntax:
query I rowsort label-9094
SELECT MIN( DISTINCT col2 ) FROM tab0
----
10
skipif mysql # not compatible
query I rowsort label-9094
SELECT MIN ( DISTINCT col2 ) FROM tab0
----
10
onlyif mysql # aggregate syntax:
query I rowsort label-9095
SELECT MIN( - col2 ) AS col2 FROM tab1
----
-96
skipif mysql # not compatible
query I rowsort label-9095
SELECT MIN ( - col2 ) AS col2 FROM tab1
----
-96
query I rowsort
SELECT 37 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( col0 )
----
query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE col2 IS NULL
----
query I rowsort
SELECT DISTINCT 87 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
87
query I rowsort
SELECT 98 FROM tab2 WHERE + col0 >= NULL
----
query I rowsort
SELECT - col2 + + 65 FROM tab1
----
-3
-31
6
query I rowsort
SELECT - col0 FROM tab1 WHERE NOT col0 NOT BETWEEN ( + 61 * + 23 ) AND ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9102
SELECT MAX( DISTINCT col1 ) FROM tab1
----
47
skipif mysql # not compatible
query I rowsort label-9102
SELECT MAX ( DISTINCT col1 ) FROM tab1
----
47
onlyif mysql # aggregate syntax:
query I rowsort label-9103
SELECT ( - COUNT( * ) ) AS col1 FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-9103
SELECT ( - COUNT ( * ) ) AS col1 FROM tab1
----
-3
query III rowsort
SELECT * FROM tab2 WHERE col1 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL col0 - ( col0 ) AS col2 FROM tab2
----
0
0
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9106
SELECT CAST( CAST( col1 AS SIGNED ) AS SIGNED ) * col2 FROM tab2
----
1173
3080
3886
skipif mysql # not compatible
query I rowsort label-9106
SELECT CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) * col2 FROM tab2
----
1173
3080
3886
onlyif mysql # aggregate syntax:
query I rowsort label-9107
SELECT MIN( col0 ) * - 63 AS col2 FROM tab2
----
-2898
skipif mysql # not compatible
query I rowsort label-9107
SELECT MIN ( col0 ) * - 63 AS col2 FROM tab2
----
-2898
onlyif mysql # DIV for integer division:
query I rowsort label-9108
SELECT ALL col1 DIV + col1 + col2 FROM tab0
----
100
11
48
skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL col1 / + col1 + col2 FROM tab0
----
100
11
48
onlyif mysql # aggregate syntax:
query I rowsort label-9109
SELECT ALL - MIN( - 79 ) FROM tab2
----
79
skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL - MIN ( - 79 ) FROM tab2
----
79
query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT + 43 FROM tab0 AS cor0 WHERE + col2 NOT IN ( col1 )
----
43
43
43
query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9113
SELECT - COUNT( ALL - 81 ) FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-9113
SELECT - COUNT ( ALL - 81 ) FROM tab2 AS cor0
----
-3
query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9115
SELECT DISTINCT - CAST( + 45 AS SIGNED ) + 59 AS col2 FROM tab1
----
14
skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT - CAST ( + 45 AS INTEGER ) + 59 AS col2 FROM tab1
----
14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 15 ) * + col1 col1 FROM tab0
----
1215
15
315
query I rowsort
SELECT ALL + 93 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 75 >= ( NULL )
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9120
SELECT ALL COUNT( * ) DIV 23 col2 FROM tab1
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9120
SELECT ALL COUNT ( * ) / 23 col2 FROM tab1
----
0
query I rowsort
SELECT col0 + - 5 AS col0 FROM tab2 cor0
----
41
59
70
query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
query I rowsort
SELECT - col1 * - col2 + + col0 * col0 FROM tab1 AS cor0
----
11477
3945
7520
onlyif mysql # aggregate syntax:
query I rowsort label-9124
SELECT - 15 + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
-6
skipif mysql # not compatible
query I rowsort label-9124
SELECT - 15 + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
-6
onlyif mysql # aggregate syntax:
query I rowsort label-9125
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN col1 - col2 * col1 AND ( + col0 - col0 )
----
0
skipif mysql # not compatible
query I rowsort label-9125
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN col1 - col2 * col1 AND ( + col0 - col0 )
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9126
SELECT - - 33 * 72 + col1 * ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9126
SELECT - - 33 * 72 + col1 * ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 51 * + col1 FROM tab0 AS cor0
----
-1071
-4131
-51
query I rowsort
SELECT ALL 13 + col2 AS col0 FROM tab2
----
36
53
71
query I rowsort
SELECT DISTINCT - col2 + - col1 + 75 AS col1 FROM tab2
----
-42
-50
1
query I rowsort
SELECT ALL + 46 + - col2 FROM tab2
----
-12
23
6
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-9131
SELECT * FROM tab2 WHERE col1 BETWEEN - CAST( - col0 AS DECIMAL ) AND + col1 + 26
----
46
51
23
64
77
40
skipif mysql # not compatible
query III rowsort label-9131
SELECT * FROM tab2 WHERE col1 BETWEEN - CAST ( - col0 AS REAL ) AND + col1 + 26
----
46
51
23
64
77
40
query I rowsort
SELECT + col1 * 10 AS col1 FROM tab0 WHERE ( 37 ) IS NOT NULL
----
10
210
810
onlyif mysql # aggregate syntax:
query I rowsort label-9133
SELECT COUNT( * ) * - 33 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-9133
SELECT COUNT ( * ) * - 33 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0
query I rowsort
SELECT DISTINCT - 72 - - col0 FROM tab2
----
-26
-8
3
onlyif mysql # aggregate syntax:
query I rowsort label-9135
SELECT ALL COUNT( * ) + 30 FROM tab2 WHERE NULL NOT IN ( ( 64 ) )
----
30
skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL COUNT ( * ) + 30 FROM tab2 WHERE NULL NOT IN ( ( 64 ) )
----
30
query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 92 ) IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-9137
SELECT col1 DIV + + 85 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9137
SELECT col1 / + + 85 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-9138
SELECT DISTINCT - COUNT( * ) * + SUM( ALL - 16 ) FROM tab2 AS cor0
----
144
skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT - COUNT ( * ) * + SUM ( ALL - 16 ) FROM tab2 AS cor0
----
144
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE 45 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf
query IIIIII rowsort
SELECT * FROM tab2, tab0 cor0 WHERE - 90 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c
onlyif mysql # aggregate syntax:
query I rowsort label-9141
SELECT - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9141
SELECT - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
onlyif mysql # aggregate syntax:
query II rowsort label-9142
SELECT DISTINCT - 99 col0, + COUNT( * ) FROM tab2
----
-99
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9142
SELECT DISTINCT - 99 col0, + COUNT ( * ) FROM tab2
----
-99
3
onlyif mysql # aggregate syntax:
query I rowsort label-9143
SELECT ALL - COUNT( * ) * - 27 + - 79 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
164
skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL - COUNT ( * ) * - 27 + - 79 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
164
onlyif mysql # aggregate syntax:
query I rowsort label-9144
SELECT + COUNT( * ) * + 76 AS col1 FROM tab2 AS cor0
----
228
skipif mysql # not compatible
query I rowsort label-9144
SELECT + COUNT ( * ) * + 76 AS col1 FROM tab2 AS cor0
----
228
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9145
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3
query II rowsort
SELECT ALL - + col2 AS col0, col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67
query II rowsort
SELECT DISTINCT + col1 AS col2, + col0 * + 16 AS col2 FROM tab2 AS cor0
----
51
736
67
1200
77
1024
query I rowsort
SELECT ALL - 66 + + + col0 AS col2 FROM tab1 AS cor0
----
-15
19
25
query I rowsort
SELECT ( - 97 ) AS col0 FROM tab1 AS cor0
----
-97
-97
-97
query I rowsort
SELECT ALL + - 6 AS col1 FROM tab0 AS cor0
----
-6
-6
-6
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9151
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 + - ( + CAST( - col2 AS SIGNED ) ) * col1 ) BETWEEN ( - 85 * - 4 ) AND ( NULL )
----
skipif mysql # not compatible
query III rowsort label-9151
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 + - ( + CAST ( - col2 AS INTEGER ) ) * col1 ) BETWEEN ( - 85 * - 4 ) AND ( NULL )
----
query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT 29 IN ( - col1 * + col0 )
----
51
85
91
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 - + 27 IS NOT NULL
----
query I rowsort
SELECT + ( 10 ) AS col0 FROM tab1 AS cor0
----
10
10
10
query I rowsort
SELECT DISTINCT - 7 + - col0 AS col1 FROM tab2 AS cor0
----
-53
-71
-82
query I rowsort
SELECT DISTINCT - + 21 FROM tab1 cor0
----
-21
query I rowsort
SELECT col2 * - col2 * + 74 FROM tab2
----
-118400
-248936
-39146
onlyif mysql # aggregate syntax:
query I rowsort label-9158
SELECT - COUNT( * ) * - - 73 FROM tab1
----
-219
skipif mysql # not compatible
query I rowsort label-9158
SELECT - COUNT ( * ) * - - 73 FROM tab1
----
-219
query I rowsort
SELECT 75 * - 18 * col0 * + 52 FROM tab2
----
-3229200
-4492800
-5265000
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9160
SELECT * FROM tab2 WHERE + col0 + + col2 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-9160
SELECT * FROM tab2 WHERE + col0 + + col2 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
query I rowsort
SELECT + ( col0 ) AS col1 FROM tab1 WHERE col2 > ( + col2 / - 54 )
----
51
85
91
query I rowsort
SELECT ALL + + 21 + 87 - + col0 - + col0 * col2 AS col1 FROM tab2 AS cor0
----
-2516
-4317
-996
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 > ( - ( col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9164
SELECT DISTINCT - COUNT( DISTINCT 65 ) DIV 50 FROM tab1 AS cor0 WHERE NOT ( NULL ) = ( + col2 )
----
0
skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT - COUNT ( DISTINCT 65 ) / 50 FROM tab1 AS cor0 WHERE NOT ( NULL ) = ( + col2 )
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9165
SELECT CAST( col1 AS SIGNED ) AS col2 FROM tab1 WHERE ( - 23 / + ( ( - col1 ) ) ) IS NOT NULL
----
14
47
5
skipif mysql # not compatible
query I rowsort label-9165
SELECT CAST ( col1 AS INTEGER ) AS col2 FROM tab1 WHERE ( - 23 / + ( ( - col1 ) ) ) IS NOT NULL
----
14
47
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 67 ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT ALL + + 71 - + - 36 FROM tab2 AS cor0
----
107
107
107
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, - col0 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15
onlyif mysql # aggregate syntax:
query I rowsort label-9169
SELECT - SUM( - - col0 ) * + SUM( ALL - col1 ) * + COUNT( * ) - 37 AS col2 FROM tab2 AS cor0
----
108188
skipif mysql # not compatible
query I rowsort label-9169
SELECT - SUM ( - - col0 ) * + SUM ( ALL - col1 ) * + COUNT ( * ) - 37 AS col2 FROM tab2 AS cor0
----
108188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col0 * + col1 col1 FROM tab0 AS cor0
----
158949
18225
9409
query I rowsort
SELECT 57 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 + - - col2 AND + 15 + - 90
----
query I rowsort
SELECT DISTINCT - 82 FROM tab0 cor0
----
-82
query I rowsort
SELECT DISTINCT - + 88 + + + 74 * col1 FROM tab2 AS cor0
----
3686
4870
5610
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9174
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) / 63 * - CAST( NULL AS SIGNED ) / + 66 NOT IN ( - 13 + 64 )
----
0
skipif mysql # not compatible
query I rowsort label-9174
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) / 63 * - CAST ( NULL AS INTEGER ) / + 66 NOT IN ( - 13 + 64 )
----
0
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-9175
SELECT AVG ( CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 WHERE ( + col1 * - + col1 + - col0 + col0 / + 3 ) IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-9175
SELECT AVG ( CAST ( NULL AS REAL ) ) AS col2 FROM tab1 WHERE ( + col1 * - + col1 + - col0 + col0 / + 3 ) IS NULL
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9176
SELECT + + col0 AS col2 FROM tab1 WHERE - - col0 - + - CAST( NULL AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-9176
SELECT + + col0 AS col2 FROM tab1 WHERE - - col0 - + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
query I rowsort
SELECT ALL col1 * + - col1 AS col1 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
-196
-2209
-25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 80 col1, - 54 AS col0 FROM tab2
----
80
-54
80
-54
80
-54
query III rowsort
SELECT * FROM tab0 WHERE NOT - + 42 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL ( - - ( + 60 ) ) FROM tab2
----
60
60
60
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9181
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-9181
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
-3
query II rowsort
SELECT + 14 AS col2, - 84 FROM tab0
----
14
-84
14
-84
14
-84
onlyif mysql # aggregate syntax:
query I rowsort label-9183
SELECT DISTINCT SUM( - col0 ) FROM tab1
----
-227
skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT SUM ( - col0 ) FROM tab1
----
-227
query I rowsort
SELECT ALL 23 * + col1 * - + col2 FROM tab2
----
-26979
-70840
-89378
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + - 60 * - col0 + col1 > - - col2 / - col1 OR - 42 IS NULL
----
query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE 83 <= ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * col1 * col0 col2, - col1 col2 FROM tab1 AS cor0
----
-25075
-5
-290836
-47
-68544
-14
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) = - col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-9189
SELECT + COUNT( * ) * MAX( + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT + 73 = ( + col0 * + 89 / - - 99 + - col2 )
----
243
skipif mysql # not compatible
query I rowsort label-9189
SELECT + COUNT ( * ) * MAX ( + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT + 73 = ( + col0 * + 89 / - - 99 + - col2 )
----
243
onlyif mysql # aggregate syntax:
query II rowsort label-9190
SELECT ALL - SUM( ALL - col1 ), COUNT( * ) AS col2 FROM tab0 AS cor0
----
103
3
skipif mysql # not compatible
query II rowsort label-9190
SELECT ALL - SUM ( ALL - col1 ), COUNT ( * ) AS col2 FROM tab0 AS cor0
----
103
3
query I rowsort
SELECT DISTINCT 75 + - + 64 + col2 * col2 AS col2 FROM tab1 AS cor0
----
3492
4635
9227
query I rowsort
SELECT ALL - - col0 + - + 86 AS col1 FROM tab1 AS cor0
----
-1
-35
5
onlyif mysql # aggregate syntax:
query I rowsort label-9193
SELECT ALL 15 + + + COUNT( * ) FROM tab2
----
18
skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL 15 + + + COUNT ( * ) FROM tab2
----
18
query III rowsort
SELECT * FROM tab2 WHERE 60 IN ( col0 / col2 + + + 9 * + 1 * + col0 )
----
query II rowsort
SELECT + col2 * + + col2 + ( col2 ) AS col1, + col1 * + col2 FROM tab0
----
110
210
2256
3807
9900
99
onlyif mysql # aggregate syntax:
query I rowsort label-9196
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab1
----
3
query I rowsort
SELECT 13 * + 16 AS col0 FROM tab1
----
208
208
208
onlyif mysql # aggregate syntax:
query I rowsort label-9198
SELECT DISTINCT + MIN( - col1 ) AS col2 FROM tab0 AS cor0
----
-81
skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT + MIN ( - col1 ) AS col2 FROM tab0 AS cor0
----
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - - col2 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9200
SELECT MAX( ALL 24 ) FROM tab2 AS cor0
----
24
skipif mysql # not compatible
query I rowsort label-9200
SELECT MAX ( ALL 24 ) FROM tab2 AS cor0
----
24
onlyif mysql # aggregate syntax:
query I rowsort label-9201
SELECT ALL + + COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL + + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0
query II rowsort
SELECT DISTINCT + col0 + - col1 AS col1, ( - - col0 ) FROM tab2
----
-13
64
-5
46
8
75
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= - 81
----
onlyif mysql # aggregate syntax:
query I rowsort label-9204
SELECT ALL ( + + COUNT( * ) ) AS col1 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL ( + + COUNT ( * ) ) AS col1 FROM tab0
----
3
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= 19
----
query I rowsort
SELECT ALL + col1 - col0 + + + col2 - - col1 * col1 FROM tab2 AS cor0
----
2629
4539
5982
onlyif mysql # aggregate syntax:
query I rowsort label-9207
SELECT DISTINCT + MAX( + 24 ) AS col0 FROM tab2 AS cor0
----
24
skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT + MAX ( + 24 ) AS col0 FROM tab2 AS cor0
----
24
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 * + col2 )
----
query I rowsort
SELECT DISTINCT + + ( - 39 ) FROM tab0 AS cor0 WHERE NOT NULL >= col0 * - 35
----
query I rowsort
SELECT col0 + + 55 + 92 * + col1 + + col0 + 5 * 67 * - 7 + 56 * 24 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3838
5368
6266
query I rowsort
SELECT - - col2 * - col2 * - - col0 FROM tab1 cor0
----
-295885
-420784
-470016
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + col0 ) IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-9213
SELECT - ( CAST( NULL AS SIGNED ) ), - col1 AS col2 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81
skipif mysql # not compatible
query II rowsort label-9213
SELECT - ( CAST ( NULL AS INTEGER ) ), - col1 AS col2 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81
query I rowsort
SELECT ALL + 51 * col2 + + col1 AS col2 FROM tab1 cor0 WHERE ( NULL ) BETWEEN NULL AND + col2 * - - col2
----
onlyif mysql # aggregate syntax:
query II rowsort label-9215
SELECT DISTINCT - 35, - COUNT( * ) * 50 col1 FROM tab0
----
-35
-150
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9215
SELECT DISTINCT - 35, - COUNT ( * ) * 50 col1 FROM tab0
----
-35
-150
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9216
SELECT DISTINCT * FROM tab0 WHERE NOT - + CAST( NULL AS SIGNED ) + + ( + col0 ) IS NULL
----
skipif mysql # not compatible
query III rowsort label-9216
SELECT DISTINCT * FROM tab0 WHERE NOT - + CAST ( NULL AS INTEGER ) + + ( + col0 ) IS NULL
----
query I rowsort
SELECT + 8 * - col2 FROM tab0 WHERE NOT NULL < + - 86
----
onlyif mysql # aggregate syntax:
query I rowsort label-9218
SELECT ALL + COUNT( * ) * - 39 FROM tab1
----
-117
skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL + COUNT ( * ) * - 39 FROM tab1
----
-117
query I rowsort
SELECT ALL + 82 AS col2 FROM tab1 WHERE - col0 IS NOT NULL
----
82
82
82
query I rowsort
SELECT DISTINCT + col2 * + - col1 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196
onlyif mysql # aggregate syntax:
query I rowsort label-9221
SELECT ALL - + COUNT( ALL + + ( 90 ) ) AS col0 FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL - + COUNT ( ALL + + ( 90 ) ) AS col0 FROM tab1 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-9222
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col1 FROM tab2
----
9
skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2
----
9
onlyif mysql # DIV for integer division:
query I rowsort label-9223
SELECT + col1 DIV 34 + - col2 AS col1 FROM tab2 AS cor0
----
-22
-38
-57
skipif mysql # not compatible
query I rowsort label-9223
SELECT + col1 / 34 + - col2 AS col1 FROM tab2 AS cor0
----
-22
-38
-57
onlyif mysql # aggregate syntax:
query I rowsort label-9224
SELECT MIN( + col0 ) FROM tab0 AS cor0
----
15
skipif mysql # not compatible
query I rowsort label-9224
SELECT MIN ( + col0 ) FROM tab0 AS cor0
----
15
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-9225
SELECT DISTINCT - + CAST( + col2 AS SIGNED ) DIV col1 FROM tab1 AS cor0
----
-1
-11
-6
skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT - + CAST ( + col2 AS INTEGER ) / col1 FROM tab1 AS cor0
----
-1
-11
-6
onlyif mysql # aggregate syntax:
query I rowsort label-9226
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-9226
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-9227
SELECT ALL 94 DIV + + col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL 94 / + + col2 FROM tab1 AS cor0
----
0
1
1
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9228
SELECT 46 DIV - COUNT( * ) AS col2 FROM tab1 cor0
----
-15
skipif mysql # not compatible
query I rowsort label-9228
SELECT 46 / - COUNT ( * ) AS col2 FROM tab1 cor0
----
-15
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9229
SELECT DISTINCT - + ( - ( - 18 ) ) + - - CAST( NULL AS SIGNED ) + 43 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT - + ( - ( - 18 ) ) + - - CAST ( NULL AS INTEGER ) + 43 AS col1 FROM tab0 AS cor0
----
NULL
query II rowsort
SELECT - + 16 AS col1, col0 AS col0 FROM tab2 AS cor0
----
-16
46
-16
64
-16
75
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9231
SELECT DISTINCT + ( + + col2 ) * - col0 AS col1 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col1 BETWEEN + col1 AND + col0 + col2
----
skipif mysql # not compatible
query I rowsort label-9231
SELECT DISTINCT + ( + + col2 ) * - col0 AS col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col1 BETWEEN + col1 AND + col0 + col2
----
query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT DISTINCT - - 34 + col2 AS col2 FROM tab1 AS cor0
----
102
130
93
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9234
SELECT MIN( ALL - CAST( NULL AS SIGNED ) ) * + 76 * + COUNT( * ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9234
SELECT MIN ( ALL - CAST ( NULL AS INTEGER ) ) * + 76 * + COUNT ( * ) AS col0 FROM tab2
----
NULL
query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 > ( - ( + + col1 ) )
----
query I rowsort
SELECT DISTINCT 98 * + 12 FROM tab1
----
1176
query I rowsort
SELECT + 54 + - - 56 AS col2 FROM tab1 AS cor0 WHERE ( - col2 ) + - col1 IS NULL
----
query I rowsort
SELECT - - 48 + col2 AS col0 FROM tab2 AS cor0
----
106
71
88
query I rowsort
SELECT ALL - col0 * 80 + - col0 FROM tab0
----
-1215
-7047
-7857
query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-9241
SELECT ALL + col0 * - col2 * - col2 + + 33 + - + col0 DIV col2 FROM tab1 cor0 WHERE ( + + 56 * + 3 IS NOT NULL )
----
295917
420816
470049
skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL + col0 * - col2 * - col2 + + 33 + - + col0 / col2 FROM tab1 cor0 WHERE ( + + 56 * + 3 IS NOT NULL )
----
295917
420816
470049
query I rowsort
SELECT DISTINCT + 57 * + col2 FROM tab0 AS cor0
----
2679
5643
570
query I rowsort
SELECT 26 * col0 + + ( - col0 ) FROM tab0 AS cor0
----
2175
2425
375
query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 19 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # DIV for integer division:
query II rowsort label-9246
SELECT 44 * - col1 DIV + col1, + col2 FROM tab2 cor0
----
-44
23
-44
40
-44
58
skipif mysql # not compatible
query II rowsort label-9246
SELECT 44 * - col1 / + col1, + col2 FROM tab2 cor0
----
-44
23
-44
40
-44
58
onlyif mysql # aggregate syntax:
query I rowsort label-9247
SELECT ALL MAX( DISTINCT col1 ) FROM tab1 AS cor0
----
47
skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
47
onlyif mysql # aggregate syntax:
query I rowsort label-9248
SELECT - ( + - COUNT( * ) ) AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-9248
SELECT - ( + - COUNT ( * ) ) AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
3
query I rowsort
SELECT 7 * + - col2 FROM tab0
----
-329
-693
-70
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 <= + + col0 + - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT DISTINCT col0 * - 72 AS col1, - col0 AS col2 FROM tab1
----
-3672
-51
-6120
-85
-6552
-91
query I rowsort
SELECT - 69 * + + 3 * - col1 FROM tab0
----
16767
207
4347
query I rowsort
SELECT + ( col2 ) * + - 67 AS col2 FROM tab1
----
-3953
-4556
-6432
query I rowsort
SELECT ALL col0 * - + col2 * - - 97 AS col1 FROM tab0
----
-68385
-84390
-931491
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - col2 - + col2
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9256
SELECT + 69 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9256
SELECT + 69 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query II rowsort label-9257
SELECT col2 AS col1, 99 DIV + col1 + + col0 * + col2 AS col0 FROM tab1
----
59
5034
68
6190
96
4903
skipif mysql # not compatible
query II rowsort label-9257
SELECT col2 AS col1, 99 / + col1 + + col0 * + col2 AS col0 FROM tab1
----
59
5034
68
6190
96
4903
query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-9259
SELECT + CAST( + col2 AS SIGNED ), + col0 AS col1 FROM tab2 AS cor0 WHERE 28 * 67 IS NULL
----
skipif mysql # not compatible
query II rowsort label-9259
SELECT + CAST ( + col2 AS INTEGER ), + col0 AS col1 FROM tab2 AS cor0 WHERE 28 * 67 IS NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + 4 ) IS NOT NULL
----
query I rowsort
SELECT DISTINCT - - col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col1 AND - + ( - ( - ( + 25 ) ) ) + + + 0
----
onlyif mysql # DIV for integer division:
query I rowsort label-9262
SELECT col2 DIV - 47 + - 4 FROM tab0 cor0
----
-4
-5
-6
skipif mysql # not compatible
query I rowsort label-9262
SELECT col2 / - 47 + - 4 FROM tab0 cor0
----
-4
-5
-6
query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9264
SELECT - col1 * - CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9264
SELECT - col1 * - CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1344
-295
-3196
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - - col1 * 17 AS col0, + col1 * + col1 col2 FROM tab1 AS cor0
----
252
196
846
2209
90
25
onlyif mysql # aggregate syntax:
query I rowsort label-9267
SELECT ALL COUNT( * ) + + ( COUNT( * ) ) * - 22 FROM tab2 AS cor0
----
-63
skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL COUNT ( * ) + + ( COUNT ( * ) ) * - 22 FROM tab2 AS cor0
----
-63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + + col1 col0 FROM tab1
----
110
115
64
onlyif mysql # DIV for integer division:
query I rowsort label-9269
SELECT DISTINCT col2 DIV + + ( col0 ) AS col2 FROM tab0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT col2 / + + ( col0 ) AS col2 FROM tab0
----
0
1
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9270
SELECT + CAST( - col2 AS SIGNED ) + + ( + col0 ) * + col0 FROM tab0
----
178
7559
9310
skipif mysql # not compatible
query I rowsort label-9270
SELECT + CAST ( - col2 AS INTEGER ) + + ( + col0 ) * + col0 FROM tab0
----
178
7559
9310
onlyif mysql # aggregate syntax:
query I rowsort label-9271
SELECT ALL SUM( - col2 ) - + ( - 29 ) AS col1 FROM tab0
----
-127
skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL SUM ( - col2 ) - + ( - 29 ) AS col1 FROM tab0
----
-127
query I rowsort
SELECT col2 FROM tab1 WHERE - + col1 <> 74
----
59
68
96
onlyif mysql # DIV for integer division:
query I rowsort label-9273
SELECT - col2 + col1 DIV - col2 FROM tab2 WHERE - - col0 IS NOT NULL
----
-25
-41
-59
skipif mysql # not compatible
query I rowsort label-9273
SELECT - col2 + col1 / - col2 FROM tab2 WHERE - - col0 IS NOT NULL
----
-25
-41
-59
query III rowsort
SELECT * FROM tab2 WHERE - - ( - 72 ) * - col2 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL 64 FROM tab0 cor0
----
64
64
64
onlyif mysql # aggregate syntax:
query I rowsort label-9276
SELECT + COUNT( * ) - - + SUM( col1 ) FROM tab1 AS cor0
----
69
skipif mysql # not compatible
query I rowsort label-9276
SELECT + COUNT ( * ) - - + SUM ( col1 ) FROM tab1 AS cor0
----
69
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * + 27 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query II rowsort label-9278
SELECT ALL + - 1 DIV 37, 62 AS col1 FROM tab2 AS cor0
----
0
62
0
62
0
62
skipif mysql # not compatible
query II rowsort label-9278
SELECT ALL + - 1 / 37, 62 AS col1 FROM tab2 AS cor0
----
0
62
0
62
0
62
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 * + + col2 IS NOT NULL
----
query I rowsort
SELECT - col0 * + + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281
onlyif mysql # aggregate syntax:
query I rowsort label-9281
SELECT - + MIN( 75 ) AS col0 FROM tab2 AS cor0
----
-75
skipif mysql # not compatible
query I rowsort label-9281
SELECT - + MIN ( 75 ) AS col0 FROM tab2 AS cor0
----
-75
onlyif mysql # aggregate syntax:
query I rowsort label-9282
SELECT SUM( ( col0 ) ) col0 FROM tab0 AS cor0
----
199
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9282
SELECT SUM ( ( col0 ) ) col0 FROM tab0 AS cor0
----
199
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 * - col0 NOT BETWEEN + 26 * - + col1 AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 78 IS NULL
----
query II rowsort
SELECT ALL col1, 88 FROM tab1
----
14
88
47
88
5
88
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9286
SELECT SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9286
SELECT SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9287
SELECT DISTINCT - ( + COUNT( * ) ) FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT - ( + COUNT ( * ) ) FROM tab2
----
-3
query I rowsort
SELECT ( - + 19 ) FROM tab0
----
-19
-19
-19
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9289
SELECT DISTINCT + CAST( - + COUNT( DISTINCT - col1 ) AS SIGNED ) AS col1 FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT + CAST ( - + COUNT ( DISTINCT - col1 ) AS INTEGER ) AS col1 FROM tab0
----
-3
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 * - 6 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query II rowsort label-9291
SELECT DISTINCT COUNT( * ), + COUNT( * ) FROM tab2 AS cor0
----
3
3
skipif mysql # not compatible
query II rowsort label-9291
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) FROM tab2 AS cor0
----
3
3
query II rowsort
SELECT + + col1 AS col1, ( - - col1 ) AS col0 FROM tab1 AS cor0
----
14
14
47
47
5
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 99 ) col2 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NULL
----
99
99
99
query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE 79 IS NULL
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * + col1 BETWEEN - + 56 AND - ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT + 59 AS col0 FROM tab0 AS cor0
----
59
onlyif mysql # DIV for integer division:
query I rowsort label-9297
SELECT col1 DIV + 87 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9297
SELECT col1 / + 87 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + ( 28 ) FROM tab1 AS cor0
----
28
28
28
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + 56 + - col0 + + 19 * + col2 IS NOT NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9300
SELECT ALL MIN( DISTINCT + - 32 ) AS col0 FROM tab2 AS cor0
----
-32
skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL MIN ( DISTINCT + - 32 ) AS col0 FROM tab2 AS cor0
----
-32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 + + 29 col1 FROM tab0
----
114
query I rowsort
SELECT ALL col0 + - col0 - + ( col2 ) FROM tab2
----
-23
-40
-58
query I rowsort
SELECT ALL col1 + - - 77 AS col0 FROM tab0
----
158
78
98
onlyif mysql # aggregate syntax:
query I rowsort label-9304
SELECT ALL COUNT( * ) - - COUNT( * ) FROM tab2
----
6
skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL COUNT ( * ) - - COUNT ( * ) FROM tab2
----
6
query I rowsort
SELECT DISTINCT col1 * - - 75 - + + col1 AS col2 FROM tab1
----
1036
3478
370
query I rowsort
SELECT col1 - - + ( + - 9 ) AS col0 FROM tab2
----
42
58
68
query I rowsort
SELECT DISTINCT - + 68 FROM tab2 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9308
SELECT - COUNT( * ) + - 27 FROM tab2
----
-30
skipif mysql # not compatible
query I rowsort label-9308
SELECT - COUNT ( * ) + - 27 FROM tab2
----
-30
onlyif mysql # aggregate syntax:
query I rowsort label-9309
SELECT ALL 86 - - COUNT( * ) AS col0 FROM tab0
----
89
skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL 86 - - COUNT ( * ) AS col0 FROM tab0
----
89
query I rowsort
SELECT ALL - 72 * + col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 * 49 AND + col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-9311
SELECT + SUM( + + col0 ) FROM tab1 WHERE NULL IS NULL
----
227
skipif mysql # not compatible
query I rowsort label-9311
SELECT + SUM ( + + col0 ) FROM tab1 WHERE NULL IS NULL
----
227
onlyif mysql # aggregate syntax:
query I rowsort label-9312
SELECT DISTINCT - SUM( + col0 ) AS col1 FROM tab1 AS cor0
----
-227
skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT - SUM ( + col0 ) AS col1 FROM tab1 AS cor0
----
-227
query I rowsort
SELECT ALL + - col2 * 97 + 1 FROM tab1 AS cor0
----
-5722
-6595
-9311
query I rowsort
SELECT ALL - - ( - - col2 ) FROM tab2 AS cor0
----
23
40
58
query I rowsort
SELECT col0 * - col1 + 58 + - col0 + + - col1 * + + 0 AS col2 FROM tab0 AS cor0
----
-1172
-136
-1856
query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE + 94 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9317
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE ( - ( - col2 ) * col1 - + col1 * - CAST( + CAST( + col2 AS SIGNED ) AS SIGNED ) ) = - col2
----
skipif mysql # not compatible
query I rowsort label-9317
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE ( - ( - col2 ) * col1 - + col1 * - CAST ( + CAST ( + col2 AS INTEGER ) AS INTEGER ) ) = - col2
----
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query II rowsort label-9318
SELECT - + CAST( - - col0 AS SIGNED ) + - col2 AS col1, + 67 DIV col0 * - + 43 AS col2 FROM tab1 AS cor0
----
-144
0
-147
-43
-159
0
skipif mysql # not compatible
query II rowsort label-9318
SELECT - + CAST ( - - col0 AS INTEGER ) + - col2 AS col1, + 67 / col0 * - + 43 AS col2 FROM tab1 AS cor0
----
-144
0
-147
-43
-159
0
query I rowsort
SELECT DISTINCT - col2 + 6 AS col2 FROM tab2 AS cor0
----
-17
-34
-52
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 98 * + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9321
SELECT 62 DIV + COUNT( - + 69 ) col2 FROM tab2
----
20
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9321
SELECT 62 / + COUNT ( - + 69 ) col2 FROM tab2
----
20
query II rowsort
SELECT - 70 AS col2, col1 + col2 FROM tab1
----
-70
110
-70
115
-70
64
onlyif mysql # aggregate syntax:
query II rowsort label-9323
SELECT ALL - COUNT( * ), COUNT( * ) AS col1 FROM tab2
----
-3
3
skipif mysql # not compatible
query II rowsort label-9323
SELECT ALL - COUNT ( * ), COUNT ( * ) AS col1 FROM tab2
----
-3
3
onlyif mysql # aggregate syntax:
query I rowsort label-9324
SELECT - MIN( + - col2 ) FROM tab2
----
58
skipif mysql # not compatible
query I rowsort label-9324
SELECT - MIN ( + - col2 ) FROM tab2
----
58
onlyif mysql # aggregate syntax:
query I rowsort label-9325
SELECT - + MIN( ALL + ( + col0 ) ) FROM tab0 AS cor0
----
-15
skipif mysql # not compatible
query I rowsort label-9325
SELECT - + MIN ( ALL + ( + col0 ) ) FROM tab0 AS cor0
----
-15
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + - 44 NOT BETWEEN col1 * - + 54 + + ( - + col1 ) AND + col0 - + 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT col1, + col0 FROM tab0 AS cor0
----
1
97
21
87
81
15
onlyif mysql # aggregate syntax:
query I rowsort label-9328
SELECT DISTINCT - MIN( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
58
skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT - MIN ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
58
query I rowsort
SELECT DISTINCT + 8 * - 75 - + - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-523
-533
-549
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - + 27 )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-9331
SELECT MIN( DISTINCT + - col1 ) AS col0, SUM( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
-47
NULL
skipif mysql # not compatible
query II rowsort label-9331
SELECT MIN ( DISTINCT + - col1 ) AS col0, SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
-47
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9332
SELECT - CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9332
SELECT - CAST ( NULL AS INTEGER ) / col1 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + col1 + + col0 FROM tab1
----
14
47
5
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + - col2 * + - ( col0 ) * - col0 AND NULL
----
query I rowsort
SELECT + 56 + + col1 FROM tab2
----
107
123
133
query I rowsort
SELECT col1 * - + col1 - + - col0 / + col2 * - 59 FROM tab0 AS cor0 WHERE NOT NULL <> + 44
----
onlyif mysql # DIV for integer division:
query II rowsort label-9337
SELECT + + col1 DIV + - 44, 15 AS col2 FROM tab1 AS cor0
----
-1
15
0
15
0
15
skipif mysql # not compatible
query II rowsort label-9337
SELECT + + col1 / + - 44, 15 AS col2 FROM tab1 AS cor0
----
-1
15
0
15
0
15
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 48 = NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9339
SELECT DISTINCT 28 + - CAST( NULL AS SIGNED ) / SUM( + col1 ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT 28 + - CAST ( NULL AS INTEGER ) / SUM ( + col1 ) FROM tab1 AS cor0
----
NULL
query II rowsort
SELECT - ( - col2 ) AS col0, col0 AS col1 FROM tab2 AS cor0
----
23
46
40
64
58
75
onlyif mysql # aggregate syntax:
query I rowsort label-9341
SELECT DISTINCT COUNT( * ) + + + COUNT( * ) - COUNT( * ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT COUNT ( * ) + + + COUNT ( * ) - COUNT ( * ) FROM tab0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-9342
SELECT DISTINCT - + MIN( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-51
skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT - + MIN ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-51
onlyif mysql # aggregate syntax:
query I rowsort label-9343
SELECT ALL + + COUNT( ALL col1 ) FROM tab1 cor0
----
3
skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL + + COUNT ( ALL col1 ) FROM tab1 cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-9344
SELECT + ( ( - + 13 ) ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-10
skipif mysql # not compatible
query I rowsort label-9344
SELECT + ( ( - + 13 ) ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 + - col2 col1 FROM tab1 AS cor0
----
-32
-41
-69
onlyif mysql # aggregate syntax:
query I rowsort label-9346
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - 98 NOT IN ( 39, + 14 )
----
3
skipif mysql # not compatible
query I rowsort label-9346
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - 98 NOT IN ( 39, + 14 )
----
3
query I rowsort
SELECT DISTINCT 36 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
36
onlyif mysql # aggregate syntax:
query I rowsort label-9348
SELECT ALL - COUNT( * ) * - 74 FROM tab2 AS cor0
----
222
skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL - COUNT ( * ) * - 74 FROM tab2 AS cor0
----
222
query I rowsort
SELECT ALL + 22 + col0 * 45 - 35 FROM tab1 AS cor0
----
2282
3812
4082
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9350
SELECT DISTINCT 34 * - + 36 * col2 + CAST( + 5 AS SIGNED ) FROM tab1
----
-117499
-72211
-83227
skipif mysql # not compatible
query I rowsort label-9350
SELECT DISTINCT 34 * - + 36 * col2 + CAST ( + 5 AS INTEGER ) FROM tab1
----
-117499
-72211
-83227
onlyif mysql # aggregate syntax:
query I rowsort label-9351
SELECT ALL - COUNT( * ) + + - ( 66 ) * COUNT( * ) col0 FROM tab0
----
-201
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9351
SELECT ALL - COUNT ( * ) + + - ( 66 ) * COUNT ( * ) col0 FROM tab0
----
-201
query III rowsort
SELECT ALL * FROM tab0 WHERE - 1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-9353
SELECT ALL + MIN( ALL + + col0 ) - - + 17 / 29 * + - 82 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL + MIN ( ALL + + col0 ) - - + 17 / 29 * + - 82 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-9354
SELECT ALL ( - + col2 ) DIV 9 - + col0 + - col1 AS col1 FROM tab1
----
-145
-75
-96
skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL ( - + col2 ) / 9 - + col0 + - col1 AS col1 FROM tab1
----
-145
-75
-96
onlyif mysql # DIV for integer division:
query I rowsort label-9355
SELECT ALL + ( + col0 ) - 75 DIV - - 22 + + 29 FROM tab1
----
111
117
77
skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL + ( + col0 ) - 75 / - - 22 + + 29 FROM tab1
----
111
117
77
query I rowsort
SELECT + col0 * - col2 FROM tab0 WHERE + col1 > + col2
----
-705
-870
query II rowsort
SELECT DISTINCT + 25 - + col1, col2 AS col2 FROM tab0 cor0
----
-56
47
24
99
4
10
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1, - col0 )
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 = + + col2 + + - col2 + + col0 * - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT - col2 * - + col2 FROM tab1 cor0
----
3481
4624
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 col1 FROM tab0 AS cor0
----
705
870
9603
query I rowsort
SELECT - 59 * + col2 * - col0 AS col1 FROM tab1 AS cor0
----
288864
295885
365092
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9363
SELECT 0 DIV COUNT( * ) FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-9363
SELECT 0 / COUNT ( * ) FROM tab1
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-9364
SELECT ALL + MIN( + col0 ) FROM tab1 AS cor0
----
51
skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL + MIN ( + col0 ) FROM tab1 AS cor0
----
51
onlyif mysql # aggregate syntax:
query I rowsort label-9365
SELECT + COUNT( + + col2 ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-9365
SELECT + COUNT ( + + col2 ) FROM tab0 AS cor0
----
3
query II rowsort
SELECT col2, + 27 * + 17 + col1 * - 54 AS col2 FROM tab1 AS cor0
----
59
189
68
-2079
96
-297
query I rowsort
SELECT - - ( - col0 ) * + - col1 AS col1 FROM tab0 AS cor0
----
1215
1827
97
onlyif mysql # DIV for integer division:
query I rowsort label-9368
SELECT + col0 * col0 DIV col0 * + col0 FROM tab2 AS cor0
----
2116
4096
5625
skipif mysql # not compatible
query I rowsort label-9368
SELECT + col0 * col0 / col0 * + col0 FROM tab2 AS cor0
----
2116
4096
5625
onlyif mysql # DIV for integer division:
query I rowsort label-9369
SELECT DISTINCT 67 DIV + 69 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9369
SELECT DISTINCT 67 / + 69 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 * - 92 * + col1 col0 FROM tab1 cor0
----
135700
13819504
1731072
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - + col2 col2 FROM tab1 AS cor0
----
-110
-115
-64
query I rowsort
SELECT + 99 * 31 AS col1 FROM tab2
----
3069
3069
3069
onlyif mysql # aggregate syntax:
query I rowsort label-9373
SELECT ALL + COUNT( * ) * - MAX( col2 ) * + SUM( col1 ) FROM tab1
----
-19008
skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL + COUNT ( * ) * - MAX ( col2 ) * + SUM ( col1 ) FROM tab1
----
-19008
query II rowsort
SELECT DISTINCT 44, + ( + 11 ) AS col1 FROM tab2
----
44
11
query II rowsort
SELECT ALL + col0 AS col1, 80 * - col2 * col0 AS col2 FROM tab1
----
51
-391680
85
-401200
91
-495040
query II rowsort
SELECT ALL - col2, col0 AS col2 FROM tab2
----
-23
46
-40
64
-58
75
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 1 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9378
SELECT ALL SUM( ALL 48 ) FROM tab1
----
144
skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL SUM ( ALL 48 ) FROM tab1
----
144
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - col2 ) col1, col2 * + + col1 + + col2 FROM tab2
----
-23
1196
-40
3120
-58
3944
query I rowsort
SELECT - col0 * ( - 53 ) FROM tab2 AS cor0
----
2438
3392
3975
onlyif mysql # aggregate syntax:
query II rowsort label-9381
SELECT DISTINCT - 67 * 66, - COUNT( * ) AS col2 FROM tab2 cor0
----
-4422
-3
skipif mysql # not compatible
query II rowsort label-9381
SELECT DISTINCT - 67 * 66, - COUNT ( * ) AS col2 FROM tab2 cor0
----
-4422
-3
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 <> - ( - + ( - 94 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT IN ( ( - 73 ) + col0, - 75, - 79 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-9384
SELECT DISTINCT 99 - + - MAX( - 6 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
93
skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT 99 - + - MAX ( - 6 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
93
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9386
SELECT + COUNT( * ) col0 FROM tab1 cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9386
SELECT + COUNT ( * ) col0 FROM tab1 cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-9387
SELECT - COUNT( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-9387
SELECT - COUNT ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
-3
query I rowsort
SELECT DISTINCT 82 + - col1 FROM tab0 AS cor0
----
1
61
81
onlyif mysql # aggregate syntax:
query I rowsort label-9389
SELECT ALL COUNT( * ) - - MIN( ALL + col2 ) + + MIN( ALL col1 ) AS col1 FROM tab0
----
14
skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL COUNT ( * ) - - MIN ( ALL + col2 ) + + MIN ( ALL col1 ) AS col1 FROM tab0
----
14
onlyif mysql # DIV for integer division:
query II rowsort label-9390
SELECT ALL 53 AS col1, + col0 DIV + 8 FROM tab0
----
53
1
53
10
53
12
skipif mysql # not compatible
query II rowsort label-9390
SELECT ALL 53 AS col1, + col0 / + 8 FROM tab0
----
53
1
53
10
53
12
onlyif mysql # aggregate syntax:
query I rowsort label-9391
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL <= 18
----
0
skipif mysql # not compatible
query I rowsort label-9391
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL <= 18
----
0
query III rowsort
SELECT * FROM tab2 WHERE NOT + 60 NOT BETWEEN + col0 AND + col0
----
query II rowsort
SELECT DISTINCT col0, 16 + - col1 AS col2 FROM tab0 AS cor0
----
15
-65
87
-5
97
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 / + col1 + + 83 col1 FROM tab0 WHERE NOT + ( 29 ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9395
SELECT ALL ( + + 45 ) * + COUNT( * ) * - + 25 FROM tab0 AS cor0
----
-3375
skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL ( + + 45 ) * + COUNT ( * ) * - + 25 FROM tab0 AS cor0
----
-3375
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9396
SELECT ALL - col2 + - col0 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL - col2 + - col0 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 78 * 14 + + 84 AS col0 FROM tab0 AS cor0
----
1176
onlyif mysql # aggregate syntax:
query I rowsort label-9398
SELECT - COUNT( * ) * - 38 AS col2 FROM tab2 AS cor0
----
114
skipif mysql # not compatible
query I rowsort label-9398
SELECT - COUNT ( * ) * - 38 AS col2 FROM tab2 AS cor0
----
114
onlyif mysql # aggregate syntax:
query I rowsort label-9399
SELECT ALL + 97 * + - MAX( ALL + col1 ) FROM tab2
----
-7469
skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL + 97 * + - MAX ( ALL + col1 ) FROM tab2
----
-7469
onlyif mysql # aggregate syntax:
query I rowsort label-9400
SELECT COUNT( * ) + - + COUNT( - 22 ) FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-9400
SELECT COUNT ( * ) + - + COUNT ( - 22 ) FROM tab0
----
0
query I rowsort
SELECT ( + - 14 ) + - 36 AS col0 FROM tab1
----
-50
-50
-50
onlyif mysql # DIV for integer division:
query II rowsort label-9402
SELECT 86 + - + 55 DIV col0 + - col1 + col0 * 54, + 85 AS col2 FROM tab2
----
2518
85
3465
85
4069
85
skipif mysql # not compatible
query II rowsort label-9402
SELECT 86 + - + 55 / col0 + - col1 + col0 * 54, + 85 AS col2 FROM tab2
----
2518
85
3465
85
4069
85
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9403
SELECT ALL - + COUNT( * ) DIV COUNT( * ) FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL - + COUNT ( * ) / COUNT ( * ) FROM tab0 AS cor0
----
-1
query I rowsort
SELECT DISTINCT - 51 + + col2 FROM tab1 AS cor0
----
17
45
8
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 97 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9406
SELECT - col1 / + - CAST( NULL AS SIGNED ) - + 89 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9406
SELECT - col1 / + - CAST ( NULL AS INTEGER ) - + 89 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 - - - col0 FROM tab2
----
-128
-150
-92
query I rowsort
SELECT + - 63 FROM tab0 AS cor0 WHERE ( NOT ( - col2 ) / ( - ( + 52 ) ) * - + 48 + col0 - col0 IS NOT NULL )
----
onlyif mysql # DIV for integer division:
query I rowsort label-9409
SELECT ALL + col0 DIV - - 71 + col0 AS col1 FROM tab0 AS cor0
----
15
88
98
skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL + col0 / - - 71 + col0 AS col1 FROM tab0 AS cor0
----
15
88
98
query I rowsort
SELECT DISTINCT - + col2 + + col2 AS col0 FROM tab2 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 43 col2 FROM tab2 cor0
----
43
43
43
onlyif mysql # aggregate syntax:
query I rowsort label-9412
SELECT - COUNT( * ) + + + 91 + + + 34 col2 FROM tab2 AS cor0 WHERE + ( + + 17 ) - - + col0 IS NOT NULL
----
122
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9412
SELECT - COUNT ( * ) + + + 91 + + + 34 col2 FROM tab2 AS cor0 WHERE + ( + + 17 ) - - + col0 IS NOT NULL
----
122
query II rowsort
SELECT - - col1 AS col1, - col1 FROM tab1 cor0
----
14
-14
47
-47
5
-5
onlyif mysql # aggregate syntax:
query I rowsort label-9414
SELECT MAX( DISTINCT col0 ) * + COUNT( * ) + 42 FROM tab2 AS cor0
----
267
skipif mysql # not compatible
query I rowsort label-9414
SELECT MAX ( DISTINCT col0 ) * + COUNT ( * ) + 42 FROM tab2 AS cor0
----
267
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9415
SELECT 70 DIV + SUM( col0 ) FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-9415
SELECT 70 / + SUM ( col0 ) FROM tab1
----
0
query I rowsort
SELECT DISTINCT - ( - - col2 ) FROM tab1
----
-59
-68
-96
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN col2 * + + 75 + + + col0 AND NULL
----
query I rowsort
SELECT DISTINCT - - 58 FROM tab0 WHERE NULL > NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9419
SELECT - 1 * - AVG ( ALL + CAST( NULL AS SIGNED ) ) + - 15 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9419
SELECT - 1 * - AVG ( ALL + CAST ( NULL AS INTEGER ) ) + - 15 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 col0 FROM tab1 AS cor0
----
-3481
-4624
-9216
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-9421
SELECT DISTINCT - CAST( + 8 AS SIGNED ), col2 FROM tab1 AS cor0
----
-8
59
-8
68
-8
96
skipif mysql # not compatible
query II rowsort label-9421
SELECT DISTINCT - CAST ( + 8 AS INTEGER ), col2 FROM tab1 AS cor0
----
-8
59
-8
68
-8
96
onlyif mysql # aggregate syntax:
query II rowsort label-9422
SELECT ( - COUNT( * ) ) AS col2, COUNT( * ) AS col2 FROM tab0 cor0
----
-3
3
skipif mysql # not compatible
query II rowsort label-9422
SELECT ( - COUNT ( * ) ) AS col2, COUNT ( * ) AS col2 FROM tab0 cor0
----
-3
3
onlyif mysql # aggregate syntax:
query II rowsort label-9423
SELECT - - COUNT( * ), + COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9423
SELECT - - COUNT ( * ), + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9
onlyif mysql # DIV for integer division:
query I rowsort label-9424
SELECT 64 + - col2 + - col0 DIV + - col2 AS col1 FROM tab1
----
-3
-32
6
skipif mysql # not compatible
query I rowsort label-9424
SELECT 64 + - col2 + - col0 / + - col2 AS col1 FROM tab1
----
-3
-32
6
onlyif mysql # DIV for integer division:
query I rowsort label-9425
SELECT + - 87 DIV - 50 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9425
SELECT + - 87 / - 50 FROM tab1 cor0
----
1
1
1
onlyif mysql # aggregate syntax:
query I rowsort label-9426
SELECT ALL COUNT( ALL + 58 ) col2 FROM tab0 cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9426
SELECT ALL COUNT ( ALL + 58 ) col2 FROM tab0 cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-9427
SELECT + COUNT( * ) AS col1 FROM tab0 cor0
----
3
skipif mysql # not compatible
query I rowsort label-9427
SELECT + COUNT ( * ) AS col1 FROM tab0 cor0
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col0, - 99 * + col0 col2 FROM tab0 AS cor0
----
15
-1485
87
-8613
97
-9603
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9429
SELECT + CAST( + MIN( + ( + - 13 ) ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-13
skipif mysql # not compatible
query I rowsort label-9429
SELECT + CAST ( + MIN ( + ( + - 13 ) ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-13
query I rowsort
SELECT - col2 * + ( - 46 ) AS col2 FROM tab0 AS cor0
----
2162
4554
460
onlyif mysql # aggregate syntax:
query I rowsort label-9431
SELECT ALL COUNT( * ) + - 27 col1 FROM tab1 AS cor0
----
-24
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9431
SELECT ALL COUNT ( * ) + - 27 col1 FROM tab1 AS cor0
----
-24
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 19 * - col2 * + + col2 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL - col0 + - col1 + - + col2 FROM tab0 AS cor0
----
-118
-143
-197
query I rowsort
SELECT DISTINCT 19 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
19
query I rowsort
SELECT col2 * + ( - - col2 ) FROM tab2
----
1600
3364
529
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9436
SELECT DISTINCT col0 / + + col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT col0 / + + col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
query III rowsort
SELECT * FROM tab2 WHERE - - 99 >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query I rowsort label-9438
SELECT ALL + col1 + 31 DIV - col1 FROM tab1
----
-1
12
47
skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL + col1 + 31 / - col1 FROM tab1
----
-1
12
47
onlyif mysql # aggregate syntax:
query I rowsort label-9439
SELECT ALL + COUNT( * ) * - ( - + COUNT( * ) ) AS col2 FROM tab0
----
9
skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL + COUNT ( * ) * - ( - + COUNT ( * ) ) AS col2 FROM tab0
----
9
onlyif mysql # DIV for integer division:
query I rowsort label-9440
SELECT DISTINCT - col1 DIV col1 + + 26 + col0 DIV + - col1 + - + col1 AS col0 FROM tab0
----
-56
-73
0
skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT - col1 / col1 + + 26 + col0 / + - col1 + - + col1 AS col0 FROM tab0
----
-56
-73
0
query I rowsort
SELECT + 32 FROM tab2 WHERE - ( + + ( - col1 ) ) * col0 / + 95 + + col2 / col1 + - col0 NOT IN ( - + 87 * + col1 * col1, col2, + + col0 )
----
32
32
32
onlyif mysql # aggregate syntax:
query I rowsort label-9442
SELECT + 5 + + COUNT( * ) - - - COUNT( * ) * - - 52 FROM tab2 cor0
----
-148
skipif mysql # not compatible
query I rowsort label-9442
SELECT + 5 + + COUNT ( * ) - - - COUNT ( * ) * - - 52 FROM tab2 cor0
----
-148
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9443
SELECT ALL + - COUNT( + - ( - col1 ) ) DIV - ( - 91 ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL + - COUNT ( + - ( - col1 ) ) / - ( - 91 ) FROM tab1 AS cor0
----
0
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) <> - + 59 + - 77 - - + col0
----
query I rowsort
SELECT DISTINCT - col0 + - - 13 + - col0 + col2 * - col2 FROM tab2 AS cor0
----
-1715
-3501
-608
query I rowsort
SELECT - ( + + 79 ) + col0 FROM tab0 AS cor0
----
-64
18
8
onlyif mysql # aggregate syntax:
query I rowsort label-9447
SELECT ALL COUNT( * ) + + COUNT( DISTINCT + - 36 ) AS col2 FROM tab1 cor0
----
4
skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL COUNT ( * ) + + COUNT ( DISTINCT + - 36 ) AS col2 FROM tab1 cor0
----
4
query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL <> NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9449
SELECT ALL + COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL + COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
query I rowsort
SELECT ALL - 58 - col1 FROM tab2
----
-109
-125
-135
query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT DISTINCT col1 / col0 + - col2 FROM tab0 AS cor0 WHERE + col2 >= NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type:
query I rowsort label-9453
SELECT DISTINCT - + COUNT( * ) - - + SUM( - CAST( - - CAST( + col0 AS DECIMAL ) AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-202
skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT - + COUNT ( * ) - - + SUM ( - CAST ( - - CAST ( + col0 AS REAL ) AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-202
onlyif mysql # aggregate syntax:
query I rowsort label-9454
SELECT ALL - COUNT( * ) - 32 AS col2 FROM tab2 AS cor0
----
-35
skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL - COUNT ( * ) - 32 AS col2 FROM tab2 AS cor0
----
-35
onlyif mysql # aggregate syntax:
query I rowsort label-9455
SELECT + COUNT( * ) - + 16 col2 FROM tab0 AS cor0
----
-13
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9455
SELECT + COUNT ( * ) - + 16 col2 FROM tab0 AS cor0
----
-13
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9456
SELECT DISTINCT - - CAST( - 37 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-37
skipif mysql # not compatible
query I rowsort label-9456
SELECT DISTINCT - - CAST ( - 37 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-37
onlyif mysql # aggregate syntax:
query I rowsort label-9457
SELECT DISTINCT ( 62 ) * COUNT( * ) FROM tab0 AS cor0
----
186
skipif mysql # not compatible
query I rowsort label-9457
SELECT DISTINCT ( 62 ) * COUNT ( * ) FROM tab0 AS cor0
----
186
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 - 50 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - + ( col2 ) ) NOT IN ( - col0, - col0 )
----
query II rowsort
SELECT DISTINCT 68 AS col0, - col1 AS col1 FROM tab0
----
68
-1
68
-21
68
-81
query I rowsort
SELECT DISTINCT - ( + 26 ) * + col0 * + 93 FROM tab1
----
-123318
-205530
-220038
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9462
SELECT ALL * FROM tab2 WHERE ( NOT + CAST( col1 AS SIGNED ) < NULL )
----
skipif mysql # not compatible
query III rowsort label-9462
SELECT ALL * FROM tab2 WHERE ( NOT + CAST ( col1 AS INTEGER ) < NULL )
----
onlyif mysql # DIV for integer division:
query I rowsort label-9463
SELECT 39 DIV + + ( ( col2 ) ) AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9463
SELECT 39 / + + ( ( col2 ) ) AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - ( - + col0 ) AS col2 FROM tab1
----
51
85
91
onlyif mysql # aggregate syntax:
query II rowsort label-9465
SELECT DISTINCT - COUNT( * ) AS col2, - 33 AS col1 FROM tab1
----
-3
-33
skipif mysql # not compatible
query II rowsort label-9465
SELECT DISTINCT - COUNT ( * ) AS col2, - 33 AS col1 FROM tab1
----
-3
-33
onlyif mysql # aggregate syntax:
query I rowsort label-9466
SELECT ( MAX( col1 ) ) FROM tab1
----
47
skipif mysql # not compatible
query I rowsort label-9466
SELECT ( MAX ( col1 ) ) FROM tab1
----
47
onlyif mysql # DIV for integer division:
query II rowsort label-9467
SELECT ALL - 80 col0, + col2 DIV - 93 FROM tab1
----
-80
-1
-80
0
-80
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9467
SELECT ALL - 80 col0, + col2 / - 93 FROM tab1
----
-80
-1
-80
0
-80
0
onlyif mysql # aggregate syntax:
query I rowsort label-9468
SELECT - MIN( 26 ) col2 FROM tab1
----
-26
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9468
SELECT - MIN ( 26 ) col2 FROM tab1
----
-26
onlyif mysql # DIV for integer division:
query II rowsort label-9469
SELECT ALL - 97 AS col1, col1 DIV + 33 FROM tab1 cor0
----
-97
0
-97
0
-97
1
skipif mysql # not compatible
query II rowsort label-9469
SELECT ALL - 97 AS col1, col1 / + 33 FROM tab1 cor0
----
-97
0
-97
0
-97
1
onlyif mysql # aggregate syntax:
query I rowsort label-9470
SELECT - COUNT( * ) * - 20 AS col2 FROM tab2 AS cor0
----
60
skipif mysql # not compatible
query I rowsort label-9470
SELECT - COUNT ( * ) * - 20 AS col2 FROM tab2 AS cor0
----
60
onlyif mysql # aggregate syntax:
query I rowsort label-9471
SELECT - 73 * - COUNT( * ) FROM tab2 AS cor0
----
219
skipif mysql # not compatible
query I rowsort label-9471
SELECT - 73 * - COUNT ( * ) FROM tab2 AS cor0
----
219
query I rowsort
SELECT 58 AS col1 FROM tab2 WHERE NOT - col1 + + col0 NOT BETWEEN NULL AND + ( - 35 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 col0 FROM tab0 AS cor0
----
20
20
20
query I rowsort
SELECT DISTINCT + + ( + col2 ) + + 37 AS col1 FROM tab2 cor0
----
60
77
95
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query I rowsort label-9475
SELECT DISTINCT + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) + - col2 + 33 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) + - col2 + 33 FROM tab1 AS cor0
----
NULL
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9476
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + COUNT( * ) + - 51 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - 51 FROM tab1 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9477
SELECT ALL 1 * + - MAX( DISTINCT - col1 ) * COUNT( - - 72 ) + - + 5 FROM tab1
----
10
skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL 1 * + - MAX ( DISTINCT - col1 ) * COUNT ( - - 72 ) + - + 5 FROM tab1
----
10
onlyif mysql # aggregate syntax:
query I rowsort label-9478
SELECT + COUNT( * ) + 37 AS col1 FROM tab1
----
40
skipif mysql # not compatible
query I rowsort label-9478
SELECT + COUNT ( * ) + 37 AS col1 FROM tab1
----
40
query I rowsort
SELECT - col1 * - col2 + + col0 AS col0 FROM tab2
----
1219
3144
3961
query I rowsort
SELECT + ( col0 ) + + 57 + col1 + - col1 + col2 * + col2 FROM tab1
----
3623
4772
9324
onlyif mysql # aggregate syntax:
query I rowsort label-9481
SELECT ALL + 7 + + COUNT( * ) + 52 FROM tab2
----
62
skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL + 7 + + COUNT ( * ) + 52 FROM tab2
----
62
query II rowsort
SELECT col2 AS col0, col2 AS col0 FROM tab1
----
59
59
68
68
96
96
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-9483
SELECT ALL - + col2 + - col2 - - + col1 + - 30 + - + 69 * - col2 col0, CAST( + 93 AS SIGNED ) FROM tab1 cor0
----
3928
93
4573
93
6416
93
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9483
SELECT ALL - + col2 + - col2 - - + col1 + - 30 + - + 69 * - col2 col0, CAST ( + 93 AS INTEGER ) FROM tab1 cor0
----
3928
93
4573
93
6416
93
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9484
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9484
SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-9485
SELECT DISTINCT + col0 + + - col0 AS col1, CAST( NULL AS SIGNED ) FROM tab2
----
0
NULL
skipif mysql # not compatible
query II rowsort label-9485
SELECT DISTINCT + col0 + + - col0 AS col1, CAST ( NULL AS INTEGER ) FROM tab2
----
0
NULL
query I rowsort
SELECT DISTINCT - + 35 * col2 * + 83 FROM tab2 AS cor0
----
-116200
-168490
-66815
query I rowsort
SELECT DISTINCT + 26 FROM tab0 cor0 WHERE ( - col0 ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9488
SELECT COUNT( + col1 ) AS col2 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-9488
SELECT COUNT ( + col1 ) AS col2 FROM tab1 AS cor0
----
3
query I rowsort
SELECT ALL + + col1 * - + col1 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25
query II rowsort
SELECT - 9 * - + col2, col0 FROM tab0 AS cor0
----
423
15
891
97
90
87
onlyif mysql # aggregate syntax:
query I rowsort label-9491
SELECT - MIN( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
99
skipif mysql # not compatible
query I rowsort label-9491
SELECT - MIN ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
99
query I rowsort
SELECT ALL + col2 * + 16 AS col1 FROM tab2
----
368
640
928
query I rowsort
SELECT DISTINCT - - 52 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT ALL 28 * col1 FROM tab2
----
1428
1876
2156
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9495
SELECT - CAST( + - SUM( ALL - col1 ) AS SIGNED ) col2 FROM tab2
----
-195
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9495
SELECT - CAST ( + - SUM ( ALL - col1 ) AS INTEGER ) col2 FROM tab2
----
-195
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75
query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9498
SELECT - CAST( + CAST( - col0 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 < NULL
----
skipif mysql # not compatible
query I rowsort label-9498
SELECT - CAST ( + CAST ( - col0 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 < NULL
----
query I rowsort
SELECT - + ( ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75
query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
onlyif mysql # aggregate syntax:
query I rowsort label-9502
SELECT DISTINCT - COUNT( + col1 ) FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT - COUNT ( + col1 ) FROM tab2 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-9503
SELECT + - ( - SUM( + 49 ) ) AS col0 FROM tab2 AS cor0
----
147
skipif mysql # not compatible
query I rowsort label-9503
SELECT + - ( - SUM ( + 49 ) ) AS col0 FROM tab2 AS cor0
----
147
query II rowsort
SELECT - + col2 AS col1, + 78 * + - 48 FROM tab0 AS cor0
----
-10
-3744
-47
-3744
-99
-3744
query I rowsort
SELECT - AVG ( - 75 ) AS col1 FROM tab2 AS cor0 WHERE NULL > + 32
----
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-9506
SELECT ALL - MAX( ALL 1 ) AS col0, + COUNT( * ) FROM tab1 AS cor0
----
-1
3
skipif mysql # not compatible
query II rowsort label-9506
SELECT ALL - MAX ( ALL 1 ) AS col0, + COUNT ( * ) FROM tab1 AS cor0
----
-1
3
query I rowsort
SELECT DISTINCT 5 + - col2 + col2 AS col1 FROM tab0 AS cor0
----
5
onlyif mysql # aggregate syntax:
query I rowsort label-9508
SELECT DISTINCT - SUM( DISTINCT 19 ) + + 33 FROM tab2 AS cor0
----
14
skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT - SUM ( DISTINCT 19 ) + + 33 FROM tab2 AS cor0
----
14
query I rowsort
SELECT col0 FROM tab1 WHERE NULL NOT IN ( + col0 * - ( col0 ) / + - col1 )
----
query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE + + col0 / + col0 * + 85 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT - 99 * + - col0 + + col2 AS col2 FROM tab2
----
4577
6376
7483
onlyif mysql # aggregate syntax:
query I rowsort label-9512
SELECT + 42 + + ( - SUM( DISTINCT - ( 32 ) ) ) FROM tab0 AS cor0
----
74
skipif mysql # not compatible
query I rowsort label-9512
SELECT + 42 + + ( - SUM ( DISTINCT - ( 32 ) ) ) FROM tab0 AS cor0
----
74
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 = 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 37 < + 72
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9515
SELECT DISTINCT - col0 * + + CAST( NULL AS SIGNED ) + - 12 + + + 11 + + + ( - col0 ) * 17 + + col0 col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9515
SELECT DISTINCT - col0 * + + CAST ( NULL AS INTEGER ) + - 12 + + + 11 + + + ( - col0 ) * 17 + + col0 col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9516
SELECT - MAX( - - col1 ) FROM tab0
----
-81
skipif mysql # not compatible
query I rowsort label-9516
SELECT - MAX ( - - col1 ) FROM tab0
----
-81
onlyif mysql # aggregate syntax:
query I rowsort label-9517
SELECT ALL + COUNT( * ) * - 34 * COUNT( * ) FROM tab1 AS cor0
----
-306
skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL + COUNT ( * ) * - 34 * COUNT ( * ) FROM tab1 AS cor0
----
-306
onlyif mysql # aggregate syntax:
query I rowsort label-9518
SELECT DISTINCT MAX( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
75
skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT MAX ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
75
query I rowsort
SELECT DISTINCT - 84 * - 98 AS col0 FROM tab1 AS cor0
----
8232
onlyif mysql # DIV for integer division:
query I rowsort label-9520
SELECT ALL + 55 DIV + col1 + + - col1 * - + 62 AS col2 FROM tab0 AS cor0
----
117
1304
5022
skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL + 55 / + col1 + + - col1 * - + 62 AS col2 FROM tab0 AS cor0
----
117
1304
5022
query I rowsort
SELECT DISTINCT + - 64 * - col0 FROM tab1 cor0
----
3264
5440
5824
onlyif mysql # DIV for integer division:
query I rowsort label-9522
SELECT ALL + - col2 DIV + 56 AS col1 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL + - col2 / + 56 AS col1 FROM tab0 AS cor0
----
-1
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-9523
SELECT ALL 92 * - - ( + COUNT( * ) ) * COUNT( DISTINCT - + col0 ) FROM tab1
----
828
skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL 92 * - - ( + COUNT ( * ) ) * COUNT ( DISTINCT - + col0 ) FROM tab1
----
828
onlyif mysql # aggregate syntax:
query I rowsort label-9524
SELECT ALL + MIN( - - 80 ) * - - COUNT( * ) FROM tab2
----
240
skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL + MIN ( - - 80 ) * - - COUNT ( * ) FROM tab2
----
240
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * 90 * - 71 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT col1 * 37 AS col1 FROM tab0
----
2997
37
777
query I rowsort
SELECT ( + + col1 ) AS col1 FROM tab2
----
51
67
77
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-9528
SELECT - COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9528
SELECT - COUNT ( * ) * - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9529
SELECT DISTINCT + 45 AS col0 FROM tab1 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ), 14 )
----
skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT + 45 AS col0 FROM tab1 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ), 14 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9530
SELECT MAX( - col2 ) FROM tab1 AS cor0
----
-59
skipif mysql # not compatible
query I rowsort label-9530
SELECT MAX ( - col2 ) FROM tab1 AS cor0
----
-59
onlyif mysql # aggregate syntax:
query I rowsort label-9531
SELECT + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL > col1
----
0
skipif mysql # not compatible
query I rowsort label-9531
SELECT + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL > col1
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-9532
SELECT ALL - col0 DIV ( + + col1 ) AS col1 FROM tab1 cor0
----
-1
-17
-3
skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL - col0 / ( + + col1 ) AS col1 FROM tab1 cor0
----
-1
-17
-3
query II rowsort
SELECT DISTINCT + 18 * + ( + col0 ) + ( col1 ), col1 AS col1 FROM tab0 AS cor0
----
1587
21
1747
1
351
81
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 >= + col2
----
onlyif mysql # DIV for integer division:
query II rowsort label-9535
SELECT col1, + col1 DIV + col1 + 9 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
10
47
10
5
10
skipif mysql # not compatible
query II rowsort label-9535
SELECT col1, + col1 / + col1 + 9 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
10
47
10
5
10
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9536
SELECT - CAST( + + col2 AS SIGNED ) FROM tab1 cor0
----
-59
-68
-96
skipif mysql # not compatible
query I rowsort label-9536
SELECT - CAST ( + + col2 AS INTEGER ) FROM tab1 cor0
----
-59
-68
-96
onlyif mysql # aggregate syntax:
query I rowsort label-9537
SELECT + ( - - COUNT( * ) ) col0 FROM tab2
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9537
SELECT + ( - - COUNT ( * ) ) col0 FROM tab2
----
3
query I rowsort
SELECT - AVG ( - - col1 ) AS col1 FROM tab2 WHERE 36 < - col1
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9539
SELECT DISTINCT MIN( ALL 13 ) AS col0 FROM tab1 AS cor0
----
13
skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT MIN ( ALL 13 ) AS col0 FROM tab1 AS cor0
----
13
onlyif mysql # aggregate syntax:
query I rowsort label-9540
SELECT DISTINCT + + COUNT( 7 ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-9540
SELECT DISTINCT + + COUNT ( 7 ) FROM tab0 AS cor0
----
3
query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE col0 < - - 20 * col2 * - + 77
----
query II rowsort
SELECT ALL - - col1 AS col1, + col1 AS col1 FROM tab2 cor0
----
51
51
67
67
77
77
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 6 NOT BETWEEN NULL AND + + ( - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + - 96 / - col1 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query I rowsort label-9545
SELECT DISTINCT + col2 DIV - + col1 - - 41 FROM tab2 AS cor0
----
41
skipif mysql # not compatible
query I rowsort label-9545
SELECT DISTINCT + col2 / - + col1 - - 41 FROM tab2 AS cor0
----
41
query I rowsort
SELECT + + 79 * - 18 * + - 90 * - 52 + 7 FROM tab1 AS cor0
----
-6654953
-6654953
-6654953
onlyif mysql # DIV for integer division:
query I rowsort label-9547
SELECT - 55 + - col2 DIV + - col2 AS col1 FROM tab1 AS cor0
----
-54
-54
-54
skipif mysql # not compatible
query I rowsort label-9547
SELECT - 55 + - col2 / + - col2 AS col1 FROM tab1 AS cor0
----
-54
-54
-54
onlyif mysql # DIV for integer division:
query I rowsort label-9548
SELECT + col2 * 60 DIV - + 26 + 27 + 38 DIV - - 15 + + 91 FROM tab0
----
-108
12
97
skipif mysql # not compatible
query I rowsort label-9548
SELECT + col2 * 60 / - + 26 + 27 + 38 / - - 15 + + 91 FROM tab0
----
-108
12
97
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 61 * - - col1 - col2 + + - 47 * - 60 IS NOT NULL
----
query I rowsort
SELECT ALL + 80 + + col1 * - col0 AS col1 FROM tab0
----
-1135
-17
-1747
query I rowsort
SELECT DISTINCT - 16 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-9552
SELECT + COUNT( * ) * + CAST( - + 75 AS SIGNED ), COUNT( * ) FROM tab0 WHERE NULL <= col1
----
0
0
skipif mysql # not compatible
query II rowsort label-9552
SELECT + COUNT ( * ) * + CAST ( - + 75 AS INTEGER ), COUNT ( * ) FROM tab0 WHERE NULL <= col1
----
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - ( col1 ) ) col1 FROM tab0
----
1
21
81
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 * 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT DISTINCT col0 AS col1, col1 + + col2 AS col1 FROM tab2
----
46
74
64
117
75
125
onlyif mysql # aggregate syntax:
query I rowsort label-9556
SELECT DISTINCT 84 - COUNT( ALL + - 69 ) AS col1 FROM tab0
----
81
skipif mysql # not compatible
query I rowsort label-9556
SELECT DISTINCT 84 - COUNT ( ALL + - 69 ) AS col1 FROM tab0
----
81
onlyif mysql # aggregate syntax:
query I rowsort label-9557
SELECT ALL ( SUM( + col0 ) ) AS col2 FROM tab1 AS cor0
----
227
skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL ( SUM ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
227
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + col1 + col1 * col1 * - ( - 4 ) NOT BETWEEN NULL AND ( - 81 ) * + - col2 + - - 2
----
91
47
68
query I rowsort
SELECT 70 - 21 AS col2 FROM tab2 AS cor0
----
49
49
49
onlyif mysql # aggregate syntax:
query I rowsort label-9560
SELECT - SUM( - - ( + col1 ) ) * - SUM( ALL col1 ) FROM tab0 AS cor0
----
10609
skipif mysql # not compatible
query I rowsort label-9560
SELECT - SUM ( - - ( + col1 ) ) * - SUM ( ALL col1 ) FROM tab0 AS cor0
----
10609
onlyif mysql # DIV for integer division:
query I rowsort label-9561
SELECT - - col0 DIV col1 * + 58 FROM tab1 AS cor0
----
174
58
986
skipif mysql # not compatible
query I rowsort label-9561
SELECT - - col0 / col1 * + 58 FROM tab1 AS cor0
----
174
58
986
query I rowsort
SELECT - col1 * + + 95 FROM tab0 AS cor0
----
-1995
-7695
-95
query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + 22 IS NULL
----
14
47
5
query I rowsort
SELECT + - col1 * - col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
query I rowsort
SELECT DISTINCT - 16 AS col2 FROM tab0
----
-16
query I rowsort
SELECT ALL 62 FROM tab2 AS cor0 WHERE NULL IS NULL
----
62
62
62
query I rowsort
SELECT ALL - col2 - col0 + - 91 + - col2 + - col2 FROM tab1 cor0 WHERE col1 - + col0 - col1 NOT BETWEEN + col1 AND - + col1
----
-353
-386
-430
query I rowsort
SELECT col2 * col1 * 80 + col0 FROM tab0 AS cor0
----
16887
304575
8017
onlyif mysql # aggregate syntax:
query I rowsort label-9569
SELECT - ( + COUNT( * ) ) col2 FROM tab2
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9569
SELECT - ( + COUNT ( * ) ) col2 FROM tab2
----
-3
query II rowsort
SELECT ALL + col0, - 5 * - 63 AS col2 FROM tab1
----
51
315
85
315
91
315
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + col0 * + col0 IS NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9572
SELECT COUNT( ALL 31 ) AS col0 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-9572
SELECT COUNT ( ALL 31 ) AS col0 FROM tab0
----
3
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * - + col2 * - - col0 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT 0 * + 93 * + col0 AS col2 FROM tab1
----
0
0
0
query II rowsort
SELECT DISTINCT - - 42 * + ( + col2 ) AS col2, + ( - + ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
1974
-15
4158
-97
420
-87
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL > NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9577
SELECT - MAX( ALL 24 ) * 70 AS col2 FROM tab1
----
-1680
skipif mysql # not compatible
query I rowsort label-9577
SELECT - MAX ( ALL 24 ) * 70 AS col2 FROM tab1
----
-1680
query I rowsort
SELECT col2 - + 72 / col0 AS col1 FROM tab1 WHERE NOT ( NULL ) = ( + 91 )
----
query I rowsort
SELECT 90 * ( col0 ) FROM tab0
----
1350
7830
8730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 * + col0 col0 FROM tab1
----
-2295
-3825
-4095
query I rowsort
SELECT col1 * + ( col2 * - col2 ) FROM tab2
----
-123200
-225388
-26979
query III rowsort
SELECT * FROM tab1 WHERE + 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ( col0 ) FROM tab2 WHERE col2 * col1 + col2 IS NOT NULL
----
46
64
75
query I rowsort
SELECT ALL 90 * 87 AS col1 FROM tab1
----
7830
7830
7830
query I rowsort
SELECT + col0 * col0 - - col0 AS col0 FROM tab2
----
2162
4160
5700
query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-9588
SELECT ( + COUNT( * ) ) AS col0 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-9588
SELECT ( + COUNT ( * ) ) AS col0 FROM tab1
----
3
query I rowsort
SELECT ALL col2 * 44 AS col1 FROM tab2
----
1012
1760
2552
onlyif mysql # DIV for integer division:
query I rowsort label-9590
SELECT - col2 DIV - col0 AS col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9590
SELECT - col2 / - col0 AS col0 FROM tab2
----
0
0
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9591
SELECT ALL ( + CAST( NULL AS SIGNED ) ) * 52 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) * 52 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NULL > col0
----
onlyif mysql # DIV for integer division:
query I rowsort label-9593
SELECT + 67 DIV col1 AS col0 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9593
SELECT + 67 / col1 AS col0 FROM tab2
----
0
1
1
query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) >= ( NULL )
----
query I rowsort
SELECT DISTINCT col0 * 21 AS col2 FROM tab0 WHERE NULL IS NULL
----
1827
2037
315
query I rowsort
SELECT ALL - 32 * - col1 FROM tab1
----
1504
160
448
onlyif mysql # aggregate syntax:
query I rowsort label-9597
SELECT ALL + SUM( + col2 ) * 93 FROM tab0
----
14508
skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL + SUM ( + col2 ) * 93 FROM tab0
----
14508
onlyif mysql # aggregate syntax:
query I rowsort label-9598
SELECT COUNT( * ) + + SUM( col2 + col2 ) FROM tab1
----
449
skipif mysql # not compatible
query I rowsort label-9598
SELECT COUNT ( * ) + + SUM ( col2 + col2 ) FROM tab1
----
449
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9599
SELECT ( + ( - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) ) ) * 3 col0 FROM tab0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9599
SELECT ( + ( - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) ) * 3 col0 FROM tab0
----
NULL
query I rowsort
SELECT - 91 + col2 FROM tab0
----
-44
-81
8
query I rowsort
SELECT 47 * 43 FROM tab2
----
2021
2021
2021
query I rowsort
SELECT ALL 80 * 3 + 24 FROM tab1
----
264
264
264
onlyif mysql # aggregate syntax:
query I rowsort label-9603
SELECT COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
9
skipif mysql # not compatible
query I rowsort label-9603
SELECT COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
9
query III rowsort
SELECT * FROM tab2 WHERE 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL col1 + col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9606
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 * + col2 IS NULL
----
-3
skipif mysql # not compatible
query I rowsort label-9606
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 * + col2 IS NULL
----
-3
query I rowsort
SELECT + 6 * + 91 AS col1 FROM tab2 AS cor0
----
546
546
546
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 76 * - col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab1 WHERE - col0 > ( - 85 )
----
-51
query I rowsort
SELECT DISTINCT + col2 + col0 * - col2 FROM tab1 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT ( 67 ) AS col1 FROM tab1
----
67
67
67
onlyif mysql # aggregate syntax:
query I rowsort label-9612
SELECT MIN( col1 ) FROM tab1
----
5
skipif mysql # not compatible
query I rowsort label-9612
SELECT MIN ( col1 ) FROM tab1
----
5
query I rowsort
SELECT ALL col0 * col0 + - col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( + 84 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9615
SELECT ALL + - SUM( DISTINCT 82 ) FROM tab0 AS cor0
----
-82
skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL + - SUM ( DISTINCT 82 ) FROM tab0 AS cor0
----
-82
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-9616
SELECT 50 * MIN( ALL 7 ) AS col1 FROM tab1 cor0 WHERE NOT ( - 87 + CAST( col0 - col1 AS DECIMAL ) * 75 ) IS NULL
----
350
skipif mysql # not compatible
query I rowsort label-9616
SELECT 50 * MIN ( ALL 7 ) AS col1 FROM tab1 cor0 WHERE NOT ( - 87 + CAST ( col0 - col1 AS REAL ) * 75 ) IS NULL
----
350
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - 74 IN ( + 3 + 14 )
----
query I rowsort
SELECT DISTINCT - ( col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-59
-68
-96
query I rowsort
SELECT - 27 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 > ( 16 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9620
SELECT + + MAX( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
75
skipif mysql # not compatible
query I rowsort label-9620
SELECT + + MAX ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
75
query I rowsort
SELECT ALL + + col2 * 68 FROM tab0 AS cor0
----
3196
6732
680
onlyif mysql # aggregate syntax:
query I rowsort label-9622
SELECT 49 + + SUM( ALL + col0 ) AS col0 FROM tab2
----
234
skipif mysql # not compatible
query I rowsort label-9622
SELECT 49 + + SUM ( ALL + col0 ) AS col0 FROM tab2
----
234
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 8 - col2 col0 FROM tab0
----
8
8
8
query I rowsort
SELECT ALL + 20 FROM tab2 WHERE NOT ( + 89 ) + - col0 >= - col1 - col2 / 90
----
query I rowsort
SELECT + 51 + - col0 AS col0 FROM tab2
----
-13
-24
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 + - + col2 col2 FROM tab1
----
-24
13
4
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9627
SELECT ALL - CAST( - 94 AS SIGNED ) FROM tab1
----
94
94
94
skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL - CAST ( - 94 AS INTEGER ) FROM tab1
----
94
94
94
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9628
SELECT DISTINCT * FROM tab1 WHERE 14 >= CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-9628
SELECT DISTINCT * FROM tab1 WHERE 14 >= CAST ( NULL AS INTEGER )
----
query I rowsort
SELECT col1 + + 26 FROM tab2
----
103
77
93
query I rowsort
SELECT - col1 + - col2 - - 8 * + col0 FROM tab0
----
-8
665
676
query I rowsort
SELECT DISTINCT col0 * - - ( - 3 ) FROM tab0
----
-261
-291
-45
query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE ( - 89 ) NOT BETWEEN NULL AND ( col2 )
----
query III rowsort
SELECT * FROM tab2 WHERE + 89 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN 65 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT + col1 + col2 * - 93 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-4290
-909
-9206
query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9637
SELECT + - COUNT( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-9637
SELECT + - COUNT ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-3
query I rowsort
SELECT ( + - col0 ) AS col0 FROM tab2
----
-46
-64
-75
onlyif mysql # aggregate syntax:
query I rowsort label-9639
SELECT + COUNT( * ) AS col2 FROM tab1, tab0 cor0
----
9
skipif mysql # not compatible
query I rowsort label-9639
SELECT + COUNT ( * ) AS col2 FROM tab1, tab0 cor0
----
9
query I rowsort
SELECT col1 FROM tab2 WHERE 68 - - col0 NOT BETWEEN ( + col2 ) AND col0 * + col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-9641
SELECT ALL + ( 13 ) * COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
39
skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL + ( 13 ) * COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
39
query I rowsort
SELECT DISTINCT - col1 * + col1 FROM tab2 AS cor0 WHERE NOT NULL <= col0
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9643
SELECT ( 50 ) AS col1 FROM tab2 AS cor0 WHERE + 31 + - - CAST( - 43 AS SIGNED ) IS NULL
----
skipif mysql # not compatible
query I rowsort label-9643
SELECT ( 50 ) AS col1 FROM tab2 AS cor0 WHERE + 31 + - - CAST ( - 43 AS INTEGER ) IS NULL
----
query I rowsort
SELECT 52 * col1 + 88 AS col2 FROM tab2 AS cor0
----
2740
3572
4092
query II rowsort
SELECT DISTINCT col2, col1 * + ( + col0 ) FROM tab2 AS cor0
----
23
2346
40
4928
58
5025
query I rowsort
SELECT ALL - 2 + + + 61 + + col0 + + 52 AS col0 FROM tab1 cor0
----
162
196
202
query I rowsort
SELECT - + col0 + + col0 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col2 * + col0 col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-9649
SELECT + col1 + + col1 DIV col1 FROM tab0 AS cor0
----
2
22
82
skipif mysql # not compatible
query I rowsort label-9649
SELECT + col1 + + col1 / col1 FROM tab0 AS cor0
----
2
22
82
query I rowsort
SELECT DISTINCT + col0 + + - col1 AS col2 FROM tab0 AS cor0
----
-66
66
96
query I rowsort
SELECT + col2 + ( ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-28
-37
-9
onlyif mysql # aggregate syntax:
query I rowsort label-9652
SELECT COUNT( * ) * - 78 * - + 52 * - SUM( DISTINCT - col0 ) FROM tab0 AS cor0
----
2421432
skipif mysql # not compatible
query I rowsort label-9652
SELECT COUNT ( * ) * - 78 * - + 52 * - SUM ( DISTINCT - col0 ) FROM tab0 AS cor0
----
2421432
query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75
onlyif mysql # aggregate syntax:
query I rowsort label-9654
SELECT COUNT( - 16 ) FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-9654
SELECT COUNT ( - 16 ) FROM tab2 AS cor0
----
3
query II rowsort
SELECT col0, + col0 FROM tab2 AS cor0
----
46
46
64
64
75
75
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9656
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 * + CAST( NULL AS SIGNED ) / 73 IS NULL
----
skipif mysql # not compatible
query III rowsort label-9656
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 * + CAST ( NULL AS INTEGER ) / 73 IS NULL
----
query I rowsort
SELECT ALL col0 * - ( - 81 ) - ( + col2 ) AS col1 FROM tab1
----
4035
6826
7303
query II rowsort
SELECT DISTINCT + 36 + - - col1 AS col1, + ( 30 ) * ( + col0 + col1 ) FROM tab1
----
41
2700
50
1950
83
4140
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9659
SELECT ALL - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9660
SELECT ALL MAX( DISTINCT - col2 ) FROM tab2
----
-23
skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL MAX ( DISTINCT - col2 ) FROM tab2
----
-23
query III rowsort
SELECT * FROM tab2 WHERE NOT - 74 / ( + 2 ) * col2 IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 >= ( 76 + ( + col2 ) )
----
query I rowsort
SELECT - col1 * - + 53 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-9664
SELECT - - col2 DIV + + col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9664
SELECT - - col2 / + + col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + + ( 5 ) * + + 74 FROM tab2 AS cor0
----
370
370
370
query I rowsort
SELECT ALL - 29 * + + col1 AS col2 FROM tab1 AS cor0
----
-1363
-145
-406
query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-51
-85
-91
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9668
SELECT - col1 * + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9668
SELECT - col1 * + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query II rowsort
SELECT DISTINCT - + col1, + col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-9670
SELECT + col2, - 58 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL
skipif mysql # not compatible
query II rowsort label-9670
SELECT + col2, - 58 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9671
SELECT - SUM( + + col1 ) FROM tab0 AS cor0
----
-103
skipif mysql # not compatible
query I rowsort label-9671
SELECT - SUM ( + + col1 ) FROM tab0 AS cor0
----
-103
query II rowsort
SELECT DISTINCT - + 6, + col1 FROM tab0 AS cor0
----
-6
1
-6
21
-6
81
onlyif mysql # aggregate syntax:
query I rowsort label-9673
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( - col1 + - + ( col2 ) ) >= ( + 79 )
----
3
skipif mysql # not compatible
query I rowsort label-9673
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( - col1 + - + ( col2 ) ) >= ( + 79 )
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-9674
SELECT COUNT( + 91 ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-9674
SELECT COUNT ( + 91 ) FROM tab0 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-9675
SELECT DISTINCT + COUNT( * ) - 89 FROM tab1 WHERE NOT + 37 NOT IN ( col2 * + - col1 + + col2 )
----
-89
skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT + COUNT ( * ) - 89 FROM tab1 WHERE NOT + 37 NOT IN ( col2 * + - col1 + + col2 )
----
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 col2 FROM tab0
----
49
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 IS NOT NULL
----
query I rowsort
SELECT col2 * 85 * col2 AS col0 FROM tab2
----
136000
285940
44965
query I rowsort
SELECT 59 * + - ( col1 ) FROM tab0
----
-1239
-4779
-59
onlyif mysql # aggregate syntax:
query II rowsort label-9680
SELECT - COUNT( * ), COUNT( * ) AS col2 FROM tab2
----
-3
3
skipif mysql # not compatible
query II rowsort label-9680
SELECT - COUNT ( * ), COUNT ( * ) AS col2 FROM tab2
----
-3
3
query II rowsort
SELECT ALL col2, - col1 * - col1 FROM tab1
----
59
25
68
2209
96
196
onlyif mysql # aggregate syntax:
query I rowsort label-9682
SELECT - 46 * - + COUNT( * ) + + 95 - + COUNT( * ) + - 70 AS col1 FROM tab2 AS cor0
----
160
skipif mysql # not compatible
query I rowsort label-9682
SELECT - 46 * - + COUNT ( * ) + + 95 - + COUNT ( * ) + - 70 AS col1 FROM tab2 AS cor0
----
160
onlyif mysql # aggregate syntax:
query I rowsort label-9683
SELECT + + ( COUNT( * ) ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-9683
SELECT + + ( COUNT ( * ) ) FROM tab1 AS cor0
----
3
query II rowsort
SELECT + + col2, col0 + + - ( + col0 ) AS col2 FROM tab0 AS cor0 WHERE + 84 + col2 + - col2 = NULL
----
query II rowsort
SELECT 76 * + + col1 + + col0 AS col1, 2 FROM tab1 AS cor0
----
1115
2
3663
2
465
2
query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + col0 ) + + col0 > - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL > + col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9688
SELECT ALL + + ( COUNT( * ) ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-9688
SELECT ALL + + ( COUNT ( * ) ) FROM tab1 AS cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-9689
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col1, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99
skipif mysql # not compatible
query II rowsort label-9689
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col1, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + + 69 NOT IN ( - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT - - 23 - - - col1 FROM tab2 WHERE NULL IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 37 IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE - + col2 - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9694
SELECT ALL * FROM tab1 WHERE + col2 NOT IN ( - CAST( NULL AS SIGNED ) )
----
skipif mysql # not compatible
query III rowsort label-9694
SELECT ALL * FROM tab1 WHERE + col2 NOT IN ( - CAST ( NULL AS INTEGER ) )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 col2 FROM tab1
----
14
14
14
query I rowsort
SELECT ALL col1 + col1 * col0 AS col0 FROM tab1 WHERE - col2 = col2 + + + col1 + + col0 / - col2
----
onlyif mysql # DIV for integer division:
query I rowsort label-9697
SELECT - 33 DIV col0 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9697
SELECT - 33 / col0 AS col1 FROM tab1
----
0
0
0
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-9698
SELECT CAST( NULL AS DECIMAL ), - col0 col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9698
SELECT CAST ( NULL AS REAL ), - col0 col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( - + 88 ) * 16 * + col2 * - - 20 ) > NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9700
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( + + col2, + col0 + + - CAST( - col1 AS SIGNED ) * + col2 )
----
skipif mysql # not compatible
query III rowsort label-9700
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( + + col2, + col0 + + - CAST ( - col1 AS INTEGER ) * + col2 )
----
query I rowsort
SELECT ALL - 47 + + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-24
-7
11
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-9702
SELECT ALL - + COUNT( * ) AS col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-3
NULL
skipif mysql # not compatible
query II rowsort label-9702
SELECT ALL - + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-3
NULL
query I rowsort
SELECT 19 * - ( col2 ) AS col2 FROM tab2
----
-1102
-437
-760
onlyif mysql # DIV for integer division:
query I rowsort label-9704
SELECT 34 DIV - + col2 FROM tab2
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9704
SELECT 34 / - + col2 FROM tab2
----
-1
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-9705
SELECT DISTINCT - COUNT( * ) + 36 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
27
skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT - COUNT ( * ) + 36 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
27
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-9706
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + 12, 39 * + + 41 AS col1 FROM tab2 AS cor0
----
NULL
1599
skipif mysql # not compatible
query II rowsort label-9706
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + 12, 39 * + + 41 AS col1 FROM tab2 AS cor0
----
NULL
1599
onlyif mysql # aggregate syntax:
query I rowsort label-9707
SELECT DISTINCT - MAX( ALL 19 ) AS col0 FROM tab2 AS cor0
----
-19
skipif mysql # not compatible
query I rowsort label-9707
SELECT DISTINCT - MAX ( ALL 19 ) AS col0 FROM tab2 AS cor0
----
-19
query I rowsort
SELECT ALL - - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
query I rowsort
SELECT DISTINCT - - ( col2 ) * ( + - ( - + 67 ) ) * + + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-206360
-260362
-78591
query I rowsort
SELECT DISTINCT col2 * col0 + + + 11 AS col2 FROM tab1 AS cor0
----
4907
5026
6199
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 52 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT + ( col1 ) + + col1 + + - 2 * - 84 AS col1 FROM tab0
----
170
210
330
query I rowsort
SELECT DISTINCT + col2 + col2 * col0 FROM tab2
----
1081
2600
4408
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9715
SELECT ALL - col2 * 30 - + CAST( - + col2 AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----
skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL - col2 * 30 - + CAST ( - + col2 AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT DISTINCT 91 + + 25 FROM tab2
----
116
query I rowsort
SELECT DISTINCT ( - 11 ) FROM tab2
----
-11
onlyif mysql # aggregate syntax:
query I rowsort label-9718
SELECT - 38 * + COUNT( * ) col1 FROM tab2
----
-114
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9718
SELECT - 38 * + COUNT ( * ) col1 FROM tab2
----
-114
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-9720
SELECT ALL ( + COUNT( * ) ) AS col1 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL ( + COUNT ( * ) ) AS col1 FROM tab1
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-9721
SELECT + - 51 * - COUNT( * ) col0 FROM tab0 AS cor0
----
153
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9721
SELECT + - 51 * - COUNT ( * ) col0 FROM tab0 AS cor0
----
153
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9722
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) <> 42
----
skipif mysql # not compatible
query III rowsort label-9722
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> 42
----
onlyif mysql # aggregate syntax:
query I rowsort label-9723
SELECT ALL + MIN( DISTINCT + col1 ) FROM tab2 AS cor0
----
51
skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL + MIN ( DISTINCT + col1 ) FROM tab2 AS cor0
----
51
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-9724
SELECT - - CAST( NULL AS DECIMAL ) * - 48 + + + COUNT( * ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9724
SELECT - - CAST ( NULL AS REAL ) * - 48 + + + COUNT ( * ) FROM tab0 AS cor0
----
NULL
query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9726
SELECT DISTINCT + col1 + + CAST( + col1 AS SIGNED ) * col0 FROM tab1
----
430
4324
728
skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT + col1 + + CAST ( + col1 AS INTEGER ) * col0 FROM tab1
----
430
4324
728
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9727
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - ( MAX( ( 64 ) ) ) + + SUM( col1 ) col2 FROM tab0 WHERE ( + col0 * - 36 - - - ( + col1 ) + 32 + + 28 / - - col0 * 39 * + - col0 + + 94 ) IS NULL
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9727
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - ( MAX ( ( 64 ) ) ) + + SUM ( col1 ) col2 FROM tab0 WHERE ( + col0 * - 36 - - - ( + col1 ) + 32 + + 28 / - - col0 * 39 * + - col0 + + 94 ) IS NULL
----
NULL
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - ( - col2 ) + col2 * + ( col0 ) * + col1 BETWEEN - + 48 + ( + 92 ) AND - 46 + - col1
----
query I rowsort
SELECT - col0 * + - col1 AS col0 FROM tab2 cor0
----
2346
4928
5025
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 25 >= ( NULL )
----
query II rowsort
SELECT + col2, - col2 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96
onlyif mysql # DIV for integer division:
query I rowsort label-9732
SELECT + 76 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9732
SELECT + 76 / + col2 AS col2 FROM tab1 AS cor0
----
0
1
1
query II rowsort
SELECT - col2 * - col0 AS col2, + 59 AS col1 FROM tab0 AS cor0
----
705
59
870
59
9603
59
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-9734
SELECT DISTINCT - - 52 AS col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
52
NULL
skipif mysql # not compatible
query II rowsort label-9734
SELECT DISTINCT - - 52 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
52
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9735
SELECT DISTINCT + - COUNT( * ) * SUM( col0 ) col0 FROM tab2 AS cor0
----
-555
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9735
SELECT DISTINCT + - COUNT ( * ) * SUM ( col0 ) col0 FROM tab2 AS cor0
----
-555
query I rowsort
SELECT 1 * - - col0 AS col2 FROM tab0
----
15
87
97
onlyif mysql # aggregate syntax:
query I rowsort label-9737
SELECT DISTINCT - COUNT( * ) * COUNT( * ) FROM tab2
----
-9
skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) FROM tab2
----
-9
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 48 / ( col0 ) IS NULL
----
query I rowsort
SELECT col2 * + ( - col1 ) + - col1 FROM tab0 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT ALL ( - col2 ) FROM tab1 WHERE NULL NOT BETWEEN + col2 AND - 54
----
query III rowsort
SELECT * FROM tab0 WHERE NOT ( 69 ) <> + col1
----
query I rowsort
SELECT ( col0 ) + + col0 AS col0 FROM tab2 WHERE NOT + ( + 75 ) / + col1 + - 26 = + - ( col0 ) * + col0
----
128
150
92
query I rowsort
SELECT DISTINCT col2 * + col0 + + col2 FROM tab0 AS cor0 WHERE - col1 >= - - ( + + 44 ) - + col2 + + - 29 / - ( - 87 )
----
9702
query I rowsort
SELECT ALL - col0 + - + 79 FROM tab1 AS cor0 WHERE - 33 * col2 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9746
SELECT ALL + COUNT( ALL + 76 ) FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL + COUNT ( ALL + 76 ) FROM tab2 AS cor0
----
3
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = - 61
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col0 * + col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9749
SELECT DISTINCT + - SUM( + - 12 ) FROM tab0 AS cor0
----
36
skipif mysql # not compatible
query I rowsort label-9749
SELECT DISTINCT + - SUM ( + - 12 ) FROM tab0 AS cor0
----
36
query I rowsort
SELECT 20 AS col0 FROM tab2 cor0
----
20
20
20
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 72 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT col2 * + col1 + + 85 FROM tab1 AS cor0
----
1429
3281
380
query I rowsort
SELECT ALL - + col2 * 44 AS col2 FROM tab0 AS cor0
----
-2068
-4356
-440
onlyif mysql # DIV for integer division:
query I rowsort label-9754
SELECT DISTINCT + col2 + + - col0 + - 0 DIV - 24 FROM tab2 cor0
----
-17
-23
-24
skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT + col2 + + - col0 + - 0 / - 24 FROM tab2 cor0
----
-17
-23
-24
query I rowsort
SELECT DISTINCT ( + 24 ) FROM tab2 AS cor0 WHERE ( ( ( - col0 IS NULL ) ) )
----
query II rowsort
SELECT 90, col2 AS col0 FROM tab1 AS cor0
----
90
59
90
68
90
96
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 60 * - - col0 < NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 72 col2, col1 col2 FROM tab0 AS cor0
----
72
1
72
21
72
81
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= - + col2
----
query I rowsort
SELECT DISTINCT 49 + col0 * col0 + - 37 * col2 FROM tab2
----
1314
2665
3528
onlyif mysql # aggregate syntax:
query I rowsort label-9761
SELECT ALL - ( - COUNT( * ) ) + + + COUNT( * ) AS col1 FROM tab2
----
6
skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL - ( - COUNT ( * ) ) + + + COUNT ( * ) AS col1 FROM tab2
----
6
query III rowsort
SELECT * FROM tab1 WHERE + 97 NOT BETWEEN + - col1 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT + ( + col0 ) + - - col1 FROM tab2
----
141
142
97
query I rowsort
SELECT - ( - 21 ) + + col0 + + col2 FROM tab0
----
118
217
83
onlyif mysql # DIV for integer division:
query I rowsort label-9765
SELECT + col0 + - col0 DIV + + col0 - + col0 * + 61 FROM tab2 AS cor0
----
-2761
-3841
-4501
skipif mysql # not compatible
query I rowsort label-9765
SELECT + col0 + - col0 / + + col0 - + col0 * + 61 FROM tab2 AS cor0
----
-2761
-3841
-4501
onlyif mysql # aggregate syntax:
query I rowsort label-9766
SELECT ALL - COUNT( - col1 ) + - COUNT( * ) col1 FROM tab0 cor0
----
-6
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9766
SELECT ALL - COUNT ( - col1 ) + - COUNT ( * ) col1 FROM tab0 cor0
----
-6
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 * + 91 * - 94 + - 6 ) <= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL + - 94 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
onlyif mysql # aggregate syntax:
query I rowsort label-9769
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) AS col2 FROM tab1
----
9
skipif mysql # not compatible
query I rowsort label-9769
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab1
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-9770
SELECT DISTINCT - MIN( ALL + 92 ) FROM tab2
----
-92
skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT - MIN ( ALL + 92 ) FROM tab2
----
-92
query I rowsort
SELECT ALL col1 * + + 81 FROM tab0
----
1701
6561
81
query I rowsort
SELECT - + 61 * col2 * + ( - col1 ) AS col2 FROM tab2 AS cor0
----
187880
237046
71553
query I rowsort
SELECT + 38 + + 0 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
38
38
38
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9774
SELECT - CAST( + col1 AS SIGNED ) * col0 - - 66 FROM tab1 AS cor0
----
-359
-4211
-648
skipif mysql # not compatible
query I rowsort label-9774
SELECT - CAST ( + col1 AS INTEGER ) * col0 - - 66 FROM tab1 AS cor0
----
-359
-4211
-648
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 col0 FROM tab2
----
-65
query I rowsort
SELECT + col1 * + + 99 AS col1 FROM tab1
----
1386
4653
495
query II rowsort
SELECT + col0 AS col2, + col0 AS col2 FROM tab0
----
15
15
87
87
97
97
query II rowsort
SELECT col2 AS col2, col0 AS col0 FROM tab2
----
23
46
40
64
58
75
onlyif mysql # DIV for integer division:
query I rowsort label-9780
SELECT col0 DIV - + 12 FROM tab1
----
-4
-7
-7
skipif mysql # not compatible
query I rowsort label-9780
SELECT col0 / - + 12 FROM tab1
----
-4
-7
-7
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9781
SELECT DISTINCT COUNT( * ) * 66 / - + COUNT( - col1 ) * + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT COUNT ( * ) * 66 / - + COUNT ( - col1 ) * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-9782
SELECT DISTINCT + 66 * col2 DIV CAST( col1 AS SIGNED ) + + col2 - + - col0 DIV - - 32 AS col2 FROM tab1 AS cor0
----
165
549
839
skipif mysql # not compatible
query I rowsort label-9782
SELECT DISTINCT + 66 * col2 / CAST ( col1 AS INTEGER ) + + col2 - + - col0 / - - 32 AS col2 FROM tab1 AS cor0
----
165
549
839
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9783
SELECT ALL + CAST( + col1 AS SIGNED ) * CAST( + col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
210
3807
99
skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL + CAST ( + col1 AS INTEGER ) * CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
210
3807
99
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9784
SELECT DISTINCT 89 DIV + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
29
skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT 89 / + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
29
query II rowsort
SELECT ALL + col1 * + 58 + - + col2 + - + col1 AS col0, + 72 AS col2 FROM tab1 cor0
----
226
72
2611
72
702
72
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9786
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 27 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 27 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 < - - col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-9788
SELECT ALL 13 + + COUNT( * ) FROM tab2
----
16
skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL 13 + + COUNT ( * ) FROM tab2
----
16
query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT - col1 * + 68 IS NULL
----
46
64
75
query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - 63 ) * col0 - - col0 IS NULL
----
query I rowsort
SELECT - col0 * + + col2 + col1 AS col0 FROM tab1 AS cor0
----
-4882
-5010
-6141
query I rowsort
SELECT + col0 * + 35 + col1 AS col2 FROM tab1 AS cor0
----
1799
2980
3232
query I rowsort
SELECT - col2 + - - col0 + - col2 FROM tab1
----
-141
-33
-45
query III rowsort
SELECT * FROM tab1 WHERE NULL <> - col1 + + 41 * col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-9795
SELECT DISTINCT 11 + - MIN( - - col2 ) FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-9795
SELECT DISTINCT 11 + - MIN ( - - col2 ) FROM tab0
----
1
query I rowsort
SELECT ALL - 58 * - - col1 FROM tab2
----
-2958
-3886
-4466
query I rowsort
SELECT col0 * - + col2 AS col2 FROM tab2
----
-1058
-2560
-4350
query I rowsort
SELECT DISTINCT + + col0 + col1 FROM tab2 WHERE ( NULL BETWEEN - col0 / 3 * - col0 AND - + ( - col1 ) )
----
query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND + col2 / - 38
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9800
SELECT * FROM tab2 AS cor0 WHERE ( - col1 ) IN ( 70, col1 - + - CAST( NULL AS SIGNED ), col2 * 88 + - col2 + - 19, - col2 )
----
skipif mysql # not compatible
query III rowsort label-9800
SELECT * FROM tab2 AS cor0 WHERE ( - col1 ) IN ( 70, col1 - + - CAST ( NULL AS INTEGER ), col2 * 88 + - col2 + - 19, - col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 col1 FROM tab1 AS cor0
----
-36
-36
-36
query I rowsort
SELECT col0 - - - 50 FROM tab2 AS cor0
----
-4
14
25
query I rowsort
SELECT - col0 - + - col2 + 11 FROM tab1 AS cor0
----
-12
-15
56
query I rowsort
SELECT col2 + + + col0 AS col0 FROM tab1 AS cor0
----
144
147
159
query II rowsort
SELECT col0, 90 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + 85 * col1 + - col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 43 col2 FROM tab1 AS cor0
----
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 44 ) col0 FROM tab1 cor0
----
-44
-44
-44
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9809
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-9809
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - + col1 * 18 + - ( - 20 ) AS col1 FROM tab2 AS cor0
----
-1186
-1366
-898
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-9811
SELECT + - MIN( - - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9811
SELECT + - MIN ( - - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col2 / + + col2 * - + col0 FROM tab0 WHERE NOT ( NULL ) <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, col2 * + col2 AS col2 FROM tab0
----
10
100
47
2209
99
9801
query II rowsort
SELECT + - col2, - col2 AS col0 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99
query I rowsort
SELECT ALL - 30 AS col0 FROM tab0 AS cor0
----
-30
-30
-30
query II rowsort
SELECT DISTINCT + col2 AS col2, + col1 FROM tab2
----
23
51
40
77
58
67
query I rowsort
SELECT + 18 * - - 68 * - col0 FROM tab0 AS cor0
----
-106488
-118728
-18360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 AS col0, + ( 75 ) col1 FROM tab0 AS cor0
----
-10
75
-47
75
-99
75
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-9819
SELECT DISTINCT + COUNT( * ) AS col1, COUNT( * ) + + 14 - + 65 DIV 16 AS col2 FROM tab2 AS cor0
----
3
13
skipif mysql # not compatible
query II rowsort label-9819
SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) + + 14 - + 65 / 16 AS col2 FROM tab2 AS cor0
----
3
13
query I rowsort
SELECT + col1 * - - col2 - - col2 * + - col1 * + - col0 AS col2 FROM tab1 cor0
----
25370
294032
69888
query I rowsort
SELECT ALL - - col0 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN NULL AND 46
----
46
64
75
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * 45 IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-9823
SELECT col1 DIV - 45 + - 1 FROM tab1 AS cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-9823
SELECT col1 / - 45 + - 1 FROM tab1 AS cor0
----
-1
-1
-2
query I rowsort
SELECT ALL - col1 + + + col2 + + 34 * - 44 * + col1 * + col2 * + col0 AS col0 FROM tab0 cor0
----
-14365990
-27331931
-85429114
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 * + 74 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9826
SELECT DISTINCT + col2 / + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9826
SELECT DISTINCT + col2 / + CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab0 cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9827
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) FROM tab2
----
6
skipif mysql # not compatible
query I rowsort label-9827
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) FROM tab2
----
6
query I rowsort
SELECT - col2 FROM tab2 WHERE + + col1 = + 59
----
query I rowsort
SELECT ALL ( col2 ) - + + col2 + 91 + + - col1 AS col0 FROM tab1
----
44
77
86
onlyif mysql # DIV for integer division:
query II rowsort label-9830
SELECT DISTINCT + col0 - - col0 col2, 73 DIV + col2 AS col2 FROM tab0
----
174
7
194
0
30
1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9830
SELECT DISTINCT + col0 - - col0 col2, 73 / + col2 AS col2 FROM tab0
----
174
7
194
0
30
1
query I rowsort
SELECT - col0 + - 95 - + col2 FROM tab1
----
-239
-242
-254
query II rowsort
SELECT DISTINCT col2 - - - col1 AS col0, col1 AS col2 FROM tab0
----
-11
21
-34
81
98
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * - + col2 - col2 AS col1, - 0 * - - col2 col0 FROM tab2
----
-1196
0
-3120
0
-3944
0
query I rowsort
SELECT + 48 * + - 36 FROM tab1 AS cor0
----
-1728
-1728
-1728
query I rowsort
SELECT DISTINCT ( - + 85 ) * + col1 AS col2 FROM tab2 AS cor0
----
-4335
-5695
-6545
query II rowsort
SELECT DISTINCT + + col1, + col2 * - col1 AS col0 FROM tab2 AS cor0
----
51
-1173
67
-3886
77
-3080
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 63 + - - col1 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 62 col1, + col1 * + - 14 AS col2 FROM tab0 AS cor0
----
62
-1134
62
-14
62
-294
onlyif mysql # aggregate syntax:
query I rowsort label-9839
SELECT ALL + MIN( - 4 ) FROM tab2 cor0
----
-4
skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL + MIN ( - 4 ) FROM tab2 cor0
----
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 99 col2 FROM tab1 AS cor0
----
99
99
99
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) = 9
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> ( - col1 / col0 + - col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9843
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab0 cor0
----
3
skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab0 cor0
----
3
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 < NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9845
SELECT - 1 * MAX( - col0 ) DIV + 79 col2 FROM tab1
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9845
SELECT - 1 * MAX ( - col0 ) / + 79 col2 FROM tab1
----
0
query I rowsort
SELECT - 91 * - col0 + - + col2 AS col2 FROM tab0
----
1318
7907
8728
onlyif mysql # aggregate syntax:
query I rowsort label-9847
SELECT ALL ( + + 16 ) - - - COUNT( * ) AS col0 FROM tab0 WHERE NOT 48 NOT BETWEEN col1 AND NULL
----
16
skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL ( + + 16 ) - - - COUNT ( * ) AS col0 FROM tab0 WHERE NOT 48 NOT BETWEEN col1 AND NULL
----
16
query I rowsort
SELECT 62 + + ( + 99 ) FROM tab0
----
161
161
161
onlyif mysql # aggregate syntax:
query I rowsort label-9849
SELECT DISTINCT + SUM( DISTINCT - - 77 ) AS col2 FROM tab2
----
77
skipif mysql # not compatible
query I rowsort label-9849
SELECT DISTINCT + SUM ( DISTINCT - - 77 ) AS col2 FROM tab2
----
77
onlyif mysql # aggregate syntax:
query I rowsort label-9850
SELECT 3 + + + 49 - COUNT( * ) FROM tab0
----
49
skipif mysql # not compatible
query I rowsort label-9850
SELECT 3 + + + 49 - COUNT ( * ) FROM tab0
----
49
query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE col1 <> - col1
----
1
21
81
query I rowsort
SELECT DISTINCT - + ( - 32 ) + + col2 AS col0 FROM tab0 AS cor0
----
131
42
79
query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE 52 IS NOT NULL
----
14
47
5
onlyif mysql # aggregate syntax:
query I rowsort label-9854
SELECT MAX( + - 93 ) FROM tab2 AS cor0 WHERE - col2 > ( NULL )
----
NULL
skipif mysql # not compatible
query I rowsort label-9854
SELECT MAX ( + - 93 ) FROM tab2 AS cor0 WHERE - col2 > ( NULL )
----
NULL
query I rowsort
SELECT ALL 0 * + 48 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # aggregate syntax:
query I rowsort label-9856
SELECT ALL + + MIN( ALL + - 76 ) AS col1 FROM tab2 cor0
----
-76
skipif mysql # not compatible
query I rowsort label-9856
SELECT ALL + + MIN ( ALL + - 76 ) AS col1 FROM tab2 cor0
----
-76
query II rowsort
SELECT 7 + - 53 + 74 AS col0, col0 AS col1 FROM tab1 AS cor0
----
28
51
28
85
28
91
onlyif mysql # DIV for integer division:
query I rowsort label-9858
SELECT + - col1 + col0 + + 30 DIV + - 77 + + 41 * - + 44 FROM tab0 AS cor0
----
-1708
-1738
-1870
skipif mysql # not compatible
query I rowsort label-9858
SELECT + - col1 + col0 + + 30 / + - 77 + + 41 * - + 44 FROM tab0 AS cor0
----
-1708
-1738
-1870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 + + - col2 col1 FROM tab1 AS cor0
----
-12
16
25
onlyif mysql # aggregate syntax:
query II rowsort label-9860
SELECT + - 76 AS col1, COUNT( * ) col2 FROM tab0 cor0
----
-76
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9860
SELECT + - 76 AS col1, COUNT ( * ) col2 FROM tab0 cor0
----
-76
3
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL NOT IN ( 69, 13, - + 14 ) )
----
query II rowsort
SELECT ALL col1, - col1 + - - 47 * + - 44 * - col2 AS col1 FROM tab1
----
14
198514
47
140577
5
122007
onlyif mysql # aggregate syntax:
query I rowsort label-9863
SELECT ALL - COUNT( DISTINCT + + 14 ) + + - 57 FROM tab0
----
-58
skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL - COUNT ( DISTINCT + + 14 ) + + - 57 FROM tab0
----
-58
onlyif mysql # DIV for integer division:
query I rowsort label-9864
SELECT ALL - col1 DIV ( col2 ) + - 67 FROM tab0
----
-67
-68
-69
skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL - col1 / ( col2 ) + - 67 FROM tab0
----
-67
-68
-69
query I rowsort
SELECT ALL + col0 - - - 9 FROM tab1
----
42
76
82
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > - ( + + col1 ) / - ( col2 ) + col2 * + + col0
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 ) - - col2 <> NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9868
SELECT ( + MIN( 96 ) ) AS col1 FROM tab1 AS cor0
----
96
skipif mysql # not compatible
query I rowsort label-9868
SELECT ( + MIN ( 96 ) ) AS col1 FROM tab1 AS cor0
----
96
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9869
SELECT - CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9869
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab2 AS cor0
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-9870
SELECT ALL - col1 DIV 96 col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9870
SELECT ALL - col1 / 96 col1 FROM tab2 AS cor0
----
0
0
0
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 48 <= NULL
----
query I rowsort
SELECT ALL - + 74 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
query II rowsort
SELECT DISTINCT col2 * - col1 AS col1, - col0 AS col0 FROM tab1
----
-1344
-51
-295
-85
-3196
-91
query I rowsort
SELECT 36 * + 75 FROM tab1 cor0
----
2700
2700
2700
onlyif mysql # aggregate syntax:
query I rowsort label-9875
SELECT DISTINCT + - ( + + 65 ) * - ( + + MAX( DISTINCT - col2 ) ) FROM tab2 AS cor0
----
-1495
skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT + - ( + + 65 ) * - ( + + MAX ( DISTINCT - col2 ) ) FROM tab2 AS cor0
----
-1495
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9876
SELECT + MAX( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9876
SELECT + MAX ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9877
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( 7 AS SIGNED ) <= NULL
----
skipif mysql # not compatible
query III rowsort label-9877
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( 7 AS INTEGER ) <= NULL
----
query I rowsort
SELECT ALL col2 * + - col0 + + + 27 AS col0 FROM tab1 AS cor0
----
-4869
-4988
-6161
onlyif mysql # aggregate syntax:
query I rowsort label-9879
SELECT + 52 * + COUNT( * ) FROM tab0 AS cor0
----
156
skipif mysql # not compatible
query I rowsort label-9879
SELECT + 52 * + COUNT ( * ) FROM tab0 AS cor0
----
156
query I rowsort
SELECT DISTINCT - 71 + + - col0 FROM tab0 cor0
----
-158
-168
-86
onlyif mysql # aggregate syntax:
query I rowsort label-9881
SELECT DISTINCT MAX( ALL + 74 ) AS col0 FROM tab2
----
74
skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT MAX ( ALL + 74 ) AS col0 FROM tab2
----
74
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9882
SELECT - + col2 + - - 4 FROM tab2 WHERE NOT + + 25 + 21 + - + col2 NOT IN ( - 48 * 8, CAST( NULL AS SIGNED ), + - col1 / 99 )
----
skipif mysql # not compatible
query I rowsort label-9882
SELECT - + col2 + - - 4 FROM tab2 WHERE NOT + + 25 + 21 + - + col2 NOT IN ( - 48 * 8, CAST ( NULL AS INTEGER ), + - col1 / 99 )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT + 87 FROM tab2 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9885
SELECT - COUNT( * ) DIV 32 AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-9885
SELECT - COUNT ( * ) / 32 AS col1 FROM tab0
----
0
query I rowsort
SELECT col0 + 5 FROM tab1 cor0
----
56
90
96
query I rowsort
SELECT - col2 + + - 37 + + col2 FROM tab2 AS cor0
----
-37
-37
-37
query II rowsort
SELECT ALL + + 84 + + + ( - col2 ), + col1 + - - col1 AS col1 FROM tab0 AS cor0
----
-15
2
37
162
74
42
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9889
SELECT + CAST( NULL AS SIGNED ) + + + 4 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9889
SELECT + CAST ( NULL AS INTEGER ) + + + 4 FROM tab0 AS cor0
----
NULL
NULL
NULL
query II rowsort
SELECT ALL 31 - col2 AS col1, 13 AS col2 FROM tab2
----
-27
13
-9
13
8
13
query I rowsort
SELECT ALL - col1 + - - 93 AS col1 FROM tab0 WHERE + + col1 * + col0 < NULL
----
query I rowsort
SELECT 12 - col1 AS col2 FROM tab0 AS cor0
----
-69
-9
11
query I rowsort
SELECT ALL 40 + - 12 FROM tab0 cor0
----
28
28
28
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + - 39 * - col1 BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9895
SELECT ALL + COUNT( col1 ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL + COUNT ( col1 ) FROM tab0 AS cor0
----
3
query I rowsort
SELECT ALL 15 + - - ( - col0 ) FROM tab1
----
-36
-70
-76
query I rowsort
SELECT col0 + + ( col0 ) + + 14 - + col1 FROM tab0
----
-37
167
207
query I rowsort
SELECT + ( + 82 ) FROM tab2
----
82
82
82
query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * + + col2 * + - col0 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query II rowsort label-9900
SELECT MIN( DISTINCT ( - 81 ) ) AS col0, COUNT( * ) col1 FROM tab1
----
-81
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9900
SELECT MIN ( DISTINCT ( - 81 ) ) AS col0, COUNT ( * ) col1 FROM tab1
----
-81
3
query II rowsort
SELECT ALL col0 AS col0, col1 FROM tab2
----
46
51
64
77
75
67
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9902
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-9902
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 46 AS col1, + ( + col2 ) + + - col1 col0 FROM tab1
----
-46
21
-46
54
-46
82
query I rowsort
SELECT ALL + 89 AS col2 FROM tab0
----
89
89
89
query II rowsort
SELECT - - col1 AS col0, - 90 * + col0 AS col0 FROM tab1 WHERE NOT NULL <> - ( + 21 )
----
query I rowsort
SELECT DISTINCT - - 54 / + col0 + 6 + + col1 FROM tab0 cor0 WHERE NOT - col2 = NULL
----
query I rowsort
SELECT + col1 * col1 + - col2 AS col2 FROM tab0 AS cor0
----
-98
431
6514
query II rowsort
SELECT ALL - col1 AS col0, col2 AS col1 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47
query I rowsort
SELECT ALL 10 AS col1 FROM tab1 WHERE NULL IS NULL
----
10
10
10
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9910
SELECT ALL CAST( + 51 AS SIGNED ) FROM tab1
----
51
51
51
skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL CAST ( + 51 AS INTEGER ) FROM tab1
----
51
51
51
onlyif mysql # aggregate syntax:
query I rowsort label-9911
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL <= NULL
----
0
skipif mysql # not compatible
query I rowsort label-9911
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL <= NULL
----
0
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 91 = ( - - 82 )
----
query I rowsort
SELECT + 53 * + + col2 AS col0 FROM tab0 AS cor0
----
2491
5247
530
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 47 + col2 / col1 = NULL
----
query I rowsort
SELECT ALL + + col0 * + col1 AS col0 FROM tab0 AS cor0
----
1215
1827
97
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9916
SELECT * FROM tab1 cor0 WHERE NOT col2 - ( - + 61 ) * - - col1 BETWEEN - + ( - CAST( - 84 AS SIGNED ) ) AND NULL
----
skipif mysql # not compatible
query III rowsort label-9916
SELECT * FROM tab1 cor0 WHERE NOT col2 - ( - + 61 ) * - - col1 BETWEEN - + ( - CAST ( - 84 AS INTEGER ) ) AND NULL
----
query I rowsort
SELECT + - 4 + - - col2 FROM tab1 AS cor0
----
55
64
92
query I rowsort
SELECT DISTINCT + 21 AS col0 FROM tab1 AS cor0
----
21
query I rowsort
SELECT - 16 * - + 84 * - + 16 + 7 FROM tab0 AS cor0
----
-21497
-21497
-21497
onlyif mysql # aggregate syntax:
query I rowsort label-9920
SELECT ALL COUNT( * ) * + COUNT( * ) FROM tab0
----
9
skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL COUNT ( * ) * + COUNT ( * ) FROM tab0
----
9
query II rowsort
SELECT DISTINCT - 61 + - 16 AS col0, 10 FROM tab0
----
-77
10
query I rowsort
SELECT col2 + - col2 + - col2 - + + 89 + col0 * - col0 AS col1 FROM tab1
----
-2786
-7373
-8438
query I rowsort
SELECT + 61 AS col2 FROM tab2 WHERE NULL IS NULL
----
61
61
61
query I rowsort
SELECT col1 * col0 + + col0 AS col2 FROM tab0
----
1230
1914
194
onlyif mysql # DIV for integer division:
query I rowsort label-9925
SELECT col2 + - col1 - - col0 DIV - - col0 FROM tab1
----
22
55
83
skipif mysql # not compatible
query I rowsort label-9925
SELECT col2 + - col1 - - col0 / - - col0 FROM tab1
----
22
55
83
query II rowsort
SELECT - 21 + + 63, + col0 + - col0 + - 87 AS col2 FROM tab0
----
42
-87
42
-87
42
-87
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9927
SELECT CAST( NULL AS SIGNED ) + - 54 + + col2 * 34 * + 95 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9927
SELECT CAST ( NULL AS INTEGER ) + - 54 + + col2 * 34 * + 95 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9928
SELECT ALL CAST( NULL AS SIGNED ) * - - col1 * + col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL CAST ( NULL AS INTEGER ) * - - col1 * + col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + + col2 * + + col1 + col0 + + col1 AS col0 FROM tab0 AS cor0
----
294
3918
405
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9931
SELECT ALL + 90 + + 78 * - COUNT( * ) * 48 FROM tab2 AS cor0
----
-11142
skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL + 90 + + 78 * - COUNT ( * ) * 48 FROM tab2 AS cor0
----
-11142
query I rowsort
SELECT ALL + - 36 / - 91 FROM tab1 WHERE NOT + - 32 + - 55 - - col0 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-9933
SELECT ALL col1 DIV + - col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL col1 / + - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 53 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN + col1 AND - + col0
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9936
SELECT CAST( - 81 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-81
-81
-81
skipif mysql # not compatible
query I rowsort label-9936
SELECT CAST ( - 81 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-81
-81
-81
query I rowsort
SELECT + + ( 64 ) AS col1 FROM tab2 AS cor0
----
64
64
64
onlyif mysql # aggregate syntax:
query I rowsort label-9938
SELECT - + MAX( + col0 ) * - 90 FROM tab2 cor0
----
6750
skipif mysql # not compatible
query I rowsort label-9938
SELECT - + MAX ( + col0 ) * - 90 FROM tab2 cor0
----
6750
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 col2 FROM tab0 AS cor0
----
-49
-49
-49
onlyif mysql # aggregate syntax:
query I rowsort label-9940
SELECT - SUM( ALL + ( - - col1 ) ) FROM tab1
----
-66
skipif mysql # not compatible
query I rowsort label-9940
SELECT - SUM ( ALL + ( - - col1 ) ) FROM tab1
----
-66
onlyif mysql # aggregate syntax:
query I rowsort label-9941
SELECT COUNT( * ) * COUNT( * ) FROM tab1
----
9
skipif mysql # not compatible
query I rowsort label-9941
SELECT COUNT ( * ) * COUNT ( * ) FROM tab1
----
9
query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - col1 ) * + 18 * - + 46 <> NULL
----
query II rowsort
SELECT - col1 * + + col0 AS col2, col1 + + 54 FROM tab0
----
-1215
135
-1827
75
-97
55
query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL <> NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 / + + col1 <= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - 36 ) col0, + col1 col0 FROM tab1 AS cor0
----
-36
14
-36
47
-36
5
onlyif mysql # aggregate syntax:
query I rowsort label-9947
SELECT - COUNT( + + 83 ) AS col1 FROM tab2 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-9947
SELECT - COUNT ( + + 83 ) AS col1 FROM tab2 cor0
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 col2 FROM tab1 AS cor0
----
9
9
9
onlyif mysql # aggregate syntax:
query I rowsort label-9949
SELECT + + MIN( DISTINCT + 4 ) FROM tab0 AS cor0
----
4
skipif mysql # not compatible
query I rowsort label-9949
SELECT + + MIN ( DISTINCT + 4 ) FROM tab0 AS cor0
----
4
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9950
SELECT DISTINCT + ( - 78 ) * - COUNT( * ) * + - CAST( + COUNT( + col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT + ( - 78 ) * - COUNT ( * ) * + - CAST ( + COUNT ( + col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-9951
SELECT ALL - AVG ( ALL - col2 ) / + COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL - AVG ( ALL - col2 ) / + COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL
query III rowsort
SELECT * FROM tab2 WHERE NOT - + 49 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-9953
SELECT + ( - CAST( - 0 AS SIGNED ) ), col2 FROM tab0 AS cor0
----
0
10
0
47
0
99
skipif mysql # not compatible
query II rowsort label-9953
SELECT + ( - CAST ( - 0 AS INTEGER ) ), col2 FROM tab0 AS cor0
----
0
10
0
47
0
99
query I rowsort
SELECT ALL - 84 * col1 FROM tab0 cor0
----
-1764
-6804
-84
onlyif mysql # aggregate syntax:
query I rowsort label-9955
SELECT - 22 * COUNT( * ) FROM tab1 AS cor0
----
-66
skipif mysql # not compatible
query I rowsort label-9955
SELECT - 22 * COUNT ( * ) FROM tab1 AS cor0
----
-66
onlyif mysql # DIV for integer division:
query I rowsort label-9956
SELECT + 23 DIV col2 + + - col0 AS col0 FROM tab2 AS cor0
----
-45
-64
-75
skipif mysql # not compatible
query I rowsort label-9956
SELECT + 23 / col2 + + - col0 AS col0 FROM tab2 AS cor0
----
-45
-64
-75
query I rowsort
SELECT 72 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT + - 95 * 87 FROM tab1 AS cor0
----
-8265
-8265
-8265
onlyif mysql # aggregate syntax:
query I rowsort label-9959
SELECT + COUNT( + + col0 ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-9959
SELECT + COUNT ( + + col0 ) FROM tab0 AS cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9960
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( col0 AS SIGNED ) + - - CAST( NULL AS SIGNED ) IS NULL
----
skipif mysql # not compatible
query III rowsort label-9960
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( col0 AS INTEGER ) + - - CAST ( NULL AS INTEGER ) IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9961
SELECT DISTINCT col2 + + col0 + + + col0 * + + ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT col2 + + col0 + + + col0 * + + ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col2 + - col1 AS col0 FROM tab2 cor0
----
-117
-125
-74
onlyif mysql # aggregate syntax:
query I rowsort label-9963
SELECT - SUM( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-199
skipif mysql # not compatible
query I rowsort label-9963
SELECT - SUM ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-199
query I rowsort
SELECT ALL - col1 + - + 66 FROM tab0 AS cor0
----
-147
-67
-87
onlyif mysql # aggregate syntax:
query I rowsort label-9965
SELECT - - COUNT( + - 12 ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-9965
SELECT - - COUNT ( + - 12 ) FROM tab0 AS cor0
----
3
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 24 = col0
----
query I rowsort
SELECT ALL - col2 * - 15 AS col1 FROM tab0
----
1485
150
705
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9968
SELECT DISTINCT - ( - + MAX( DISTINCT - col1 ) ) DIV - ( - + 65 ) FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT - ( - + MAX ( DISTINCT - col1 ) ) / - ( - + 65 ) FROM tab2
----
0
query I rowsort
SELECT 24 + 20 AS col0 FROM tab0
----
44
44
44
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9970
SELECT DISTINCT - 99 / CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9970
SELECT DISTINCT - 99 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9971
SELECT + 68 + - + COUNT( * ) AS col2 FROM tab2 cor0
----
65
skipif mysql # not compatible
query I rowsort label-9971
SELECT + 68 + - + COUNT ( * ) AS col2 FROM tab2 cor0
----
65
query I rowsort
SELECT + 72 + + - col1 FROM tab1 AS cor0
----
25
58
67
onlyif mysql # aggregate syntax:
query II rowsort label-9973
SELECT - 31, 2 * - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-31
-18
skipif mysql # not compatible
query II rowsort label-9973
SELECT - 31, 2 * - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-31
-18
query III rowsort
SELECT ALL + 13 - col1 * - col1 AS col1, col0 AS col0, col0 AS col1 FROM tab0 WHERE NOT - + 42 - - + col1 IS NULL
----
9 values hashing to e88696f43bff966dbd0c9c9a6371969f
query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99
query II rowsort
SELECT ALL - 58 AS col0, - col2 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL + 39 AS col1 FROM tab0 cor0
----
39
39
39
query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT 92 IS NULL
----
-23
-40
-58
onlyif mysql # aggregate syntax:
query I rowsort label-9979
SELECT - - MIN( + 96 ) FROM tab0 AS cor0
----
96
skipif mysql # not compatible
query I rowsort label-9979
SELECT - - MIN ( + 96 ) FROM tab0 AS cor0
----
96
onlyif mysql # aggregate syntax:
query I rowsort label-9980
SELECT DISTINCT - COUNT( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-9980
SELECT DISTINCT - COUNT ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-3
query I rowsort
SELECT ALL + ( - col1 ) * 92 FROM tab1
----
-1288
-4324
-460
onlyif mysql # DIV for integer division:
query I rowsort label-9982
SELECT DISTINCT + 87 DIV + col2 FROM tab0
----
0
1
8
skipif mysql # not compatible
query I rowsort label-9982
SELECT DISTINCT + 87 / + col2 FROM tab0
----
0
1
8
query I rowsort
SELECT + col1 * - + col2 FROM tab0
----
-210
-3807
-99
query I rowsort
SELECT - 9 * - col0 FROM tab1
----
459
765
819
query II rowsort
SELECT col1, - col0 * - 15 AS col2 FROM tab0
----
1
1455
21
1305
81
225
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 col2 FROM tab0
----
70
70
70
onlyif mysql # aggregate syntax:
query I rowsort label-9987
SELECT ALL - COUNT( - + col2 ) * - 91 * + 31 col0 FROM tab1 AS cor0
----
8463
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9987
SELECT ALL - COUNT ( - + col2 ) * - 91 * + 31 col0 FROM tab1 AS cor0
----
8463
query I rowsort
SELECT DISTINCT - 96 AS col0 FROM tab1 cor0
----
-96
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 64 >= + 25 )
----
query I rowsort
SELECT ALL 10 * 38 FROM tab1
----
380
380
380
onlyif mysql # aggregate syntax:
query I rowsort label-9991
SELECT + COUNT( * ) * - - COUNT( * ) * - COUNT( col1 ) AS col2 FROM tab2
----
-27
skipif mysql # not compatible
query I rowsort label-9991
SELECT + COUNT ( * ) * - - COUNT ( * ) * - COUNT ( col1 ) AS col2 FROM tab2
----
-27
onlyif mysql # DIV for integer division:
query I rowsort label-9992
SELECT - col1 DIV ( + col2 ) AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9992
SELECT - col1 / ( + col2 ) AS col1 FROM tab1
----
0
0
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9993
SELECT - CAST( NULL AS SIGNED ) / 40 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9993
SELECT - CAST ( NULL AS INTEGER ) / 40 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9994
SELECT + SUM( DISTINCT + 27 ) AS col1 FROM tab0 AS cor0
----
27
skipif mysql # not compatible
query I rowsort label-9994
SELECT + SUM ( DISTINCT + 27 ) AS col1 FROM tab0 AS cor0
----
27
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> col0
----
query I rowsort
SELECT ALL 88 AS col1 FROM tab0 AS cor0
----
88
88
88
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 94 / col1 - + 7 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9998
SELECT MIN( DISTINCT + + 63 ) + - - CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE + 83 >= - - 69 * + - col1
----
66
skipif mysql # not compatible
query I rowsort label-9998
SELECT MIN ( DISTINCT + + 63 ) + - - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE + 83 >= - - 69 * + - col1
----
66
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 IS NULL
----