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(89,91,82)
statement ok
INSERT INTO tab0 VALUES(35,97,1)
statement ok
INSERT INTO tab0 VALUES(24,86,33)
statement ok
INSERT INTO tab1 VALUES(64,10,57)
statement ok
INSERT INTO tab1 VALUES(3,26,54)
statement ok
INSERT INTO tab1 VALUES(80,13,96)
statement ok
INSERT INTO tab2 VALUES(7,31,27)
statement ok
INSERT INTO tab2 VALUES(79,17,38)
statement ok
INSERT INTO tab2 VALUES(78,59,26)
onlyif mysql # use DIV operator for integer division
query I rowsort label-0
SELECT + cor0.col1 * + col0 + - col1 DIV + col0 + 99 FROM tab0 AS cor0
----
2160
3492
8197
skipif mysql # not compatible
query I rowsort label-0
SELECT + cor0.col1 * + col0 + - col1 / + col0 + 99 FROM tab0 AS cor0
----
2160
3492
8197
query I rowsort
SELECT ALL - cor0.col1 + ( - 26 ) * col1 + - 70 AS col0 FROM tab1 AS cor0
----
-340
-421
-772
query I rowsort
SELECT DISTINCT + - cor0.col1 * - col2 - col2 AS col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT ALL 40 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4
SELECT - cor0.col2 * CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-4
SELECT - cor0.col2 * CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - + cor0.col2 - + 60 FROM tab2 AS cor0
----
-86
-87
-98
query I rowsort
SELECT ALL col1 + + ( cor0.col2 ) * cor0.col2 FROM tab0 cor0
----
1175
6815
98
query I rowsort
SELECT col2 * 93 FROM tab2 AS cor0
----
2418
2511
3534
query I rowsort
SELECT - cor0.col0 * 30 FROM tab1 AS cor0
----
-1920
-2400
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 96 - + cor0.col1 col2 FROM tab1 AS cor0
----
-1261
-2522
-970
query I rowsort
SELECT + tab1.col0 * - col2 * col2 AS col2 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT + + col1 + + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col2 FROM tab0 AS cor0
----
-61
-61
-61
query I rowsort
SELECT DISTINCT 42 + col0 FROM tab0 AS cor0
----
131
66
77
query I rowsort
SELECT - 27 * - col1 FROM tab0 AS cor0
----
2322
2457
2619
onlyif mysql # use DIV operator for integer division
query I rowsort label-15
SELECT DISTINCT - 46 DIV - col2 + - 46 FROM tab0 AS cor0
----
-45
-46
0
skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT - 46 / - col2 + - 46 FROM tab0 AS cor0
----
-45
-46
0
query I rowsort
SELECT DISTINCT - 92 AS col2 FROM tab0 cor0
----
-92
query I rowsort
SELECT - col0 * col0 + col2 AS col1 FROM tab2
----
-22
-6058
-6203
query I rowsort
SELECT + col0 * col2 + col2 AS col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL cor1.col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 * col1 + - col0 col0 FROM tab0
----
-7248
-7733
-8183
query I rowsort
SELECT ALL + col2 * + tab1.col2 FROM tab1
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( col2 ) + - col1 col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT ALL + col1 + ( 80 ) * - col1 FROM tab0 AS cor0
----
-6794
-7189
-7663
query I rowsort
SELECT cor0.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL + 98 AS col0 FROM tab0, tab0 cor0, tab1 cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT col0 - - 1 FROM tab2
----
79
8
80
query I rowsort
SELECT tab0.col2 - - 11 * col2 FROM tab0
----
12
396
984
onlyif mysql # use DIV operator for integer division
query I rowsort label-28
SELECT - + cor0.col1 DIV + col0 col0 FROM tab2 AS cor0
----
-4
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-28
SELECT - + cor0.col1 / + col0 col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT ALL 76 * 17 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 99f578c1284e20a2862cd7126dfb8bfb
query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab0, tab1 AS cor0
----
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-31
SELECT + col0 + + col1 DIV ( - col1 ) FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-31
SELECT + col0 + + col1 / ( - col1 ) FROM tab0 AS cor0
----
23
34
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT 14 * - col1 AS col2 FROM tab0
----
-1204
-1274
-1358
query I rowsort
SELECT DISTINCT + 34 AS col0 FROM tab2
----
34
query I rowsort
SELECT 24 * col0 FROM tab1
----
1536
1920
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 col0 FROM tab0 AS cor0
----
-44
query I rowsort
SELECT - ( ( - cor0.col1 ) ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + ( 14 ) * col0 AS col0 FROM tab2
----
1092
1106
98
query I rowsort
SELECT - ( + col1 ) + + col0 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ( - 24 ) AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
query I rowsort
SELECT - 46 - + col2 AS col2 FROM tab2
----
-72
-73
-84
query I rowsort
SELECT ALL cor0.col1 * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT 20 + + col2 AS col1 FROM tab0 AS cor0
----
102
21
53
query I rowsort
SELECT + col2 + col1 * + col0 AS col0 FROM tab1
----
1136
132
697
query I rowsort
SELECT DISTINCT ( + col0 ) * col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col1 * tab2.col0 AS col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT 91 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT ( + 99 ) * col2 AS col0 FROM tab0 AS cor0
----
3267
8118
99
query I rowsort
SELECT - - col1 * - 40 FROM tab1 AS cor0
----
-1040
-400
-520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-52
SELECT ALL + col1 / CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-52
SELECT ALL + col1 / CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-53
SELECT ALL cor0.col0 + col2 DIV - col2 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-53
SELECT ALL cor0.col0 + col2 / - col2 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT ALL + + 65 * col0 FROM tab1 AS cor0
----
195
4160
5200
query I rowsort
SELECT ALL - col1 + - cor0.col2 * cor0.col2 * col1 FROM tab2 AS cor0
----
-22630
-24565
-39943
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-56
SELECT + col2 + - col1 * + CAST( NULL AS SIGNED ) / 71 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-56
SELECT + col2 + - col1 * + CAST ( NULL AS INTEGER ) / 71 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 80 + col1 FROM tab1 AS cor0
----
106
90
93
query I rowsort
SELECT ALL ( - 77 ) AS col1 FROM tab2
----
-77
-77
-77
query I rowsort
SELECT DISTINCT + 77 * col2 + col1 AS col2 FROM tab0 AS cor0
----
174
2627
6405
query I rowsort
SELECT DISTINCT - - 66 * - cor0.col2 FROM tab1 AS cor0
----
-3564
-3762
-6336
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - + col2 + col0 * ( - 42 ) AS col1 FROM tab1 AS cor0
----
-180
-2745
-3456
onlyif mysql # use DIV operator for integer division
query I rowsort label-63
SELECT - 52 DIV cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-63
SELECT - 52 / cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT + col1 * tab0.col2 + col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT - col2 * + col2 + - col2 * + col2 * + col2 AS col2 FROM tab1
----
-160380
-188442
-893952
onlyif mysql # use DIV operator for integer division
query I rowsort label-66
SELECT ALL - - col0 * col2 + col2 DIV + col0 + - col2 * - col1 FROM tab1 AS cor0
----
1584
4218
8929
skipif mysql # not compatible
query I rowsort label-66
SELECT ALL - - col0 * col2 + col2 / + col0 + - col2 * - col1 FROM tab1 AS cor0
----
1584
4218
8929
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + cor0.col0 * - col1 * + ( col2 ) col1 FROM tab0 AS cor0
----
-2170
-656197
-67536
query I rowsort
SELECT ALL - col2 * - 75 + + 6 FROM tab1 AS cor0
----
4056
4281
7206
query I rowsort
SELECT col0 * col1 + 65 FROM tab0 cor0
----
2129
3460
8164
query I rowsort
SELECT + cor0.col1 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 + 74 FROM tab1 AS cor0
----
138
154
77
query I rowsort
SELECT ALL + col1 * + col2 * col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT + tab1.col0 - col2 * + 7 FROM tab1
----
-335
-375
-592
query I rowsort
SELECT col0 + + 56 FROM tab2
----
134
135
63
query I rowsort
SELECT col2 + 26 AS col1 FROM tab2 AS cor0
----
52
53
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-76
SELECT + col2 DIV col0 + cor0.col0 + - col2 AS col0 FROM tab0 AS cor0
----
-8
34
7
skipif mysql # not compatible
query I rowsort label-76
SELECT + col2 / col0 + cor0.col0 + - col2 AS col0 FROM tab0 AS cor0
----
-8
34
7
query I rowsort
SELECT + - col2 + 99 FROM tab2 AS cor0
----
61
72
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-78
SELECT col2 DIV + col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-78
SELECT col2 / + col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT + cor0.col0 * ( col2 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col2 + + 6 * - col1 AS col1 FROM tab0
----
-464
-483
-581
query I rowsort
SELECT ALL + tab1.col1 + col2 AS col2 FROM tab1
----
109
67
80
query I rowsort
SELECT + ( - col1 ) + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL + col0 + + 56 FROM tab2 AS cor0
----
134
135
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-84
SELECT col2 DIV - col1 + col1 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-84
SELECT col2 / - col1 + col1 FROM tab0 cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-85
SELECT DISTINCT col0 * col0 + col0 DIV - col1 FROM tab1
----
4090
6394
9
skipif mysql # not compatible
query I rowsort label-85
SELECT DISTINCT col0 * col0 + col0 / - col1 FROM tab1
----
4090
6394
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-86
SELECT DISTINCT + col0 + + col1 DIV col2 AS col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-86
SELECT DISTINCT + col0 + + col1 / col2 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL col2 * + 53 + - col2 FROM tab2
----
1352
1404
1976
onlyif mysql # use DIV operator for integer division
query I rowsort label-88
SELECT DISTINCT col1 + 7 DIV col2 FROM tab0
----
104
86
91
skipif mysql # not compatible
query I rowsort label-88
SELECT DISTINCT col1 + 7 / col2 FROM tab0
----
104
86
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - tab0.col2 col1 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT ALL col1 * - 16 + col1 FROM tab1
----
-150
-195
-390
query I rowsort
SELECT ALL + col2 * 29 AS col2 FROM tab2 AS cor0
----
1102
754
783
onlyif mysql # use DIV operator for integer division
query I rowsort label-92
SELECT ALL col1 * - col2 + col0 DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2837
-7461
-96
skipif mysql # not compatible
query I rowsort label-92
SELECT ALL col1 * - col2 + col0 / + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2837
-7461
-96
query I rowsort
SELECT + ( + col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + 5 * col1 AS col2 FROM tab2 AS cor0
----
155
295
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-95
SELECT ALL - - ( - 26 ) + col0 DIV col1 + + 52 AS col0 FROM tab2 AS cor0
----
26
27
30
skipif mysql # not compatible
query I rowsort label-95
SELECT ALL - - ( - 26 ) + col0 / col1 + + 52 AS col0 FROM tab2 AS cor0
----
26
27
30
query I rowsort
SELECT DISTINCT + 8 + - col0 AS col1 FROM tab1 AS cor0
----
-56
-72
5
query I rowsort
SELECT ALL + 62 AS col1 FROM tab2 AS cor0
----
62
62
62
query I rowsort
SELECT ALL + + ( col2 ) * + col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL - - ( + 93 ) FROM tab1 AS cor0
----
93
93
93
query I rowsort
SELECT DISTINCT - cor0.col1 * 46 FROM tab0 AS cor0
----
-3956
-4186
-4462
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 col2 FROM tab2 AS cor0
----
69
query I rowsort
SELECT ALL + 61 + cor0.col2 FROM tab1 AS cor0
----
115
118
157
query I rowsort
SELECT ALL - + 63 * + col1 + 43 AS col2 FROM tab0 AS cor0
----
-5375
-5690
-6068
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 - col2 * - col2 col0 FROM tab1 cor0
----
-399
1536
2754
query I rowsort
SELECT DISTINCT + cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - + col1 + + cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-107
SELECT ALL - col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-107
SELECT ALL - col0 / - col2 AS col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT - 30 * cor0.col1 * ( col2 * col2 ) AS col1 FROM tab1 cor0
----
-2274480
-3594240
-974700
onlyif mysql # use DIV operator for integer division
query I rowsort label-109
SELECT DISTINCT - col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-109
SELECT DISTINCT - col0 / - col2 AS col2 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT - 9 * col1 FROM tab2 AS cor0
----
-153
-279
-531
query I rowsort
SELECT ALL + ( - cor0.col1 ) - col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL cor0.col1 * col1 AS col2 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT ALL + col0 * 35 FROM tab2 AS cor0
----
245
2730
2765
onlyif mysql # use DIV operator for integer division
query I rowsort label-114
SELECT DISTINCT - cor0.col0 - col2 DIV col0 FROM tab1 cor0
----
-21
-64
-81
skipif mysql # not compatible
query I rowsort label-114
SELECT DISTINCT - cor0.col0 - col2 / col0 FROM tab1 cor0
----
-21
-64
-81
query I rowsort
SELECT ALL col0 - + 81 AS col2 FROM tab2 AS cor0
----
-2
-3
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-116
SELECT DISTINCT + cor0.col0 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-116
SELECT DISTINCT + cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort
SELECT cor0.col0 * CAST ( col1 AS REAL ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - - col1 + - 29 AS col0 FROM tab1 AS cor0
----
-16
-19
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-119
SELECT ALL + col0 DIV 59 + + cor0.col2 + + col2 FROM tab0 AS cor0
----
165
2
66
skipif mysql # not compatible
query I rowsort label-119
SELECT ALL + col0 / 59 + + cor0.col2 + + col2 FROM tab0 AS cor0
----
165
2
66
query I rowsort
SELECT DISTINCT col0 + col1 * ( col0 ) FROM tab1 cor0
----
1120
704
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-121
SELECT - col1 * - CAST( NULL AS DECIMAL ) + - col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-121
SELECT - col1 * - CAST ( NULL AS REAL ) + - col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 23 * + 42 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 419452d3a62e47f07c512a49a12e478a
query I rowsort
SELECT ALL - - ( + col0 ) + - 44 AS col2 FROM tab0 AS cor0
----
-20
-9
45
query I rowsort
SELECT cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT + cor0.col1 + ( 55 ) * + col2 FROM tab0 AS cor0
----
152
1901
4601
onlyif mysql # use DIV operator for integer division
query I rowsort label-126
SELECT + col2 DIV 41 AS col0 FROM tab1 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-126
SELECT + col2 / 41 AS col0 FROM tab1 AS cor0
----
1
1
2
query I rowsort
SELECT + + col2 * 82 AS col2 FROM tab1 AS cor0
----
4428
4674
7872
onlyif mysql # use DIV operator for integer division
query I rowsort label-128
SELECT - cor0.col0 * col2 DIV - col1 FROM tab1 AS cor0
----
364
590
6
skipif mysql # not compatible
query I rowsort label-128
SELECT - cor0.col0 * col2 / - col1 FROM tab1 AS cor0
----
364
590
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 + col2 col0 FROM tab1 WHERE col0 NOT IN ( + col1 - col0 )
----
54
57
96
query I rowsort
SELECT - tab0.col1 * col2 * - col2 + - col0 AS col0 FROM tab0
----
611795
62
93630
query I rowsort
SELECT ALL - col1 + - col2 * col0 AS col1 FROM tab2 WHERE col0 + col1 * col0 * col2 > col0 * + col0 * col2
----
-220
query I rowsort
SELECT ALL - col0 + + col2 + col0 * col0 AS col2 FROM tab1
----
4089
60
6416
query I rowsort
SELECT DISTINCT col2 * col1 * + tab0.col0 FROM tab0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - tab2.col1 col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + col1 * col1 + col2 AS col2 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT - tab1.col0 * - tab1.col1 + col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT NULL <> - col2
----
query I rowsort
SELECT col2 + + col0 AS col2 FROM tab2 WHERE col2 NOT IN ( + col2 * - col2 + + col2 )
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col1 FROM tab1 cor0
----
70
70
70
query I rowsort
SELECT - - col0 * + col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + - col0 + cor0.col2 FROM tab2 AS cor0
----
-41
-52
20
query III rowsort
SELECT * FROM tab1 WHERE NOT col0 IN ( col1 * col1 * tab1.col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT col2 * col1 + - 22 * col2 AS col0 FROM tab0 AS cor0
----
2112
5658
75
query I rowsort
SELECT col2 * - col0 + + cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT + + ( - cor0.col0 ) * 95 AS col1 FROM tab2 AS cor0
----
-665
-7410
-7505
onlyif mysql # use DIV operator for integer division
query I rowsort label-146
SELECT + 5 * col0 + col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
320
400
7
skipif mysql # not compatible
query I rowsort label-146
SELECT + 5 * col0 + col1 / - col0 AS col0 FROM tab1 AS cor0
----
320
400
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-147
SELECT ALL - + col1 DIV - cor0.col1 AS col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-147
SELECT ALL - + col1 / - cor0.col1 AS col0 FROM tab2 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col1 col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL - - col0 + col2 * col0 FROM tab2 AS cor0
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-150
SELECT - cor0.col0 * col2 DIV - cor0.col1 FROM tab1 cor0
----
364
590
6
skipif mysql # not compatible
query I rowsort label-150
SELECT - cor0.col0 * col2 / - cor0.col1 FROM tab1 cor0
----
364
590
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-151
SELECT + - col0 * + col1 + CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-576
-75
-960
skipif mysql # not compatible
query I rowsort label-151
SELECT + - col0 * + col1 + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT - col2 * 22 + col0 * - col1 FROM tab2 AS cor0
----
-2179
-5174
-811
query I rowsort
SELECT ALL - col1 + 2 AS col0 FROM tab2 AS cor0
----
-15
-29
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-154
SELECT ALL + col2 - + ( col2 ) DIV col2 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-154
SELECT ALL + col2 - + ( col2 ) / col2 FROM tab0 AS cor0
----
0
32
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-155
SELECT ALL col0 DIV 73 AS col0 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-155
SELECT ALL col0 / 73 AS col0 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT ALL + - 31 * + col0 FROM tab0 AS cor0
----
-1085
-2759
-744
onlyif mysql # use DIV operator for integer division
query I rowsort label-157
SELECT + 17 DIV + cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-157
SELECT + 17 / + cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-158
SELECT + - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-158
SELECT + - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - 88 * - col0 AS col1 FROM tab2 AS cor0
----
616
6864
6952
query I rowsort
SELECT 30 * + ( + tab1.col0 ) FROM tab1
----
1920
2400
90
query I rowsort
SELECT 3 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
query I rowsort
SELECT DISTINCT col1 * 57 FROM tab0
----
4902
5187
5529
query I rowsort
SELECT ALL 33 AS col1 FROM tab1
----
33
33
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 + col0 col2 FROM tab2
----
134
163
65
query I rowsort
SELECT ALL 32 + col0 AS col2 FROM tab2
----
110
111
39
query I rowsort
SELECT - 0 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col0 * col0 + - col1 + + col0 AS col1 FROM tab2 AS cor0
----
25
6103
6303
query I rowsort
SELECT DISTINCT 65 * + col0 + - col2 FROM tab0 cor0
----
1527
2274
5703
onlyif mysql # use DIV operator for integer division
query I rowsort label-169
SELECT - col2 * + col1 - cor0.col0 * - col0 DIV col0 AS col2 FROM tab2 cor0
----
-1456
-567
-830
skipif mysql # not compatible
query I rowsort label-169
SELECT - col2 * + col1 - cor0.col0 * - col0 / col0 AS col2 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT + 89 + col0 * - col0 AS col0 FROM tab2
----
-5995
-6152
40
query I rowsort
SELECT col0 + + col0 + - col2 FROM tab0
----
15
69
96
query I rowsort
SELECT DISTINCT ( col2 * + tab1.col0 ) + col2 FROM tab1
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + + cor0.col2 col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - cor0.col1 + col2 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT ALL + cor0.col1 * col2 + col2 AS col1 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT + col2 + + col0 * col1 + cor0.col0 FROM tab0 AS cor0
----
2121
3431
8270
onlyif mysql # use DIV operator for integer division
query I rowsort label-177
SELECT ALL col0 DIV col0 + col1 * col2 AS col2 FROM tab0 cor0
----
2839
7463
98
skipif mysql # not compatible
query I rowsort label-177
SELECT ALL col0 / col0 + col1 * col2 AS col2 FROM tab0 cor0
----
2839
7463
98
query I rowsort
SELECT - col2 * + col1 + col1 + + col1 AS col1 FROM tab1 AS cor0
----
-1222
-1352
-550
query I rowsort
SELECT ALL col2 * col0 AS col2 FROM tab0 cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col1 col0 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-181
SELECT - + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-181
SELECT - + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 5 - 94 FROM tab1
----
-89
query I rowsort
SELECT DISTINCT + col1 - tab1.col1 AS col1 FROM tab1
----
0
query I rowsort
SELECT DISTINCT + tab2.col1 * + col2 - tab2.col1 FROM tab2
----
1475
629
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-185
SELECT - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-185
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 - - col1 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL col0 * 0 * + col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 95 AS col0 FROM tab0, tab0 AS cor0
----
-95
query I rowsort
SELECT ALL col1 - - 27 * + col2 FROM tab2 AS cor0
----
1043
760
761
query I rowsort
SELECT ALL - 19 - col2 AS col2 FROM tab1 cor0
----
-115
-73
-76
query I rowsort
SELECT ALL - 64 * col0 - + col2 * col2 AS col2 FROM tab1 AS cor0
----
-14336
-3108
-7345
query I rowsort
SELECT - + 18 * col1 AS col2 FROM tab1 AS cor0
----
-180
-234
-468
query I rowsort
SELECT ALL col2 * + col0 * col0 + col1 - + col0 FROM tab1 AS cor0
----
233418
509
614333
query I rowsort
SELECT DISTINCT + 72 * + col2 AS col2 FROM tab2 cor0
----
1872
1944
2736
query I rowsort
SELECT ALL - 29 AS col2 FROM tab0 AS cor0
----
-29
-29
-29
query I rowsort
SELECT DISTINCT - col1 * col2 + col1 * col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col0 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT col1 * - col0 + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT + 93 + cor0.col0 AS col2 FROM tab2 cor0
----
100
171
172
onlyif mysql # use DIV operator for integer division
query I rowsort label-200
SELECT DISTINCT 58 + - col0 DIV cor0.col1 + + cor0.col1 col0 FROM tab0 AS cor0
----
144
149
155
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT 58 + - col0 / cor0.col1 + + cor0.col1 col0 FROM tab0 AS cor0
----
144
149
155
query I rowsort
SELECT ALL + col2 * + col0 - - col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT - 4 + - col2 + col2 FROM tab2
----
-4
-4
-4
query I rowsort
SELECT col1 * - 40 + col0 FROM tab0
----
-3416
-3551
-3845
query I rowsort
SELECT - ( 35 ) AS col0 FROM tab1
----
-35
-35
-35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-205
SELECT ALL CAST( - tab0.col1 AS SIGNED ) FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-205
SELECT ALL CAST ( - tab0.col1 AS INTEGER ) FROM tab0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-206
SELECT DISTINCT - col0 DIV 15 - + col1 * col1 FROM tab1
----
-104
-174
-676
skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT - col0 / 15 - + col1 * col1 FROM tab1
----
-104
-174
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-207
SELECT ALL tab2.col0 - + ( + col1 ) DIV - col0 FROM tab2
----
11
78
79
skipif mysql # not compatible
query I rowsort label-207
SELECT ALL tab2.col0 - + ( + col1 ) / - col0 FROM tab2
----
11
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-208
SELECT ALL + col2 + + col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-208
SELECT ALL + col2 + + col0 / - col0 AS col1 FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT + cor0.col2 * + col2 + col1 FROM tab2 cor0
----
1461
735
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-210
SELECT col1 - tab0.col2 DIV - col2 AS col2 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-210
SELECT col1 - tab0.col2 / - col2 AS col2 FROM tab0
----
87
92
98
query I rowsort
SELECT ALL col1 * + col1 * - tab0.col1 AS col0 FROM tab0
----
-636056
-753571
-912673
query I rowsort
SELECT DISTINCT + col2 + - col1 AS col2 FROM tab1
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-213
SELECT - col0 DIV col2 + tab0.col2 * col1 DIV - col1 + col2 AS col1 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-213
SELECT - col0 / col2 + tab0.col2 * col1 / - col1 + col2 AS col1 FROM tab0
----
-1
-35
0
query I rowsort
SELECT DISTINCT col0 * - col2 * tab0.col2 FROM tab0
----
-26136
-35
-598436
query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + - col2 * col2 > - col0 * col2
----
64
10
57
query I rowsort
SELECT + col2 + + col2 + col2 * + col1 FROM tab2
----
1586
722
891
query I rowsort
SELECT - tab1.col2 + col2 * tab1.col0 AS col0 FROM tab1
----
108
3591
7584
query I rowsort
SELECT ALL col0 * + col2 + col1 * + col0 AS col2 FROM tab1
----
240
4288
8720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 col0 FROM tab0
----
1
1089
6724
query I rowsort
SELECT col0 * + col0 * + col1 + - tab1.col0 FROM tab1 WHERE NOT NULL BETWEEN ( - col2 * col2 ) AND col1
----
query I rowsort
SELECT + col2 * col2 * - col0 FROM tab0
----
-26136
-35
-598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-222
SELECT ALL col0 * - col2 DIV + col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-222
SELECT ALL col0 * - col2 / + col2 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-223
SELECT DISTINCT - col1 DIV - col1 AS col2 FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT - col1 / - col1 AS col2 FROM tab2
----
1
query I rowsort
SELECT ALL col0 * col0 * + col0 FROM tab1
----
262144
27
512000
query I rowsort
SELECT - tab1.col0 + + col0 AS col0 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 * tab0.col1 * - tab0.col0 col1 FROM tab0
----
177504
329315
737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-227
SELECT DISTINCT - + col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT - + col0 / + col1 AS col2 FROM tab1 AS cor0
----
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-228
SELECT - + col2 DIV - col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-228
SELECT - + col2 / - col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT + col2 * + col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-230
SELECT + 56 DIV - cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-230
SELECT + 56 / - cor0.col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 50 * - cor0.col0 + col0 + + 74 FROM tab1 AS cor0
----
-3062
-3846
-73
query I rowsort
SELECT cor0.col2 + + 28 * - tab2.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e5ce7d574cc6329d14e856f337959c20
query I rowsort
SELECT DISTINCT - 0 AS col0 FROM tab1, tab1 cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-234
SELECT + CAST( NULL AS SIGNED ) * tab2.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-234
SELECT + CAST ( NULL AS INTEGER ) * tab2.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT tab2.col0 * - col0 * + col1 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT + tab1.col2 FROM tab1, tab1 cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + 96 col0 FROM tab0 AS cor0
----
182
187
193
query I rowsort
SELECT 60 + - 59 * col0 + - cor0.col0 FROM tab1 AS cor0
----
-120
-3780
-4740
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-239
SELECT - CAST( NULL AS DECIMAL ) * col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-239
SELECT - CAST ( NULL AS REAL ) * col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-240
SELECT - ( - col2 ) DIV col0 AS col2 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-240
SELECT - ( - col2 ) / col0 AS col2 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT 41 * - col1 AS col0 FROM tab2
----
-1271
-2419
-697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-242
SELECT + col1 + col2 * - CAST( NULL AS SIGNED ) + - col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-242
SELECT + col1 + col2 * - CAST ( NULL AS INTEGER ) + - col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 65 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
onlyif mysql # use DIV operator for integer division
query I rowsort label-244
SELECT ALL + col0 * col2 + - col0 DIV ( col0 * + col1 ) FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-244
SELECT ALL + col0 * col2 + - col0 / ( col0 * + col1 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ( col1 ) + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 + - col1 * + col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL - 64 * cor0.col0 FROM tab1 cor0
----
-192
-4096
-5120
query I rowsort
SELECT + col1 - cor0.col0 * - cor0.col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + - 17 + + col1 AS col0 FROM tab1 AS cor0
----
-4
-7
9
query I rowsort
SELECT col1 * col0 - 35 AS col2 FROM tab0 AS cor0
----
2029
3360
8064
query I rowsort
SELECT DISTINCT + col2 * col2 + col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT DISTINCT - cor1.col0 * - 80 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
240
5120
6400
query I rowsort
SELECT DISTINCT - col0 * - 76 AS col2 FROM tab0 AS cor0
----
1824
2660
6764
query I rowsort
SELECT 47 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
query I rowsort
SELECT DISTINCT 59 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-256
SELECT cor0.col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-256
SELECT cor0.col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-257
SELECT - col1 * + CAST( col2 * + col0 + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-12804
-672399
-75508
skipif mysql # not compatible
query I rowsort label-257
SELECT - col1 * + CAST ( col2 * + col0 + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-12804
-672399
-75508
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-258
SELECT - col2 * CAST( NULL AS SIGNED ) + col0 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-258
SELECT - col2 * CAST ( NULL AS INTEGER ) + col0 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 28 AS col0 FROM tab2, tab1 AS cor0, tab0, tab1 cor1
----
81 values hashing to 423726553d33e100432ebde49ddd31b5
query I rowsort
SELECT col0 - - cor0.col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT cor0.col1 * cor0.col2 + - col0 * col1 * + 0 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-262
SELECT - + CAST( - cor0.col1 AS SIGNED ) FROM tab2 cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-262
SELECT - + CAST ( - cor0.col1 AS INTEGER ) FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT 86 AS col1 FROM tab2, tab1 AS cor0
----
86
query I rowsort
SELECT - 60 + cor0.col0 FROM tab0 AS cor0
----
-25
-36
29
query I rowsort
SELECT DISTINCT - 54 + + col1 FROM tab2 AS cor0
----
-23
-37
5
query I rowsort
SELECT DISTINCT 35 + col1 * cor0.col1 FROM tab1 AS cor0
----
135
204
711
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + 27 col2 FROM tab1 AS cor0
----
37
40
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col0 FROM tab0 AS cor0
----
80
80
80
query I rowsort
SELECT + col0 * 55 AS col1 FROM tab2 AS cor0
----
385
4290
4345
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 + col1 col1 FROM tab2 AS cor0
----
134
163
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-271
SELECT DISTINCT + col2 * + col1 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT + col2 * + col1 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT ALL + 47 * + col0 FROM tab2
----
329
3666
3713
query I rowsort
SELECT + col2 * + 41 + col2 * col2 * col0 FROM tab1 AS cor0
----
10962
210273
741216
query I rowsort
SELECT - col2 - col0 * col1 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT col2 * + cor0.col2 - - col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT - cor0.col0 + ( 40 ) + col1 FROM tab1 AS cor0
----
-14
-27
63
query I rowsort
SELECT ALL + col2 + - ( 25 ) * col2 FROM tab2 AS cor0
----
-624
-648
-912
query I rowsort
SELECT ALL - 40 AS col0 FROM tab1
----
-40
-40
-40
query I rowsort
SELECT DISTINCT - tab2.col1 AS col0 FROM tab2, tab0 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - 39 AS col0 FROM tab1
----
-39
-39
-39
query I rowsort
SELECT 48 * col0 AS col0 FROM tab0
----
1152
1680
4272
query I rowsort
SELECT DISTINCT + col1 * col2 * - 59 AS col0 FROM tab0 AS cor0
----
-167442
-440258
-5723
onlyif mysql # use DIV operator for integer division
query I rowsort label-283
SELECT + col2 DIV - col0 AS col0 FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-283
SELECT + col2 / - col0 AS col0 FROM tab2
----
-3
0
0
query I rowsort
SELECT - 37 FROM tab0, tab2 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
query I rowsort
SELECT ALL + + 55 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT ALL 87 * cor0.col2 * - col1 FROM tab1 AS cor0
----
-108576
-122148
-49590
query I rowsort
SELECT + col2 * col2 - col0 FROM tab0 cor0
----
-34
1065
6635
query I rowsort
SELECT DISTINCT col0 + cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL + col0 * + 45 * - col0 FROM tab2
----
-2205
-273780
-280845
query I rowsort
SELECT - tab1.col1 - + col2 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT - col1 * - 68 FROM tab1 AS cor0
----
1768
680
884
query I rowsort
SELECT col1 + + ( + col1 + col2 ) FROM tab2
----
144
72
89
query I rowsort
SELECT + col1 * col1 - + col0 AS col1 FROM tab0
----
7372
8192
9374
query I rowsort
SELECT ( col0 ) + - col1 * 37 FROM tab0 AS cor0
----
-3158
-3278
-3554
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-295
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-295
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 + 67 FROM tab0 cor0
----
102
156
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-297
SELECT ALL + CAST( + col2 AS SIGNED ) DIV col0 + - ( col2 ) FROM tab0 AS cor0
----
-1
-32
-82
skipif mysql # not compatible
query I rowsort label-297
SELECT ALL + CAST ( + col2 AS INTEGER ) / col0 + - ( col2 ) FROM tab0 AS cor0
----
-1
-32
-82
query I rowsort
SELECT - col2 + + 13 * col1 * cor0.col1 AS col0 FROM tab2 cor0
----
12466
3719
45227
query I rowsort
SELECT DISTINCT 91 - - 51 * - col2 AS col1 FROM tab0 AS cor0
----
-1592
-4091
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-300
SELECT DISTINCT - - col0 * col1 - col1 DIV - 59 AS col0 FROM tab2 AS cor0
----
1343
217
4603
skipif mysql # not compatible
query I rowsort label-300
SELECT DISTINCT - - col0 * col1 - col1 / - 59 AS col0 FROM tab2 AS cor0
----
1343
217
4603
query I rowsort
SELECT + 76 * - col2 AS col2 FROM tab0 AS cor0
----
-2508
-6232
-76
query I rowsort
SELECT DISTINCT - col0 * col0 + col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT ALL - col2 + col0 * col2 AS col0 FROM tab1
----
108
3591
7584
query I rowsort
SELECT - col1 * cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT + col1 * 32 AS col0 FROM tab2 cor0
----
1888
544
992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-306
SELECT - + CAST( NULL AS SIGNED ) * cor0.col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-306
SELECT - + CAST ( NULL AS INTEGER ) * cor0.col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-307
SELECT DISTINCT 55 DIV - 37 + - col2 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-307
SELECT DISTINCT 55 / - 37 + - col2 FROM tab0 AS cor0
----
-2
-34
-83
query I rowsort
SELECT DISTINCT - + col1 * + col1 + + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * 47 col1 FROM tab0 AS cor0
----
-1128
-1645
-4183
query I rowsort
SELECT ALL col0 + - 58 - - col0 AS col0 FROM tab0 cor0
----
-10
12
120
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) * + col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT col1 * 87 AS col0 FROM tab2 AS cor0
----
1479
2697
5133
query I rowsort
SELECT ALL - - 27 * col0 * - col2 + 79 FROM tab0 AS cor0
----
-196967
-21305
-866
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-314
SELECT - CAST( + col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-314
SELECT - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + + 38 * - col0 + - col2 + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-300
-3068
-3119
query I rowsort
SELECT ALL 57 * + col2 AS col0 FROM tab1 AS cor0
----
3078
3249
5472
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-317
SELECT + CAST( col2 AS SIGNED ) + col2 * + col0 col1 FROM tab1 AS cor0
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-317
SELECT + CAST ( col2 AS INTEGER ) + col2 * + col0 col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL + 73 * cor0.col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
1785
2556
6579
query I rowsort
SELECT DISTINCT + ( col1 ) * - col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL - col0 - 20 * col1 AS col1 FROM tab0 AS cor0
----
-1744
-1909
-1975
query I rowsort
SELECT ALL - col0 * 92 + + col1 * 19 AS col1 FROM tab0 AS cor0
----
-1377
-574
-6459
query I rowsort
SELECT - col1 * col1 - col0 * col0 FROM tab0 AS cor0
----
-10634
-16202
-7972
query I rowsort
SELECT + + col1 + - col1 * + col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT DISTINCT - col0 * col0 * - col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
350
474630
493118
onlyif mysql # use DIV operator for integer division
query I rowsort label-325
SELECT - + col2 DIV + col1 - - 90 AS col2 FROM tab2 AS cor0
----
88
90
90
skipif mysql # not compatible
query I rowsort label-325
SELECT - + col2 / + col1 - - 90 AS col2 FROM tab2 AS cor0
----
88
90
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + col2 col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * col0 + ( 19 ) AS col1 FROM tab1 AS cor0
----
-1021
-59
-621
query I rowsort
SELECT ALL - + cor0.col0 * - col1 * ( 61 ) FROM tab2 AS cor0
----
13237
280722
81923
onlyif mysql # use DIV operator for integer division
query I rowsort label-329
SELECT ALL - + col0 DIV + col1 + + col0 - - 97 AS col1 FROM tab1 AS cor0
----
100
155
171
skipif mysql # not compatible
query I rowsort label-329
SELECT ALL - + col0 / + col1 + + col0 - - 97 AS col1 FROM tab1 AS cor0
----
100
155
171
query I rowsort
SELECT DISTINCT + - ( cor0.col1 ) + ( col1 ) AS col0 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-331
SELECT - CAST( 86 * col1 + - 57 AS SIGNED ) FROM tab1
----
-1061
-2179
-803
skipif mysql # not compatible
query I rowsort label-331
SELECT - CAST ( 86 * col1 + - 57 AS INTEGER ) FROM tab1
----
-1061
-2179
-803
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 + - col2 col2 FROM tab0
----
-120
-39
-71
query I rowsort
SELECT ALL - 3 AS col2 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to 0982dc7d0db8187bbb77550a76766104
query I rowsort
SELECT - cor0.col2 * col1 + - col1 * col1 FROM tab1 cor0
----
-1417
-2080
-670
query I rowsort
SELECT ALL - col2 * ( - col1 + + cor0.col0 ) * 12 FROM tab1 AS cor0
----
-36936
-77184
14904
query I rowsort
SELECT col2 * - ( 88 ) FROM tab0 AS cor0
----
-2904
-7216
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - cor0.col0 col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT - col2 + - ( col0 ) FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT ALL col0 * 37 AS col1 FROM tab0 AS cor0
----
1295
3293
888
query I rowsort
SELECT + col1 + 41 * - col1 AS col2 FROM tab1 cor0
----
-1040
-400
-520
query I rowsort
SELECT DISTINCT cor0.col0 * - col2 * col2 AS col2 FROM tab0 cor0
----
-26136
-35
-598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-342
SELECT ALL - - col1 DIV + 80 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-342
SELECT ALL - - col1 / + 80 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + col0 * 11 FROM tab2 AS cor0
----
77
858
869
query I rowsort
SELECT DISTINCT col1 + - tab0.col1 AS col1 FROM tab0
----
0
query I rowsort
SELECT ALL 4 AS col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT DISTINCT + col0 * + col2 + col2 + 70 * col0 * col2 FROM tab0
----
2486
518240
56265
query I rowsort
SELECT ALL + col1 * 6 * col2 AS col2 FROM tab0 AS cor0
----
17028
44772
582
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-348
SELECT + col2 * + ( - 34 ) * + col1 + CAST( 18 AS SIGNED ) FROM tab0 AS cor0
----
-253690
-3280
-96474
skipif mysql # not compatible
query I rowsort label-348
SELECT + col2 * + ( - 34 ) * + col1 + CAST ( 18 AS INTEGER ) FROM tab0 AS cor0
----
-253690
-3280
-96474
query I rowsort
SELECT + col2 - - col0 AS col1 FROM tab2
----
104
117
34
query I rowsort
SELECT + col0 * - 45 FROM tab1 AS cor0
----
-135
-2880
-3600
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to cc4f069e61d0cc52f433f9e8c0058808
query I rowsort
SELECT DISTINCT 41 - 64 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
-23
query I rowsort
SELECT ALL - 26 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39
onlyif mysql # use DIV operator for integer division
query I rowsort label-354
SELECT DISTINCT + + col0 DIV 12 FROM tab2 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT + + col0 / 12 FROM tab2 AS cor0
----
0
6
query I rowsort
SELECT ALL 15 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 - - 24 col1 FROM tab0
----
1113
25
6748
query I rowsort
SELECT + 6 - + col1 FROM tab2
----
-11
-25
-53
query I rowsort
SELECT + col0 + + ( 25 * + col1 ) FROM tab0 cor0
----
2174
2364
2460
query I rowsort
SELECT ALL - cor0.col1 - - col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL + cor0.col1 - - ( + col1 ) * col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT - + col0 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT col1 + cor0.col2 AS col0 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL tab0.col0 * col2 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT + cor0.col2 + + col1 AS col2 FROM tab1 cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * col0 col1 FROM tab0
----
-216
-315
-801
query I rowsort
SELECT + 42 + col0 * - ( + col0 ) + + tab0.col1 AS col1 FROM tab0
----
-1086
-448
-7788
query I rowsort
SELECT DISTINCT - + 65 FROM tab0, tab2, tab0 AS cor0
----
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + col0 + - cor0.col0 * + col2 * - col2 FROM tab2 AS cor0
----
114155
5110
52806
query I rowsort
SELECT + + cor0.col0 * 73 AS col1 FROM tab2 AS cor0
----
511
5694
5767
query I rowsort
SELECT + + 70 AS col0 FROM tab1 AS cor0
----
70
70
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-372
SELECT - col0 DIV - 58 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-372
SELECT - col0 / - 58 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT col2 * - ( + col2 ) AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - cor0.col1 * tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 98035271089455e681d20c65fd337c0a
query I rowsort
SELECT + col2 + - 26 * - col2 FROM tab2
----
1026
702
729
query I rowsort
SELECT col1 * 66 AS col1 FROM tab0
----
5676
6006
6402
onlyif mysql # use DIV operator for integer division
query I rowsort label-377
SELECT tab0.col1 DIV + tab0.col0 col0 FROM tab0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-377
SELECT tab0.col1 / + tab0.col0 col0 FROM tab0
----
1
2
3
query I rowsort
SELECT - + cor0.col0 * 75 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6b0b4fa9083f5c5555ea34a6c2b684d9
query I rowsort
SELECT ALL cor0.col2 * - 99 FROM tab2 AS cor0
----
-2574
-2673
-3762
query I rowsort
SELECT ALL - 99 * cor0.col0 FROM tab2 cor0
----
-693
-7722
-7821
query I rowsort
SELECT col1 * 17 FROM tab0
----
1462
1547
1649
query I rowsort
SELECT DISTINCT + + 62 + + col2 + 70 AS col0 FROM tab1 AS cor0
----
186
189
228
onlyif mysql # use DIV operator for integer division
query I rowsort label-383
SELECT - ( col2 ) DIV + col1 AS col2 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-383
SELECT - ( col2 ) / + col1 AS col2 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT ALL + cor0.col0 * + col0 AS col1 FROM tab2 cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-385
SELECT ALL + col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-385
SELECT ALL + col1 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT + + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - - col2 * - col1 - 96 AS col1 FROM tab2 AS cor0
----
-1630
-742
-933
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL + col0 + cor0.col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - + ( col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + cor0.col2 FROM tab2, tab0, tab2 AS cor0, tab1 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT DISTINCT ( - col0 ) * col0 FROM tab1
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-393
SELECT col1 + + col2 * - 69 + + col0 DIV col0 AS col1 FROM tab2
----
-1734
-1831
-2604
skipif mysql # not compatible
query I rowsort label-393
SELECT col1 + + col2 * - 69 + + col0 / col0 AS col1 FROM tab2
----
-1734
-1831
-2604
query I rowsort
SELECT ALL col2 + col1 - + col2 AS col0 FROM tab2
----
17
31
59
query I rowsort
SELECT col0 * col2 + + ( + col1 ) FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL + - ( + col0 ) * 24 AS col1 FROM tab1 AS cor0
----
-1536
-1920
-72
query I rowsort
SELECT 36 * + col1 + 35 AS col1 FROM tab0 AS cor0
----
3131
3311
3527
query I rowsort
SELECT - col0 * col2 + + col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-1659
2574
28
query I rowsort
SELECT DISTINCT 3 AS col1 FROM tab1, tab2 AS cor0
----
3
query I rowsort
SELECT DISTINCT + tab2.col0 * col2 + - col2 FROM tab2
----
162
2002
2964
query I rowsort
SELECT + 16 AS col0 FROM tab1 AS cor0
----
16
16
16
query I rowsort
SELECT DISTINCT - 1 AS col0 FROM tab2
----
-1
query I rowsort
SELECT + - ( col0 ) * cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT 12 FROM tab0, tab2 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT ALL + 55 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
29
42
45
query I rowsort
SELECT ( + cor0.col2 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL - ( col0 ) + col2 * ( + 27 ) FROM tab1 AS cor0
----
1455
1475
2512
query I rowsort
SELECT ALL col0 + - ( cor0.col0 ) * - col2 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL - col0 + 92 * col1 FROM tab0 AS cor0
----
7888
8283
8889
query I rowsort
SELECT - cor0.col2 * + 4 FROM tab0 AS cor0
----
-132
-328
-4
query I rowsort
SELECT ALL - - col2 * ( col0 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - col2 * ( - col1 + + col1 ) * col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * ( ( + col0 ) ) FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-414
SELECT ALL - + col2 DIV col2 + ( col2 ) FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-414
SELECT ALL - + col2 / col2 + ( col2 ) FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT - col1 * + ( + ( cor0.col1 ) ) FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + col0 * - col2 * cor0.col1 - col2 AS col0 FROM tab0 AS cor0
----
-3396
-664200
-68145
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c023509f63faa044d654943e6df55ca2
query I rowsort
SELECT - + cor0.col2 * + col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL col0 + - ( col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col1 * col0 * + col1 AS col0 FROM tab2 cor0
----
22831
271518
6727
query I rowsort
SELECT + cor0.col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + col0 + - 88 * col2 AS col2 FROM tab2 AS cor0
----
-2210
-2369
-3265
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-423
SELECT - + CAST( - ( cor0.col2 ) AS SIGNED ) * ( 80 * - col2 ) + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-177
-538011
-87206
skipif mysql # not compatible
query I rowsort label-423
SELECT - + CAST ( - ( cor0.col2 ) AS INTEGER ) * ( 80 * - col2 ) + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-177
-538011
-87206
query I rowsort
SELECT + cor0.col1 + col0 * + col2 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-425
SELECT ALL - cor0.col1 DIV col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-425
SELECT ALL - cor0.col1 / col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT ALL + + col1 + col2 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - 35 AS col1 FROM tab2 AS cor0
----
-35
onlyif mysql # use DIV operator for integer division
query I rowsort label-428
SELECT ALL + col1 * - col1 DIV - col1 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-428
SELECT ALL + col1 * - col1 / - col1 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL - 66 * tab2.col1 FROM tab2
----
-1122
-2046
-3894
query I rowsort
SELECT ALL + 81 * col2 AS col2 FROM tab1 AS cor0
----
4374
4617
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) * + col2 col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + col2 * - col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 * - col2 col0 FROM tab0
----
2541
6314
77
query I rowsort
SELECT DISTINCT - - 79 + - col0 AS col2 FROM tab1 AS cor0
----
-1
15
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-435
SELECT cor0.col0 DIV + 81 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-435
SELECT cor0.col0 / + 81 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT + - col2 * - 53 FROM tab1 AS cor0
----
2862
3021
5088
query I rowsort
SELECT + cor1.col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-438
SELECT - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-438
SELECT - CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-439
SELECT + col1 * + col2 + 6 DIV col2 col2 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-439
SELECT + col1 * + col2 + 6 / col2 col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL + col2 + 6 FROM tab0 AS cor0
----
39
7
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-441
SELECT DISTINCT + - col1 DIV - ( col0 ) col2 FROM tab1 AS cor0
----
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-441
SELECT DISTINCT + - col1 / - ( col0 ) col2 FROM tab1 AS cor0
----
0
8
query I rowsort
SELECT DISTINCT col1 * - 38 FROM tab0
----
-3268
-3458
-3686
query I rowsort
SELECT ALL col1 * - 58 + 9 AS col0 FROM tab2 AS cor0
----
-1789
-3413
-977
query I rowsort
SELECT ALL tab0.col0 + col1 * col1 AS col2 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT ALL + 37 * + 99 + col0 FROM tab2
----
3670
3741
3742
onlyif mysql # use DIV operator for integer division
query I rowsort label-446
SELECT ALL + col0 DIV col0 + col0 AS col2 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-446
SELECT ALL + col0 / col0 + col0 AS col2 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT DISTINCT + col2 * 28 + col1 FROM tab0 AS cor0
----
1010
125
2387
query I rowsort
SELECT - + 77 - col1 AS col2 FROM tab1 AS cor0
----
-103
-87
-90
query I rowsort
SELECT ALL - - 70 * col0 AS col0 FROM tab1 AS cor0
----
210
4480
5600
query I rowsort
SELECT DISTINCT + 31 * + 52 FROM tab2 AS cor0
----
1612
query I rowsort
SELECT col0 * ( + cor0.col2 * 70 ) - col2 FROM tab1 AS cor0
----
11286
255303
537504
query I rowsort
SELECT ALL col1 + + cor0.col1 * - col0 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL - + col1 + - col2 * ( - col1 ) + + col0 * col0 FROM tab0 AS cor0
----
1225
15292
3328
query I rowsort
SELECT DISTINCT cor0.col1 + - col0 * - 50 AS col0 FROM tab0 AS cor0
----
1286
1847
4541
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 71 + cor0.col2 * - col2 col2 FROM tab1 AS cor0
----
-2845
-3178
-9145
query I rowsort
SELECT DISTINCT - - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL - cor0.col2 + col2 * + 12 + - 37 AS col0 FROM tab1 AS cor0
----
1019
557
590
query I rowsort
SELECT - + ( col2 ) AS col1 FROM tab0 cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-459
SELECT DISTINCT - + col0 * - col1 + - CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-459
SELECT DISTINCT - + col0 * - col1 + - CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col2 * + col0 + ( col1 ) * col1 * col2 AS col0 FROM tab1 AS cor0
----
23904
36666
9348
query I rowsort
SELECT - - ( + col0 ) + + 64 AS col2 FROM tab1 cor0
----
128
144
67
query I rowsort
SELECT ALL 10 + col2 FROM tab1 AS cor0
----
106
64
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-463
SELECT col2 DIV - col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
24
26
38
skipif mysql # not compatible
query I rowsort label-463
SELECT col2 / - col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
24
26
38
query I rowsort
SELECT DISTINCT + - 61 + col1 AS col1 FROM tab1 AS cor0
----
-35
-48
-51
query I rowsort
SELECT 81 * - col0 AS col1 FROM tab1
----
-243
-5184
-6480
query I rowsort
SELECT ALL + 79 * - col0 + col0 FROM tab0
----
-1872
-2730
-6942
onlyif mysql # use DIV operator for integer division
query I rowsort label-467
SELECT col0 DIV 84 + + col1 + tab1.col1 AS col0 FROM tab1
----
20
26
52
skipif mysql # not compatible
query I rowsort label-467
SELECT col0 / 84 + + col1 + tab1.col1 AS col0 FROM tab1
----
20
26
52
query I rowsort
SELECT - col2 + ( + 45 ) AS col1 FROM tab0 AS cor0
----
-37
12
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + col1 + - col0 col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT - col1 + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT col2 + + col2 * 59 + - col1 FROM tab1
----
3214
3410
5747
onlyif mysql # use DIV operator for integer division
query I rowsort label-472
SELECT DISTINCT - col0 + 28 DIV col0 AS col1 FROM tab1
----
-64
-80
6
skipif mysql # not compatible
query I rowsort label-472
SELECT DISTINCT - col0 + 28 / col0 AS col1 FROM tab1
----
-64
-80
6
query I rowsort
SELECT - - col0 - - col1 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - ( + cor0.col0 ) + + cor0.col1 AS col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT col1 - + cor0.col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-476
SELECT - + cor0.col1 DIV 82 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-476
SELECT - + cor0.col1 / 82 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - + cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - ( col2 ) + 71 * 75 AS col1 FROM tab2 AS cor0
----
5287
5298
5299
onlyif mysql # use DIV operator for integer division
query I rowsort label-479
SELECT col2 DIV + cor0.col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-479
SELECT col2 / + cor0.col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT 54 AS col0 FROM tab2
----
54
54
54
query I rowsort
SELECT ALL 56 * col2 AS col2 FROM tab0 AS cor0
----
1848
4592
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col2 * ( + col1 ) col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT + - col0 * - col1 + ( col0 ) FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT - + ( - col2 ) * - 77 FROM tab0 AS cor0
----
-2541
-6314
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-485
SELECT ALL CAST( NULL AS SIGNED ) col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-485
SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col2 * col1 * col1 AS col2 FROM tab1 cor0
----
16224
36504
5700
query I rowsort
SELECT - - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
93
query I rowsort
SELECT ALL + cor0.col2 * col0 + + col0 * + col2 * + col0 FROM tab1 AS cor0
----
237120
622080
648
onlyif mysql # use DIV operator for integer division
query I rowsort label-490
SELECT - col2 DIV 59 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-490
SELECT - col2 / 59 FROM tab1 cor0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-491
SELECT cor0.col1 + + CAST( + 29 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
-280
-364
-728
skipif mysql # not compatible
query I rowsort label-491
SELECT cor0.col1 + + CAST ( + 29 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
-280
-364
-728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-492
SELECT DISTINCT + - cor0.col2 * - CAST( NULL AS SIGNED ) + 87 + col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-492
SELECT DISTINCT + - cor0.col2 * - CAST ( NULL AS INTEGER ) + 87 + col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + cor0.col1 + ( col1 ) * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT - col2 * + col1 + col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT 17 * col0 AS col2 FROM tab2
----
119
1326
1343
query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT col2 + + col1 * cor0.col2 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-498
SELECT DISTINCT - col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-498
SELECT DISTINCT - col0 / - col0 AS col1 FROM tab1 AS cor0
----
1
query I rowsort
SELECT ALL + + col2 * + ( 35 ) FROM tab1 AS cor0
----
1890
1995
3360
query I rowsort
SELECT col1 + col1 * - 57 AS col1 FROM tab2 cor0
----
-1736
-3304
-952
query I rowsort
SELECT DISTINCT - - col0 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT cor0.col2 * ( 23 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 61be457c277f5442f15b67d858888ea6
query I rowsort
SELECT col1 - - tab0.col1 AS col0 FROM tab0
----
172
182
194
query I rowsort
SELECT ALL + + 21 * + 18 AS col1 FROM tab1 AS cor0
----
378
378
378
query I rowsort
SELECT + col0 * ( - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + cor0.col0 + col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT + col1 * col2 + 78 AS col2 FROM tab1 cor0
----
1326
1482
648
query I rowsort
SELECT col2 * ( col0 ) AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT + cor1.col2 + cor0.col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2 cor1
----
81 values hashing to 0085c979f2628a9efd3cd7acd0dd3539
query I rowsort
SELECT ALL - 37 + - tab2.col2 + ( col1 + col0 ) * tab2.col2 AS col0 FROM tab2
----
3499
3573
962
query I rowsort
SELECT ALL 72 + + col0 + ( col2 + col2 * - col1 ) AS col2 FROM tab1
----
-1000
-1275
-377
query I rowsort
SELECT ALL 60 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162
query I rowsort
SELECT + col1 + col0 + + col2 * - ( col0 ) FROM tab0 AS cor0
----
-682
-7118
97
query I rowsort
SELECT DISTINCT - 23 + - col2 AS col1 FROM tab2 AS cor0
----
-49
-50
-61
query I rowsort
SELECT DISTINCT 55 + + col1 FROM tab1 AS cor0
----
65
68
81
query I rowsort
SELECT ALL 16 * cor0.col2 - col0 AS col2 FROM tab0 AS cor0
----
-19
1223
504
query I rowsort
SELECT DISTINCT + + col1 * + 22 FROM tab2 AS cor0
----
1298
374
682
query I rowsort
SELECT ALL - col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - - 10 AS col1 FROM tab1 AS cor0
----
10
query I rowsort
SELECT DISTINCT col1 * col0 + + cor0.col1 * col0 AS col0 FROM tab1 cor0
----
1280
156
2080
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-521
SELECT ALL - + 17 + + col1 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-521
SELECT ALL - + 17 + + col1 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 75 * col1 AS col0 FROM tab0 AS cor0
----
-6450
-6825
-7275
query I rowsort
SELECT DISTINCT - + 11 * cor0.col1 - - 51 FROM tab0 AS cor0
----
-1016
-895
-950
query I rowsort
SELECT ALL 80 * + col0 + - col0 AS col0 FROM tab1 AS cor0
----
237
5056
6320
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + + col2 + + col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT DISTINCT col0 * col0 - + ( 48 + col0 * + 23 ) FROM tab2 AS cor0
----
-160
4242
4376
query I rowsort
SELECT - col2 * col1 - col1 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT ALL - - col2 * cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-530
SELECT ALL col2 * - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-530
SELECT ALL col2 * - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + - col0 + - col1 * - col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT cor1.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT - - cor0.col2 + col0 * + ( + col2 * + ( - col1 ) ) AS col1 FROM tab1 cor0
----
-36423
-4158
-99744
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-534
SELECT + cor0.col1 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-534
SELECT + cor0.col1 * + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * ( - col1 ) col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT 32 AS col2 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
query I rowsort
SELECT + col2 * 38 * ( col1 ) + + 22 AS col0 FROM tab1 AS cor0
----
21682
47446
53374
query I rowsort
SELECT - col2 * col2 + col2 AS col0 FROM tab0 AS cor0
----
-1056
-6642
0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 29937e0f604055b7324ce0c354a5e778
query I rowsort
SELECT + col0 + - 16 FROM tab0
----
19
73
8
query I rowsort
SELECT col2 - col1 * + col1 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT col2 + ( - col1 + tab2.col0 ) * + col0 AS col1 FROM tab2
----
-141
1508
4936
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-543
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 + - col0 * + col1 AS col2 FROM tab1 AS cor0
----
-1210
-1482
-2288
query I rowsort
SELECT + col1 + cor0.col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL + col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - col1 * col0 - + col1 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT + 22 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1298
374
682
query I rowsort
SELECT ALL tab0.col1 + - 7 * + tab0.col1 AS col0 FROM tab0
----
-516
-546
-582
query I rowsort
SELECT - col0 + - 38 + - col0 FROM tab2
----
-194
-196
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-551
SELECT - col2 DIV col0 + col2 FROM tab2
----
24
26
38
skipif mysql # not compatible
query I rowsort label-551
SELECT - col2 / col0 + col2 FROM tab2
----
24
26
38
query I rowsort
SELECT ALL + cor0.col1 * 42 FROM tab0, tab2, tab2 cor0
----
27 values hashing to a329b7d44a2725af3687f35314083cee
query I rowsort
SELECT ALL - col1 * 54 + + col1 * col1 AS col1 FROM tab1
----
-440
-533
-728
query I rowsort
SELECT - ( - col0 ) + + cor0.col2 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-555
SELECT DISTINCT - + col2 DIV - col0 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-555
SELECT DISTINCT - + col2 / - col0 FROM tab2 AS cor0
----
0
3
query I rowsort
SELECT + ( + 52 ) * - cor0.col2 AS col2 FROM tab1 cor0
----
-2808
-2964
-4992
onlyif mysql # use DIV operator for integer division
query I rowsort label-557
SELECT 65 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-557
SELECT 65 / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-558
SELECT col2 DIV 53 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-558
SELECT col2 / 53 FROM tab0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-559
SELECT + col2 + + col1 DIV - tab1.col2 + tab1.col2 AS col1 FROM tab1
----
108
114
192
skipif mysql # not compatible
query I rowsort label-559
SELECT + col2 + + col1 / - tab1.col2 + tab1.col2 AS col1 FROM tab1
----
108
114
192
query I rowsort
SELECT 67 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 cor1, tab1 cor2
----
81 values hashing to 09fa7af42010457bb3c6ffd0dfea3bc8
query I rowsort
SELECT ALL + col2 * - 11 * + col1 FROM tab2
----
-16874
-7106
-9207
query I rowsort
SELECT - 82 * - col1 * col1 AS col2 FROM tab1 cor0
----
13858
55432
8200
query I rowsort
SELECT ALL - col0 + - cor0.col0 * col1 FROM tab1 AS cor0
----
-1120
-704
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-564
SELECT DISTINCT col1 DIV + col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-564
SELECT DISTINCT col1 / + col0 FROM tab0
----
1
2
3
query I rowsort
SELECT 25 * - 97 AS col1 FROM tab1
----
-2425
-2425
-2425
query I rowsort
SELECT - 7 + cor0.col1 * 67 FROM tab0, tab2, tab0 cor0
----
27 values hashing to bf6fa07caee35de9595e5844dc4d9ef5
query I rowsort
SELECT DISTINCT 51 - - col0 * + col2 FROM tab1
----
213
3699
7731
query I rowsort
SELECT + tab0.col2 * + col1 * + ( - 64 ) + col2 AS col0 FROM tab0
----
-181599
-477486
-6207
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-569
SELECT + tab1.col0 + + col1 - CAST( + 16 AS SIGNED ) FROM tab1
----
13
58
77
skipif mysql # not compatible
query I rowsort label-569
SELECT + tab1.col0 + + col1 - CAST ( + 16 AS INTEGER ) FROM tab1
----
13
58
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-570
SELECT ALL col2 * col2 * + col1 - + tab2.col0 DIV col0 FROM tab2
----
22598
24547
39883
skipif mysql # not compatible
query I rowsort label-570
SELECT ALL col2 * col2 * + col1 - + tab2.col0 / col0 FROM tab2
----
22598
24547
39883
onlyif mysql # use DIV operator for integer division
query I rowsort label-571
SELECT DISTINCT - col1 + col2 DIV - 26 FROM tab0 AS cor0
----
-87
-94
-97
skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT - col1 + col2 / - 26 FROM tab0 AS cor0
----
-87
-94
-97
query I rowsort
SELECT + col0 * ( col2 ) - + col0 FROM tab1 cor0
----
159
3584
7600
query I rowsort
SELECT ALL - + col1 * - ( + 24 ) AS col1 FROM tab0 AS cor0
----
2064
2184
2328
query I rowsort
SELECT DISTINCT col2 + 89 AS col0 FROM tab0 AS cor0
----
122
171
90
query I rowsort
SELECT + col2 + + ( col0 ) FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-576
SELECT ALL + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-576
SELECT ALL + col0 / col1 AS col1 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT - col1 * 76 - - cor0.col1 * col2 FROM tab0 AS cor0
----
-3698
-7275
546
query I rowsort
SELECT DISTINCT - col1 + 78 * + 56 FROM tab1 AS cor0
----
4342
4355
4358
onlyif mysql # use DIV operator for integer division
query I rowsort label-579
SELECT DISTINCT cor0.col1 * cor0.col0 + + cor0.col1 DIV col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
104
1053
650
skipif mysql # not compatible
query I rowsort label-579
SELECT DISTINCT cor0.col1 * cor0.col0 + + cor0.col1 / col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-580
SELECT DISTINCT + tab0.col1 DIV col2 AS col2 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT + tab0.col1 / col2 AS col2 FROM tab0
----
1
2
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-581
SELECT col1 * col1 DIV - col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-581
SELECT col1 * col1 / - col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-582
SELECT - col2 + + CAST( NULL AS DECIMAL ) - 21 / + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-582
SELECT - col2 + + CAST ( NULL AS REAL ) - 21 / + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 + col2 * - col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT - + col1 * cor0.col2 + - col0 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634
onlyif mysql # use DIV operator for integer division
query I rowsort label-585
SELECT + col0 DIV - ( + col1 ) + - col0 AS col2 FROM tab2 AS cor0
----
-7
-79
-83
skipif mysql # not compatible
query I rowsort label-585
SELECT + col0 / - ( + col1 ) + - col0 AS col2 FROM tab2 AS cor0
----
-7
-79
-83
query I rowsort
SELECT DISTINCT col1 + + col2 AS col0 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-587
SELECT DISTINCT col2 DIV + ( - 74 ) FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-587
SELECT DISTINCT col2 / + ( - 74 ) FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT col0 - - 28 FROM tab1 AS cor0
----
108
31
92
query I rowsort
SELECT ALL - col2 * 41 FROM tab1 AS cor0
----
-2214
-2337
-3936
query I rowsort
SELECT DISTINCT col2 * + 98 FROM tab1 AS cor0
----
5292
5586
9408
query I rowsort
SELECT ALL col1 * col2 * 58 FROM tab2 cor0
----
37468
48546
88972
query I rowsort
SELECT - 90 FROM tab0, tab2 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
onlyif mysql # use DIV operator for integer division
query I rowsort label-593
SELECT ALL 49 DIV - tab1.col1 col1 FROM tab1
----
-1
-3
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-593
SELECT ALL 49 / - tab1.col1 col1 FROM tab1
----
-1
-3
-4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-594
SELECT col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-594
SELECT col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 27 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
27
query I rowsort
SELECT DISTINCT - 12 FROM tab0
----
-12
query I rowsort
SELECT + 74 + col2 FROM tab2 AS cor0
----
100
101
112
query I rowsort
SELECT + 46 * - col1 FROM tab1
----
-1196
-460
-598
query I rowsort
SELECT col0 * + tab1.col1 FROM tab1
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-600
SELECT + CAST( col1 AS SIGNED ) * - col0 AS col2 FROM tab1
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-600
SELECT + CAST ( col1 AS INTEGER ) * - col0 AS col2 FROM tab1
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
query I rowsort
SELECT col2 + col2 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT DISTINCT ( col1 + + col1 ) FROM tab0
----
172
182
194
query I rowsort
SELECT + - col1 * + cor0.col0 + - ( 45 ) + - col0 AS col0 FROM tab0 AS cor0
----
-2133
-3475
-8233
query I rowsort
SELECT ALL - 22 + - col1 AS col1 FROM tab0
----
-108
-113
-119
query I rowsort
SELECT ALL - tab1.col2 + tab1.col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT ( - col0 ) * + ( col2 ) - col1 * - col0 FROM tab2
----
-1659
2574
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT ALL ( col2 ) + 29 AS col0 FROM tab2 AS cor0
----
55
56
67
query I rowsort
SELECT DISTINCT + col0 + col2 * col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - col1 * 46 + + col0 FROM tab1 AS cor0
----
-1193
-396
-518
query I rowsort
SELECT ALL + + col1 * - col2 FROM tab1 cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col0 - cor0.col2 col2 FROM tab1 cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL + + col0 + - 52 * - 88 * col2 AS col1 FROM tab2 AS cor0
----
119054
123559
173967
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL col0 * 4 FROM tab0 AS cor0
----
140
356
96
query I rowsort
SELECT - ( col0 ) * col1 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col2 * + col2 * + cor0.col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT ALL - cor0.col1 - - ( col0 ) AS col2 FROM tab1 cor0
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-620
SELECT - CAST( NULL AS SIGNED ) * col1 + - col1 * - col1 * - 27 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-620
SELECT - CAST ( NULL AS INTEGER ) * col1 + - col1 * - col1 * - 27 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 72 * col0 AS col2 FROM tab1 AS cor0
----
216
4608
5760
query I rowsort
SELECT col0 * 18 - - col0 AS col0 FROM tab2 AS cor0
----
133
1482
1501
query I rowsort
SELECT - + col0 + - col1 AS col2 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT - 54 * - col1 + - cor0.col0 + col1 FROM tab2 AS cor0
----
1698
3167
856
query I rowsort
SELECT ALL ( + cor0.col0 ) * + col2 + - 24 FROM tab2 cor0
----
165
2004
2978
onlyif mysql # use DIV operator for integer division
query I rowsort label-626
SELECT - col1 DIV ( 89 ) col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-626
SELECT - col1 / ( 89 ) col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL ( - 77 ) + + col1 AS col0 FROM tab1 AS cor0
----
-51
-64
-67
onlyif mysql # use DIV operator for integer division
query I rowsort label-628
SELECT - 23 + - cor0.col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
-22
-23
-23
skipif mysql # not compatible
query I rowsort label-628
SELECT - 23 + - cor0.col2 / - col0 AS col1 FROM tab0 AS cor0
----
-22
-23
-23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 * col2 + col0 col0 FROM tab2 cor0
----
574
624
877
query I rowsort
SELECT ALL - col1 + cor0.col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT 30 AS col0 FROM tab0 AS cor0
----
30
query I rowsort
SELECT DISTINCT 87 * - ( + col1 ) * - col0 FROM tab0 AS cor0
----
179568
295365
704613
query I rowsort
SELECT - 33 - col2 FROM tab2 AS cor0
----
-59
-60
-71
query I rowsort
SELECT DISTINCT ( cor0.col1 ) * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + ( + tab1.col1 ) AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT - 92 AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83
query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-638
SELECT ALL - - col1 * col0 + CAST( NULL AS SIGNED ) * 88 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-638
SELECT ALL - - col1 * col0 + CAST ( NULL AS INTEGER ) * 88 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + cor0.col2 + col1 * - col1 FROM tab0 AS cor0
----
-7429
-8363
-9410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-640
SELECT DISTINCT cor0.col0 * cor0.col1 + - CAST( 81 AS SIGNED ) + col2 AS col1 FROM tab1 AS cor0
----
1055
51
616
skipif mysql # not compatible
query I rowsort label-640
SELECT DISTINCT cor0.col0 * cor0.col1 + - CAST ( 81 AS INTEGER ) + col2 AS col1 FROM tab1 AS cor0
----
1055
51
616
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-642
SELECT ALL CAST( NULL AS DECIMAL ) - col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-642
SELECT ALL CAST ( NULL AS REAL ) - col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 + 56 FROM tab2
----
-3
25
39
query I rowsort
SELECT cor0.col2 + + ( 12 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2262c2f3e3d5cc56cd9d52c97ca1ab4a
query I rowsort
SELECT ALL 40 * col2 * - tab2.col0 AS col2 FROM tab2
----
-120080
-7560
-81120
query I rowsort
SELECT DISTINCT tab1.col1 + tab1.col1 FROM tab1
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e
query I rowsort
SELECT DISTINCT + col0 * col0 * - ( col0 ) + - 98 FROM tab2
----
-441
-474650
-493137
onlyif mysql # use DIV operator for integer division
query I rowsort label-649
SELECT + ( col1 ) * col0 + - col2 + 44 DIV col1 col1 FROM tab0 AS cor0
----
2031
3394
8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-649
SELECT + ( col1 ) * col0 + - col2 + 44 / col1 col1 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT + col2 * 90 * col0 AS col1 FROM tab2 AS cor0
----
17010
182520
270180
query I rowsort
SELECT ALL - col2 * ( - col1 ) + + col1 * - col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + 31 AS col2 FROM tab1, tab0 AS cor0
----
31
query I rowsort
SELECT ALL - col1 * + 92 + tab1.col2 AS col0 FROM tab1
----
-1100
-2338
-863
query I rowsort
SELECT cor0.col1 + - ( - 34 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9f11e16e5a127401006df5d5e3f9af14
query I rowsort
SELECT DISTINCT 27 FROM tab1 AS cor0
----
27
query I rowsort
SELECT ALL + - 92 AS col0 FROM tab2 AS cor0
----
-92
-92
-92
query I rowsort
SELECT DISTINCT col0 * col0 + + col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT ALL - + 82 * - col2 + cor0.col0 * 95 FROM tab2 AS cor0
----
10621
2879
9542
query I rowsort
SELECT + col2 * ( col0 ) + + col0 AS col0 FROM tab0 cor0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( cor0.col1 ) * + col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT + 98 * col2 AS col2 FROM tab0 AS cor0
----
3234
8036
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-662
SELECT + - col1 + col0 + col0 DIV + CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-24
20
66
skipif mysql # not compatible
query I rowsort label-662
SELECT + - col1 + col0 + col0 / + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-24
20
66
query I rowsort
SELECT + 11 + col0 * col1 AS col0 FROM tab1 AS cor0
----
1051
651
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-664
SELECT DISTINCT - cor0.col0 DIV col1 + col0 * 42 FROM tab2 AS cor0
----
294
3275
3314
skipif mysql # not compatible
query I rowsort label-664
SELECT DISTINCT - cor0.col0 / col1 + col0 * 42 FROM tab2 AS cor0
----
294
3275
3314
onlyif mysql # use DIV operator for integer division
query I rowsort label-665
SELECT - ( + col2 ) + col1 DIV - ( + col2 * - col0 ) FROM tab0 AS cor0
----
-33
-82
1
skipif mysql # not compatible
query I rowsort label-665
SELECT - ( + col2 ) + col1 / - ( + col2 * - col0 ) FROM tab0 AS cor0
----
-33
-82
1
query I rowsort
SELECT + col2 + + col2 + ( - col2 ) AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT + + 23 AS col2 FROM tab1 cor0
----
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-668
SELECT ALL + + col2 + col1 - - CAST( + 23 * col2 AS SIGNED ) FROM tab1 AS cor0
----
1322
1378
2317
skipif mysql # not compatible
query I rowsort label-668
SELECT ALL + + col2 + col1 - - CAST ( + 23 * col2 AS INTEGER ) FROM tab1 AS cor0
----
1322
1378
2317
query I rowsort
SELECT DISTINCT + - 90 + - col0 + + ( col2 * + col1 ) FROM tab1 AS cor0
----
1078
1311
416
query I rowsort
SELECT - - ( - col0 ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT + - cor0.col0 + - col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT - 58 - + col2 FROM tab1 AS cor0
----
-112
-115
-154
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 + - ( 41 * col1 ) col0 FROM tab2
----
-2000
-2141
-3095
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 * ( + cor0.col1 * col2 ) AS col2 FROM tab1 AS cor0
----
36544
4215
99920
query I rowsort
SELECT ALL - col1 * - col0 * ( - 76 * - cor0.col0 ) FROM tab2 AS cor0
----
115444
27280656
8063372
query I rowsort
SELECT DISTINCT + + cor0.col1 * + col2 + - col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT + + col1 + + col1 AS col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT ALL + cor0.col1 * + 15 AS col1 FROM tab1 AS cor0
----
150
195
390
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 41 col0 FROM tab2 AS cor0
----
-119
-120
-48
query I rowsort
SELECT ALL + col1 * 88 AS col0 FROM tab2 AS cor0
----
1496
2728
5192
onlyif mysql # use DIV operator for integer division
query I rowsort label-681
SELECT - + col2 * ( - 47 ) DIV - col0 FROM tab2 AS cor0
----
-15
-181
-22
skipif mysql # not compatible
query I rowsort label-681
SELECT - + col2 * ( - 47 ) / - col0 FROM tab2 AS cor0
----
-15
-181
-22
query I rowsort
SELECT ALL + cor0.col0 + 54 FROM tab2 cor0
----
132
133
61
query I rowsort
SELECT ALL - col1 - - tab0.col0 AS col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT ALL + + cor0.col0 * - 43 AS col1 FROM tab2 AS cor0
----
-301
-3354
-3397
query I rowsort
SELECT DISTINCT col0 + 87 FROM tab1 cor0
----
151
167
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( col0 ) col1 FROM tab2 cor0
----
14
156
158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-687
SELECT col0 + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-687
SELECT col0 + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 * 82 + - col0 * + col2 AS col1 FROM tab1 AS cor0
----
1026
192
4266
query I rowsort
SELECT DISTINCT + col1 * 17 FROM tab0 AS cor0
----
1462
1547
1649
query I rowsort
SELECT ALL cor0.col0 * - 9 - - cor0.col0 FROM tab1 AS cor0
----
-24
-512
-640
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-691
SELECT ALL - col1 + - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-691
SELECT ALL - col1 + - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + cor0.col2 * col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT - col2 - col2 * ( - col2 ) FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT - cor0.col2 * - 68 AS col0 FROM tab1 AS cor0
----
3672
3876
6528
query I rowsort
SELECT col2 + 91 FROM tab0 AS cor0
----
124
173
92
query I rowsort
SELECT + col2 + + 63 FROM tab1 AS cor0
----
117
120
159
query I rowsort
SELECT + col2 * 50 - 43 FROM tab1 AS cor0
----
2657
2807
4757
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-698
SELECT + CAST( + col1 AS SIGNED ) + cor0.col1 * + col2 AS col0 FROM tab0 cor0
----
194
2924
7553
skipif mysql # not compatible
query I rowsort label-698
SELECT + CAST ( + col1 AS INTEGER ) + cor0.col1 * + col2 AS col0 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT + 50 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 cor2, tab1 AS cor3
----
3645 values hashing to e5255b2277726ba4514ff55622dec830
query I rowsort
SELECT + 52 * + cor0.col0 + + 30 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 8a11406d93d829a135560d8af8696fac
query I rowsort
SELECT + col0 + + 83 + + col0 * + col1 AS col0 FROM tab0
----
2171
3513
8271
query I rowsort
SELECT DISTINCT col0 * col0 - + col1 AS col1 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT DISTINCT + + 85 * col0 FROM tab2 AS cor0
----
595
6630
6715
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-705
SELECT ALL ( col2 ) + - CAST( + ( col1 ) AS SIGNED ) * col1 FROM tab1 cor0
----
-43
-622
-73
skipif mysql # not compatible
query I rowsort label-705
SELECT ALL ( col2 ) + - CAST ( + ( col1 ) AS INTEGER ) * col1 FROM tab1 cor0
----
-43
-622
-73
query I rowsort
SELECT - 82 * + cor0.col1 FROM tab0 AS cor0
----
-7052
-7462
-7954
query I rowsort
SELECT col2 * - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT - 86 AS col0 FROM tab1
----
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) * + col0 col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + 34 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT tab2.col0 * - tab2.col2 + tab2.col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 5ed2d80ad688f74a9874efec11d2c9b1
query I rowsort
SELECT DISTINCT ( col2 ) * + col1 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 col1 FROM tab2
----
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-714
SELECT - col2 DIV ( col1 * + 3 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-714
SELECT - col2 / ( col1 * + 3 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col1 * - 9 FROM tab0 AS cor0
----
-774
-819
-873
query I rowsort
SELECT ALL + col1 * - ( + col1 + + col2 ) FROM tab1
----
-1417
-2080
-670
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 29 col1 FROM tab0
----
1015
2581
696
query I rowsort
SELECT - - col0 * - 29 * col1 + col2 * - col2 FROM tab0 AS cor0
----
-241595
-60945
-98456
query I rowsort
SELECT + - cor0.col2 FROM tab0, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
onlyif mysql # use DIV operator for integer division
query I rowsort label-720
SELECT + col1 DIV cor0.col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-720
SELECT + col1 / cor0.col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 64 * col2 * col1 FROM tab1 AS cor0
----
36480
79872
89856
query I rowsort
SELECT ALL - col0 + + 49 FROM tab1 AS cor0
----
-15
-31
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-723
SELECT ALL + + col0 + ( col0 ) DIV col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-723
SELECT ALL + + col0 + ( col0 ) / col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT - 80 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680
query I rowsort
SELECT - + 71 * col0 FROM tab0 AS cor0
----
-1704
-2485
-6319
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-726
SELECT DISTINCT col0 + - col1 / CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-726
SELECT DISTINCT col0 + - col1 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + 46 AS col1 FROM tab0 cor0
----
46
46
46
query I rowsort
SELECT ALL - ( col2 ) AS col0 FROM tab2 cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-729
SELECT DISTINCT col2 DIV + col1 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-729
SELECT DISTINCT col2 / + col1 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-730
SELECT DISTINCT ( 22 + col1 ) * CAST( - col2 AS SIGNED ) FROM tab2
----
-1431
-1482
-2106
skipif mysql # not compatible
query I rowsort label-730
SELECT DISTINCT ( 22 + col1 ) * CAST ( - col2 AS INTEGER ) FROM tab2
----
-1431
-1482
-2106
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-731
SELECT ALL - ( + col2 * tab0.col2 ) + CAST( + col0 AS SIGNED ) AS col0 FROM tab0
----
-1065
-6635
34
skipif mysql # not compatible
query I rowsort label-731
SELECT ALL - ( + col2 * tab0.col2 ) + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT ( 97 ) AS col0 FROM tab0
----
97
97
97
query I rowsort
SELECT ( tab0.col0 ) * - 91 AS col0 FROM tab0
----
-2184
-3185
-8099
query I rowsort
SELECT ALL 81 + col1 FROM tab2
----
112
140
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + - ( - 95 ) col0 FROM tab2 AS cor0
----
121
122
133
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-736
SELECT + col2 * 85 + - 18 - - col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-736
SELECT + col2 * 85 + - 18 - - col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-737
SELECT DISTINCT + tab0.col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-737
SELECT DISTINCT + tab0.col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0
----
NULL
query I rowsort
SELECT + 40 AS col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
query I rowsort
SELECT DISTINCT - col1 * + 41 FROM tab1
----
-1066
-410
-533
onlyif mysql # use DIV operator for integer division
query I rowsort label-740
SELECT + - col1 + ( - col0 ) DIV + col1 AS col2 FROM tab1 cor0
----
-16
-19
-26
skipif mysql # not compatible
query I rowsort label-740
SELECT + - col1 + ( - col0 ) / + col1 AS col2 FROM tab1 cor0
----
-16
-19
-26
query I rowsort
SELECT - col1 * ( col0 ) + - col0 FROM tab2 AS cor0
----
-1422
-224
-4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-742
SELECT - col0 + + 90 * col1 DIV + col1 FROM tab1 AS cor0
----
10
26
87
skipif mysql # not compatible
query I rowsort label-742
SELECT - col0 + + 90 * col1 / + col1 FROM tab1 AS cor0
----
10
26
87
query I rowsort
SELECT col2 * + ( cor0.col0 ) + col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT + col1 + 22 FROM tab0 AS cor0
----
108
113
119
query I rowsort
SELECT DISTINCT - cor0.col1 * + tab0.col1 * + 59 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-436364
-461734
-488579
-492178
-520793
-555131
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 - - col1 col2 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT + col1 - col1 AS col2 FROM tab0
----
0
query I rowsort
SELECT ALL col0 * ( col2 ) AS col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-749
SELECT - col2 / - ( col2 ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-749
SELECT - col2 / - ( col2 ) + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 41 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
query I rowsort
SELECT ALL + cor0.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-752
SELECT + col0 * col0 - - 77 DIV - col2 AS col2 FROM tab1 cor0
----
4095
6400
8
skipif mysql # not compatible
query I rowsort label-752
SELECT + col0 * col0 - - 77 / - col2 AS col2 FROM tab1 cor0
----
4095
6400
8
query I rowsort
SELECT ALL 92 * cor0.col2 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to efdab40c6515220727eae6d71dd1c907
query I rowsort
SELECT DISTINCT - col1 - ( + col1 ) * + col1 FROM tab0
----
-7482
-8372
-9506
query I rowsort
SELECT DISTINCT cor0.col2 + col2 * - cor0.col2 FROM tab2 AS cor0
----
-1406
-650
-702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-756
SELECT ALL CAST( NULL AS DECIMAL ) * col0 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-756
SELECT ALL CAST ( NULL AS REAL ) * col0 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 + 35 + cor0.col1 FROM tab2 cor0
----
153
69
97
query I rowsort
SELECT - 76 + - 73 AS col2 FROM tab1
----
-149
-149
-149
query I rowsort
SELECT ALL col2 + - cor0.col0 * col2 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT + ( col0 ) + - cor0.col0 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 + + ( - cor0.col1 ) col1 FROM tab1 AS cor0
----
69
82
85
query I rowsort
SELECT ALL - - 60 AS col2 FROM tab0 AS cor0
----
60
60
60
query I rowsort
SELECT DISTINCT ( col2 ) * - col0 + cor0.col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT + 30 AS col1 FROM tab0 AS cor0
----
30
query I rowsort
SELECT col0 * + 1 + - col1 * - 16 * + col1 FROM tab2 AS cor0
----
15383
4703
55774
query I rowsort
SELECT DISTINCT + cor0.col1 + 52 FROM tab1 AS cor0
----
62
65
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 20 ) col1 FROM tab1 AS cor0
----
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-768
SELECT - col0 + 3 DIV col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-768
SELECT - col0 + 3 / col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + col2 * cor0.col2 * col1 AS col0 FROM tab0 cor0
----
611884
93654
97
query I rowsort
SELECT - 1 * + cor0.col2 AS col0 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - - cor0.col0 + col2 + + ( col2 ) * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1032
-6553
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 * col0 + - col0 * + 3 - col0 col0 FROM tab0 AS cor0
----
-2448
-3570
-9078
query I rowsort
SELECT - + col1 * + col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-774
SELECT DISTINCT + col0 - - CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT + col0 - - CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - 78 * - cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 226f7bda3805102b1cfe16bbcd69bedc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-776
SELECT ALL + - col1 * CAST( + cor0.col2 * col0 AS SIGNED ) FROM tab1 cor0
----
-36480
-4212
-99840
skipif mysql # not compatible
query I rowsort label-776
SELECT ALL + - col1 * CAST ( + cor0.col2 * col0 AS INTEGER ) FROM tab1 cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL - + 38 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
query I rowsort
SELECT DISTINCT 91 AS col1 FROM tab2, tab1 AS cor0
----
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-779
SELECT - col0 * cor0.col1 + CAST( 21 AS SIGNED ) FROM tab0 AS cor0
----
-2043
-3374
-8078
skipif mysql # not compatible
query I rowsort label-779
SELECT - col0 * cor0.col1 + CAST ( 21 AS INTEGER ) FROM tab0 AS cor0
----
-2043
-3374
-8078
query I rowsort
SELECT ALL ( - col1 ) * ( - col0 ) + - col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT - ( + cor0.col1 ) + + ( + 10 ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
774
819
873
onlyif mysql # use DIV operator for integer division
query I rowsort label-782
SELECT + - col2 + cor0.col2 DIV ( 4 ) - col1 AS col2 FROM tab2 AS cor0
----
-46
-52
-79
skipif mysql # not compatible
query I rowsort label-782
SELECT + - col2 + cor0.col2 / ( 4 ) - col1 AS col2 FROM tab2 AS cor0
----
-46
-52
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-783
SELECT 45 + 32 + + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-783
SELECT 45 + 32 + + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + + 2 * - col2 + - 97 AS col0 FROM tab0
----
-130
-179
-98
query I rowsort
SELECT DISTINCT + col0 * 99 + col2 - - col1 * + col1 AS col1 FROM tab0
----
12875
17174
9805
query I rowsort
SELECT DISTINCT + tab1.col0 * - tab1.col2 + col1 AS col2 FROM tab1
----
-136
-3638
-7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-787
SELECT DISTINCT + col1 - + tab1.col2 DIV - col0 AS col1 FROM tab1
----
10
14
44
skipif mysql # not compatible
query I rowsort label-787
SELECT DISTINCT + col1 - + tab1.col2 / - col0 AS col1 FROM tab1
----
10
14
44
query I rowsort
SELECT ALL col2 * + col1 + - col0 - - ( - ( col1 ) ) AS col0 FROM tab2
----
1397
550
799
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-789
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-789
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + 56 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT + 4 - + col2 FROM tab2
----
-22
-23
-34
query I rowsort
SELECT - col1 + + col2 AS col1 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT ALL + + 94 * col1 FROM tab2 AS cor0
----
1598
2914
5546
query I rowsort
SELECT - + col1 * + cor0.col1 + cor0.col0 * + 52 FROM tab2 AS cor0
----
-597
3819
575
query I rowsort
SELECT ALL - 91 * col0 FROM tab2 AS cor0
----
-637
-7098
-7189
query I rowsort
SELECT - + col1 * cor0.col1 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + + col0 + + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - + col2 + - 13 * + col2 AS col1 FROM tab2 AS cor0
----
-364
-378
-532
query I rowsort
SELECT ( + cor0.col0 ) * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT - col2 * 94 * col2 AS col2 FROM tab2 AS cor0
----
-135736
-63544
-68526
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + ( col0 ) * col2 + + col0 col0 FROM tab2
----
119730
51113
5866
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-802
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-802
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - tab1.col0 + 28 FROM tab1
----
-36
-52
25
query I rowsort
SELECT - 40 FROM tab0, tab0 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
query I rowsort
SELECT ALL + + cor0.col2 + col2 * - col2 * + ( 31 ) AS col1 FROM tab2 AS cor0
----
-20930
-22572
-44726
onlyif mysql # use DIV operator for integer division
query I rowsort label-806
SELECT 15 DIV - col2 AS col0 FROM tab0 AS cor0
----
-15
0
0
skipif mysql # not compatible
query I rowsort label-806
SELECT 15 / - col2 AS col0 FROM tab0 AS cor0
----
-15
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-807
SELECT col0 DIV + 26 FROM tab1
----
0
2
3
skipif mysql # not compatible
query I rowsort label-807
SELECT col0 / + 26 FROM tab1
----
0
2
3
query I rowsort
SELECT + col1 * col0 * + col1 + + 82 FROM tab2
----
22913
271600
6809
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + col1 + 81 AS col1 FROM tab2
----
112
140
98
query I rowsort
SELECT ALL ( 2 ) FROM tab2
----
2
2
2
query I rowsort
SELECT ALL 5 * + cor0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to e4de40046bb830b4728dcdf4e36fee20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - - col0 + - col0 + + col2 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + col2 * + 68 + - col2 AS col0 FROM tab1 AS cor0
----
3618
3819
6432
query I rowsort
SELECT ALL col1 + + 21 * col2 AS col0 FROM tab2 AS cor0
----
598
605
815
query I rowsort
SELECT DISTINCT + ( + col2 * col1 ) AS col1 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 * + ( cor0.col2 ) + ( 38 ) - cor0.col1 col0 FROM tab1 AS cor0
----
3414
3619
6073
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 92 col1 FROM tab1 AS cor0
----
-92
query I rowsort
SELECT ALL + cor0.col2 + - cor0.col1 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * col0 + 29 col0 FROM tab1 AS cor0
----
1069
107
669
query I rowsort
SELECT ( cor1.col1 ) AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
onlyif mysql # use DIV operator for integer division
query I rowsort label-824
SELECT ALL col1 DIV + ( - ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-824
SELECT ALL col1 / + ( - ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT - - cor0.col2 * col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + cor0.col2 * + 5 + 47 * + col0 FROM tab0 AS cor0
----
1293
1650
4593
query I rowsort
SELECT 80 + cor0.col0 * - cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 43f84069f45a9dcb8191ee064d417b8e
query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab1, tab0 AS cor0
----
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-829
SELECT + cor0.col0 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-829
SELECT + cor0.col0 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + + 55 AS col1 FROM tab0 AS cor0
----
137
56
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-831
SELECT - - CAST( col0 AS SIGNED ) * - col1 FROM tab0 cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-831
SELECT - - CAST ( col0 AS INTEGER ) * - col1 FROM tab0 cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col0 ) col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + 74 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
query I rowsort
SELECT col2 + + 7 AS col2 FROM tab0
----
40
8
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * + col1 col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT col2 * col0 * - col1 + col2 FROM tab0 AS cor0
----
-3394
-664036
-68079
query I rowsort
SELECT - col1 * + cor0.col2 + col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - 98 + - col0 FROM tab1 AS cor0
----
-101
-162
-178
query I rowsort
SELECT + ( + col0 ) * - col1 + col0 FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-840
SELECT cor0.col2 DIV + col2 + - col0 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-840
SELECT cor0.col2 / + col2 + - col0 FROM tab0 AS cor0
----
-23
-34
-88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-841
SELECT col1 * - CAST( NULL AS SIGNED ) / - col2 + col1 / ( 6 ) + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-841
SELECT col1 * - CAST ( NULL AS INTEGER ) / - col2 + col1 / ( 6 ) + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 55 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT DISTINCT - cor0.col2 * 49 AS col2 FROM tab2, tab2 cor0
----
-1274
-1323
-1862
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-844
SELECT col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-844
SELECT col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-845
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-845
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + cor0.col1 + - 69 * col2 + - col2 AS col0 FROM tab2 AS cor0
----
-1761
-1859
-2643
query I rowsort
SELECT - col0 + col1 * 35 FROM tab0 AS cor0
----
2986
3096
3360
query I rowsort
SELECT DISTINCT col2 * ( col1 * - col1 ) + 85 FROM tab2 AS cor0
----
-10897
-25862
-90421
query I rowsort
SELECT ALL + ( - cor0.col0 ) * + cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to f921d4cdc13dc0e8c0388ccf3f81ffc1
query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to dba0629212dd6bf03c2834a27d0b07fb
query I rowsort
SELECT - ( col0 ) * + col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT cor0.col2 + col0 * col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL - col0 * + col2 + 76 FROM tab2 AS cor0
----
-113
-1952
-2926
query I rowsort
SELECT - - ( col2 ) + 17 * col2 * + col2 AS col1 FROM tab1 AS cor0
----
156768
49626
55290
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
onlyif mysql # use DIV operator for integer division
query I rowsort label-856
SELECT + 70 DIV - col1 - - 93 * col0 FROM tab2 cor0
----
649
7253
7343
skipif mysql # not compatible
query I rowsort label-856
SELECT + 70 / - col1 - - 93 * col0 FROM tab2 cor0
----
649
7253
7343
query I rowsort
SELECT + 80 * col2 + - col0 FROM tab2 AS cor0
----
2002
2153
2961
onlyif mysql # use DIV operator for integer division
query I rowsort label-858
SELECT DISTINCT - + col0 + col2 DIV 61 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT - + col0 + col2 / 61 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - - col1 * col1 + 16 FROM tab1 cor0
----
116
185
692
onlyif mysql # use DIV operator for integer division
query I rowsort label-860
SELECT 43 DIV + col0 FROM tab1
----
0
0
14
skipif mysql # not compatible
query I rowsort label-860
SELECT 43 / + col0 FROM tab1
----
0
0
14
query I rowsort
SELECT ALL - 24 * col2 + - 48 FROM tab2 AS cor0
----
-672
-696
-960
query I rowsort
SELECT DISTINCT + - ( col1 ) * 18 FROM tab1 AS cor0
----
-180
-234
-468
query I rowsort
SELECT + col0 - - col2 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + + ( + col2 ) * col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT ( + col1 ) * tab0.col0 AS col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ( ( - tab0.col1 ) + + col0 ) AS col1 FROM tab0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-867
SELECT col0 + - col2 * tab0.col2 DIV 46 FROM tab0
----
-57
1
35
skipif mysql # not compatible
query I rowsort label-867
SELECT col0 + - col2 * tab0.col2 / 46 FROM tab0
----
-57
1
35
query I rowsort
SELECT DISTINCT 52 FROM tab1, tab0 AS cor0
----
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-869
SELECT ( col1 ) + col0 DIV col1 AS col1 FROM tab1
----
16
19
26
skipif mysql # not compatible
query I rowsort label-869
SELECT ( col1 ) + col0 / col1 AS col1 FROM tab1
----
16
19
26
query I rowsort
SELECT 65 + - tab1.col1 * + tab1.col2 + col1 * tab1.col0 FROM tab1
----
-1261
-143
135
query I rowsort
SELECT DISTINCT - col0 * - col1 - + 81 * col2 AS col0 FROM tab1
----
-3977
-4296
-6736
query I rowsort
SELECT DISTINCT - ( col2 * col1 ) + col2 - + col0 * col1 AS col2 FROM tab2
----
-1027
-1951
-6110
onlyif mysql # use DIV operator for integer division
query I rowsort label-873
SELECT ALL col2 * + col0 DIV col0 - col1 * + col2 col2 FROM tab2
----
-1508
-608
-810
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-873
SELECT ALL col2 * + col0 / col0 - col1 * + col2 col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT ALL + tab0.col0 - col0 * ( 60 ) FROM tab0
----
-1416
-2065
-5251
query I rowsort
SELECT DISTINCT col2 - - col0 AS col1 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-876
SELECT ALL + col2 DIV + tab1.col1 + + col2 * col0 + col1 AS col1 FROM tab1
----
190
3663
7700
skipif mysql # not compatible
query I rowsort label-876
SELECT ALL + col2 / + tab1.col1 + + col2 * col0 + col1 AS col1 FROM tab1
----
190
3663
7700
query I rowsort
SELECT DISTINCT + 62 * + col0 - + col0 FROM tab1 AS cor0
----
183
3904
4880
query I rowsort
SELECT + 48 * col0 FROM tab1
----
144
3072
3840
query I rowsort
SELECT 36 + - tab0.col0 FROM tab0
----
-53
1
12
query I rowsort
SELECT col0 * tab0.col0 + - 90 * + col2 * tab0.col0 FROM tab0
----
-1925
-648899
-70704
query I rowsort
SELECT col0 + tab1.col0 * 5 AS col2 FROM tab1
----
18
384
480
onlyif mysql # use DIV operator for integer division
query I rowsort label-882
SELECT DISTINCT 86 + col2 DIV col1 + tab1.col0 * col0 AS col0 FROM tab1
----
4187
6493
97
skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT 86 + col2 / col1 + tab1.col0 * col0 AS col0 FROM tab1
----
4187
6493
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-883
SELECT DISTINCT + col1 DIV 59 FROM tab2
----
0
1
skipif mysql # not compatible
query I rowsort label-883
SELECT DISTINCT + col1 / 59 FROM tab2
----
0
1
query I rowsort
SELECT DISTINCT - + col0 + + ( col0 ) * ( - col2 + cor0.col0 * col2 ) AS col1 FROM tab2 AS cor0
----
1127
156078
234077
query I rowsort
SELECT 25 * - col2 FROM tab0 AS cor0
----
-2050
-25
-825
query I rowsort
SELECT ALL + 10 * col2 + + col0 AS col2 FROM tab1 cor0
----
1040
543
634
query I rowsort
SELECT - + col0 * + col2 * col2 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-888
SELECT ALL col2 + - CAST( NULL AS SIGNED ) * + col2 * - tab2.col1 + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-888
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) * + col2 * - tab2.col1 + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 23 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT + 24 - - col2 FROM tab0
----
106
25
57
query I rowsort
SELECT ALL 57 * - col1 FROM tab0 AS cor0
----
-4902
-5187
-5529
query I rowsort
SELECT DISTINCT 99 AS col1 FROM tab2 AS cor0
----
99
query I rowsort
SELECT DISTINCT 3 * - col1 FROM tab0 AS cor0
----
-258
-273
-291
query I rowsort
SELECT - col1 + col2 * - col0 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-895
SELECT + 11 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-895
SELECT + 11 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 62 * col1 FROM tab1 cor0
----
-1612
-620
-806
query I rowsort
SELECT DISTINCT + + ( - cor0.col0 ) + - col2 * col1 AS col2 FROM tab0 cor0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT + - col1 * - ( col1 ) + + cor0.col0 FROM tab2 AS cor0
----
3559
368
968
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-899
SELECT DISTINCT + col2 * + col0 * col0 + col2 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-899
SELECT DISTINCT + col2 * + col0 * col0 + col2 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT 92 * - 17 + cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f822aa3605541e3b803ff29bc9552bb1
skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 - - CAST ( col0 AS REAL ) * col1 * 74 AS col1 FROM tab1 AS cor0
----
47424
5775
77040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-902
SELECT + CAST( NULL AS DECIMAL ) - col0 * + col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-902
SELECT + CAST ( NULL AS REAL ) - col0 * + col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + col2 * - cor0.col1 * + ( - 12 + + col2 ) AS col2 FROM tab0 AS cor0
----
-522258
-59565
1068
query I rowsort
SELECT - cor0.col0 + - col0 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT DISTINCT + col1 * - 24 FROM tab0 AS cor0
----
-2064
-2184
-2328
query I rowsort
SELECT DISTINCT + col1 + + 70 AS col2 FROM tab2 cor0
----
101
129
87
query I rowsort
SELECT ALL col2 + 82 * + col0 FROM tab2 AS cor0
----
601
6422
6516
query I rowsort
SELECT + 18 * 6 + + col1 AS col0 FROM tab0 AS cor0
----
194
199
205
query I rowsort
SELECT ALL + col0 + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT col2 + + ( 76 ) FROM tab0
----
109
158
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-911
SELECT - col2 DIV 60 + + col2 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-911
SELECT - col2 / 60 + + col2 FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-912
SELECT + 18 + 66 DIV col0 FROM tab2 AS cor0
----
18
18
27
skipif mysql # not compatible
query I rowsort label-912
SELECT + 18 + 66 / col0 FROM tab2 AS cor0
----
18
18
27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-913
SELECT + col2 + - CAST( col2 AS SIGNED ) FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-913
SELECT + col2 + - CAST ( col2 AS INTEGER ) FROM tab1
----
0
0
0
query I rowsort
SELECT ALL tab0.col1 * - col2 * - col0 - col2 * col0 FROM tab0
----
3360
656820
67320
skipif mysql # not compatible
query I rowsort
SELECT - + col2 * col0 + CAST ( - col1 AS REAL ) FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ALL cor0.col0 + + col1 * 68 AS col2 FROM tab1 cor0
----
1771
744
964
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) * - col0 - 29 * + cor0.col1 FROM tab1 AS cor0
----
-4386
-6777
-763
query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col1 FROM tab2 AS cor0
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 * - cor0.col1 col2 FROM tab0 AS cor0
----
-8428
-8918
-9506
query I rowsort
SELECT ALL - 99 + - col1 AS col2 FROM tab1 cor0
----
-109
-112
-125
query I rowsort
SELECT ALL - - 40 - + cor0.col0 FROM tab2 AS cor0
----
-38
-39
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 * col2 col0 FROM tab1 AS cor0
----
2268
2394
4032
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + - col1 * - col0 col1 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT ALL - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 0 * + tab2.col2 col2 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT ( col0 ) + - col0 AS col2 FROM tab1
----
0
query I rowsort
SELECT DISTINCT ( col2 ) * + col0 + - ( + 27 + col2 ) FROM tab0
----
7
7189
732
query I rowsort
SELECT + col1 + - col2 - col1 AS col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT + col0 - - col0 AS col1 FROM tab1
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-930
SELECT + col2 DIV col0 + + tab0.col2 FROM tab0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-930
SELECT + col2 / col0 + + tab0.col2 FROM tab0
----
1
34
82
query I rowsort
SELECT + + col1 * - col2 * + 65 AS col1 FROM tab1 AS cor0
----
-37050
-81120
-91260
query I rowsort
SELECT + ( - cor0.col0 ) * 88 FROM tab0 AS cor0
----
-2112
-3080
-7832
query I rowsort
SELECT cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT 45 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
query I rowsort
SELECT cor1.col1 * 66 + + 17 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 6109775d5598960d879662ff3277e2fd
query I rowsort
SELECT - 9 + - col1 * 46 FROM tab2
----
-1435
-2723
-791
query I rowsort
SELECT + col2 + + col2 * + col0 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-938
SELECT - + col2 + col0 * + col1 + cor0.col0 DIV col0 FROM tab0 AS cor0
----
2032
3395
8018
skipif mysql # not compatible
query I rowsort label-938
SELECT - + col2 + col0 * + col1 + cor0.col0 / col0 FROM tab0 AS cor0
----
2032
3395
8018
query I rowsort
SELECT ALL 80 * - col0 * - tab1.col0 FROM tab1
----
327680
512000
720
onlyif mysql # use DIV operator for integer division
query I rowsort label-940
SELECT DISTINCT + 40 DIV - col1 AS col1 FROM tab2
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT + 40 / - col1 AS col1 FROM tab2
----
-1
-2
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col0 FROM tab1, tab1 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-942
SELECT - col0 * CAST( - col0 + + col2 * col1 AS SIGNED ) FROM tab0 AS cor0
----
-2170
-656197
-67536
skipif mysql # not compatible
query I rowsort label-942
SELECT - col0 * CAST ( - col0 + + col2 * col1 AS INTEGER ) FROM tab0 AS cor0
----
-2170
-656197
-67536
query I rowsort
SELECT ALL col0 * ( + col0 ) AS col1 FROM tab1
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * cor0.col1 col0 FROM tab1 cor0
----
1040
640
78
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to b223aa53e3aafe0f3f3f59048cc7a0d2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-946
SELECT ALL 56 + 97 * + col0 * + CAST( NULL AS SIGNED ) + + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-946
SELECT ALL 56 + 97 * + col0 * + CAST ( NULL AS INTEGER ) + + col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 35 * + col1 AS col2 FROM tab2 AS cor0
----
1085
2065
595
query I rowsort
SELECT ALL ( + col0 ) * + col1 + - col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT + ( 38 ) + col2 * col1 FROM tab0 cor0
----
135
2876
7500
query I rowsort
SELECT ALL col0 * cor0.col0 * - col1 AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-951
SELECT CAST( col1 + col0 AS SIGNED ) / CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-951
SELECT CAST ( col1 + col0 AS INTEGER ) / CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * tab2.col1 AS col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT 98 AS col0 FROM tab0
----
98
98
98
query I rowsort
SELECT 57 * - col0 AS col2 FROM tab2
----
-399
-4446
-4503
query I rowsort
SELECT - col1 * - col2 + - 23 AS col1 FROM tab1 AS cor0
----
1225
1381
547
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 ) IN ( + tab2.col2 + + tab2.col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-957
SELECT + col1 * tab0.col2 DIV col1 + + col2 * - col0 FROM tab0
----
-34
-7216
-759
skipif mysql # not compatible
query I rowsort label-957
SELECT + col1 * tab0.col2 / col1 + + col2 * - col0 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT ( col0 ) <= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 col0 FROM tab1
----
128
160
6
query I rowsort
SELECT + tab2.col1 FROM tab2 WHERE NOT NULL >= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-961
SELECT - col0 DIV col2 col2 FROM tab1
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-961
SELECT - col0 / col2 col2 FROM tab1
----
-1
0
0
query I rowsort
SELECT - col1 + col0 + col1 AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 / col1 col0 FROM tab0 WHERE NOT NULL < NULL
----
query I rowsort
SELECT + col2 - - col0 AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL - col2 + + col0 * col0 FROM tab2
----
22
6058
6203
query I rowsort
SELECT DISTINCT col0 - - col1 * col1 FROM tab1
----
164
249
679
query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col1 * col1 AND NULL
----
query I rowsort
SELECT col1 + - col1 * - tab2.col1 + tab2.col2 FROM tab2
----
1019
344
3566
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 10 col1 FROM tab2 AS cor0
----
10
10
10
query I rowsort
SELECT + + col2 * + col2 + 49 AS col0 FROM tab0 AS cor0
----
1138
50
6773
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 col0 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT + col0 + - col2 * - col2 * + col2 FROM tab0
----
35961
36
551457
query I rowsort
SELECT ALL col1 * - col1 + tab1.col1 * + col2 AS col0 FROM tab1
----
1079
470
728
query I rowsort
SELECT col1 * - cor0.col2 * - col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT + tab0.col0 + col1 * col1 AS col0 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT col0 < NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col2 * tab1.col1 + + tab1.col1 * - col1 )
----
query I rowsort
SELECT - col1 + - col0 AS col0 FROM tab0 WHERE NOT col2 = - col1
----
-110
-132
-180
query I rowsort
SELECT + tab2.col1 + - col0 * col1 AS col2 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT ( col0 ) = NULL
----
query I rowsort
SELECT ALL tab1.col1 * + col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND ( col2 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN + col2 AND - col1
----
query I rowsort
SELECT - col0 - - col0 * col0 FROM tab0
----
1190
552
7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 col0 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL - col0 * - 90 + col0 + col0 FROM tab1 AS cor0
----
276
5888
7360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-988
SELECT CAST( col1 AS SIGNED ) * - col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-988
SELECT CAST ( col1 AS INTEGER ) * - col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col2 FROM tab0 cor0
----
38
38
38
query I rowsort
SELECT + 30 + col2 AS col0 FROM tab0 cor0
----
112
31
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-991
SELECT DISTINCT cor0.col2 DIV 52 - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-81
skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT cor0.col2 / 52 - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-81
query I rowsort
SELECT DISTINCT - - 9 * - ( - col0 ) FROM tab1 AS cor0
----
27
576
720
query I rowsort
SELECT - 84 * - 82 FROM tab0 AS cor0
----
6888
6888
6888
query I rowsort
SELECT + - 77 * - col2 FROM tab0 AS cor0
----
2541
6314
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-995
SELECT DISTINCT 75 + + ( + col0 ) DIV - ( + 4 ) AS col0 FROM tab0 AS cor0
----
53
67
69
skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT 75 + + ( + col0 ) / - ( + 4 ) AS col0 FROM tab0 AS cor0
----
53
67
69
query I rowsort
SELECT - 55 * - col2 AS col1 FROM tab0 cor0
----
1815
4510
55
query I rowsort
SELECT ALL - col1 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + col0 + 23 * - tab1.col2 AS col0 FROM tab1
----
-1239
-1247
-2128
query I rowsort
SELECT DISTINCT - + 69 FROM tab1 AS cor0
----
-69
query I rowsort
SELECT DISTINCT col2 * + cor0.col1 * ( - col1 ) + col2 * col1 AS col1 FROM tab2 AS cor0
----
-10336
-25110
-88972
query I rowsort
SELECT ALL + - col1 + - col0 + col1 * col2 FROM tab0 AS cor0
----
-35
2728
7282
query I rowsort
SELECT + + 80 * - col1 FROM tab2 AS cor0
----
-1360
-2480
-4720
onlyif mysql # use DIV operator for integer division
query I rowsort label-1003
SELECT ALL col0 + cor0.col1 DIV col0 FROM tab1 cor0
----
11
64
80
skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL col0 + cor0.col1 / col0 FROM tab1 cor0
----
11
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 - col0 col2 FROM tab1 AS cor0
----
-33
-49
28
query I rowsort
SELECT - 75 AS col1 FROM tab0
----
-75
-75
-75
query I rowsort
SELECT ALL + - 53 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 2876418587c77a182d88db2907b0a51a
query I rowsort
SELECT + col0 * col1 + - 84 * col1 AS col1 FROM tab0 AS cor0
----
-4753
-5160
455
query I rowsort
SELECT - col0 * + ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + - col0 * - ( + cor0.col2 ) + col1 * col2 AS col2 FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT ALL - col2 + - 63 * + cor0.col0 FROM tab2 AS cor0
----
-468
-4940
-5015
query I rowsort
SELECT col1 + 73 FROM tab0 AS cor0
----
159
164
170
query I rowsort
SELECT - + col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL + + col1 + col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT + col1 * - col1 * 38 AS col1 FROM tab0 cor0
----
-281048
-314678
-357542
query I rowsort
SELECT + col1 * ( + col1 + + col2 * 54 ) AS col0 FROM tab1 AS cor0
----
30880
67561
76492
query I rowsort
SELECT - col0 * 43 FROM tab2 AS cor0
----
-301
-3354
-3397
query I rowsort
SELECT 41 - tab0.col1 FROM tab0
----
-45
-50
-56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + - 5 * + col0 - - col2 col2 FROM tab1
----
2955
2986
8912
query I rowsort
SELECT - - tab0.col1 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to fb3687512d3714969d7c6afc5561ed79
query I rowsort
SELECT col1 + col2 * 67 AS col0 FROM tab0
----
164
2297
5585
query I rowsort
SELECT DISTINCT - col1 * - col2 * 97 + - col0 * ( + col2 ) AS col2 FROM tab2
----
146770
59660
81000
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1 cor0 CROSS JOIN tab1, tab1 cor1
----
3
64
80
query I rowsort
SELECT + col0 * ( - ( col1 ) ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - cor0.col2 * + ( - col1 * + col1 ) + col1 FROM tab2 AS cor0
----
10999
25978
90565
query I rowsort
SELECT col0 + + col2 * - col0 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT col1 * + 38 + col2 FROM tab0 AS cor0
----
3301
3540
3687
query I rowsort
SELECT col2 * col2 + col2 * - col2 * col0 AS col1 FROM tab0
----
-25047
-34
-591712
query I rowsort
SELECT DISTINCT - col2 * col0 + - tab2.col0 AS col2 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT - ( col2 ) + - col2 * - col1 * col1 AS col2 FROM tab2
----
10944
25920
90480
onlyif mysql # use DIV operator for integer division
query I rowsort label-1031
SELECT col2 + + col1 DIV col1 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort label-1031
SELECT col2 + + col1 / col1 FROM tab2
----
27
28
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-1032
SELECT ALL ( col2 ) DIV - col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL ( col2 ) / - col1 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT DISTINCT ( 17 ) AS col1 FROM tab1 AS cor0
----
17
query I rowsort
SELECT ALL + 46 AS col1 FROM tab0
----
46
46
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-1035
SELECT DISTINCT + - col2 DIV - col0 AS col1 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-1035
SELECT DISTINCT + - col2 / - col0 AS col1 FROM tab2 AS cor0
----
0
3
query I rowsort
SELECT DISTINCT - col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1037
SELECT + col1 * + cor0.col1 DIV - col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-1037
SELECT + col1 * + cor0.col1 / - col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + 63 * + col1 AS col2 FROM tab1 AS cor0
----
1638
630
819
query I rowsort
SELECT DISTINCT 7 + + col2 * - col2 FROM tab2 cor0
----
-1437
-669
-722
query I rowsort
SELECT ALL cor0.col2 * col1 + - col0 AS col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT - 29 + - col2 FROM tab2 AS cor0
----
-55
-56
-67
query I rowsort
SELECT ALL + cor0.col1 + col1 AS col2 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT ALL 83 * + col0 FROM tab2 AS cor0
----
581
6474
6557
query I rowsort
SELECT ALL - 55 * - col2 FROM tab0
----
1815
4510
55
query I rowsort
SELECT - - 15 AS col0 FROM tab0 AS cor0
----
15
15
15
query I rowsort
SELECT DISTINCT cor0.col0 * ( col0 ) + col1 AS col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT ALL + col2 - + col0 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT - col0 * + ( 61 ) + col2 AS col0 FROM tab2 AS cor0
----
-400
-4732
-4781
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + ( - col0 ) col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 + 54 * + col0 FROM tab1 AS cor0
----
159
3392
4240
query I rowsort
SELECT DISTINCT + tab2.col2 + ( + col2 ) FROM tab2
----
52
54
76
query I rowsort
SELECT - 58 FROM tab1, tab0 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0
query I rowsort
SELECT - + col0 - 14 AS col0 FROM tab1 AS cor0
----
-17
-78
-94
query I rowsort
SELECT ALL - col1 + col1 * col1 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT DISTINCT - cor0.col1 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT + + col0 - ( - col2 ) AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - col1 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL col0 + col1 * 46 - col2 FROM tab1 cor0
----
1145
467
582
query I rowsort
SELECT ALL col1 * + col2 + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT col2 - col0 * col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT DISTINCT 9 * + col1 + - col0 * col0 AS col1 FROM tab2 AS cor0
----
-5553
-6088
230
query I rowsort
SELECT + 76 + - col0 AS col0 FROM tab1 AS cor0
----
-4
12
73
query I rowsort
SELECT col2 * ( + col0 ) AS col0 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - 55 col2 FROM tab1 AS cor0
----
165
3520
4400
query I rowsort
SELECT ALL - + col0 + + col0 AS col2 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1066
SELECT DISTINCT col2 DIV col0 + + col1 AS col2 FROM tab0 AS cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT col2 / col0 + + col1 AS col2 FROM tab0 AS cor0
----
87
91
97
query I rowsort
SELECT ALL + col1 + + 75 FROM tab2
----
106
134
92
query I rowsort
SELECT + col1 * - col0 + cor0.col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL + col1 * - col1 + + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + + col1 * + col2 * + col1 col0 FROM tab1 AS cor0
----
17264
36582
6340
onlyif mysql # use DIV operator for integer division
query I rowsort label-1071
SELECT DISTINCT col2 * col1 DIV tab2.col0 + + col2 * col1 + - col0 AS col2 FROM tab2
----
1475
575
949
skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT col2 * col1 / tab2.col0 + + col2 * col1 + - col0 AS col2 FROM tab2
----
1475
575
949
query I rowsort
SELECT + - col2 * col1 + col1 + col2 FROM tab1 cor0
----
-1139
-1324
-503
query I rowsort
SELECT - col2 * col1 + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL col2 * - col2 + - tab2.col2 FROM tab2
----
-1482
-702
-756
query I rowsort
SELECT + cor0.col0 + + col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT col1 + col0 FROM tab2 cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1079
SELECT - tab1.col2 DIV + tab1.col0 col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 14c7df8a3f9c602e7f96d58d7cbe0e39
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1079
SELECT - tab1.col2 / + tab1.col0 col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 14c7df8a3f9c602e7f96d58d7cbe0e39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 * + col2 col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL + tab0.col2 * - col1 * + col1 AS col2 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT col1 + col0 * col0 AS col1 FROM tab1
----
35
4106
6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 WHERE NOT NULL NOT IN ( col0 + tab0.col1 ) AND NOT col2 BETWEEN NULL AND - col0 - col1 * - col1
----
query I rowsort
SELECT + - cor0.col0 + col2 - col0 FROM tab0 AS cor0
----
-15
-69
-96
query I rowsort
SELECT DISTINCT - col2 + - col2 + col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - col2 * cor0.col2 - col2 FROM tab2 cor0
----
-1482
-702
-756
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1087
SELECT DISTINCT - cor0.col0 * + CAST( cor0.col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-1087
SELECT DISTINCT - cor0.col0 * + CAST ( cor0.col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - + col2 + + col2 + + col2 * col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col1 + col1 - col2 * col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab2, tab0, tab2 AS cor0, tab1
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + cor0.col1 * + 48 AS col2 FROM tab0 AS cor0
----
4128
4368
4656
query I rowsort
SELECT + - col2 * 41 AS col2 FROM tab2 AS cor0
----
-1066
-1107
-1558
query I rowsort
SELECT DISTINCT + + col1 * - 59 FROM tab0 AS cor0
----
-5074
-5369
-5723
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1094
SELECT + CAST( NULL AS SIGNED ) + - tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1094
SELECT + CAST ( NULL AS INTEGER ) + - tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 col0 FROM tab0 cor0
----
-50
-50
-50
query I rowsort
SELECT - 33 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948
query I rowsort
SELECT cor0.col2 * 30 AS col0 FROM tab2 AS cor0
----
1140
780
810
query I rowsort
SELECT + + cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + 39 - - cor0.col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 1763677971ed517e8ab23621b1e2a094
query I rowsort
SELECT 3 * - col2 FROM tab2
----
-114
-78
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1101
SELECT DISTINCT + ( + col0 ) * - CAST( - col0 AS SIGNED ) * - col1 + + col2 FROM tab1
----
-180
-40903
-83104
skipif mysql # not compatible
query I rowsort label-1101
SELECT DISTINCT + ( + col0 ) * - CAST ( - col0 AS INTEGER ) * - col1 + + col2 FROM tab1
----
-180
-40903
-83104
query I rowsort
SELECT ALL col0 * col0 + 60 * col1 FROM tab0
----
13381
5736
7045
query I rowsort
SELECT ALL 41 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + cor0.col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + col1 + + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT + col1 * - col0 + - col0 * col2 + + col1 * - 74 AS col2 FROM tab0
----
-10608
-22131
-9220
onlyif mysql # use DIV operator for integer division
query I rowsort label-1107
SELECT ALL - + ( 39 ) DIV cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL - + ( 39 ) / cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT + 8 + + 97 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a8f8daa1a1bfedb1421594e2314a6b6d
query I rowsort
SELECT + 92 * col2 * - col2 + col0 AS col0 FROM tab0 AS cor0
----
-100164
-57
-618519
query I rowsort
SELECT ALL + 43 * col1 + + col0 AS col2 FROM tab2 AS cor0
----
1340
2615
810
query I rowsort
SELECT DISTINCT + 65 + + col2 + cor0.col0 FROM tab0 AS cor0
----
101
122
236
query I rowsort
SELECT - 81 + col0 FROM tab2 AS cor0
----
-2
-3
-74
query I rowsort
SELECT - 46 + col1 + + col2 AS col0 FROM tab2 AS cor0
----
12
39
9
query I rowsort
SELECT ALL + 12 * + col2 AS col2 FROM tab0 cor0
----
12
396
984
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col0 col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
onlyif mysql # use DIV operator for integer division
query I rowsort label-1116
SELECT - tab1.col2 + col2 DIV - col0 AS col0 FROM tab1
----
-57
-72
-97
skipif mysql # not compatible
query I rowsort label-1116
SELECT - tab1.col2 + col2 / - col0 AS col0 FROM tab1
----
-57
-72
-97
query I rowsort
SELECT DISTINCT col0 + + 87 * - col1 FROM tab0 AS cor0
----
-7458
-7828
-8404
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1118
SELECT ALL + cor0.col0 * - CAST( NULL AS SIGNED ) * col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL + cor0.col0 * - CAST ( NULL AS INTEGER ) * col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor1.col1 + + 19 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 9ba78ce2572e3ea45bf976dcd7e73a78
query I rowsort
SELECT ALL 35 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT + col0 + col1 * 9 FROM tab1 AS cor0
----
154
197
237
query I rowsort
SELECT + col1 + - ( ( + col1 ) ) + - 13 * col1 * - col1 AS col1 FROM tab0 AS cor0
----
107653
122317
96148
query I rowsort
SELECT ALL - cor0.col2 * 78 AS col0 FROM tab1 AS cor0
----
-4212
-4446
-7488
query I rowsort
SELECT DISTINCT - col0 * + 73 * col1 + + 7 AS col2 FROM tab2
----
-15834
-335939
-98032
query I rowsort
SELECT - col1 - cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT - ( + col2 ) - col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT 80 + 60 FROM tab0
----
140
query I rowsort
SELECT + ( - col1 ) * col2 AS col1 FROM tab0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1129
SELECT - ( - ( + col2 ) ) * CAST( - col1 AS SIGNED ) - col2 AS col0 FROM tab0
----
-2871
-7544
-98
skipif mysql # not compatible
query I rowsort label-1129
SELECT - ( - ( + col2 ) ) * CAST ( - col1 AS INTEGER ) - col2 AS col0 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT - col0 * + col2 + col2 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT tab0.col0 + col2 + col0 AS col0 FROM tab0
----
260
71
81
query I rowsort
SELECT ALL + + cor0.col0 * col0 + col1 AS col0 FROM tab2 AS cor0
----
6143
6258
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - ( - col0 ) ) col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT ( col2 ) + - col2 * cor0.col0 FROM tab2 AS cor0
----
-162
-2002
-2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1135
SELECT ALL + CAST( NULL AS SIGNED ) * + ( col1 * - cor0.col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL + CAST ( NULL AS INTEGER ) * + ( col1 * - cor0.col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1136
SELECT ALL + + cor0.col0 + cor0.col1 DIV - cor0.col0 FROM tab0 AS cor0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL + + cor0.col0 + cor0.col1 / - cor0.col0 FROM tab0 AS cor0
----
21
33
88
query I rowsort
SELECT - ( - col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1138
SELECT ALL + col2 DIV - col1 + - col0 col2 FROM tab2 AS cor0
----
-7
-78
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL + col2 / - col1 + - col0 col2 FROM tab2 AS cor0
----
-7
-78
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-1139
SELECT ALL - col0 * col2 + col0 + - col1 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
-2
-7210
-771
skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL - col0 * col2 + col0 + - col1 / cor0.col0 AS col0 FROM tab0 AS cor0
----
-2
-7210
-771
query I rowsort
SELECT + cor0.col0 + - cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT + col0 + col0 * + col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT ALL + col1 + col2 * - 6 AS col2 FROM tab2 AS cor0
----
-131
-211
-97
query I rowsort
SELECT + - col1 + - col1 * - cor0.col2 + 25 AS col1 FROM tab2 cor0
----
1500
654
831
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 + cor0.col2 col2 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-1145
SELECT DISTINCT - col2 + col0 DIV col2 - 6 FROM tab0
----
-39
-87
28
skipif mysql # not compatible
query I rowsort label-1145
SELECT DISTINCT - col2 + col0 / col2 - 6 FROM tab0
----
-39
-87
28
query I rowsort
SELECT + col0 + 2 * col2 FROM tab0
----
253
37
90
query I rowsort
SELECT - col0 * + tab0.col0 AS col1 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT col2 - cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col0 + + 37 AS col0 FROM tab0 AS cor0
----
2101
3432
8136
query I rowsort
SELECT 78 * col0 FROM tab0
----
1872
2730
6942
query I rowsort
SELECT - tab0.col1 + col2 + 40 FROM tab0
----
-13
-56
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1152
SELECT + CAST( NULL AS DECIMAL ) * ( col2 ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1152
SELECT + CAST ( NULL AS REAL ) * ( col2 ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + 36 AS col0 FROM tab1
----
36
36
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-1154
SELECT 34 DIV tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to af42aa9045c525ffb5edd9f787742a82
skipif mysql # not compatible
query I rowsort label-1154
SELECT 34 / tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to af42aa9045c525ffb5edd9f787742a82
query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-1156
SELECT DISTINCT - ( + 94 ) DIV - cor0.col2 col2 FROM tab1 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1156
SELECT DISTINCT - ( + 94 ) / - cor0.col2 col2 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT col1 + - col0 * + cor0.col1 AS col1 FROM tab0 cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT + col0 + col0 AS col0 FROM tab2 cor0
----
14
156
158
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab1 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 80b3ced88f886d6e15182ebf21c93987
query I rowsort
SELECT - tab1.col2 * col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT tab2.col1 + col0 * tab2.col1 + col1 * col2 AS col0 FROM tab2
----
1085
2006
6195
query I rowsort
SELECT + 16 + col2 AS col0 FROM tab0
----
17
49
98
query I rowsort
SELECT + col1 * col2 + - col0 * - col1 FROM tab1
----
1210
1482
2288
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 41 * - col0 + - cor0.col1 * col2 col1 FROM tab0 AS cor0
----
-1854
-3813
1338
query I rowsort
SELECT DISTINCT - - col0 + - col2 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + + 83 AS col0 FROM tab0 AS cor0
----
83
83
83
query I rowsort
SELECT col0 + + col2 * + col0 + + col1 * - col1 FROM tab1
----
-511
3612
7591
query I rowsort
SELECT col0 * tab1.col0 * - tab1.col2 AS col2 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT col0 + col2 * 79 AS col0 FROM tab2 AS cor0
----
2132
2140
3081
query I rowsort
SELECT DISTINCT - col0 * - ( cor0.col1 ) * cor0.col2 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-1171
SELECT col0 + - 17 - col0 * col1 DIV + col0 FROM tab1 AS cor0
----
-40
37
50
skipif mysql # not compatible
query I rowsort label-1171
SELECT col0 + - 17 - col0 * col1 / + col0 FROM tab1 AS cor0
----
-40
37
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * 91 col1 FROM tab2 AS cor0
----
-1547
-2821
-5369
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1173
SELECT - col1 * + 49 + - ( - col1 + CAST( NULL AS DECIMAL ) * col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1173
SELECT - col1 * + 49 + - ( - col1 + CAST ( NULL AS REAL ) * col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * ( 13 ) - col0 FROM tab1 AS cor0
----
335
66
89
query I rowsort
SELECT DISTINCT - - col0 + ( + col2 ) FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - col1 + - 35 * - col1 AS col1 FROM tab1 AS cor0
----
340
442
884
query I rowsort
SELECT ALL - - col2 * 31 FROM tab1 AS cor0
----
1674
1767
2976
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1178
SELECT DISTINCT - col0 + + CAST( 3 + - col1 AS SIGNED ) * 1 * col2 AS col2 FROM tab2 AS cor0
----
-1534
-611
-763
skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT - col0 + + CAST ( 3 + - col1 AS INTEGER ) * 1 * col2 AS col2 FROM tab2 AS cor0
----
-1534
-611
-763
query I rowsort
SELECT DISTINCT 88 AS col2 FROM tab0, tab2 AS cor0, tab1 cor1
----
88
query I rowsort
SELECT ALL col0 * + 77 AS col0 FROM tab0
----
1848
2695
6853
query I rowsort
SELECT - - cor0.col1 * + cor0.col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + cor0.col0 + + 35 AS col0 FROM tab0 AS cor0
----
124
59
70
query I rowsort
SELECT + 94 * + 69 + col1 * ( - 97 * col1 ) - - 34 FROM tab1 AS cor0
----
-3180
-59052
-9873
query I rowsort
SELECT - col0 * col2 + - col1 AS col2 FROM tab2 cor0
----
-2087
-220
-3019
query I rowsort
SELECT - col2 * 15 + col1 FROM tab0 AS cor0
----
-1139
-409
82
query I rowsort
SELECT ALL col2 * + 91 * col2 + - tab1.col1 FROM tab1
----
265330
295649
838643
query I rowsort
SELECT - + ( 48 ) * col0 * - 47 FROM tab0 AS cor0
----
200784
54144
78960
onlyif mysql # use DIV operator for integer division
query I rowsort label-1188
SELECT DISTINCT - - 8 DIV + col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT - - 8 / + col1 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1189
SELECT - col0 DIV 73 AS col0 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1189
SELECT - col0 / 73 AS col0 FROM tab1
----
-1
0
0
query I rowsort
SELECT + 50 + - col1 FROM tab2 AS cor0
----
-9
19
33
query I rowsort
SELECT - - col0 + + cor0.col1 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - 63 + - col1 * - cor0.col2 col1 FROM tab2 AS cor0
----
-104
-1748
-864
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 - + ( col0 ) * col0 FROM tab0 cor0
----
-1322
-15383
-3414
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1194
SELECT ALL + + col2 + + col0 * + CAST( cor0.col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1136
132
697
skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL + + col2 + + col0 * + CAST ( cor0.col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1136
132
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 + col1 col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL + + 65 * cor0.col1 + - col1 AS col0 FROM tab0 AS cor0
----
5504
5824
6208
query I rowsort
SELECT + 27 * + col2 AS col0 FROM tab1 cor0
----
1458
1539
2592
query I rowsort
SELECT - col2 * 0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 58 * - cor0.col1 + - col0 FROM tab2 AS cor0
----
-1065
-1805
-3500
query I rowsort
SELECT + 9 * col2 + + col1 AS col2 FROM tab2
----
274
293
359
query I rowsort
SELECT DISTINCT + 27 * - col1 FROM tab1 AS cor0
----
-270
-351
-702
query I rowsort
SELECT DISTINCT + col1 * col1 * + cor0.col2 FROM tab1 AS cor0
----
16224
36504
5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 * - 39 col1 FROM tab2 AS cor0
----
-3003
-3003
-3003
query I rowsort
SELECT ALL + 30 + - col1 AS col0 FROM tab2 AS cor0
----
-1
-29
13
query I rowsort
SELECT + 29 * + 51 + col2 FROM tab1 AS cor0
----
1533
1536
1575
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1206
SELECT ALL CAST( NULL AS SIGNED ) * col0 + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL CAST ( NULL AS INTEGER ) * col0 + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col2 + - 71 * - cor0.col2 FROM tab1 AS cor0
----
3888
4104
6912
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + ( + col0 ) AS REAL ) col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ( - col1 ) * - col1 AS col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT - - col1 * 81 FROM tab2 AS cor0
----
1377
2511
4779
query I rowsort
SELECT + - ( col2 ) + + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT col2 * - col0 * col2 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-207946
-737293
-8774
query I rowsort
SELECT ALL + - col1 * + cor0.col2 * + col2 + + col1 FROM tab2 AS cor0
----
-22568
-24531
-39825
query I rowsort
SELECT DISTINCT - - cor0.col1 + col0 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT 96 AS col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
96
query I rowsort
SELECT ALL 18 AS col2 FROM tab1
----
18
18
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 col2 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT + + 94 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT DISTINCT + cor0.col0 + 73 FROM tab1 AS cor0
----
137
153
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 * col0 * col2 col2 FROM tab1
----
215232
453120
9558
query I rowsort
SELECT col1 * ( 1 * tab2.col2 + 44 ) FROM tab2
----
1394
2201
4130
query I rowsort
SELECT DISTINCT col0 + - ( col2 ) AS col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT + + col0 * - col2 + - 59 * col1 - - col1 FROM tab1 cor0
----
-1670
-4228
-8434
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 + 34 + - col0 col1 FROM tab2
----
-18
-7
54
query I rowsort
SELECT DISTINCT - col2 + + col1 - + tab2.col0 AS col1 FROM tab2
----
-100
-3
-45
query I rowsort
SELECT 36 FROM tab0, tab1 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT ALL tab2.col1 * col1 + col1 - col1 FROM tab2
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-1228
SELECT DISTINCT - - 8 DIV - col1 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-1228
SELECT DISTINCT - - 8 / - col1 FROM tab1 cor0
----
0
query I rowsort
SELECT + 39 * 12 FROM tab1 AS cor0
----
468
468
468
query I rowsort
SELECT col2 * 36 AS col1 FROM tab0
----
1188
2952
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1231
SELECT ALL + CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( 34 ) + + col1 * - ( col2 ) * col2 + + col2 FROM tab0
----
-611768
-62
-93587
query I rowsort
SELECT + 70 * - 80 FROM tab1
----
-5600
-5600
-5600
query I rowsort
SELECT DISTINCT - 32 + + col0 * col0 AS col0 FROM tab0
----
1193
544
7889
query I rowsort
SELECT ALL ( col1 ) + col1 AS col0 FROM tab1
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-1236
SELECT col1 DIV + cor0.col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-1236
SELECT col1 / + cor0.col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT + 96 * + col0 AS col2 FROM tab2 AS cor0
----
672
7488
7584
query I rowsort
SELECT DISTINCT - 99 * + col1 FROM tab0 AS cor0
----
-8514
-9009
-9603
query I rowsort
SELECT - 93 * ( col1 + - 47 ) AS col2 FROM tab1 AS cor0
----
1953
3162
3441
query I rowsort
SELECT - 58 + col2 FROM tab0
----
-25
-57
24
query I rowsort
SELECT - col2 * + col1 * - col1 - + col2 AS col1 FROM tab2
----
10944
25920
90480
query I rowsort
SELECT DISTINCT + 44 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-1243
SELECT - - col1 * col1 DIV col2 AS col2 FROM tab1 AS cor0
----
1
1
12
skipif mysql # not compatible
query I rowsort label-1243
SELECT - - col1 * col1 / col2 AS col2 FROM tab1 AS cor0
----
1
1
12
query I rowsort
SELECT - col0 * - col0 + 69 * col0 AS col0 FROM tab0
----
14062
2232
3640
query I rowsort
SELECT - - col0 + col0 - - 12 * - col1 FROM tab2 cor0
----
-358
-46
-552
query I rowsort
SELECT ALL col1 + col1 * cor0.col2 AS col1 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT + cor0.col0 * + 61 + - cor0.col2 * + col1 * col2 - col1 * col1 AS col1 FROM tab0 AS cor0
----
-614736
-7371
-99586
query I rowsort
SELECT ALL - + cor0.col2 * - col1 + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - col2 * - col0 + + col0 - - col1 * + col0 AS col1 FROM tab2 cor0
----
413
4424
6708
query I rowsort
SELECT DISTINCT col0 * + col0 AS col1 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + col0 + 31 FROM tab0 AS cor0
----
120
55
66
query I rowsort
SELECT ALL + col2 * col1 + - col2 + col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1253
SELECT ALL col1 DIV + 57 + + col1 + col2 AS col0 FROM tab1
----
109
67
80
skipif mysql # not compatible
query I rowsort label-1253
SELECT ALL col1 / + 57 + + col1 + col2 AS col0 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL - + col0 + col0 * col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL + col0 + - col0 + ( col2 * col2 ) FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 * 95 + col2 * col2 col1 FROM tab1 AS cor0
----
-12474
-343311
-720384
query I rowsort
SELECT DISTINCT + ( + col1 ) * - col1 * + ( col2 * 72 ) FROM tab1
----
-1168128
-2628288
-410400
query I rowsort
SELECT ALL 20 * col1 FROM tab1
----
200
260
520
onlyif mysql # use DIV operator for integer division
query I rowsort label-1259
SELECT + col2 + - ( + col2 ) DIV cor0.col0 + - ( - col0 ) FROM tab0 AS cor0
----
171
36
56
skipif mysql # not compatible
query I rowsort label-1259
SELECT + col2 + - ( + col2 ) / cor0.col0 + - ( - col0 ) FROM tab0 AS cor0
----
171
36
56
query I rowsort
SELECT ALL + + col2 * - col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + cor0.col2 * - 66 FROM tab2 AS cor0
----
-1716
-1782
-2508
query I rowsort
SELECT ALL + + col1 + - 70 * - 99 AS col1 FROM tab1 AS cor0
----
6940
6943
6956
query I rowsort
SELECT + col2 + + ( + col0 ) * col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL + cor0.col0 - - col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT - 84 * col0 AS col1 FROM tab2 AS cor0
----
-588
-6552
-6636
query I rowsort
SELECT ALL - col2 + + col2 * - ( col2 ) FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT + col1 + cor0.col1 * - ( - cor0.col2 * - col1 ) AS col0 FROM tab2 cor0
----
-10965
-25916
-90447
query I rowsort
SELECT DISTINCT + col0 + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT ALL - 41 FROM tab0, tab2 AS cor0, tab2, tab2 cor1
----
81 values hashing to 007857b49fbf51962923f3da53f42f2b
query I rowsort
SELECT 83 * col0 + + 54 AS col1 FROM tab1
----
303
5366
6694
query I rowsort
SELECT DISTINCT ( + col0 ) + - ( + col2 ) * - col2 FROM tab0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-1272
SELECT DISTINCT col0 + + col2 DIV ( tab1.col1 * col2 ) FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT col0 + + col2 / ( tab1.col1 * col2 ) FROM tab1
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1273
SELECT 49 * col1 + + CAST( + col1 AS SIGNED ) FROM tab1
----
1300
500
650
skipif mysql # not compatible
query I rowsort label-1273
SELECT 49 * col1 + + CAST ( + col1 AS INTEGER ) FROM tab1
----
1300
500
650
query I rowsort
SELECT ALL + 84 + + col1 * col2 * + tab2.col0 AS col1 FROM tab2
----
119736
51118
5943
query I rowsort
SELECT DISTINCT + 84 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
84
query I rowsort
SELECT col1 + - ( - col0 ) * - col0 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT + + col0 * 58 + col1 FROM tab0 AS cor0
----
1478
2127
5253
query I rowsort
SELECT ALL col0 + + tab2.col1 * col1 FROM tab2
----
3559
368
968
query I rowsort
SELECT - 89 + col2 + 36 FROM tab0
----
-20
-52
29
query I rowsort
SELECT + 31 * col0 AS col1 FROM tab1 AS cor0
----
1984
2480
93
query I rowsort
SELECT - col1 + + col0 * ( - col0 ) FROM tab2
----
-6143
-6258
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1282
SELECT DISTINCT + + ( col1 ) * - col0 + + 70 DIV col1 AS col1 FROM tab1 AS cor0
----
-1035
-633
-76
skipif mysql # not compatible
query I rowsort label-1282
SELECT DISTINCT + + ( col1 ) * - col0 + + 70 / col1 AS col1 FROM tab1 AS cor0
----
-1035
-633
-76
query I rowsort
SELECT DISTINCT ( + col0 ) * - col1 - col0 AS col0 FROM tab1 cor0
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT - + 62 - - col1 AS col0 FROM tab2 AS cor0
----
-3
-31
-45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1285
SELECT + CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-1285
SELECT + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + + col0 + ( col0 + + col0 ) FROM tab2 AS cor0
----
21
234
237
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1287
SELECT ALL col1 * - CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL col1 * - CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL col1 * + 72 FROM tab0
----
6192
6552
6984
onlyif mysql # use DIV operator for integer division
query I rowsort label-1289
SELECT ALL col1 * col1 DIV ( col1 ) FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL col1 * col1 / ( col1 ) FROM tab1
----
10
13
26
query I rowsort
SELECT - tab1.col1 * + tab1.col2 * + col2 AS col1 FROM tab1
----
-119808
-32490
-75816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1291
SELECT CAST( col1 AS SIGNED ) * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-1291
SELECT CAST ( col1 AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col0 * - ( col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - 75 * - col2 FROM tab2 AS cor0
----
1950
2025
2850
query I rowsort
SELECT DISTINCT + 3 * 22 FROM tab1 AS cor0
----
66
query I rowsort
SELECT ALL ( col1 ) * col1 AS col0 FROM tab2
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 * col1 col2 FROM tab1 cor0
----
-1222
-2444
-940
query I rowsort
SELECT ALL + cor0.col0 * - col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - ( 84 ) AS col2 FROM tab2
----
-84
-84
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-1299
SELECT DISTINCT - ( + col2 ) DIV - col1 AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-1299
SELECT DISTINCT - ( + col2 ) / - col1 AS col0 FROM tab0
----
0
query I rowsort
SELECT - 71 FROM tab0, tab0 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 col0 FROM tab2
----
-47
query I rowsort
SELECT - 61 * col2 AS col2 FROM tab1 cor0
----
-3294
-3477
-5856
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1303
SELECT + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1303
SELECT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - 48 + col1 FROM tab0 AS cor0
----
38
43
49
query I rowsort
SELECT col1 * col1 * + 55 FROM tab0 AS cor0
----
406780
455455
517495
query I rowsort
SELECT ALL - - 54 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - col0 + col2 * col0 col0 FROM tab1 AS cor0
----
3008
6640
84
query I rowsort
SELECT + col1 * + col0 + col0 * col0 FROM tab0 AS cor0
----
16020
2640
4620
query I rowsort
SELECT + + cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1310
SELECT ALL + col2 DIV col0 + col1 * - col2 + col1 FROM tab0 AS cor0
----
-2751
-7371
0
skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL + col2 / col0 + col1 * - col2 + col1 FROM tab0 AS cor0
----
-2751
-7371
0
query I rowsort
SELECT DISTINCT + col0 * col2 + ( col1 ) AS col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL col1 * + col1 + col1 AS col0 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT col1 + + tab0.col1 * 70 FROM tab0
----
6106
6461
6887
query I rowsort
SELECT DISTINCT ( - 84 ) FROM tab1, tab2 AS cor0
----
-84
query I rowsort
SELECT DISTINCT + 7 - - 97 FROM tab2, tab1 AS cor0, tab0 cor1, tab2 AS cor2
----
104
query I rowsort
SELECT 83 + col2 AS col1 FROM tab1 AS cor0
----
137
140
179
query I rowsort
SELECT 67 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT col1 * col1 * + col0 FROM tab1
----
13520
2028
6400
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col2 * + col0 )
----
query I rowsort
SELECT DISTINCT - col1 + - col0 + col2 FROM tab1
----
-17
25
3
query I rowsort
SELECT tab2.col1 * col2 + - col2 AS col1 FROM tab2
----
1508
608
810
onlyif mysql # use DIV operator for integer division
query I rowsort label-1322
SELECT + col1 DIV col0 + col1 DIV + col0 AS col0 FROM tab2
----
0
0
8
skipif mysql # not compatible
query I rowsort label-1322
SELECT + col1 / col0 + col1 / + col0 AS col0 FROM tab2
----
0
0
8
query III rowsort
SELECT * FROM tab0 WHERE - col2 * + col1 NOT BETWEEN ( + col0 + - col0 + + col0 / col0 ) AND NULL
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL - col1 + - col0 AS col2 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT ALL + col1 - - tab0.col2 AS col2 FROM tab0 WHERE NULL > NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 >= - col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + col0 col0 FROM tab0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT col0 * + col2 * col1 FROM tab1
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 col2 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT ALL tab1.col1 * col2 * + col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + col2 * + tab1.col0 * col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT ALL col0 / tab2.col0 FROM tab2 WHERE NOT col1 * - col0 <= ( - col0 )
----
query III rowsort
SELECT * FROM tab0 WHERE ( - col2 ) < NULL
----
query I rowsort
SELECT col2 * col1 * col2 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT - tab0.col1 + + col0 AS col0 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT tab0.col1 + col1 AS col0 FROM tab0 WHERE ( NULL ) NOT IN ( col2 + col1 + col2 )
----
query I rowsort
SELECT DISTINCT col2 * col1 * + col0 FROM tab1
----
36480
4212
99840
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + col1 * tab0.col1 AND col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1340
SELECT col1 + - col1 DIV - col1 AS col2 FROM tab2
----
18
32
60
skipif mysql # not compatible
query I rowsort label-1340
SELECT col1 + - col1 / - col1 AS col2 FROM tab2
----
18
32
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + tab0.col1 * tab0.col1 col0 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT + col0 * col2 + - col1 * - col1 AS col0 FROM tab2
----
1150
3291
5509
query I rowsort
SELECT col0 - - col1 AS col1 FROM tab1
----
29
74
93
query I rowsort
SELECT tab1.col0 * + col2 - - col1 * col1 FROM tab1
----
3748
7849
838
onlyif mysql # use DIV operator for integer division
query I rowsort label-1345
SELECT col0 DIV col2 + col0 DIV - col2 col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1345
SELECT col0 / col2 + col0 / - col2 col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col1 * + col0 + col0 - + col0 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-1348
SELECT DISTINCT - col1 DIV col1 AS col1 FROM tab0 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-1348
SELECT DISTINCT - col1 / col1 AS col1 FROM tab0 cor0
----
-1
query I rowsort
SELECT + col0 * + col0 * col0 - - col0 FROM tab1 AS cor0
----
262208
30
512080
query I rowsort
SELECT ALL col2 * - col0 * - col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-1351
SELECT col1 + col1 DIV col1 - - col2 DIV col0 FROM tab0 AS cor0
----
88
92
98
skipif mysql # not compatible
query I rowsort label-1351
SELECT col1 + col1 / col1 - - col2 / col0 FROM tab0 AS cor0
----
88
92
98
query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE ( - col0 ) IN ( - tab1.col0 )
----
10
13
26
query I rowsort
SELECT DISTINCT + col0 + + col1 + + cor0.col1 FROM tab2 AS cor0
----
113
196
69
query I rowsort
SELECT - + col1 + ( col0 ) AS col0 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + 40 * col1 col0 FROM tab0 AS cor0
----
3354
3549
3783
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1356
SELECT ALL cor0.col0 + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL cor0.col0 + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1357
SELECT DISTINCT - + col2 DIV + 57 + + col0 FROM tab2 cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT - + col2 / + 57 + + col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + cor0.col0 * - ( + col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1359
SELECT ALL + col2 + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
52
54
76
skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL + col2 + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-1360
SELECT ALL - - col1 * col2 DIV col2 + + col1 AS col0 FROM tab0 AS cor0
----
172
182
194
skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL - - col1 * col2 / col2 + + col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT col0 * ( 58 ) AS col1 FROM tab2 AS cor0
----
406
4524
4582
query I rowsort
SELECT DISTINCT col1 * + ( - col1 * col2 ) AS col0 FROM tab0 cor0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL - - col2 + 67 - col2 * - col1 AS col1 FROM tab1 AS cor0
----
1411
1525
694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - col0 col2 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + 16 + - cor1.col1 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 5de997090b15850f7ceca2547328657a
query I rowsort
SELECT DISTINCT - col2 * col2 + - 22 FROM tab0 AS cor0
----
-1111
-23
-6746
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1367
SELECT DISTINCT - cor0.col1 + CAST( - col1 AS SIGNED ) FROM tab2 cor0
----
-118
-34
-62
skipif mysql # not compatible
query I rowsort label-1367
SELECT DISTINCT - cor0.col1 + CAST ( - col1 AS INTEGER ) FROM tab2 cor0
----
-118
-34
-62
query I rowsort
SELECT ALL - cor0.col0 - 43 * 82 * col0 FROM tab1 AS cor0
----
-10581
-225728
-282160
query I rowsort
SELECT ALL + col0 * 35 FROM tab0 AS cor0
----
1225
3115
840
onlyif mysql # use DIV operator for integer division
query I rowsort label-1370
SELECT DISTINCT + + col1 DIV - cor0.col0 + 86 FROM tab0 AS cor0
----
83
84
85
skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT + + col1 / - cor0.col0 + 86 FROM tab0 AS cor0
----
83
84
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-1371
SELECT col2 * - ( tab1.col1 ) + col0 * + ( col1 * col1 ) + - col2 DIV 72 AS col0 FROM tab1
----
12271
5830
624
skipif mysql # not compatible
query I rowsort label-1371
SELECT col2 * - ( tab1.col1 ) + col0 * + ( col1 * col1 ) + - col2 / 72 AS col0 FROM tab1
----
12271
5830
624
query I rowsort
SELECT ALL 91 * - 20 AS col0 FROM tab0 AS cor0
----
-1820
-1820
-1820
onlyif mysql # use DIV operator for integer division
query I rowsort label-1373
SELECT ALL + - col0 + col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL + - col0 + col2 / + col2 AS col1 FROM tab0 AS cor0
----
-23
-34
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-1374
SELECT - - 43 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
1
43
skipif mysql # not compatible
query I rowsort label-1374
SELECT - - 43 / + col2 AS col1 FROM tab0 AS cor0
----
0
1
43
query I rowsort
SELECT - ( - 8 ) FROM tab1, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT col0 * - col2 + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL + - 81 + - col1 * ( cor0.col1 ) FROM tab0 AS cor0
----
-7477
-8362
-9490
query I rowsort
SELECT DISTINCT - - col2 - col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - + col1 + + col1 * - ( + col2 ) FROM tab1 AS cor0
----
-1261
-1430
-580
onlyif mysql # use DIV operator for integer division
query I rowsort label-1380
SELECT - + col1 + col1 DIV - 22 AS col0 FROM tab0 AS cor0
----
-101
-89
-95
skipif mysql # not compatible
query I rowsort label-1380
SELECT - + col1 + col1 / - 22 AS col0 FROM tab0 AS cor0
----
-101
-89
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-1381
SELECT ALL + + 36 DIV col1 AS col0 FROM tab1 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL + + 36 / col1 AS col0 FROM tab1 AS cor0
----
1
2
3
query I rowsort
SELECT ALL + col2 + col1 + + 77 FROM tab0 cor0
----
175
196
250
onlyif mysql # use DIV operator for integer division
query I rowsort label-1383
SELECT ALL + 44 DIV col0 + ( - col1 * cor0.col1 ) - cor0.col0 AS col0 FROM tab2 cor0
----
-3559
-368
-962
skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL + 44 / col0 + ( - col1 * cor0.col1 ) - cor0.col0 AS col0 FROM tab2 cor0
----
-3559
-368
-962
query I rowsort
SELECT ALL - col2 * + col1 * col2 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT col0 * col0 + col2 * + col1 FROM tab2
----
6887
7618
886
query I rowsort
SELECT ALL tab0.col2 * - col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT tab0.col2 + + col1 + col0 AS col1 FROM tab0
----
133
143
262
query I rowsort
SELECT - ( col0 ) + col1 * tab2.col0 FROM tab2
----
1264
210
4524
query I rowsort
SELECT tab1.col1 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL 85 AS col0 FROM tab1
----
85
85
85
query I rowsort
SELECT ALL - + 99 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-2574
-2673
-3762
query I rowsort
SELECT DISTINCT + + col1 + col2 * 36 AS col2 FROM tab2 cor0
----
1003
1385
995
query I rowsort
SELECT ALL 89 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT ALL + - cor0.col2 * - col0 + + col2 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1395
SELECT DISTINCT - + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1395
SELECT DISTINCT - + col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col2 + col2 * + col0 AS col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL col2 * col2 * + 44 AS col1 FROM tab1 AS cor0
----
128304
142956
405504
query I rowsort
SELECT DISTINCT + - cor0.col0 * cor0.col2 + col2 * - col0 FROM tab1 cor0
----
-15360
-324
-7296
query I rowsort
SELECT + col0 + col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL - col1 + - col2 * - cor0.col2 * col2 AS col2 FROM tab1 cor0
----
157438
185183
884723
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col1 col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1402
SELECT + CAST( NULL AS SIGNED ) + 20 - + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1402
SELECT + CAST ( NULL AS INTEGER ) + 20 - + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col0 * col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT - - ( 24 ) FROM tab2 AS cor0
----
24
24
24
query I rowsort
SELECT - 45 * - cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3a7fa0e00bc72391fc4753e3301af1a9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 79 col1 FROM tab2 AS cor0
----
-79
-79
-79
query I rowsort
SELECT 97 * 13 * - col0 FROM tab1 AS cor0
----
-100880
-3783
-80704
query I rowsort
SELECT - 12 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-1152
-648
-684
query I rowsort
SELECT + col0 * col1 + + 58 FROM tab0 AS cor0
----
2122
3453
8157
query I rowsort
SELECT + 47 * + col2 * 74 AS col1 FROM tab2
----
132164
90428
93906
query I rowsort
SELECT + 32 * col0 + - col1 AS col0 FROM tab2 AS cor0
----
193
2437
2511
query I rowsort
SELECT ALL 12 + col0 * 38 AS col1 FROM tab0 AS cor0
----
1342
3394
924
query I rowsort
SELECT ALL + + col0 * col0 + ( - 73 + col0 * cor0.col1 ) FROM tab1 AS cor0
----
14
4663
7367
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1414
SELECT col1 + - CAST( NULL AS SIGNED ) / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1414
SELECT col1 + - CAST ( NULL AS INTEGER ) / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 89 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc
query I rowsort
SELECT ALL ( col2 + col0 ) FROM tab0
----
171
36
57
query I rowsort
SELECT col0 + col0 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + ( col2 ) * + col0 FROM tab1
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 + col2 col0 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT ALL - cor0.col1 - col1 FROM tab0 AS cor0
----
-172
-182
-194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - cor0.col0 col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL cor0.col0 + + col0 * col1 + col1 AS col2 FROM tab2 AS cor0
----
1439
255
4739
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 - col2 * + col1 col1 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT - col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col0 * - col0 + - tab1.col1 AS col2 FROM tab1
----
-35
-4106
-6413
query I rowsort
SELECT + col1 * + col0 * cor0.col2 + col1 AS col1 FROM tab2 AS cor0
----
119711
51051
5890
query I rowsort
SELECT + - cor0.col2 - col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT + col2 * + col0 + - col2 * - col0 AS col1 FROM tab2 cor0
----
378
4056
6004
query I rowsort
SELECT ALL + 21 * - col0 FROM tab2
----
-147
-1638
-1659
onlyif mysql # use DIV operator for integer division
query I rowsort label-1430
SELECT ALL col2 DIV 71 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL col2 / 71 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL 29 FROM tab2
----
29
29
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1432
SELECT CAST( NULL AS SIGNED ) * + ( - tab0.col1 ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1432
SELECT CAST ( NULL AS INTEGER ) * + ( - tab0.col1 ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( - col0 ) * col1 FROM tab1
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1434
SELECT ALL + 22 * col1 DIV + col1 FROM tab2
----
22
22
22
skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL + 22 * col1 / + col1 FROM tab2
----
22
22
22
query I rowsort
SELECT + col0 + + cor0.col2 * + col0 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-1436
SELECT + - 26 DIV col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-1436
SELECT + - 26 / col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT + - col1 + cor0.col0 - - col0 FROM tab1 AS cor0
----
-20
118
147
query I rowsort
SELECT + - ( - col2 ) * col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - - col2 * + col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT 9 AS col0 FROM tab1 AS cor0
----
9
query I rowsort
SELECT + col2 * + col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT - - cor0.col0 - col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + 86 AS col0 FROM tab2 AS cor0
----
86
query I rowsort
SELECT cor0.col2 * - col0 - col2 AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL - cor0.col1 * + col0 * col1 + col0 AS col0 FROM tab0 AS cor0
----
-177480
-329280
-736920
query I rowsort
SELECT DISTINCT + 76 + col2 * - 99 + 90 * + col1 FROM tab1 AS cor0
----
-2930
-4667
-8258
query I rowsort
SELECT DISTINCT col1 * - col0 - - col1 AS col1 FROM tab1 cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL - - 27 * + col0 AS col0 FROM tab2 AS cor0
----
189
2106
2133
query I rowsort
SELECT + - 1 - - col2 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT ALL + + cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT 90 * - col0 FROM tab2
----
-630
-7020
-7110
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - col0 + col1 AS REAL ) FROM tab1
----
-54
-67
23
query I rowsort
SELECT ALL 0 * 50 AS col0 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 * - col1 col0 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT ALL - 8 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
query I rowsort
SELECT - - 21 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 * - col0 - 98 col1 FROM tab1
----
-1186
-1458
-149
onlyif mysql # use DIV operator for integer division
query I rowsort label-1458
SELECT col0 * col0 - + col1 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
48
6083
6240
skipif mysql # not compatible
query I rowsort label-1458
SELECT col0 * col0 - + col1 / cor0.col1 AS col1 FROM tab2 AS cor0
----
48
6083
6240
query I rowsort
SELECT - col2 + + col1 + col2 * + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1036
-6715
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-1460
SELECT col2 + col1 DIV col0 + + cor0.col2 FROM tab1 AS cor0
----
114
116
192
skipif mysql # not compatible
query I rowsort label-1460
SELECT col2 + col1 / col0 + + cor0.col2 FROM tab1 AS cor0
----
114
116
192
query I rowsort
SELECT col1 - - col0 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT 21 * col1 * + col1 FROM tab2 AS cor0
----
20181
6069
73101
query I rowsort
SELECT cor0.col0 * col2 + - 87 - + ( - col1 ) AS col2 FROM tab0 AS cor0
----
45
7302
791
query I rowsort
SELECT cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-1465
SELECT cor0.col1 DIV 38 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
skipif mysql # not compatible
query I rowsort label-1465
SELECT cor0.col1 / 38 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-3
-64
-80
query I rowsort
SELECT ( 99 ) FROM tab1
----
99
99
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-1468
SELECT + 82 + - col0 DIV - col0 col0 FROM tab1
----
83
83
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1468
SELECT + 82 + - col0 / - col0 col0 FROM tab1
----
83
83
83
query I rowsort
SELECT ALL - - 23 + + 55 FROM tab0 AS cor0
----
78
78
78
query I rowsort
SELECT 99 * col2 * col2 FROM tab1 AS cor0
----
288684
321651
912384
query I rowsort
SELECT DISTINCT - 51 + 3 FROM tab1 AS cor0
----
-48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 98 ) * col1 + - col1 col2 FROM tab2 AS cor0
----
1649
3007
5723
query I rowsort
SELECT + 11 FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 288f8fb62e079d095c14d7cf3e2d3359
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 + + col2 col2 FROM tab0 AS cor0
----
18
50
99
query I rowsort
SELECT + col0 + - 8 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
215
255
550
onlyif mysql # use DIV operator for integer division
query I rowsort label-1476
SELECT DISTINCT - - 54 + 64 DIV - col1 FROM tab0 cor0
----
54
skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT - - 54 + 64 / - col1 FROM tab0 cor0
----
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 col2 FROM tab0
----
24
24
24
query I rowsort
SELECT ALL - col1 + - 53 FROM tab0 AS cor0
----
-139
-144
-150
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1479
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - + col0 * - col2 * + ( + col0 ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT + CAST ( NULL AS REAL ) - + col0 * - col2 * + ( + col0 ) AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT cor0.col0 * ( col2 ) + + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT - - col2 * col2 - - cor0.col2 FROM tab2 cor0
----
1482
702
756
query I rowsort
SELECT ALL ( - col0 ) * col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + col1 * col2 + + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL - 20 + + col1 AS col1 FROM tab2 AS cor0
----
-3
11
39
query I rowsort
SELECT DISTINCT + col1 * + 46 AS col1 FROM tab0 cor0
----
3956
4186
4462
query I rowsort
SELECT ALL + col2 * - cor0.col0 + - cor0.col1 FROM tab2 AS cor0
----
-2087
-220
-3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1487
SELECT DISTINCT col1 + + col2 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1487
SELECT DISTINCT col1 + + col2 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + 72 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 49 col1 FROM tab0 AS cor0
----
-49
-49
-49
query I rowsort
SELECT DISTINCT + col2 * - ( - col0 ) + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT 87 FROM tab1, tab2 AS cor0
----
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-1492
SELECT ALL - + col2 * col0 * col2 + col2 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-207936
-737279
-8730
skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL - + col2 * col0 * col2 + col2 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-207936
-737279
-8730
query I rowsort
SELECT - cor0.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to f74ca4a9760ae5a015b067d560a14502
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1494
SELECT col1 / + CAST( NULL AS SIGNED ) + - cor0.col0 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1494
SELECT col1 / + CAST ( NULL AS INTEGER ) + - cor0.col0 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 97 * col2 AS col0 FROM tab1
----
5238
5529
9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1496
SELECT CAST( NULL AS SIGNED ) + + cor0.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1496
SELECT CAST ( NULL AS INTEGER ) + + cor0.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-1497
SELECT DISTINCT 71 DIV - cor1.col0 FROM tab1, tab2 cor0, tab1 AS cor1
----
-1
-23
0
skipif mysql # not compatible
query I rowsort label-1497
SELECT DISTINCT 71 / - cor1.col0 FROM tab1, tab2 cor0, tab1 AS cor1
----
-1
-23
0
query I rowsort
SELECT ALL - - col0 * ( + col2 ) AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col1 * + 85 AS col0 FROM tab1 AS cor0
----
1105
2210
850
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * + 92 col0 FROM tab0 AS cor0
----
-2208
-3220
-8188
query I rowsort
SELECT ALL + col1 * ( 41 ) FROM tab1 AS cor0
----
1066
410
533
query I rowsort
SELECT + ( - 24 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
query I rowsort
SELECT col2 - col2 * - col1 AS col1 FROM tab0
----
2871
7544
98
query I rowsort
SELECT DISTINCT + col0 + 88 AS col1 FROM tab1
----
152
168
91
query I rowsort
SELECT DISTINCT col1 + col2 * - col1 * + tab2.col2 AS col2 FROM tab2
----
-22568
-24531
-39825
query I rowsort
SELECT DISTINCT col2 * - col0 - col2 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT - ( + ( col2 ) ) * + col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col0 + - 33 AS col2 FROM tab2 AS cor0
----
-26
45
46
query I rowsort
SELECT ALL cor0.col0 + col0 * - col1 FROM tab0 cor0
----
-2040
-3360
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + + col0 + - col0 * + col0 + col2 * col2 * col0 AS col2 FROM tab2 AS cor0
----
107914
46722
5061
onlyif mysql # use DIV operator for integer division
query I rowsort label-1512
SELECT ALL col1 DIV - 22 AS col1 FROM tab2 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL col1 / - 22 AS col1 FROM tab2 AS cor0
----
-1
-2
0
query I rowsort
SELECT ALL tab2.col0 + - ( + col1 ) FROM tab2
----
-24
19
62
query I rowsort
SELECT ALL - tab0.col2 + + col2 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT col2 + + ( + 73 + - col0 ) FROM tab2
----
21
32
93
query I rowsort
SELECT - col1 + ( tab0.col1 ) FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + tab0.col2 + - 0 * + col0 AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT - col1 + ( col2 ) FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT + 65 * col0 FROM tab1 cor0
----
195
4160
5200
query I rowsort
SELECT - 76 FROM tab2, tab1 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
query I rowsort
SELECT DISTINCT 9 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + 28 col1 FROM tab2 AS cor0
----
-1652
-476
-868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - ( + ( col1 ) ) * col0 col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL 1 * - 99 FROM tab1
----
-99
-99
-99
query I rowsort
SELECT ALL 4 * - col0 + - col1 FROM tab1
----
-266
-333
-38
query I rowsort
SELECT - col1 + - col2 * tab1.col2 FROM tab1
----
-2942
-3259
-9229
query I rowsort
SELECT DISTINCT 55 * 97 AS col1 FROM tab2 AS cor0
----
5335
query I rowsort
SELECT ALL - col1 - 40 * - col0 FROM tab1 cor0
----
2550
3187
94
query I rowsort
SELECT + 20 * 72 + - col0 FROM tab1 AS cor0
----
1360
1376
1437
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT 71 * + ( - col0 * + col2 ) - - col1 FROM tab0 AS cor0
----
-2388
-518067
-56146
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1532
SELECT DISTINCT cor0.col2 * CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
NULL
query I rowsort
SELECT 49 * col2 FROM tab2 AS cor0
----
1274
1323
1862
onlyif mysql # use DIV operator for integer division
query I rowsort label-1534
SELECT - col1 + col2 * - 80 + + col0 DIV - col1 FROM tab0 AS cor0
----
-177
-2726
-6651
skipif mysql # not compatible
query I rowsort label-1534
SELECT - col1 + col2 * - 80 + + col0 / - col1 FROM tab0 AS cor0
----
-177
-2726
-6651
query I rowsort
SELECT DISTINCT - 65 AS col1 FROM tab1 AS cor0
----
-65
query I rowsort
SELECT 69 * + col2 AS col1 FROM tab1 AS cor0
----
3726
3933
6624
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col1 + 91 FROM tab0 AS cor0
----
188
2929
7553
query I rowsort
SELECT DISTINCT - 20 + tab0.col0 AS col0 FROM tab0
----
15
4
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 * + col2 col2 FROM tab0
----
1066
13
429
query I rowsort
SELECT ( col2 + col0 ) FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT 80 FROM tab0, tab1, tab1 AS cor0
----
80
query I rowsort
SELECT col2 + col1 * - ( + col0 * col2 ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
-36413
-4132
-99731
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col2 FROM tab2 AS cor0
----
18
18
18
query I rowsort
SELECT - 81 + col0 FROM tab1 AS cor0
----
-1
-17
-78
query I rowsort
SELECT 55 * col1 + + col0 * - col2 * + tab0.col0 AS col1 FROM tab0
----
-14278
-644517
4110
query I rowsort
SELECT - col0 * col2 + ( 94 ) + col2 AS col1 FROM tab2
----
-1908
-2870
-68
query I rowsort
SELECT tab2.col2 - col0 AS col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT + - 55 - + col0 FROM tab0 AS cor0
----
-144
-79
-90
query I rowsort
SELECT + - 61 AS col2 FROM tab2 AS cor0
----
-61
-61
-61
query I rowsort
SELECT ALL col2 + 29 * col1 AS col2 FROM tab2 AS cor0
----
1737
531
926
query I rowsort
SELECT ALL - col0 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT - + col1 + ( - col0 ) * - col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT - + col2 + 73 FROM tab1 cor0
----
-23
16
19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1554
SELECT - col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1554
SELECT - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 * + col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-1556
SELECT + col1 + + col0 * cor0.col2 * col2 + 36 DIV 36 FROM tab0 AS cor0
----
133
26223
598528
skipif mysql # not compatible
query I rowsort label-1556
SELECT + col1 + + col0 * cor0.col2 * col2 + 36 / 36 FROM tab0 AS cor0
----
133
26223
598528
query I rowsort
SELECT - - 34 + + col1 + - col2 * + 26 FROM tab1 AS cor0
----
-1344
-1438
-2449
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 99 col1 FROM tab1 AS cor0
----
102
163
179
query I rowsort
SELECT + ( + col1 ) + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + col1 * 55 FROM tab0
----
4730
5005
5335
query I rowsort
SELECT + - tab2.col1 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT + - ( - 38 ) + - col2 AS col0 FROM tab2 cor0
----
0
11
12
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to 61c64d7c972af4105004f57e1913df08
query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
onlyif mysql # use DIV operator for integer division
query I rowsort label-1565
SELECT + 42 DIV col1 AS col1 FROM tab2
----
0
1
2
skipif mysql # not compatible
query I rowsort label-1565
SELECT + 42 / col1 AS col1 FROM tab2
----
0
1
2
query I rowsort
SELECT - 89 + col1 * + col0 FROM tab0 AS cor0
----
1975
3306
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-1567
SELECT DISTINCT - col2 DIV + tab0.col1 + - col0 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-1567
SELECT DISTINCT - col2 / + tab0.col1 + - col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT 6 * - col2 AS col2 FROM tab1
----
-324
-342
-576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1569
SELECT + CAST( NULL AS SIGNED ) / 92 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1569
SELECT + CAST ( NULL AS INTEGER ) / 92 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + + ( + cor0.col0 ) * col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1572
SELECT DISTINCT + cor0.col2 + CAST( - col2 + + col0 AS SIGNED ) FROM tab1 cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT + cor0.col2 + CAST ( - col2 + + col0 AS INTEGER ) FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1573
SELECT ALL col2 + CAST( col1 AS SIGNED ) DIV col1 AS col0 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL col2 + CAST ( col1 AS INTEGER ) / col1 AS col0 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT DISTINCT - cor0.col1 + col2 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT DISTINCT + + col1 * - 87 - - 40 * + col0 * - ( + col2 + col0 ) AS col2 FROM tab1 cor0
----
-310630
-564331
-9102
query I rowsort
SELECT DISTINCT 1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1577
SELECT DISTINCT - + col2 * + 34 + + col2 DIV + col1 AS col1 FROM tab1 cor0
----
-1834
-1933
-3257
skipif mysql # not compatible
query I rowsort label-1577
SELECT DISTINCT - + col2 * + 34 + + col2 / + col1 AS col1 FROM tab1 cor0
----
-1834
-1933
-3257
query I rowsort
SELECT ALL + col2 - ( + cor0.col0 ) * col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT + ( 61 ) + col1 * ( + 4 + + col1 ) FROM tab1 AS cor0
----
201
282
841
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1580
SELECT ALL CAST( 90 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
90
90
90
skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL CAST ( 90 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
90
90
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-1581
SELECT cor0.col1 DIV - 53 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1581
SELECT cor0.col1 / - 53 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1582
SELECT DISTINCT col1 * ( col2 ) DIV - tab2.col0 AS col0 FROM tab2
----
-119
-19
-8
skipif mysql # not compatible
query I rowsort label-1582
SELECT DISTINCT col1 * ( col2 ) / - tab2.col0 AS col0 FROM tab2
----
-119
-19
-8
query I rowsort
SELECT DISTINCT + + col2 * + col0 + col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT 4 * + 94 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 7880585803018c08f646180008320e30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + cor0.col0 ) col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT 38 * - col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-111
-2368
-2960
query I rowsort
SELECT - + col2 + ( - col0 ) FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT 4 * col2 + col2 AS col0 FROM tab2 AS cor0
----
130
135
190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + col1 col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT 83 * - cor0.col2 FROM tab2 cor0
----
-2158
-2241
-3154
onlyif mysql # use DIV operator for integer division
query I rowsort label-1591
SELECT + 48 DIV 28 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1591
SELECT + 48 / 28 AS col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT + + col2 * 9 + col0 FROM tab1 AS cor0
----
489
577
944
query I rowsort
SELECT 79 * 12 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 7105788c028d01b0c1e4d551a0d85b2c
query I rowsort
SELECT ALL - 23 AS col2 FROM tab0 AS cor0
----
-23
-23
-23
query I rowsort
SELECT - 84 + - col2 FROM tab0 AS cor0
----
-117
-166
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-1596
SELECT - 24 + col0 DIV + 47 AS col0 FROM tab0 AS cor0
----
-23
-24
-24
skipif mysql # not compatible
query I rowsort label-1596
SELECT - 24 + col0 / + 47 AS col0 FROM tab0 AS cor0
----
-23
-24
-24
query I rowsort
SELECT DISTINCT col0 + - col0 AS col2 FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT + ( col0 ) + - col0 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1599
SELECT - cor0.col1 * col2 + 4 * cor0.col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
-2828
-7458
291
skipif mysql # not compatible
query I rowsort label-1599
SELECT - cor0.col1 * col2 + 4 * cor0.col1 / + col2 AS col1 FROM tab0 AS cor0
----
-2828
-7458
291
query I rowsort
SELECT col2 + + col1 * + ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL + col1 + col2 * - 95 AS col1 FROM tab0 AS cor0
----
-3049
-7699
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * - tab0.col1 col1 FROM tab0
----
-3784
-4004
-4268
query I rowsort
SELECT DISTINCT + 39 - - col1 AS col1 FROM tab1
----
49
52
65
query I rowsort
SELECT - cor1.col1 + 13 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8131dd1928528f84832303d26a437392
query I rowsort
SELECT ALL - - cor0.col0 - + col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - 16 FROM tab2
----
-16
-16
-16
query I rowsort
SELECT 19 FROM tab0, tab1 cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
onlyif mysql # use DIV operator for integer division
query I rowsort label-1608
SELECT col2 + - col2 DIV col0 AS col0 FROM tab2
----
24
26
38
skipif mysql # not compatible
query I rowsort label-1608
SELECT col2 + - col2 / col0 AS col0 FROM tab2
----
24
26
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1609
SELECT + + col0 * col1 + col0 * 12 DIV - col1 FROM tab2 AS cor0
----
1288
215
4587
skipif mysql # not compatible
query I rowsort label-1609
SELECT + + col0 * col1 + col0 * 12 / - col1 FROM tab2 AS cor0
----
1288
215
4587
query I rowsort
SELECT + col2 * - col1 + - ( cor0.col2 ) FROM tab0 cor0
----
-2871
-7544
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1611
SELECT DISTINCT col2 DIV col2 + col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT col2 / col2 + col1 FROM tab1
----
11
14
27
query I rowsort
SELECT + col1 * + tab1.col1 AS col0 FROM tab1
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1613
SELECT DISTINCT col0 * col2 + CAST( - col1 + - col0 AS SIGNED ) AS col1 FROM tab1
----
133
3574
7587
skipif mysql # not compatible
query I rowsort label-1613
SELECT DISTINCT col0 * col2 + CAST ( - col1 + - col0 AS INTEGER ) AS col1 FROM tab1
----
133
3574
7587
query I rowsort
SELECT DISTINCT - 54 + tab2.col2 AS col1 FROM tab2
----
-16
-27
-28
onlyif mysql # use DIV operator for integer division
query I rowsort label-1615
SELECT col1 + col1 DIV - col2 AS col0 FROM tab0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-1615
SELECT col1 + col1 / - col2 AS col0 FROM tab0
----
0
84
90
query I rowsort
SELECT - ( + tab2.col0 ) * col0 AS col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ALL - 54 * col1 FROM tab2
----
-1674
-3186
-918
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1618
SELECT ALL - 69 + col2 * CAST( - col0 AS SIGNED ) FROM tab1
----
-231
-3717
-7749
skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL - 69 + col2 * CAST ( - col0 AS INTEGER ) FROM tab1
----
-231
-3717
-7749
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1619
SELECT DISTINCT cor0.col1 * + CAST( col1 AS SIGNED ) * cor0.col1 FROM tab0 AS cor0
----
636056
753571
912673
skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT cor0.col1 * + CAST ( col1 AS INTEGER ) * cor0.col1 FROM tab0 AS cor0
----
636056
753571
912673
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - - col0 * + ( + 34 ) AS col1 FROM tab0 AS cor0
----
1190
3026
816
query I rowsort
SELECT DISTINCT - col1 * cor0.col1 + col0 - - cor0.col0 * col2 * - 68 FROM tab2 cor0
----
-13806
-141307
-204346
query I rowsort
SELECT col0 * 9 AS col2 FROM tab2 AS cor0
----
63
702
711
query I rowsort
SELECT DISTINCT - + col0 * - 32 AS col2 FROM tab2 AS cor0
----
224
2496
2528
query I rowsort
SELECT + - col0 + + 95 FROM tab0 AS cor0
----
6
60
71
query I rowsort
SELECT DISTINCT - - cor0.col1 + - col2 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ALL - col0 + + col1 + tab2.col1 AS col0 FROM tab2
----
-45
40
55
query I rowsort
SELECT ( + 37 ) + + col0 * col1 * - col1 - - col0 AS col2 FROM tab1
----
-13403
-1988
-6299
query I rowsort
SELECT ALL + col2 * - col1 + + col0 * col0 FROM tab1 cor0
----
-1395
3526
5152
onlyif mysql # use DIV operator for integer division
query I rowsort label-1630
SELECT DISTINCT 16 DIV + 55 + col1 DIV 37 + col0 * cor0.col1 FROM tab2 AS cor0
----
1343
217
4603
skipif mysql # not compatible
query I rowsort label-1630
SELECT DISTINCT 16 / + 55 + col1 / 37 + col0 * cor0.col1 FROM tab2 AS cor0
----
1343
217
4603
query I rowsort
SELECT ALL + 24 + - col1 * - col1 FROM tab0 AS cor0
----
7420
8305
9433
query I rowsort
SELECT ALL - tab1.col0 + + 69 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to f2beb1dc7cf669a4c5d288b82e143eeb
query I rowsort
SELECT DISTINCT + ( col0 ) + + 95 AS col1 FROM tab2 AS cor0
----
102
173
174
query I rowsort
SELECT ALL + + 16 FROM tab2 cor0
----
16
16
16
query I rowsort
SELECT DISTINCT - 51 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-1636
SELECT ALL - col0 DIV + col0 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL - col0 / + col0 FROM tab2 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1637
SELECT DISTINCT - cor0.col2 + + cor0.col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT - cor0.col2 + + cor0.col1 / - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 - cor0.col0 col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT + - 51 FROM tab1 AS cor0
----
-51
-51
-51
query I rowsort
SELECT DISTINCT - - col2 + - col0 AS col0 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-1641
SELECT - col2 DIV col1 + + ( - col1 ) * - col0 FROM tab1 AS cor0
----
1033
635
76
skipif mysql # not compatible
query I rowsort label-1641
SELECT - col2 / col1 + + ( - col1 ) * - col0 FROM tab1 AS cor0
----
1033
635
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1642
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT col0 * col1 + + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - - cor0.col2 + - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1645
SELECT - + CAST( 67 AS SIGNED ) col1 FROM tab2 AS cor0
----
-67
-67
-67
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1645
SELECT - + CAST ( 67 AS INTEGER ) col1 FROM tab2 AS cor0
----
-67
-67
-67
query I rowsort
SELECT ALL col0 + col1 * - ( col2 + - col0 ) FROM tab0
----
-750
3333
726
query I rowsort
SELECT + col1 * + ( + ( col0 ) + col2 ) * + 3 AS col0 FROM tab0
----
10476
14706
46683
query I rowsort
SELECT + col0 * cor0.col2 + - col0 FROM tab0 AS cor0
----
0
7209
768
onlyif mysql # use DIV operator for integer division
query I rowsort label-1649
SELECT DISTINCT col1 DIV - 17 FROM tab0
----
-5
skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT col1 / - 17 FROM tab0
----
-5
query I rowsort
SELECT + + col1 * col0 + col1 FROM tab0 cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT - col2 * - col2 + - tab1.col2 * 78 FROM tab1
----
-1197
-1296
1728
query I rowsort
SELECT 85 * 66 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b0987442cfe81dea276dd9895d5ad5a6
query I rowsort
SELECT ALL ( - col1 ) * - 7 FROM tab0
----
602
637
679
query I rowsort
SELECT + 11 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT - 50 + - col2 AS col2 FROM tab1
----
-104
-107
-146
query I rowsort
SELECT - + col1 - - ( col0 * - col1 ) FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT - 10 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0
query I rowsort
SELECT - col1 - ( - ( col1 ) ) * 91 FROM tab0 AS cor0
----
7740
8190
8730
query I rowsort
SELECT DISTINCT + tab1.col2 * tab1.col1 AS col2 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1660
SELECT 6 DIV col0 + - cor0.col0 FROM tab1 AS cor0
----
-1
-64
-80
skipif mysql # not compatible
query I rowsort label-1660
SELECT 6 / col0 + - cor0.col0 FROM tab1 AS cor0
----
-1
-64
-80
query I rowsort
SELECT 13 + col0 * col2 AS col0 FROM tab0
----
48
7311
805
query I rowsort
SELECT DISTINCT - ( + col2 ) + - col0 AS col0 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT - 88 * + 7 - - col0 AS col0 FROM tab0
----
-527
-581
-592
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 74 + col2 ) col1 FROM tab0
----
107
156
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-1665
SELECT DISTINCT - ( + col2 ) DIV - col1 + col2 DIV + col0 FROM tab2
----
0
2
3
skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT - ( + col2 ) / - col1 + col2 / + col0 FROM tab2
----
0
2
3
query I rowsort
SELECT DISTINCT - - ( col1 ) * + cor0.col0 + - 0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + 76 AS col2 FROM tab0 AS cor0
----
76
76
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-1668
SELECT + tab2.col2 DIV col0 + + col2 FROM tab2
----
26
30
38
skipif mysql # not compatible
query I rowsort label-1668
SELECT + tab2.col2 / col0 + + col2 FROM tab2
----
26
30
38
query I rowsort
SELECT DISTINCT - 20 AS col2 FROM tab1
----
-20
query I rowsort
SELECT + 46 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
query I rowsort
SELECT DISTINCT ( + tab1.col0 ) AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT tab2.col1 + - 28 FROM tab2, tab1 AS cor0
----
-11
3
31
query I rowsort
SELECT 35 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
115
38
99
query I rowsort
SELECT - col2 * + ( cor0.col0 * cor0.col0 ) FROM tab1 cor0
----
-233472
-486
-614400
query I rowsort
SELECT + col0 * + ( cor0.col0 ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT - 83 AS col2 FROM tab2
----
-83
-83
-83
query I rowsort
SELECT + + col1 * col2 * - col0 AS col2 FROM tab2 cor0
----
-119652
-51034
-5859
query I rowsort
SELECT col1 * + 42 AS col2 FROM tab2 AS cor0
----
1302
2478
714
query I rowsort
SELECT ALL col0 * + 75 + col1 AS col1 FROM tab1 AS cor0
----
251
4810
6013
query I rowsort
SELECT DISTINCT - col0 + ( tab2.col2 ) + col1 FROM tab2
----
-24
51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1681
SELECT DISTINCT - ( + tab0.col2 ) + col2 DIV - col1 + + col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT - ( + tab0.col2 ) + col2 / - col1 + + col2 FROM tab0
----
0
query I rowsort
SELECT DISTINCT tab2.col0 + col0 AS col1 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT 36 + + col1 AS col2 FROM tab0
----
122
127
133
onlyif mysql # use DIV operator for integer division
query I rowsort label-1684
SELECT + col0 + + tab0.col2 DIV - col1 col1 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1684
SELECT + col0 + + tab0.col2 / - col1 col1 FROM tab0
----
24
35
89
query I rowsort
SELECT 20 + + col1 AS col2 FROM tab0
----
106
111
117
query I rowsort
SELECT tab2.col2 - 97 FROM tab2
----
-59
-70
-71
query I rowsort
SELECT ALL + 58 AS col0 FROM tab0 AS cor0
----
58
58
58
query I rowsort
SELECT DISTINCT ( col2 ) + + col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + 53 * col2 + col0 FROM tab1 AS cor0
----
2865
3085
5168
onlyif mysql # use DIV operator for integer division
query I rowsort label-1690
SELECT DISTINCT col2 DIV - 63 + col1 DIV - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-194
-88
-93
skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT col2 / - 63 + col1 / - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-194
-88
-93
query I rowsort
SELECT + + 49 FROM tab1 AS cor0
----
49
49
49
query I rowsort
SELECT + + cor0.col2 + col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT 78 * + col2 FROM tab1 cor0
----
4212
4446
7488
query I rowsort
SELECT ALL - 84 AS col0 FROM tab1 AS cor0
----
-84
-84
-84
query I rowsort
SELECT DISTINCT - 19 * - col2 AS col2 FROM tab2 AS cor0
----
494
513
722
onlyif mysql # use DIV operator for integer division
query I rowsort label-1696
SELECT col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-1696
SELECT col2 / + col1 AS col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT ALL + col0 * col2 * + col1 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-1698
SELECT DISTINCT - - 48 DIV col2 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT - - 48 / col2 FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT + col0 * col2 + + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL - - 87 + col2 FROM tab1 AS cor0
----
141
144
183
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 78 ) col1 FROM tab2
----
78
78
78
query I rowsort
SELECT + + 73 + - col1 FROM tab0 AS cor0
----
-13
-18
-24
query I rowsort
SELECT - col2 * col2 * col2 + - col0 AS col2 FROM tab2 AS cor0
----
-17654
-19690
-54951
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col0 * cor0.col2 * col1 col1 FROM tab0 AS cor0
----
3396
664200
68145
query I rowsort
SELECT + col2 + + col0 * - 34 AS col0 FROM tab0 AS cor0
----
-1189
-2944
-783
query I rowsort
SELECT ALL - col1 + + col2 * - col2 AS col0 FROM tab1 cor0
----
-2942
-3259
-9229
query I rowsort
SELECT DISTINCT + col0 * col1 * + col2 + - col0 FROM tab2 AS cor0
----
119574
50955
5852
query I rowsort
SELECT DISTINCT + cor0.col1 + ( col1 ) + col0 FROM tab0 AS cor0
----
196
229
271
query I rowsort
SELECT - - col0 - - cor0.col0 * 0 AS col2 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 81 + + col0 col2 FROM tab0 AS cor0
----
6990
7460
7892
query I rowsort
SELECT DISTINCT - col2 - 15 * - col2 FROM tab2 cor0
----
364
378
532
query I rowsort
SELECT ALL + cor0.col2 * ( 11 * col0 ) FROM tab2 AS cor0
----
2079
22308
33022
query I rowsort
SELECT ALL - col1 * 31 + col0 + - col2 * ( 11 ) AS col1 FROM tab1 AS cor0
----
-1379
-1397
-873
query I rowsort
SELECT DISTINCT cor0.col0 + ( cor0.col2 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + cor0.col2 - ( + cor0.col1 * - col1 ) FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT col0 * - col2 + + 94 FROM tab2 AS cor0
----
-1934
-2908
-95
query I rowsort
SELECT DISTINCT 56 + - col1 * + col2 FROM tab1 AS cor0
----
-1192
-1348
-514
query I rowsort
SELECT + col1 * 28 AS col2 FROM tab2
----
1652
476
868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * - 93 col1 FROM tab1
----
-5022
-5301
-8928
query I rowsort
SELECT ALL + col1 + - 37 AS col0 FROM tab1 AS cor0
----
-11
-24
-27
query I rowsort
SELECT DISTINCT + - ( - 58 ) * col0 AS col1 FROM tab0 AS cor0
----
1392
2030
5162
query I rowsort
SELECT col0 + col2 + - col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL col1 + 40 * + 3 * + col1 FROM tab0
----
10406
11011
11737
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1724
SELECT + col1 * CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-1724
SELECT + col1 * CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL + 33 * + 91 - + cor0.col0 AS col1 FROM tab0 AS cor0
----
2914
2968
2979
query I rowsort
SELECT + - cor0.col2 * - col2 + col1 FROM tab2 AS cor0
----
1461
735
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-1727
SELECT DISTINCT + 57 + col1 DIV col1 AS col1 FROM tab1 AS cor0
----
58
skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT + 57 + col1 / col1 AS col1 FROM tab1 AS cor0
----
58
query I rowsort
SELECT col1 + - col1 * col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT + - 93 AS col2 FROM tab1 AS cor0
----
-93
query I rowsort
SELECT DISTINCT - - 63 * + col0 FROM tab0 AS cor0
----
1512
2205
5607
query I rowsort
SELECT col0 * + col2 + - col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL 78 * + ( - col0 ) FROM tab0 cor0
----
-1872
-2730
-6942
query I rowsort
SELECT DISTINCT + ( 31 ) + + col0 * - 1 FROM tab2 cor0
----
-47
-48
24
query I rowsort
SELECT ALL col0 * + col1 + tab0.col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT 53 + col2 * - col2 + - col1 * - col1 FROM tab0
----
1610
6360
9461
query I rowsort
SELECT ALL ( 62 ) + + col2 * ( - col2 * + col2 ) FROM tab1
----
-157402
-185131
-884674
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * col2 col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL ( col2 ) * - col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 col1 FROM tab1 AS cor0
----
35
query I rowsort
SELECT + 97 + col1 * col1 * - 11 AS col1 FROM tab2 AS cor0
----
-10474
-3082
-38194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * + col1 col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - 48 + 19 * + col0 FROM tab0 AS cor0
----
1643
408
617
query I rowsort
SELECT ALL - col2 * - 73 AS col2 FROM tab2 AS cor0
----
1898
1971
2774
query I rowsort
SELECT - 21 FROM tab1, tab0 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757
query I rowsort
SELECT 63 + col1 FROM tab1
----
73
76
89
query I rowsort
SELECT DISTINCT - ( col2 ) AS col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT 42 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query I rowsort
SELECT + col1 * col0 + - 64 + col2 FROM tab0
----
2033
3332
8117
query I rowsort
SELECT ALL col0 - ( - col0 ) FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - tab0.col1 col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + cor0.col0 + ( col2 ) AS col1 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1753
SELECT DISTINCT - col0 + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1753
SELECT DISTINCT - col0 + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
query I rowsort
SELECT ALL + + col2 + + col1 * col0 AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT col0 + 43 FROM tab1 AS cor0
----
107
123
46
query I rowsort
SELECT ALL - col0 + - col2 AS col0 FROM tab0 cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1757
SELECT - + col1 * col2 DIV + col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-1757
SELECT - + col1 * col2 / + col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - 89 + col1 FROM tab0 AS cor0
----
-3
2
8
query I rowsort
SELECT DISTINCT 63 * - col0 AS col1 FROM tab1 AS cor0
----
-189
-4032
-5040
query I rowsort
SELECT ALL - - ( + col2 ) * 89 FROM tab1 AS cor0
----
4806
5073
8544
query I rowsort
SELECT 46 * col2 FROM tab0
----
1518
3772
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-1762
SELECT DISTINCT + ( - col2 ) DIV 18 FROM tab2
----
-1
-2
skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT + ( - col2 ) / 18 FROM tab2
----
-1
-2
query I rowsort
SELECT + 94 * col0 + 19 FROM tab2 AS cor0
----
677
7351
7445
query I rowsort
SELECT - - 61 * - col0 FROM tab0 AS cor0
----
-1464
-2135
-5429
onlyif mysql # use DIV operator for integer division
query I rowsort label-1765
SELECT - col1 * - col2 - col2 DIV col2 AS col0 FROM tab1 AS cor0
----
1247
1403
569
skipif mysql # not compatible
query I rowsort label-1765
SELECT - col1 * - col2 - col2 / col2 AS col0 FROM tab1 AS cor0
----
1247
1403
569
query I rowsort
SELECT 38 + cor0.col1 * 5 FROM tab1 AS cor0
----
103
168
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-1767
SELECT + col2 * col0 DIV + 86 - + 58 AS col0 FROM tab0 AS cor0
----
-49
-58
26
skipif mysql # not compatible
query I rowsort label-1767
SELECT + col2 * col0 / + 86 - + 58 AS col0 FROM tab0 AS cor0
----
-49
-58
26
query I rowsort
SELECT - col0 * + cor0.col0 + 29 + + col1 FROM tab1 AS cor0
----
-4057
-6358
46
query I rowsort
SELECT - col2 * - 67 FROM tab0 AS cor0
----
2211
5494
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col2 FROM tab0
----
52
query I rowsort
SELECT ALL 49 * + col2 + tab1.col1 + + col1 AS col1 FROM tab1
----
2698
2813
4730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 84 ) col1 FROM tab1 AS cor0
----
84
84
84
query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - - col0 * col1 * col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL + ( col2 ) + + col2 * ( - col0 ) FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT col0 + 2 * + col0 FROM tab0
----
105
267
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 col1 FROM tab1
----
51
query I rowsort
SELECT DISTINCT - ( 17 ) FROM tab1
----
-17
query I rowsort
SELECT ALL cor0.col0 + cor0.col0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 43cd4d6bf46fb9ce15caf369cb36598e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1780
SELECT ALL CAST( 48 AS SIGNED ) FROM tab0
----
48
48
48
skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL CAST ( 48 AS INTEGER ) FROM tab0
----
48
48
48
query I rowsort
SELECT ALL + col1 + - col1 * col2 * + col0 FROM tab2 cor0
----
-119593
-51017
-5828
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 29 col0 FROM tab2
----
29
query I rowsort
SELECT DISTINCT + col0 + cor0.col1 * col0 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1784
SELECT + CAST( 38 AS SIGNED ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
skipif mysql # not compatible
query I rowsort label-1784
SELECT + CAST ( 38 AS INTEGER ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT ALL - ( - tab1.col1 * ( + col1 ) ) AS col1 FROM tab1
----
100
169
676
query I rowsort
SELECT 76 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT - col2 + - col0 * - col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL + col2 * ( - tab2.col0 + tab2.col1 * col0 ) FROM tab2
----
117624
48032
5670
query I rowsort
SELECT DISTINCT 54 FROM tab0, tab1 AS cor0
----
54
query I rowsort
SELECT DISTINCT - cor0.col0 - tab2.col0 AS col2 FROM tab2, tab1, tab2 AS cor0
----
-14
-156
-157
-158
-85
-86
query I rowsort
SELECT col2 * ( col2 ) FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + + cor0.col1 * col2 AS col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL 28 - 74 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
query I rowsort
SELECT DISTINCT col0 * 81 * col2 FROM tab0
----
2835
591138
64152
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1795
SELECT + CAST( col0 AS SIGNED ) * col0 * - col1 FROM tab1 AS cor0
----
-234
-40960
-83200
skipif mysql # not compatible
query I rowsort label-1795
SELECT + CAST ( col0 AS INTEGER ) * col0 * - col1 FROM tab1 AS cor0
----
-234
-40960
-83200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1796
SELECT DISTINCT CAST( + 21 AS SIGNED ) AS col1 FROM tab1
----
21
skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT CAST ( + 21 AS INTEGER ) AS col1 FROM tab1
----
21
query I rowsort
SELECT 54 + + col1 * col0 * - 62 FROM tab1 cor0
----
-39626
-4782
-64426
query I rowsort
SELECT ALL ( + col1 ) + - col1 * col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT + - ( col0 ) * - col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1800
SELECT - CAST( NULL AS SIGNED ) * - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1800
SELECT - CAST ( NULL AS INTEGER ) * - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( + ( - col0 ) ) + ( + col2 ) * col2 + - 40 FROM tab2 AS cor0
----
1483
696
714
query I rowsort
SELECT + col1 * + 71 FROM tab1 cor0
----
1846
710
923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1803
SELECT + + CAST( NULL AS SIGNED ) * + col2 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1803
SELECT + + CAST ( NULL AS INTEGER ) * + col2 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - col0 * col2 col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT 70 + + 84 AS col1 FROM tab0 AS cor0
----
154
154
154
query I rowsort
SELECT DISTINCT - + 28 * 67 AS col0 FROM tab0 cor0
----
-1876
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
onlyif mysql # use DIV operator for integer division
query I rowsort label-1808
SELECT tab1.col1 * 88 DIV col2 AS col1 FROM tab1
----
11
15
42
skipif mysql # not compatible
query I rowsort label-1808
SELECT tab1.col1 * 88 / col2 AS col1 FROM tab1
----
11
15
42
query I rowsort
SELECT ALL col2 * tab2.col0 - tab2.col2 FROM tab2
----
162
2002
2964
query I rowsort
SELECT - cor1.col2 AS col0 FROM tab2, tab2 cor0, tab0, tab0 AS cor1
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79
query I rowsort
SELECT - tab1.col2 + col1 AS col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT 61 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT - col2 * tab1.col1 + tab1.col0 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT + 44 * col2 FROM tab2
----
1144
1188
1672
query I rowsort
SELECT 84 * col1 + - col1 AS col2 FROM tab0
----
7138
7553
8051
query I rowsort
SELECT DISTINCT 18 + - col0 AS col0 FROM tab1
----
-46
-62
15
query I rowsort
SELECT 46 FROM tab1, tab0 cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT ALL + + 18 * + col2 AS col1 FROM tab0 cor0
----
1476
18
594
query I rowsort
SELECT ALL ( col1 ) + cor0.col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT col2 * + 44 FROM tab0 cor0
----
1452
3608
44
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col0 AS REAL ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL col2 * col1 * ( col0 + tab0.col0 ) AS col1 FROM tab0
----
1328236
136224
6790
query I rowsort
SELECT + ( col2 ) - + 80 AS col0 FROM tab0
----
-47
-79
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-1825
SELECT ALL - + col1 * col1 DIV + col2 + + cor0.col0 FROM tab0 AS cor0
----
-11
-200
-9374
skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL - + col1 * col1 / + col2 + + cor0.col0 FROM tab0 AS cor0
----
-11
-200
-9374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1826
SELECT ALL - CAST( - 43 AS SIGNED ) FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL - CAST ( - 43 AS INTEGER ) FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
query I rowsort
SELECT - + col2 * cor0.col2 + ( col2 ) FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT DISTINCT cor0.col0 * - ( col2 ) + - col0 - + col0 FROM tab1 AS cor0
----
-168
-3776
-7840
query I rowsort
SELECT DISTINCT + col0 + - 73 + - col2 * - col1 AS col1 FROM tab2 AS cor0
----
1539
652
771
query I rowsort
SELECT + cor0.col1 + - ( - col1 ) AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL - + cor0.col0 + 83 AS col0 FROM tab0 AS cor0
----
-6
48
59
query I rowsort
SELECT ALL + col1 * + 65 + col1 * - col0 + col2 AS col2 FROM tab0
----
-2102
2911
3559
query I rowsort
SELECT - - col1 * - 49 * + 89 + + col1 + + ( 50 + col0 ) FROM tab0 AS cor0
----
-374886
-396621
-422835
query I rowsort
SELECT ALL col0 * col1 + ( col0 ) * - 66 FROM tab0 AS cor0
----
1085
2225
480
query I rowsort
SELECT DISTINCT + col0 + col0 * col1 FROM tab0 cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-1836
SELECT - + col1 + 46 DIV col1 AS col2 FROM tab2 cor0
----
-15
-30
-59
skipif mysql # not compatible
query I rowsort label-1836
SELECT - + col1 + 46 / col1 AS col2 FROM tab2 cor0
----
-15
-30
-59
query I rowsort
SELECT + col1 * 15 + col1 FROM tab1 AS cor0
----
160
208
416
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT col1 + + ( + col1 ) AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL - col2 + col2 * + ( + cor0.col0 ) AS col1 FROM tab1 AS cor0
----
108
3591
7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1841
SELECT DISTINCT - - col2 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT - - col2 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 96 AS col1 FROM tab1, tab2 AS cor0
----
96
query I rowsort
SELECT ( - tab1.col2 ) AS col1 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT DISTINCT col1 * - cor0.col2 + + col1 * col2 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1845
SELECT - col1 + ( 19 ) * - cor0.col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-36
-50
-78
skipif mysql # not compatible
query I rowsort label-1845
SELECT - col1 + ( 19 ) * - cor0.col1 / + col1 AS col2 FROM tab2 AS cor0
----
-36
-50
-78
query I rowsort
SELECT ALL - cor0.col1 * 44 + + col0 AS col0 FROM tab2 AS cor0
----
-1357
-2518
-669
query I rowsort
SELECT ALL col1 + + cor0.col0 * col1 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT ALL + + col2 * - col2 * col0 + col0 + cor0.col2 FROM tab2 AS cor0
----
-113959
-5069
-52624
query I rowsort
SELECT + 49 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
query I rowsort
SELECT + ( + 10 ) + + col1 FROM tab2 AS cor0
----
27
41
69
query I rowsort
SELECT ALL - 29 * cor0.col1 FROM tab0 AS cor0
----
-2494
-2639
-2813
query I rowsort
SELECT + + col0 * col1 + + col0 - + 54 * col0 AS col0 FROM tab2 cor0
----
-154
-2844
468
query I rowsort
SELECT ALL - - ( + col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT col1 + 76 - cor0.col2 AS col1 FROM tab1 AS cor0
----
-7
29
48
query I rowsort
SELECT DISTINCT + col0 + + cor0.col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
175
215
45
query I rowsort
SELECT - - 82 + 9 AS col0 FROM tab0 AS cor0
----
91
91
91
query I rowsort
SELECT - 37 * - 51 + - cor0.col0 AS col1 FROM tab2 cor0
----
1808
1809
1880
query I rowsort
SELECT 17 FROM tab1, tab1 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
onlyif mysql # use DIV operator for integer division
query I rowsort label-1859
SELECT col1 * col1 DIV col0 AS col2 FROM tab1
----
1
2
225
skipif mysql # not compatible
query I rowsort label-1859
SELECT col1 * col1 / col0 AS col2 FROM tab1
----
1
2
225
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1860
SELECT col2 * CAST( - 48 * - col1 AS SIGNED ) AS col2 FROM tab2
----
31008
40176
73632
skipif mysql # not compatible
query I rowsort label-1860
SELECT col2 * CAST ( - 48 * - col1 AS INTEGER ) AS col2 FROM tab2
----
31008
40176
73632
query I rowsort
SELECT - 35 * col1 + cor0.col0 - col0 FROM tab0 AS cor0
----
-3010
-3185
-3395
onlyif mysql # use DIV operator for integer division
query I rowsort label-1862
SELECT ALL col1 DIV + col0 + + col1 + + col0 col0 FROM tab0
----
113
134
181
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL col1 / + col0 + + col1 + + col0 col0 FROM tab0
----
113
134
181
query I rowsort
SELECT - 36 * - col0 + ( col2 ) FROM tab2 cor0
----
279
2834
2882
query I rowsort
SELECT - col1 + + col2 * + col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL + - 71 + - col2 AS col0 FROM tab2 AS cor0
----
-109
-97
-98
query I rowsort
SELECT ALL + 88 - cor0.col1 * - col0 * + 11 AS col2 FROM tab1 AS cor0
----
11528
7128
946
onlyif mysql # use DIV operator for integer division
query I rowsort label-1867
SELECT ALL 86 - cor0.col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
83
84
85
skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL 86 - cor0.col1 / + col0 AS col2 FROM tab0 AS cor0
----
83
84
85
query I rowsort
SELECT ALL cor0.col1 * col2 * col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) * - 96 + - col0 col2 FROM tab1 AS cor0
----
1168
2493
896
query I rowsort
SELECT DISTINCT + 57 + 82 * col1 * tab0.col1 FROM tab0
----
606529
679099
771595
query I rowsort
SELECT tab2.col2 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT 80 - - 80 FROM tab0
----
160
160
160
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1873
SELECT ALL + ( col1 ) + CAST( 32 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
122
2058
2573
skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL + ( col1 ) + CAST ( 32 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
122
2058
2573
query I rowsort
SELECT DISTINCT - col0 * - col0 * + ( 91 ) AS col0 FROM tab2 AS cor0
----
4459
553644
567931
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col0 FROM tab1 AS cor0
----
76
76
76
query I rowsort
SELECT - + col1 * + cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - tab2.col1 + + 37 FROM tab2, tab2 AS cor0
----
9 values hashing to 90f6d51ffd757c1e9a142feb80d5c44b
query I rowsort
SELECT + 20 AS col1 FROM tab2
----
20
20
20
query I rowsort
SELECT DISTINCT - + col2 * - col2 * - col2 + - col0 FROM tab0 AS cor0
----
-35961
-36
-551457
query I rowsort
SELECT DISTINCT + col2 * - col2 - 10 * + col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-29469
-81344
-971
query I rowsort
SELECT + 14 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 55 + tab1.col0 ) col0 FROM tab1
----
-52
25
9
query I rowsort
SELECT + col0 + - col1 * 16 AS col2 FROM tab1 cor0
----
-128
-413
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1884
SELECT 31 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-1884
SELECT 31 / col0 AS col2 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT DISTINCT 2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + ( + col0 ) AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT + + tab1.col1 * 31 AS col2 FROM tab1, tab0, tab2 AS cor0
----
310
403
806
query I rowsort
SELECT DISTINCT 86 * col2 FROM tab2
----
2236
2322
3268
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 * - 81 col2 FROM tab2
----
-6399
query I rowsort
SELECT ALL ( tab0.col1 ) * + col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - + col1 + - col0 * - 79 AS col0 FROM tab0 AS cor0
----
1810
2668
6940
onlyif mysql # use DIV operator for integer division
query I rowsort label-1892
SELECT + 66 DIV col1 AS col2 FROM tab2
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1892
SELECT + 66 / col1 AS col2 FROM tab2
----
1
2
3
query I rowsort
SELECT cor0.col0 * col1 * + 63 AS col2 FROM tab0 AS cor0
----
130032
213885
510237
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 col2 FROM tab0 AS cor0
----
58
58
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-59
query I rowsort
SELECT ALL + col1 * + 31 AS col1 FROM tab0 AS cor0
----
2666
2821
3007
query I rowsort
SELECT DISTINCT + cor0.col1 * - 24 + col1 * col1 FROM tab0 cor0
----
5332
6097
7081
query I rowsort
SELECT ALL - col1 * ( + col2 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1899
SELECT DISTINCT col2 DIV + 79 AS col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT col2 / + 79 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - + col1 * cor0.col2 * col0 FROM tab2 cor0
----
-119652
-51034
-5859
query I rowsort
SELECT + 9 + + tab0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 62eabbed21c8d12c3a0b7b427fb027f8
query I rowsort
SELECT 39 * 22 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 95112456b7976da224f46e09124f092b
query I rowsort
SELECT col1 * + 52 FROM tab0 AS cor0
----
4472
4732
5044
query I rowsort
SELECT + col0 * 87 AS col1 FROM tab0 AS cor0
----
2088
3045
7743
onlyif mysql # use DIV operator for integer division
query I rowsort label-1905
SELECT + col2 DIV + col0 - + col0 col0 FROM tab1
----
-64
-79
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1905
SELECT + col2 / + col0 - + col0 col0 FROM tab1
----
-64
-79
15
query I rowsort
SELECT + col0 * 54 + - col1 AS col0 FROM tab1 AS cor0
----
136
3446
4307
onlyif mysql # use DIV operator for integer division
query I rowsort label-1907
SELECT DISTINCT + col1 + col2 DIV col0 FROM tab0 cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT + col1 + col2 / col0 FROM tab0 cor0
----
87
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1908
SELECT DISTINCT + CAST( col0 AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL 49 * col2 + col1 FROM tab2 AS cor0
----
1333
1354
1879
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1910
SELECT ALL - - CAST( NULL AS SIGNED ) * - col0 + - col2 - col1 * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL - - CAST ( NULL AS INTEGER ) * - col0 + - col2 - col1 * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1911
SELECT + col0 + - ( col2 ) DIV + CAST( col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-1911
SELECT + col0 + - ( col2 ) / + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
7
77
78
query I rowsort
SELECT - col2 + - 53 AS col0 FROM tab1 AS cor0
----
-107
-110
-149
onlyif mysql # use DIV operator for integer division
query I rowsort label-1913
SELECT ALL + ( - 12 ) DIV + col2 + 59 AS col0 FROM tab1 AS cor0
----
59
59
59
skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL + ( - 12 ) / + col2 + 59 AS col0 FROM tab1 AS cor0
----
59
59
59
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col2 AS REAL ) * - col2 + col1 AS col2 FROM tab0 cor0
----
1175
6815
98
query I rowsort
SELECT + col1 + - col1 AS col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL + 76 * + col1 FROM tab2 AS cor0
----
1292
2356
4484
query I rowsort
SELECT + col0 + - col2 AS col1 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT ALL + - 25 AS col1 FROM tab0 AS cor0
----
-25
-25
-25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 + col2 col0 FROM tab2 AS cor0
----
43
44
55
query I rowsort
SELECT ALL + + col1 + col0 * col1 FROM tab0 cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-1921
SELECT ALL + - col0 DIV col0 + col0 * 53 FROM tab2 AS cor0
----
370
4133
4186
skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL + - col0 / col0 + col0 * 53 FROM tab2 AS cor0
----
370
4133
4186
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1922
SELECT - cor0.col2 + - CAST( col1 AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
-157
-265
-730
skipif mysql # not compatible
query I rowsort label-1922
SELECT - cor0.col2 + - CAST ( col1 AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT ALL col1 * - col1 + col0 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT - 55 FROM tab0, tab2 cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3
query I rowsort
SELECT ALL + ( + col0 * col1 ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT + ( - cor1.col2 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1927
SELECT CAST( NULL AS SIGNED ) * - 30 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1927
SELECT CAST ( NULL AS INTEGER ) * - 30 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + col1 * col2 + - 72 FROM tab1
----
1176
1332
498
onlyif mysql # use DIV operator for integer division
query I rowsort label-1929
SELECT + cor0.col0 DIV + col0 + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-1929
SELECT + cor0.col0 / + col0 + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT ALL col2 + - col2 * - 21 FROM tab1
----
1188
1254
2112
query I rowsort
SELECT - - 9 AS col2 FROM tab2 AS cor0
----
9
9
9
query I rowsort
SELECT - 6 * col2 FROM tab1 AS cor0
----
-324
-342
-576
query I rowsort
SELECT DISTINCT - 91 * col2 FROM tab0 AS cor0
----
-3003
-7462
-91
query I rowsort
SELECT ALL cor1.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - ( + 28 ) FROM tab1
----
-28
-28
-28
query I rowsort
SELECT - tab2.col1 + 13 FROM tab2
----
-18
-4
-46
query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab1 AS cor0
----
13
query I rowsort
SELECT ALL col0 * - cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + col0 - tab1.col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT ALL col2 + col1 AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT + 73 AS col2 FROM tab0, tab1, tab2 AS cor0
----
73
query I rowsort
SELECT col1 * col0 * - 76 - + ( col2 ) * 72 AS col0 FROM tab0
----
-159240
-258092
-621428
onlyif mysql # use DIV operator for integer division
query I rowsort label-1943
SELECT ALL - col0 + + col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
-11
-64
-80
skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL - col0 + + col1 / - col0 AS col2 FROM tab1 AS cor0
----
-11
-64
-80
query I rowsort
SELECT ALL - + ( - col1 ) - ( - col2 ) AS col0 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1945
SELECT ( col2 ) DIV - ( col0 ) FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-1945
SELECT ( col2 ) / - ( col0 ) FROM tab1
----
-1
-18
0
query I rowsort
SELECT DISTINCT - 98 + tab2.col2 * col2 AS col1 FROM tab2
----
1346
578
631
query I rowsort
SELECT + 33 + col2 FROM tab1
----
129
87
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 col1 FROM tab0, tab1, tab1 AS cor0, tab2
----
82
query I rowsort
SELECT + 49 FROM tab0, tab0 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT 62 * - 54 AS col1 FROM tab1 AS cor0
----
-3348
-3348
-3348
query I rowsort
SELECT DISTINCT + + 40 * + 90 FROM tab0 AS cor0
----
3600
query I rowsort
SELECT + col2 * - col2 * cor0.col1 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT + col0 * - col2 * + col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT - col2 + - 66 * col0 FROM tab0
----
-1617
-2311
-5956
query I rowsort
SELECT ALL - tab1.col2 + + col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT ALL tab2.col0 * - 19 + tab2.col0 + + tab2.col2 FROM tab2
----
-1378
-1384
-99
query I rowsort
SELECT ALL - - col1 * - 86 AS col2 FROM tab1 AS cor0
----
-1118
-2236
-860
query I rowsort
SELECT DISTINCT + + ( + col2 ) * - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT + + ( - col2 ) * + col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL 65 AS col0 FROM tab1 AS cor0
----
65
65
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1961
SELECT DISTINCT CAST( - cor0.col0 AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT CAST ( - cor0.col0 AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + + col2 + - col2 * + col1 * + col2 AS col1 FROM tab2 AS cor0
----
-22572
-24510
-39858
query I rowsort
SELECT 94 * - col2 - + tab2.col1 AS col2 FROM tab2
----
-2503
-2569
-3589
query I rowsort
SELECT 52 * + col2 FROM tab2 AS cor0
----
1352
1404
1976
query I rowsort
SELECT ALL - ( - ( cor0.col2 ) ) * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - 25 + - col1 * + col2 FROM tab2 AS cor0
----
-1559
-671
-862
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1967
SELECT + + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-1967
SELECT + + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + ( - ( col0 ) ) * ( col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + cor1.col2 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + 88 * col2 FROM tab2
----
2288
2376
3344
query I rowsort
SELECT DISTINCT + 34 AS col0 FROM tab0
----
34
query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 - col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL col0 * + col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT - + col2 * + cor0.col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + 13 AS col1 FROM tab0, tab2, tab0 cor0
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT 75 * + col0 * col1 AS col1 FROM tab2 AS cor0
----
100725
16275
345150
query I rowsort
SELECT - col2 + + col2 * col1 FROM tab0 cor0
----
2805
7380
96
query I rowsort
SELECT + - 78 * + col1 AS col2 FROM tab0 AS cor0
----
-6708
-7098
-7566
query I rowsort
SELECT ( + col1 ) * col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - col1 * + col0 * col0 AS col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT ALL - + col1 + + ( col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col2 * 43 FROM tab1 cor0
----
2322
2451
4128
query I rowsort
SELECT ALL col1 * + col2 * - col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT - col1 * ( cor0.col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL cor0.col1 * - cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT + col1 * col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-1987
SELECT - + cor0.col1 * ( col0 * - col1 ) + + 18 * cor0.col0 DIV col2 FROM tab0 cor0
----
177517
329945
737028
skipif mysql # not compatible
query I rowsort label-1987
SELECT - + cor0.col1 * ( col0 * - col1 ) + + 18 * cor0.col0 / col2 FROM tab0 cor0
----
177517
329945
737028
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT + col0 + - cor0.col2 * col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT - cor0.col2 + col0 FROM tab1 cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1991
SELECT ALL - col2 - 90 DIV + col1 FROM tab1 AS cor0
----
-102
-57
-66
skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL - col2 - 90 / + col1 FROM tab1 AS cor0
----
-102
-57
-66
query I rowsort
SELECT DISTINCT - col0 * + 84 AS col2 FROM tab0 AS cor0
----
-2016
-2940
-7476
onlyif mysql # use DIV operator for integer division
query I rowsort label-1993
SELECT - col2 + 8 DIV + 60 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-1993
SELECT - col2 + 8 / + 60 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT col1 + col1 * - col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT + + col1 + col1 * 56 FROM tab1 AS cor0
----
1482
570
741
onlyif mysql # use DIV operator for integer division
query I rowsort label-1996
SELECT - col1 DIV 12 - col0 FROM tab1 AS cor0
----
-5
-64
-81
skipif mysql # not compatible
query I rowsort label-1996
SELECT - col1 / 12 - col0 FROM tab1 AS cor0
----
-5
-64
-81
query I rowsort
SELECT ALL + col0 * cor0.col2 * - col0 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT ALL - cor0.col0 * ( + col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - 29 + - col1 FROM tab2 AS cor0
----
-46
-60
-88
query I rowsort
SELECT - col1 * - cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
234
40960
83200
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to ca4c79a162f92454e0544707b897521a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2002
SELECT ALL + col2 * col1 + col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL + col2 * col1 + col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 + col2 * + col2 + col2 AS col2 FROM tab1
----
3024
3363
9408
query I rowsort
SELECT ALL tab2.col2 AS col2 FROM tab2, tab1 AS cor0, tab1, tab0 cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT ALL col2 + - col1 * col1 + col1 FROM tab0
----
-7277
-8108
-9311
query I rowsort
SELECT + cor0.col0 * + col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT tab1.col0 AS col0 FROM tab1, tab2, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + col0 + + 2 FROM tab1 AS cor0
----
5
66
82
query I rowsort
SELECT ALL + 17 FROM tab0, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT DISTINCT 60 AS col2 FROM tab2, tab0 cor0
----
60
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0, tab0 AS cor1
----
3645 values hashing to b223aa53e3aafe0f3f3f59048cc7a0d2
query I rowsort
SELECT ( - 99 ) * - col0 AS col2 FROM tab1
----
297
6336
7920
query I rowsort
SELECT 15 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT DISTINCT ( + 54 ) * - col1 + - ( - col0 ) + col0 FROM tab1
----
-1398
-412
-542
query I rowsort
SELECT ALL + ( 9 ) * cor0.col2 AS col1 FROM tab1 AS cor0
----
486
513
864
query I rowsort
SELECT ( + col1 ) + col1 - 7 AS col2 FROM tab2 AS cor0
----
111
27
55
query I rowsort
SELECT DISTINCT + - col1 * col1 + col2 * + col2 AS col1 FROM tab2 AS cor0
----
-232
-2805
1155
query I rowsort
SELECT ALL + - 99 FROM tab2 AS cor0
----
-99
-99
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-2019
SELECT 67 DIV + 48 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2019
SELECT 67 / + 48 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - 25 + ( col0 ) FROM tab2 AS cor0
----
-18
53
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-2021
SELECT - - 78 DIV col0 AS col0 FROM tab2 cor0
----
0
1
11
skipif mysql # not compatible
query I rowsort label-2021
SELECT - - 78 / col0 AS col0 FROM tab2 cor0
----
0
1
11
query I rowsort
SELECT ALL 19 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2023
SELECT ALL - ( col1 ) * - CAST( + col0 + - col2 AS SIGNED ) FROM tab0 AS cor0
----
-774
3298
637
skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL - ( col1 ) * - CAST ( + col0 + - col2 AS INTEGER ) FROM tab0 AS cor0
----
-774
3298
637
query I rowsort
SELECT DISTINCT 75 * + col1 FROM tab1
----
1950
750
975
query I rowsort
SELECT + 81 * col2 * col0 AS col2 FROM tab1 AS cor0
----
13122
295488
622080
query I rowsort
SELECT ALL cor0.col1 - + 64 FROM tab0, tab2 AS cor0
----
9 values hashing to 5bec0845f2dc524435266501df970599
query I rowsort
SELECT + - cor0.col2 * col1 + + ( - col1 ) * + col1 AS col1 FROM tab2 cor0
----
-1798
-5015
-935
query I rowsort
SELECT - ( col2 ) - ( - cor0.col2 * + col0 + + 68 ) AS col2 FROM tab2 AS cor0
----
1934
2896
94
query I rowsort
SELECT + 60 * col1 + + col1 FROM tab2 AS cor0
----
1037
1891
3599
query I rowsort
SELECT - 41 + cor0.col2 * col0 FROM tab0 cor0
----
-6
7257
751
query I rowsort
SELECT - col2 + + col1 * + col1 AS col1 FROM tab2 AS cor0
----
251
3455
934
onlyif mysql # use DIV operator for integer division
query I rowsort label-2032
SELECT 71 + + col2 * CAST( - 38 AS SIGNED ) DIV - col2 AS col2 FROM tab1 AS cor0
----
109
109
109
skipif mysql # not compatible
query I rowsort label-2032
SELECT 71 + + col2 * CAST ( - 38 AS INTEGER ) / - col2 AS col2 FROM tab1 AS cor0
----
109
109
109
query I rowsort
SELECT + 3 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT 4 * + cor0.col0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to d7ba7ed61b7057db35c81f7023c2891b
onlyif mysql # use DIV operator for integer division
query I rowsort label-2035
SELECT ALL + col2 * 21 DIV - 73 FROM tab0 AS cor0
----
-23
-9
0
skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL + col2 * 21 / - 73 FROM tab0 AS cor0
----
-23
-9
0
query I rowsort
SELECT - cor0.col0 * 65 AS col2 FROM tab1 AS cor0
----
-195
-4160
-5200
query I rowsort
SELECT col0 + ( col0 ) * + cor0.col0 + col1 * col0 * - col1 FROM tab0 AS cor0
----
-176904
-328055
-728999
query I rowsort
SELECT col2 * 82 AS col0 FROM tab2 AS cor0
----
2132
2214
3116
onlyif mysql # use DIV operator for integer division
query I rowsort label-2039
SELECT DISTINCT - col1 + + col2 DIV + col0 FROM tab2 AS cor0
----
-17
-28
-59
skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT - col1 + + col2 / + col0 FROM tab2 AS cor0
----
-17
-28
-59
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0, tab0 cor2
----
3645 values hashing to b223aa53e3aafe0f3f3f59048cc7a0d2
query I rowsort
SELECT ( cor0.col1 + cor0.col0 ) AS col0 FROM tab2, tab1 cor0
----
9 values hashing to d994d266bacb99d3939b70b2c7903ce8
query I rowsort
SELECT + col2 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + 52 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT 11 - col1 * - col2 FROM tab1
----
1259
1415
581
onlyif mysql # use DIV operator for integer division
query I rowsort label-2045
SELECT ALL - tab1.col1 DIV + 88 - - col0 AS col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL - tab1.col1 / + 88 - - col0 AS col0 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - 82 col1 FROM tab2
----
23
51
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 14 col0 FROM tab1 AS cor0
----
-14
-14
-14
onlyif mysql # use DIV operator for integer division
query I rowsort label-2048
SELECT ALL - + CAST( + 38 AS SIGNED ) DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL - + CAST ( + 38 AS INTEGER ) / + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2050
SELECT - + CAST( NULL AS SIGNED ) * 82 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2050
SELECT - + CAST ( NULL AS INTEGER ) * 82 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( ( - col0 ) ) * + col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT 98 AS col0 FROM tab0 cor0
----
98
98
98
query I rowsort
SELECT + col1 * - col2 - + col0 FROM tab0 cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL 44 + + col2 AS col0 FROM tab2 AS cor0
----
70
71
82
query I rowsort
SELECT DISTINCT 65 * cor0.col2 * - ( col1 ) FROM tab2 AS cor0
----
-41990
-54405
-99710
query I rowsort
SELECT col2 * 95 FROM tab0
----
3135
7790
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2057
SELECT ALL col2 * + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL col2 * + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * - col2 + ( - 79 ) FROM tab1 AS cor0
----
1169
1325
491
query I rowsort
SELECT DISTINCT - 19 * col0 AS col1 FROM tab1 cor0
----
-1216
-1520
-57
query I rowsort
SELECT 26 + col0 FROM tab2 AS cor0
----
104
105
33
query I rowsort
SELECT ALL + - 62 * col1 + cor0.col2 FROM tab1 AS cor0
----
-1558
-563
-710
onlyif mysql # use DIV operator for integer division
query I rowsort label-2062
SELECT ALL - col1 + cor0.col0 DIV 73 AS col1 FROM tab2 AS cor0
----
-16
-31
-58
skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL - col1 + cor0.col0 / 73 AS col1 FROM tab2 AS cor0
----
-16
-31
-58
query I rowsort
SELECT + ( col0 ) * - col0 - col0 AS col1 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT DISTINCT + col2 * col1 + ( - col2 + col0 * - col0 ) AS col2 FROM tab2 AS cor0
----
-4576
-5633
761
query I rowsort
SELECT DISTINCT + col0 * - col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT - + col2 * + col2 + + col0 AS col0 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT ALL + ( + 41 ) FROM tab2
----
41
41
41
query I rowsort
SELECT 46 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT ALL + 17 * 64 FROM tab1
----
1088
1088
1088
onlyif mysql # use DIV operator for integer division
query I rowsort label-2070
SELECT 96 * col2 DIV tab2.col0 AS col2 FROM tab2
----
32
370
46
skipif mysql # not compatible
query I rowsort label-2070
SELECT 96 * col2 / tab2.col0 AS col2 FROM tab2
----
32
370
46
query I rowsort
SELECT ALL - 43 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c
onlyif mysql # use DIV operator for integer division
query I rowsort label-2072
SELECT + col2 * + col0 + tab0.col2 DIV + tab0.col1 AS col0 FROM tab0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-2072
SELECT + col2 * + col0 + tab0.col2 / + tab0.col1 AS col0 FROM tab0
----
35
7298
792
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 AS cor2, tab2 cor3
----
3645 values hashing to ee83821bd928a072bc435d7135362ca1
query I rowsort
SELECT ALL + + col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT col2 + + 74 AS col2 FROM tab2 AS cor0
----
100
101
112
query I rowsort
SELECT col1 * 37 * + col2 FROM tab0 AS cor0
----
105006
276094
3589
onlyif mysql # use DIV operator for integer division
query I rowsort label-2077
SELECT DISTINCT col1 + 29 DIV cor0.col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT col1 + 29 / cor0.col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - col2 * col2 + col0 + + col1 AS col0 FROM tab1 AS cor0
----
-2887
-3175
-9123
query I rowsort
SELECT ALL + cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2080
SELECT - col2 + CAST( NULL AS SIGNED ) * - 77 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2080
SELECT - col2 + CAST ( NULL AS INTEGER ) * - 77 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 + 64 * + col1 FROM tab2 AS cor0
----
1126
2011
3802
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * ( + cor0.col2 * + col0 + col1 ) col0 FROM tab0 AS cor0
----
-132
-28974
-605898
query I rowsort
SELECT ALL + col1 * 74 AS col1 FROM tab0 AS cor0
----
6364
6734
7178
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + + cor0.col0 * col2 col0 FROM tab0 AS cor0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 * - 80 col1 FROM tab1 AS cor0
----
6160
6160
6160
query I rowsort
SELECT + + ( - col2 ) * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - - col2 + 68 AS col1 FROM tab0 AS cor0
----
101
150
69
query I rowsort
SELECT DISTINCT + - ( + ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 + col2 * + col2 col0 FROM tab0 AS cor0
----
1113
25
6748
query I rowsort
SELECT DISTINCT - ( 94 ) - tab2.col0 FROM tab2, tab1 cor0
----
-101
-172
-173
query I rowsort
SELECT ALL 40 * + col0 + + col0 AS col0 FROM tab2 cor0
----
287
3198
3239
onlyif mysql # use DIV operator for integer division
query I rowsort label-2092
SELECT ALL - col0 DIV col1 + + 15 FROM tab1 AS cor0
----
15
9
9
skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL - col0 / col1 + + 15 FROM tab1 AS cor0
----
15
9
9
query I rowsort
SELECT 92 + + col0 * + col1 AS col0 FROM tab2 cor0
----
1435
309
4694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - 50 + - col1 * 78 + cor0.col0 FROM tab1 AS cor0
----
-2075
-766
-984
query I rowsort
SELECT - col2 + col2 * + col2 AS col1 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT ALL + 48 * + col2 FROM tab0 AS cor0
----
1584
3936
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-2098
SELECT DISTINCT + col0 + col0 DIV + ( 1 * col1 ) FROM tab2 AS cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT + col0 + col0 / + ( 1 * col1 ) FROM tab2 AS cor0
----
7
79
83
query I rowsort
SELECT DISTINCT - col0 + tab0.col0 * 13 AS col1 FROM tab0
----
1068
288
420
query I rowsort
SELECT col2 * col1 - col1 FROM tab0
----
0
2752
7371
query I rowsort
SELECT - col1 + col1 * - 68 FROM tab0
----
-5934
-6279
-6693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * - 15 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 61107d9051fd3c080519a11193445265
query I rowsort
SELECT DISTINCT 30 + + col2 FROM tab1
----
126
84
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + col2 col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT cor0.col1 * 69 FROM tab2 AS cor0
----
1173
2139
4071
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2106
SELECT ALL - col1 + CAST( 67 + col1 AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0
----
-6653
-717
-9887
skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL - col1 + CAST ( 67 + col1 AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0
----
-6653
-717
-9887
query I rowsort
SELECT + col1 + + col2 * + tab2.col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL col2 + - col0 * 19 FROM tab1
----
-1159
-1424
-3
query I rowsort
SELECT DISTINCT + tab1.col0 * + col1 * 36 FROM tab1
----
23040
2808
37440
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
onlyif mysql # use DIV operator for integer division
query I rowsort label-2111
SELECT - col1 * col1 + + col1 DIV col2 AS col0 FROM tab1
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-2111
SELECT - col1 * col1 + + col1 / col2 AS col0 FROM tab1
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2112
SELECT ALL - col2 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL - col2 * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + - col2 * + 34 AS col1 FROM tab2 AS cor0
----
-1330
-910
-945
query I rowsort
SELECT DISTINCT - col0 * 76 + - col1 AS col1 FROM tab1 AS cor0
----
-254
-4874
-6093
query I rowsort
SELECT DISTINCT tab1.col1 * - col1 + + col0 + - ( - 29 ) * col1 FROM tab1
----
254
288
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-2116
SELECT - col2 DIV + 19 AS col2 FROM tab0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-2116
SELECT - col2 / + 19 AS col2 FROM tab0
----
-1
-4
0
query I rowsort
SELECT DISTINCT ( - tab2.col1 ) * col2 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT cor0.col2 * - col2 * + col1 FROM tab0 cor0
----
-611884
-93654
-97
query I rowsort
SELECT - - 49 FROM tab1 cor0
----
49
49
49
query I rowsort
SELECT col2 + - 59 * col0 + 99 FROM tab0
----
-1284
-1965
-5070
onlyif mysql # use DIV operator for integer division
query I rowsort label-2121
SELECT col2 DIV 85 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2121
SELECT col2 / 85 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT 37 * - 54 + col0 + + col2 FROM tab1
----
-1822
-1877
-1941
query I rowsort
SELECT 53 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT DISTINCT col1 + + 90 FROM tab2
----
107
121
149
query I rowsort
SELECT DISTINCT + col2 + 34 FROM tab0
----
116
35
67
query I rowsort
SELECT - col0 * + col1 + + col2 + cor0.col2 AS col1 FROM tab1 cor0
----
-526
-848
30
query I rowsort
SELECT DISTINCT + col2 * + col0 + col0 * cor0.col2 FROM tab1 cor0
----
15360
324
7296
query I rowsort
SELECT ALL - 13 - col1 * ( - col2 ) AS col1 FROM tab2 AS cor0
----
1521
633
824
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + + col0 * col2 + ( col1 ) - col2 FROM tab0 AS cor0
----
131
7307
845
query I rowsort
SELECT - - ( - col0 ) * - 67 + - ( col2 * - col0 ) AS col2 FROM tab1 AS cor0
----
13040
363
7936
query I rowsort
SELECT DISTINCT - col0 + + col1 * col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL + col0 + + col2 * 46 + + col1 FROM tab1 AS cor0
----
2513
2696
4509
query I rowsort
SELECT - - 78 FROM tab1 AS cor0
----
78
78
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2135
SELECT - 22 * col0 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2135
SELECT - 22 * col0 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col2 col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + col1 - + col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - tab1.col1 - col0 * col1 FROM tab1
----
-104
-1053
-650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 col0 FROM tab0, tab2 AS cor0
----
-9
query I rowsort
SELECT + 92 + col1 AS col0 FROM tab0 AS cor0
----
178
183
189
query I rowsort
SELECT - 33 * col1 + col0 + cor0.col1 * + col0 FROM tab0 AS cor0
----
-750
229
5185
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 * + col0 col0 FROM tab0 AS cor0
----
1322
662
8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * + col2 + + 1 * + 40 + + cor0.col0 col1 FROM tab1 AS cor0
----
2959
3353
9336
onlyif mysql # use DIV operator for integer division
query I rowsort label-2144
SELECT DISTINCT + 73 DIV col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT + 73 / col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL 97 * - col2 AS col2 FROM tab2 AS cor0
----
-2522
-2619
-3686
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 + + col1 + + 97 * - 68 col0 FROM tab0 cor0
----
-6590
-6596
-6601
query I rowsort
SELECT DISTINCT + cor1.col0 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT ( 38 ) * - col1 FROM tab0
----
-3268
-3458
-3686
query I rowsort
SELECT - col0 * + col2 + + cor0.col1 + + col1 * - col0 * ( + 80 ) FROM tab2 AS cor0
----
-110425
-17518
-370129
query I rowsort
SELECT + - col2 - 51 FROM tab2 AS cor0
----
-77
-78
-89
query I rowsort
SELECT - col0 + + ( - 76 ) FROM tab0 AS cor0
----
-100
-111
-165
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142
query I rowsort
SELECT DISTINCT + 74 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
74
query I rowsort
SELECT DISTINCT - 77 * - 98 AS col2 FROM tab0 AS cor0
----
7546
query I rowsort
SELECT ALL + 77 + - cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
-1171
-1327
-493
query I rowsort
SELECT + - 29 * - cor0.col2 FROM tab0 AS cor0
----
2378
29
957
query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2158
SELECT + - CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2158
SELECT + - CAST ( NULL AS REAL ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( 57 ) FROM tab1 AS cor0
----
57
query I rowsort
SELECT DISTINCT + ( 46 ) * col1 * 64 FROM tab1 AS cor0
----
29440
38272
76544
onlyif mysql # use DIV operator for integer division
query I rowsort label-2161
SELECT ALL + + col2 + + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
57
72
97
skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL + + col2 + + col2 / col0 AS col1 FROM tab1 AS cor0
----
57
72
97
query I rowsort
SELECT - cor0.col2 * col2 - col0 AS col0 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT DISTINCT - - tab2.col2 FROM tab0, tab1, tab2 AS cor0, tab2
----
26
27
38
query I rowsort
SELECT - + col2 + + col0 AS col1 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT col0 * col2 + col2 + col2 FROM tab2 cor0
----
2080
243
3078
query I rowsort
SELECT ALL - col0 - ( col0 + - col2 ) AS col0 FROM tab2 AS cor0
----
-120
-130
13
query I rowsort
SELECT ALL - + 12 * col1 + col2 FROM tab1 AS cor0
----
-258
-60
-63
query I rowsort
SELECT col0 + + 51 * + col1 FROM tab2 AS cor0
----
1588
3087
946
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 AS REAL ) + + col0 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - col1 * 58 AS col0 FROM tab2 cor0
----
-1798
-3422
-986
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 47 col1 FROM tab1
----
-141
-3008
-3760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT ALL - 38 + col0 FROM tab2
----
-31
40
41
query I rowsort
SELECT col2 + + col0 + col0 FROM tab0
----
260
71
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col0 AS REAL ) * - col0 - tab1.col2 col1 FROM tab1
----
-4153
-63
-6496
query I rowsort
SELECT - col0 * - 70 * col0 + ( col2 ) + + col2 FROM tab2
----
3484
425932
436946
query I rowsort
SELECT - + ( ( col0 ) ) + + col2 * + col2 * - col2 FROM tab0 AS cor0
----
-35961
-36
-551457
query I rowsort
SELECT ALL + 42 + 62 AS col2 FROM tab0 cor0
----
104
104
104
query I rowsort
SELECT DISTINCT + col1 * - col2 + - cor0.col1 FROM tab2 AS cor0
----
-1593
-663
-868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2180
SELECT - CAST( NULL AS SIGNED ) + 88 / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2180
SELECT - CAST ( NULL AS INTEGER ) + 88 / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2181
SELECT DISTINCT - col1 + 8 DIV col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT - col1 + 8 / col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - col0 * col2 - - col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT - + 49 * + col0 AS col1 FROM tab2 AS cor0
----
-343
-3822
-3871
query I rowsort
SELECT + ( - cor0.col1 ) + col1 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2185
SELECT CAST( NULL AS SIGNED ) - - 75 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2185
SELECT CAST ( NULL AS INTEGER ) - - 75 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2186
SELECT CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2186
SELECT CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2187
SELECT DISTINCT - - CAST( + 49 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
49
skipif mysql # not compatible
query I rowsort label-2187
SELECT DISTINCT - - CAST ( + 49 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
49
query I rowsort
SELECT ALL + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + + cor0.col0 * + 42 FROM tab1 AS cor0
----
126
2688
3360
query I rowsort
SELECT 34 FROM tab1, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT DISTINCT - col2 * 68 AS col0 FROM tab2
----
-1768
-1836
-2584
query I rowsort
SELECT - tab0.col1 FROM tab0, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT col2 - 93 FROM tab1
----
-36
-39
3
query I rowsort
SELECT + - cor0.col0 * ( 99 ) AS col1 FROM tab2 AS cor0
----
-693
-7722
-7821
query I rowsort
SELECT ALL + col1 * - 97 FROM tab0 AS cor0
----
-8342
-8827
-9409
query I rowsort
SELECT ALL - col2 * + 50 * + col0 AS col2 FROM tab1 AS cor0
----
-182400
-384000
-8100
query I rowsort
SELECT ALL + col1 + 5 FROM tab2 AS cor0
----
22
36
64
query I rowsort
SELECT DISTINCT col1 + + 43 - col2 AS col1 FROM tab0 AS cor0
----
139
52
96
query I rowsort
SELECT + col1 + + ( col2 ) * col0 AS col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT + col2 - 56 FROM tab1 AS cor0
----
-2
1
40
query I rowsort
SELECT - - cor0.col2 * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT - - cor0.col1 * + col1 * col2 + col1 * col1 AS col1 FROM tab2 cor0
----
11271
26908
93987
query I rowsort
SELECT DISTINCT col0 * col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE NULL <> ( col2 * + col1 + cor0.col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2206
SELECT ALL + col2 + col0 + col1 DIV - col1 col1 FROM tab1 AS cor0
----
120
175
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL + col2 + col0 + col1 / - col1 col1 FROM tab1 AS cor0
----
120
175
56
query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1 * + col1 + + col1 * col1 )
----
query I rowsort
SELECT ALL - col1 + - col1 * - col1 FROM tab0 AS cor0
----
7310
8190
9312
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + col1
----
query I rowsort
SELECT col0 - tab0.col1 AS col0 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT col0 * col0 * cor0.col2 FROM tab0 AS cor0
----
1225
19008
649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - col1 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * col0 + + col0 * - col2 - col2 * col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - col0 + cor0.col2 + cor0.col2 FROM tab2 AS cor0 WHERE NULL >= ( + col0 * + cor0.col1 * - cor0.col0 - + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2215
SELECT DISTINCT col2 * col2 DIV col0 AS col1 FROM tab0 cor0
----
0
45
75
skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT col2 * col2 / col0 AS col1 FROM tab0 cor0
----
0
45
75
query I rowsort
SELECT col2 + - col2 * + col1 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT col0 * col2 + col0 * + col0 AS col2 FROM tab0
----
1260
1368
15219
onlyif mysql # use DIV operator for integer division
query I rowsort label-2218
SELECT DISTINCT tab1.col0 * tab1.col2 + tab1.col2 DIV col2 AS col0 FROM tab1
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-2218
SELECT DISTINCT tab1.col0 * tab1.col2 + tab1.col2 / col2 AS col0 FROM tab1
----
163
3649
7681
query I rowsort
SELECT DISTINCT col0 * col2 + col1 AS col1 FROM tab0
----
132
7389
878
query I rowsort
SELECT DISTINCT col0 + col0 + col2 AS col2 FROM tab2 AS cor0
----
182
196
41
query I rowsort
SELECT ALL - - col0 * - col0 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT - col2 * col0 * col0 - col2 * - col0 AS col1 FROM tab2 AS cor0
----
-1134
-156156
-234156
query I rowsort
SELECT ALL + col0 * - col1 + col0 * cor0.col2 FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT ALL + + col2 + col2 * col1 * + col0 AS col2 FROM tab2 AS cor0
----
119678
51072
5886
query I rowsort
SELECT - col1 * col0 * cor0.col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * col0 col2 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col0 + + col0 * col1 col1 FROM tab0 AS cor0
----
1272
3360
801
query I rowsort
SELECT col1 + - col2 * + col2 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT ALL col1 + - col2 * - col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL col2 + + cor0.col1 * + cor0.col1 * col0 FROM tab0 AS cor0
----
177537
329316
737091
query I rowsort
SELECT col2 + col2 * + col1 * col0 FROM tab2 cor0
----
119678
51072
5886
onlyif mysql # use DIV operator for integer division
query I rowsort label-2232
SELECT DISTINCT + col1 + cor0.col2 * col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
174
204
99
skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT + col1 + cor0.col2 * col1 / + col0 AS col2 FROM tab0 AS cor0
----
174
204
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-2233
SELECT - + col1 DIV - col0 + - col2 * + col0 AS col2 FROM tab0 AS cor0
----
-33
-7297
-789
skipif mysql # not compatible
query I rowsort label-2233
SELECT - + col1 / - col0 + - col2 * + col0 AS col2 FROM tab0 AS cor0
----
-33
-7297
-789
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 - col1 col1 FROM tab0
----
-63
-84
-95
query I rowsort
SELECT col1 * + col2 + - col0 * tab1.col2 - col1 AS col1 FROM tab1
----
-3088
-6445
1216
query I rowsort
SELECT - col0 - col0 * col1 * col2 AS col2 FROM tab2
----
-119730
-51113
-5866
query I rowsort
SELECT + col2 * col1 + - tab1.col1 FROM tab1
----
1235
1378
560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col2 col1 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + 93 + col1 AS col0 FROM tab2 AS cor0
----
110
124
152
query I rowsort
SELECT col2 * - col2 + col1 FROM tab2
----
-1427
-617
-698
query I rowsort
SELECT ALL + tab0.col0 * + col0 AS col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT - col2 - col1 * 81 * + col1 FROM tab1 AS cor0
----
-13785
-54810
-8157
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + cor0.col2 + + col1 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + col1 * + col2 + 64 AS col1 FROM tab2
----
1598
710
901
onlyif mysql # use DIV operator for integer division
query I rowsort label-2246
SELECT DISTINCT col0 + - col0 DIV - ( col1 ) FROM tab2
----
7
79
83
skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT col0 + - col0 / - ( col1 ) FROM tab2
----
7
79
83
query I rowsort
SELECT DISTINCT + col0 * col2 * - tab1.col0 + col1 AS col1 FROM tab1
----
-233462
-460
-614387
query I rowsort
SELECT DISTINCT col0 * - col0 * 14 + col2 * tab1.col0 + - col2 FROM tab1
----
-18
-53753
-82016
onlyif mysql # use DIV operator for integer division
query I rowsort label-2249
SELECT - col0 * + col2 + 9 DIV col2 FROM tab0
----
-26
-7298
-792
skipif mysql # not compatible
query I rowsort label-2249
SELECT - col0 * + col2 + 9 / col2 FROM tab0
----
-26
-7298
-792
query I rowsort
SELECT - col1 * - col0 * col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 WHERE ( NULL ) <= col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2252
SELECT + tab0.col0 DIV + col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2252
SELECT + tab0.col0 / + col0 FROM tab0
----
1
1
1
query III rowsort
SELECT ALL * FROM tab1 WHERE col2 NOT BETWEEN col2 - + col2 AND col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= col1 - tab1.col2
----
query I rowsort
SELECT + col2 * + col1 + col1 + - col0 AS col1 FROM tab2
----
1515
584
861
query I rowsort
SELECT ALL tab2.col0 * + col2 FROM tab2 WHERE NULL NOT IN ( + col2 )
----
query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT ( NULL ) = - col0
----
query I rowsort
SELECT - col0 + + tab2.col0 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - + col0 col1 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT col2 - - col2 AS col2 FROM tab2
----
52
54
76
query I rowsort
SELECT DISTINCT tab2.col0 * col2 + + col1 AS col1 FROM tab2
----
2087
220
3019
query III rowsort
SELECT ALL * FROM tab2 WHERE col0 < col0 * - col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 - col0 * col1 col2 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT col1 * col0 + + tab2.col0 AS col2 FROM tab2
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-2265
SELECT ALL col0 DIV - col2 + col0 * - col0 FROM tab1
----
-4097
-6400
-9
skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL col0 / - col2 + col0 * - col0 FROM tab1
----
-4097
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT + col0 * + col0 * + col0 AS col1 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT DISTINCT col2 + col0 - col2 * col2 * col1 FROM tab0
----
-61
-611713
-93597
query I rowsort
SELECT + col2 - - col0 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NULL IN ( col1 + col0 / + col0 )
----
query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) NOT IN ( + tab2.col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL col2 * col1 + + col1 FROM tab1
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-2273
SELECT col0 DIV - tab0.col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2273
SELECT col0 / - tab0.col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + tab2.col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab0 AS cor0, tab0 cor1
----
972 values hashing to 3406497351e4789c89a295ee9b64b201
onlyif mysql # use DIV operator for integer division
query I rowsort label-2276
SELECT + - col0 * col1 + - cor0.col2 - + col2 DIV col0 AS col0 FROM tab2 AS cor0
----
-1381
-247
-4628
skipif mysql # not compatible
query I rowsort label-2276
SELECT + - col0 * col1 + - cor0.col2 - + col2 / col0 AS col0 FROM tab2 AS cor0
----
-1381
-247
-4628
query I rowsort
SELECT col2 + + col2 - + col1 AS col0 FROM tab0 AS cor0
----
-20
-95
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - col2 * tab2.col2 col0 FROM tab2
----
1523
736
754
query I rowsort
SELECT + + col1 + - 50 AS col1 FROM tab1 AS cor0
----
-24
-37
-40
query I rowsort
SELECT DISTINCT + tab2.col1 * + ( col1 ) + + col2 * col0 FROM tab2
----
1150
3291
5509
query I rowsort
SELECT - + col2 + 6 AS col2 FROM tab0 AS cor0
----
-27
-76
5
query I rowsort
SELECT + - col2 * ( + col0 ) AS col2 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-2283
SELECT DISTINCT + col1 DIV - col0 FROM tab1
----
-8
0
skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT + col1 / - col0 FROM tab1
----
-8
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2284
SELECT - 59 DIV col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2284
SELECT - 59 / col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
16
query I rowsort
SELECT ALL col2 * cor0.col0 * + 15 AS col2 FROM tab2 AS cor0
----
2835
30420
45030
onlyif mysql # use DIV operator for integer division
query I rowsort label-2287
SELECT + col0 DIV - col2 col0 FROM tab1 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2287
SELECT + col0 / - col2 col0 FROM tab1 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2288
SELECT 12 DIV - col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2288
SELECT 12 / - col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2289
SELECT DISTINCT - col1 * col0 DIV cor0.col2 + + 53 FROM tab1 AS cor0
----
42
43
52
skipif mysql # not compatible
query I rowsort label-2289
SELECT DISTINCT - col1 * col0 / cor0.col2 + + 53 FROM tab1 AS cor0
----
42
43
52
query I rowsort
SELECT DISTINCT + 97 + col1 * + col2 FROM tab0 AS cor0
----
194
2935
7559
query I rowsort
SELECT - - ( 14 ) AS col0 FROM tab0 AS cor0
----
14
14
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-2292
SELECT - - col1 DIV 18 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2292
SELECT - - col1 / 18 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT ( col1 ) * + col2 FROM tab2 cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2294
SELECT + CAST( NULL AS SIGNED ) * - cor1.col1 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2294
SELECT + CAST ( NULL AS INTEGER ) * - cor1.col1 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab1, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - col0 * + col2 * - col2 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT DISTINCT - ( col1 ) + + col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col1 + + col1 * + col0 + col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT col0 * + col2 + + col0 * + col0 + + col2 AS col2 FROM tab2 AS cor0
----
265
8138
9281
query I rowsort
SELECT ALL - col0 * col0 + col2 FROM tab1 AS cor0
----
-4039
-6304
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-2301
SELECT DISTINCT - - cor0.col1 DIV cor0.col0 + col0 FROM tab1 AS cor0
----
11
64
80
skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT - - cor0.col1 / cor0.col0 + col0 FROM tab1 AS cor0
----
11
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2302
SELECT CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2302
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * col0 * col0 + col1 AS col2 FROM tab2
----
374
474611
493056
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
1
33
82
query I rowsort
SELECT col1 * - 89 AS col0 FROM tab0
----
-7654
-8099
-8633
query I rowsort
SELECT - 61 + - 21 FROM tab0, tab2 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT - col1 + + col0 AS col2 FROM tab1 cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-2308
SELECT ALL ( col1 ) DIV + col0 col0 FROM tab0 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL ( col1 ) / + col0 col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT + + col1 + + col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT - + col2 * col1 + col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL + tab1.col1 * 81 + col0 * col0 AS col1 FROM tab1
----
2115
4906
7453
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0 AS cor2
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae
query I rowsort
SELECT col1 * + ( col0 ) FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL - - cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col2 FROM tab2
----
15
15
15
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2316
SELECT DISTINCT + CAST( - 38 + col2 AS SIGNED ) AS col1 FROM tab0
----
-37
-5
44
skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT + CAST ( - 38 + col2 AS INTEGER ) AS col1 FROM tab0
----
-37
-5
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 44 * col1 col1 FROM tab1 AS cor0
----
-1144
-440
-572
query I rowsort
SELECT + col1 - - 2 FROM tab2 AS cor0
----
19
33
61
query I rowsort
SELECT + - col2 * col1 + - cor0.col2 FROM tab0 cor0
----
-2871
-7544
-98
query I rowsort
SELECT + 93 + - 94 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - col1 * col1 + - col0 FROM tab2 AS cor0
----
-3559
-368
-968
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2322
SELECT - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2322
SELECT - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + - ( cor0.col1 ) + col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL ( + 66 ) * - col2 + col1 AS col1 FROM tab2 cor0
----
-1657
-1751
-2491
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 col0 FROM tab0 AS cor0
----
15
query I rowsort
SELECT ALL - col1 + 58 AS col1 FROM tab0
----
-28
-33
-39
onlyif mysql # use DIV operator for integer division
query I rowsort label-2327
SELECT ALL - tab2.col2 + 68 * 40 DIV + col0 FROM tab2
----
-4
361
8
skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL - tab2.col2 + 68 * 40 / + col0 FROM tab2
----
-4
361
8
query I rowsort
SELECT + col2 - + 87 * col1 FROM tab2 AS cor0
----
-1441
-2670
-5107
query I rowsort
SELECT ALL - 47 * + 25 + - col2 FROM tab1
----
-1229
-1232
-1271
query I rowsort
SELECT tab0.col0 * 76 + col2 AS col2 FROM tab0
----
1857
2661
6846
onlyif mysql # use DIV operator for integer division
query I rowsort label-2331
SELECT 65 + col0 DIV col1 FROM tab1 AS cor0
----
65
71
71
skipif mysql # not compatible
query I rowsort label-2331
SELECT 65 + col0 / col1 FROM tab1 AS cor0
----
65
71
71
query I rowsort
SELECT DISTINCT - ( + col0 ) + - col1 * 63 FROM tab2 AS cor0
----
-1150
-1960
-3795
query I rowsort
SELECT 97 * + col0 FROM tab0 cor0
----
2328
3395
8633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) + col0 col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + 73 * - cor0.col2 + col2 FROM tab2 AS cor0
----
-1872
-1944
-2736
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 * col1 col0 FROM tab1 AS cor0
----
-1248
-480
-624
query I rowsort
SELECT DISTINCT col0 * col1 + + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT 50 + - tab0.col2 FROM tab0
----
-32
17
49
query I rowsort
SELECT + col2 + col2 * ( tab2.col0 ) AS col2 FROM tab2
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * 89 col0 FROM tab2 AS cor0
----
1513
2759
5251
query I rowsort
SELECT DISTINCT + + col2 * + ( 78 ) FROM tab1 AS cor0
----
4212
4446
7488
query I rowsort
SELECT + col1 * + ( + col1 ) FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL + 7 * - col2 AS col1 FROM tab1 AS cor0
----
-378
-399
-672
query I rowsort
SELECT - col2 + - tab2.col1 * + ( + tab2.col1 * + col0 ) FROM tab2
----
-22869
-271544
-6754
query I rowsort
SELECT DISTINCT - - cor0.col2 * + 90 AS col1 FROM tab2, tab1, tab1 AS cor0
----
4860
5130
8640
query I rowsort
SELECT ALL col0 + + 25 * col1 AS col0 FROM tab0
----
2174
2364
2460
query I rowsort
SELECT col1 * 25 + + col2 FROM tab1
----
307
421
704
query I rowsort
SELECT 68 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT ALL - col0 * col0 + + cor0.col2 FROM tab2 AS cor0
----
-22
-6058
-6203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT col1 * - col0 - + col0 FROM tab1 AS cor0
----
-1120
-704
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2352
SELECT - + col0 - CAST( NULL AS SIGNED ) / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2352
SELECT - + col0 - CAST ( NULL AS INTEGER ) / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + + col1 * - 79 AS col1 FROM tab0 AS cor0
----
-6818
-7278
-7698
query I rowsort
SELECT DISTINCT + + cor0.col2 - col1 FROM tab2 cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-2355
SELECT ALL + cor0.col0 DIV 78 AS col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + cor0.col0 / 78 AS col0 FROM tab0 AS cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2356
SELECT - + CAST( + col0 AS SIGNED ) * - col2 - col1 * 28 FROM tab1 AS cor0
----
-566
3368
7316
skipif mysql # not compatible
query I rowsort label-2356
SELECT - + CAST ( + col0 AS INTEGER ) * - col2 - col1 * 28 FROM tab1 AS cor0
----
-566
3368
7316
onlyif mysql # use DIV operator for integer division
query I rowsort label-2357
SELECT - - ( - col2 ) * col0 - - ( - 55 + col1 ) DIV - cor0.col1 AS col2 FROM tab0 cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-2357
SELECT - - ( - col2 ) * col0 - - ( - 55 + col1 ) / - cor0.col1 AS col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT + 43 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT + 10 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT + 0 * + 2 - col2 * 73 AS col0 FROM tab2 AS cor0
----
-1898
-1971
-2774
query I rowsort
SELECT ALL + - ( + col2 ) + col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT col0 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + - col0 + col1 + ( col1 ) * + col2 FROM tab1 AS cor0
----
1181
1427
516
query I rowsort
SELECT + + cor0.col1 * col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2365
SELECT + col1 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-2365
SELECT + col1 / cor0.col0 AS col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT - + col2 + 45 FROM tab0 AS cor0
----
-37
12
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2367
SELECT - col2 * - CAST( + ( cor0.col1 ) AS SIGNED ) FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-2367
SELECT - col2 * - CAST ( + ( cor0.col1 ) AS INTEGER ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + col2 + - cor0.col1 * - col0 * col1 FROM tab1 AS cor0
----
13616
2082
6457
query I rowsort
SELECT DISTINCT 51 * + col2 FROM tab2
----
1326
1377
1938
query I rowsort
SELECT ALL + tab2.col2 * - col2 FROM tab2
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL cor0.col1 * 99 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 6f145882e7bb0bbb2b1665f06415703e
query I rowsort
SELECT ALL ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - - cor0.col1 + + col2 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - + 38 FROM tab0 AS cor0
----
-38
-38
-38
query I rowsort
SELECT DISTINCT col2 - col0 * 85 AS col0 FROM tab2 AS cor0
----
-568
-6604
-6677
query I rowsort
SELECT 86 * tab1.col0 AS col1 FROM tab1
----
258
5504
6880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 col2 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - tab0.col1 * 72 AS col1 FROM tab0
----
-6192
-6552
-6984
query I rowsort
SELECT DISTINCT + 88 FROM tab0, tab1 cor0, tab0 AS cor1
----
88
query I rowsort
SELECT + 7 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
query I rowsort
SELECT ALL 9 FROM tab2, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2383
SELECT + + CAST( + col1 AS SIGNED ) * cor0.col2 FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-2383
SELECT + + CAST ( + col1 AS INTEGER ) * cor0.col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - tab2.col1 + 1 FROM tab2
----
-16
-30
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + col1 * cor0.col0 + - cor0.col1 col2 FROM tab2 AS cor0
----
1309
155
4484
query I rowsort
SELECT + 63 AS col0 FROM tab1 AS cor0
----
63
63
63
query I rowsort
SELECT ALL + + col2 * col2 * cor0.col1 - - col2 * col1 FROM tab2 cor0
----
23436
25194
41418
query I rowsort
SELECT ALL 93 - col0 AS col1 FROM tab1 AS cor0
----
13
29
90
query I rowsort
SELECT - + 18 AS col1 FROM tab2 AS cor0
----
-18
-18
-18
query I rowsort
SELECT - + 54 * - 84 AS col0 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 0e44bbf6b602309eea18de781976ae30
query I rowsort
SELECT + ( + tab2.col2 ) - + col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT ALL 84 + col1 AS col1 FROM tab0
----
170
175
181
query I rowsort
SELECT DISTINCT ( + tab1.col2 ) + 30 FROM tab1, tab1 cor0
----
126
84
87
query I rowsort
SELECT + col0 + + tab0.col0 AS col1 FROM tab0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2395
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0, tab0 cor1, tab0 cor2
----
NULL
skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0, tab0 cor1, tab0 cor2
----
NULL
query I rowsort
SELECT ( + cor0.col2 ) * cor0.col0 AS col2 FROM tab0 cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * cor0.col0 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 4734c38591591662f77999e8d1e5daf1
query I rowsort
SELECT - + col1 * col1 AS col2 FROM tab1 cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 col2 FROM tab1 AS cor0
----
24
24
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 81 * + col1 col1 FROM tab0 AS cor0
----
229878
604422
7857
query I rowsort
SELECT ALL - col2 + + col0 AS col1 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT + + col2 * cor0.col1 * + 40 AS col2 FROM tab1 AS cor0
----
22800
49920
56160
query I rowsort
SELECT DISTINCT + ( col0 ) * - col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + - 9 * col0 FROM tab2 AS cor0
----
-63
-702
-711
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 + cor0.col0 * + col0 col2 FROM tab2 AS cor0
----
6760
7685
778
query I rowsort
SELECT ALL - + 3 FROM tab0 AS cor0
----
-3
-3
-3
query I rowsort
SELECT DISTINCT + 14 + cor0.col2 AS col1 FROM tab1 AS cor0
----
110
68
71
query I rowsort
SELECT - - col1 + - col1 * col1 * col0 FROM tab0 AS cor0
----
-177418
-329218
-736918
query I rowsort
SELECT ALL + 12 * + col2 FROM tab0 AS cor0
----
12
396
984
query I rowsort
SELECT ALL 73 * cor0.col2 FROM tab2 AS cor0
----
1898
1971
2774
query I rowsort
SELECT col1 + col1 * + col0 AS col0 FROM tab1
----
104
1053
650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2412
SELECT - CAST( NULL AS SIGNED ) + - 73 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2412
SELECT - CAST ( NULL AS INTEGER ) + - 73 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 - + col1 * col2 AS col2 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT + 86 + - col2 + tab0.col1 * 59 AS col1 FROM tab0
----
5127
5373
5808
query I rowsort
SELECT ALL + 24 * col0 + ( col2 ) * col2 AS col1 FROM tab0 AS cor0
----
1665
841
8860
query I rowsort
SELECT DISTINCT + + 36 - cor0.col1 AS col2 FROM tab1 AS cor0
----
10
23
26
query I rowsort
SELECT ALL col0 * + col2 + + col1 * col0 FROM tab1 AS cor0
----
240
4288
8720
query I rowsort
SELECT - + col0 * col0 AS col1 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT col0 * + 39 + 51 * + col1 FROM tab1 AS cor0
----
1443
3006
3783
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2420
SELECT + cor0.col0 / CAST( NULL AS SIGNED ) + cor0.col2 * cor0.col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2420
SELECT + cor0.col0 / CAST ( NULL AS INTEGER ) + cor0.col2 * cor0.col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + - col0 * - col1 + + 96 FROM tab1 AS cor0
----
1136
174
736
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + - 97 col1 FROM tab2 cor0
----
-18
-19
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2424
SELECT + cor0.col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2424
SELECT + cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - tab0.col0 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT 35 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT col1 * + 26 + + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-310
-728
-910
query I rowsort
SELECT DISTINCT - col2 + - 93 AS col0 FROM tab2 AS cor0
----
-119
-120
-131
query I rowsort
SELECT col2 + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2430
SELECT + col2 / + CAST( NULL AS SIGNED ) - cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2430
SELECT + col2 / + CAST ( NULL AS INTEGER ) - cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2431
SELECT - + cor0.col0 DIV + 43 AS col2 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-2431
SELECT - + cor0.col0 / + 43 AS col2 FROM tab2 AS cor0
----
-1
-1
0
query I rowsort
SELECT DISTINCT - 35 AS col1 FROM tab2, tab2 AS cor0, tab2 cor1, tab1 AS cor2
----
-35
query I rowsort
SELECT DISTINCT - 21 * + col2 + + col2 FROM tab2 cor0
----
-520
-540
-760
query I rowsort
SELECT ALL - 96 FROM tab1, tab1 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539
query I rowsort
SELECT + - col1 + col0 * + col2 AS col1 FROM tab0 cor0
----
-62
706
7207
query I rowsort
SELECT DISTINCT + col2 + - col2 + + 35 * col2 FROM tab0
----
1155
2870
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2437
SELECT col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2437
SELECT col1 * CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * - col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-2439
SELECT ALL col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL col2 / + col0 AS col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT + + ( cor0.col0 ) + col1 * col2 AS col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL + - col2 + + col1 * + col0 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT - 44 * + col1 AS col1 FROM tab1 AS cor0
----
-1144
-440
-572
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 + col0 col1 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT ALL + + ( col1 ) * col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2445
SELECT DISTINCT - 14 * col2 + - col2 DIV col1 FROM tab1 cor0
----
-1351
-758
-803
skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT - 14 * col2 + - col2 / col1 FROM tab1 cor0
----
-1351
-758
-803
query I rowsort
SELECT - 79 * col1 * 6 - - col2 * col1 AS col1 FROM tab2 AS cor0
----
-13857
-26432
-7412
query I rowsort
SELECT ALL - + col1 + cor0.col0 + - col0 * - col0 FROM tab0 cor0
----
1163
514
7919
query I rowsort
SELECT - - col0 + col0 * + col0 AS col1 FROM tab1 cor0
----
12
4160
6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-2449
SELECT - 60 DIV + col2 AS col2 FROM tab0 AS cor0
----
-1
-60
0
skipif mysql # not compatible
query I rowsort label-2449
SELECT - 60 / + col2 AS col2 FROM tab0 AS cor0
----
-1
-60
0
query I rowsort
SELECT ALL - + col1 + - cor0.col2 AS col1 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT + cor0.col1 * + col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT + 49 * col1 FROM tab0 AS cor0
----
4214
4459
4753
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 55 col2 FROM tab2 AS cor0
----
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-2454
SELECT - col1 * col1 + col2 DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
-7395
-8280
-9408
skipif mysql # not compatible
query I rowsort label-2454
SELECT - col1 * col1 + col2 / + cor0.col2 AS col1 FROM tab0 AS cor0
----
-7395
-8280
-9408
query I rowsort
SELECT 90 + - tab1.col0 + col0 AS col2 FROM tab1
----
90
90
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2456
SELECT ALL + CAST( + col1 AS SIGNED ) - + col2 col1 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL + CAST ( + col1 AS INTEGER ) - + col2 col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT col1 * col2 + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL - col2 * col0 + cor0.col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT + col2 * - 46 FROM tab2 AS cor0
----
-1196
-1242
-1748
query I rowsort
SELECT DISTINCT - 17 * + 12 - + col1 * col1 * col0 AS col1 FROM tab2 AS cor0
----
-23035
-271722
-6931
query I rowsort
SELECT DISTINCT - col2 + 53 AS col0 FROM tab2
----
15
26
27
query I rowsort
SELECT ALL - tab2.col0 + + col1 FROM tab2
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-2463
SELECT ALL 90 DIV + 32 FROM tab0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL 90 / + 32 FROM tab0
----
2
2
2
query I rowsort
SELECT 22 * 87 * - col2 - - 93 * + col1 AS col1 FROM tab2
----
-44277
-48795
-71151
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - cor0.col0 col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col1 * col2 * cor0.col2 + col0 * - 35 + - col1 FROM tab1 AS cor0
----
116995
30240
75685
query I rowsort
SELECT DISTINCT + 49 - cor0.col2 * col0 FROM tab2 AS cor0
----
-140
-1979
-2953
query I rowsort
SELECT 50 * + col2 FROM tab1 AS cor0
----
2700
2850
4800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab1.col1 ) col2 FROM tab1
----
10
13
26
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab2 AS cor0 WHERE NOT NULL <= NULL
----
query I rowsort
SELECT DISTINCT col0 * - col1 + cor0.col1 + + 81 FROM tab1 AS cor0
----
-549
-946
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col0 FROM tab2 AS cor0
----
84
84
84
query I rowsort
SELECT ALL - col0 * col2 * col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT - + cor0.col0 + + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL 16 * - cor0.col0 FROM tab0, tab2 cor0
----
9 values hashing to 3375673c6be523d8a31bf0b0d2feec23
query I rowsort
SELECT ALL 1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 + 82 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT col2 * ( + col2 ) FROM tab2
----
1444
676
729
query I rowsort
SELECT DISTINCT + cor0.col0 * ( + 21 ) AS col2 FROM tab2 AS cor0
----
147
1638
1659
query I rowsort
SELECT + cor0.col0 * col1 * col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT - col1 * - 58 FROM tab0 AS cor0
----
4988
5278
5626
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2482
SELECT ALL col0 * - CAST( NULL AS DECIMAL ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL col0 * - CAST ( NULL AS REAL ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2483
SELECT + CAST( col2 AS SIGNED ) DIV col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2483
SELECT + CAST ( col2 AS INTEGER ) / col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT - col2 * - cor0.col1 * - col0 AS col2 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT + - col2 * ( - col2 ) + 57 AS col2 FROM tab0 AS cor0
----
1146
58
6781
query I rowsort
SELECT - - 36 + - col1 FROM tab2 AS cor0
----
-23
19
5
query I rowsort
SELECT DISTINCT - - 92 FROM tab1 AS cor0
----
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) + col0 col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT - cor0.col0 + 8 AS col2 FROM tab1 AS cor0
----
-56
-72
5
query I rowsort
SELECT ALL + col2 * - 5 FROM tab0 AS cor0
----
-165
-410
-5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2491
SELECT ALL - CAST( NULL AS SIGNED ) * + 46 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL - CAST ( NULL AS INTEGER ) * + 46 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 + col0 col2 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT - - col1 * col2 + - col0 FROM tab1 cor0
----
1168
1401
506
query I rowsort
SELECT col2 + - col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT - col2 + + col1 * + cor0.col1 * 37 AS col2 FROM tab1 AS cor0
----
24958
3643
6157
query I rowsort
SELECT col1 * 50 + + col0 FROM tab1 cor0
----
1303
564
730
query I rowsort
SELECT + col0 + - col0 * - 16 FROM tab0 AS cor0
----
1513
408
595
query I rowsort
SELECT cor0.col2 + + col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT col2 + ( col2 * + col0 + col0 ) FROM tab2 AS cor0
----
2132
223
3119
onlyif mysql # use DIV operator for integer division
query I rowsort label-2500
SELECT DISTINCT cor0.col0 DIV 70 AS col0 FROM tab2, tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT cor0.col0 / 70 AS col0 FROM tab2, tab1 AS cor0
----
0
1
query I rowsort
SELECT ALL + col0 + col1 * col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - col2 * col2 + col2 * cor0.col1 FROM tab0 cor0
----
1749
738
96
query I rowsort
SELECT DISTINCT - ( 25 ) * + col2 + col2 FROM tab2 AS cor0
----
-624
-648
-912
query I rowsort
SELECT DISTINCT - + 48 + col0 * col1 FROM tab0 AS cor0
----
2016
3347
8051
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 42 ) col2 FROM tab2 AS cor0
----
-42
-42
-42
query I rowsort
SELECT DISTINCT + 85 * - col0 AS col2 FROM tab0 AS cor0
----
-2040
-2975
-7565
query I rowsort
SELECT + cor1.col0 * - cor0.col1 AS col2 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 9b18637ecf482b591b08df91eceff9a6
query I rowsort
SELECT tab0.col0 - + col2 AS col1 FROM tab0
----
-9
34
7
query I rowsort
SELECT col0 - 37 AS col2 FROM tab0
----
-13
-2
52
query I rowsort
SELECT DISTINCT - col2 * - 2 FROM tab0
----
164
2
66
query I rowsort
SELECT + 1 FROM tab0 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT - tab2.col0 * - col1 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL col0 * col2 * - col2 AS col2 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT col1 + - 39 * + col0 + tab1.col0 * + col2 AS col1 FROM tab1
----
1162
4573
71
query I rowsort
SELECT ALL + 49 + cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8923edc07b7b33eca718ba7f411534a1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2517
SELECT 42 DIV - tab2.col1 FROM tab2
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-2517
SELECT 42 / - tab2.col1 FROM tab2
----
-1
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2518
SELECT + tab2.col2 DIV 40 FROM tab2, tab1 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
skipif mysql # not compatible
query I rowsort label-2518
SELECT + tab2.col2 / 40 FROM tab2, tab1 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
query I rowsort
SELECT - + 19 * col0 + - ( - col1 ) FROM tab2 AS cor0
----
-102
-1423
-1484
query I rowsort
SELECT + - ( col2 ) + col1 AS col1 FROM tab1 cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2521
SELECT col2 DIV tab1.col0 + + tab1.col1 * - col1 * - col2 FROM tab1
----
16225
36522
5700
skipif mysql # not compatible
query I rowsort label-2521
SELECT col2 / tab1.col0 + + tab1.col1 * - col1 * - col2 FROM tab1
----
16225
36522
5700
query I rowsort
SELECT ALL - col2 - + col1 * - 58 FROM tab1
----
1454
523
658
query I rowsort
SELECT DISTINCT + 49 + - tab2.col1 FROM tab2
----
-10
18
32
query I rowsort
SELECT + cor0.col1 * 31 + 7 FROM tab2 AS cor0
----
1836
534
968
query I rowsort
SELECT ALL + 34 * col2 AS col1 FROM tab1
----
1836
1938
3264
query I rowsort
SELECT - 4 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6
query I rowsort
SELECT + col2 + - col1 + ( col1 ) AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT 1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
query I rowsort
SELECT col1 - cor0.col2 * ( col1 + + col2 ) * - col0 FROM tab1 cor0
----
12986
244426
837133
query I rowsort
SELECT + col2 + col1 * + cor0.col1 - - col1 AS col2 FROM tab0 AS cor0
----
7515
8454
9507
query I rowsort
SELECT - col0 * - col2 + - 2 * + col2 FROM tab1
----
3534
54
7488
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2532
SELECT col1 + - tab0.col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2532
SELECT col1 + - tab0.col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL + col0 * - col0 + tab2.col2 AS col1 FROM tab2
----
-22
-6058
-6203
query I rowsort
SELECT - col0 * 75 FROM tab1 AS cor0
----
-225
-4800
-6000
query I rowsort
SELECT col2 * 27 FROM tab1 AS cor0
----
1458
1539
2592
query I rowsort
SELECT ALL + - cor0.col2 * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-2538
SELECT DISTINCT - - cor0.col0 + ( - col0 ) DIV col0 AS col2 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-2538
SELECT DISTINCT - - cor0.col0 + ( - col0 ) / col0 AS col2 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT tab1.col1 + 43 FROM tab1
----
53
56
69
query I rowsort
SELECT ALL + col0 + 65 FROM tab2 AS cor0
----
143
144
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2541
SELECT + col0 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2541
SELECT + col0 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col2 - 30 AS col1 FROM tab0 AS cor0
----
-29
3
52
query I rowsort
SELECT ALL + col2 * - cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-2544
SELECT ALL - col1 + - CAST( 70 AS SIGNED ) DIV col0 FROM tab1 AS cor0
----
-11
-13
-49
skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL - col1 + - CAST ( 70 AS INTEGER ) / col0 FROM tab1 AS cor0
----
-11
-13
-49
query I rowsort
SELECT + - col1 * col1 + + col2 AS col0 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT ALL + + col2 - - col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL col0 + - 54 AS col1 FROM tab2 cor0
----
-47
24
25
query I rowsort
SELECT DISTINCT - col1 * col2 + + 38 FROM tab1 AS cor0
----
-1210
-1366
-532
query I rowsort
SELECT ALL + + col0 * 10 * + col1 - + col1 FROM tab1 AS cor0
----
10387
6390
754
query I rowsort
SELECT DISTINCT col0 * - ( 99 ) AS col1 FROM tab2 cor0
----
-693
-7722
-7821
query I rowsort
SELECT col1 + col1 + - col0 FROM tab2
----
-45
40
55
query I rowsort
SELECT DISTINCT + ( + col2 ) + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT cor0.col2 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + + ( col1 ) * - col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + + ( - col0 ) * - col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - col1 * 21 * col1 FROM tab0 AS cor0
----
-155316
-173901
-197589
query I rowsort
SELECT + - 12 AS col0 FROM tab0 AS cor0
----
-12
-12
-12
onlyif mysql # use DIV operator for integer division
query I rowsort label-2558
SELECT ALL + + cor0.col1 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL + + cor0.col1 / col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * - 24 FROM tab0
----
-2064
-2184
-2328
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 78 col1 FROM tab0 AS cor0
----
-78
query I rowsort
SELECT DISTINCT - 39 AS col1 FROM tab0, tab0 cor0
----
-39
query I rowsort
SELECT ALL - col2 * + col0 * col0 AS col2 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT ALL + col0 * - tab1.col1 AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col1 * + col0 * col1 + - cor0.col0 + cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
23398
272974
7557
query I rowsort
SELECT DISTINCT - - col2 * + col2 + col0 FROM tab0 AS cor0
----
1113
36
6813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col0 col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - - col0 * + cor0.col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 - - col1 AS col1 FROM tab2 cor0
----
-272
-3422
-930
query I rowsort
SELECT 31 * + col0 + col0 AS col0 FROM tab2 AS cor0
----
224
2496
2528
query I rowsort
SELECT DISTINCT - + 91 + + col1 FROM tab1 AS cor0
----
-65
-78
-81
query I rowsort
SELECT ALL + + 57 + col1 AS col0 FROM tab0 AS cor0
----
143
148
154
query I rowsort
SELECT DISTINCT + cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + tab1.col0 + - col0 + - col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT + + ( - col0 ) * col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-2575
SELECT + - ( - col0 ) + - col2 DIV + col0 + + col1 FROM tab0 cor0
----
109
132
180
skipif mysql # not compatible
query I rowsort label-2575
SELECT + - ( - col0 ) + - col2 / + col0 + + col1 FROM tab0 cor0
----
109
132
180
query I rowsort
SELECT DISTINCT + 49 * col0 AS col2 FROM tab2 AS cor0
----
343
3822
3871
query I rowsort
SELECT - col2 + + cor0.col0 * col1 * + col2 AS col1 FROM tab2 AS cor0
----
119626
50996
5832
query I rowsort
SELECT ALL col0 + cor0.col1 + - col1 AS col1 FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2579
SELECT ALL - + 40 + - col1 DIV - col0 FROM tab1 cor0
----
-32
-40
-40
skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL - + 40 + - col1 / - col0 FROM tab1 cor0
----
-32
-40
-40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 * + col1 col0 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-2581
SELECT 15 + col0 DIV + col2 FROM tab0 cor0
----
15
16
50
skipif mysql # not compatible
query I rowsort label-2581
SELECT 15 + col0 / + col2 FROM tab0 cor0
----
15
16
50
query I rowsort
SELECT DISTINCT - 19 AS col1 FROM tab2 AS cor0
----
-19
query I rowsort
SELECT + - col0 * col2 * + cor0.col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT 38 * col0 FROM tab2 cor0
----
266
2964
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col0 + col2 * + col1 col2 FROM tab1 AS cor0
----
1424
1461
691
query I rowsort
SELECT + col2 * col2 * + cor0.col2 FROM tab2 AS cor0
----
17576
19683
54872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col2 col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col0 FROM tab2 WHERE NULL <= ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - tab1.col2 + + col0 col2 FROM tab1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + tab2.col2 * - col0 AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT col2 * + col2 * + tab0.col0 AS col1 FROM tab0
----
26136
35
598436
query I rowsort
SELECT ALL tab0.col1 + + col1 AS col0 FROM tab0
----
172
182
194
query I rowsort
SELECT + col0 * + col1 + tab2.col1 * + tab2.col0 AS col1 FROM tab2
----
2686
434
9204
query I rowsort
SELECT ALL col1 * col0 * - col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT ALL col0 * col1 + + col0 + col1 FROM tab0
----
2174
3527
8279
query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT - col0 + + col2 NOT IN ( + col0 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * col1 + + col0 * col2 >= ( NULL )
----
query I rowsort
SELECT + col0 * col0 * col1 AS col1 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT ALL - tab2.col1 * + col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT ALL - col1 + tab0.col1 * col1 FROM tab0
----
7310
8190
9312
query I rowsort
SELECT DISTINCT col0 * col2 * + col1 AS col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NOT ( - col0 + - col0 * + col0 ) <> ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2604
SELECT col2 - - col0 DIV tab0.col0 FROM tab0 WHERE NOT ( col1 ) IN ( + col2 )
----
2
34
83
skipif mysql # not compatible
query I rowsort label-2604
SELECT col2 - - col0 / tab0.col0 FROM tab0 WHERE NOT ( col1 ) IN ( + col2 )
----
2
34
83
query I rowsort
SELECT DISTINCT col1 - col2 AS col0 FROM tab2
----
-21
33
4
query I rowsort
SELECT ALL - col2 * col2 AS col0 FROM tab1 WHERE ( NULL ) < ( NULL )
----
query I rowsort
SELECT col0 / col0 + col2 * - col1 FROM tab1 WHERE NOT ( - col1 + col1 * col0 + col1 ) NOT IN ( col1 )
----
query I rowsort
SELECT ALL tab2.col0 * col2 * + col2 AS col0 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT + col0 * - tab1.col0 + col1 * col2 AS col2 FROM tab1
----
-3526
-5152
1395
query I rowsort
SELECT DISTINCT + tab1.col0 * + col0 - - col1 FROM tab1
----
35
4106
6413
query I rowsort
SELECT col2 + + col1 FROM tab0 WHERE NOT NULL <= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2612
SELECT ALL - 8 * col1 + - cor0.col0 DIV + col2 FROM tab1 cor0
----
-104
-208
-81
skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL - 8 * col1 + - cor0.col0 / + col2 FROM tab1 cor0
----
-104
-208
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + tab0.col0 col1 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT - col2 * + col1 - - col0 AS col2 FROM tab1
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-2615
SELECT col2 + col1 DIV - col0 AS col1 FROM tab2
----
23
26
38
skipif mysql # not compatible
query I rowsort label-2615
SELECT col2 + col1 / - col0 AS col1 FROM tab2
----
23
26
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 AS cor0 WHERE ( NULL ) >= ( col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2617
SELECT + col2 DIV col0 + + col1 FROM tab0 AS cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-2617
SELECT + col2 / col0 + + col1 FROM tab0 AS cor0
----
87
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 * col2 col0 FROM tab2
----
1482
702
756
query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col0 * tab0.col1 )
----
query I rowsort
SELECT - tab2.col1 AS col2 FROM tab2 WHERE ( NULL ) >= col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2621
SELECT col2 DIV - col1 + col1 FROM tab2
----
15
31
59
skipif mysql # not compatible
query I rowsort label-2621
SELECT col2 / - col1 + col1 FROM tab2
----
15
31
59
query I rowsort
SELECT col2 * col0 * - col0 - + col0 AS col2 FROM tab1
----
-233536
-489
-614480
query I rowsort
SELECT tab0.col2 * - col0 + + col0 AS col1 FROM tab0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2624
SELECT col2 DIV + col1 + col2 AS col1 FROM tab1
----
103
56
62
skipif mysql # not compatible
query I rowsort label-2624
SELECT col2 / + col1 + col2 AS col1 FROM tab1
----
103
56
62
query I rowsort
SELECT col0 * col2 * + tab2.col1 - col1 FROM tab2
----
119593
51017
5828
query III rowsort
SELECT * FROM tab1 WHERE - col2 >= NULL
----
query I rowsort
SELECT col0 * + col2 * - col2 + tab0.col2 FROM tab0
----
-26103
-34
-598354
onlyif mysql # use DIV operator for integer division
query I rowsort label-2628
SELECT DISTINCT col1 DIV col1 + col1 AS col2 FROM tab2
----
18
32
60
skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT col1 / col1 + col1 AS col2 FROM tab2
----
18
32
60
query I rowsort
SELECT + cor0.col0 - cor0.col1 * col1 / col2 FROM tab2 AS cor0 WHERE NOT col0 <= NULL
----
query I rowsort
SELECT + 6 AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to 44f233d1b3804e00d9436c0a41d1e2c8
query I rowsort
SELECT ALL 14 FROM tab1, tab0 cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT - col0 + + 26 * cor0.col1 AS col2 FROM tab2 cor0
----
1456
363
799
query I rowsort
SELECT ( - 51 ) * col1 AS col0 FROM tab2 AS cor0
----
-1581
-3009
-867
query I rowsort
SELECT - col2 * 9 + col2 FROM tab1 AS cor0
----
-432
-456
-768
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0 CROSS JOIN tab0, tab1 cor1
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474
query I rowsort
SELECT tab1.col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT + ( - col2 ) * col2 + + 86 * col1 FROM tab1
----
-2389
-680
-8098
query I rowsort
SELECT ALL col1 * col2 + col2 * col0 * - col2 FROM tab2
----
-113430
-4266
-51194
query I rowsort
SELECT col0 + - col1 * col1 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT ALL - - 65 FROM tab2 AS cor0
----
65
65
65
query I rowsort
SELECT DISTINCT col0 * + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT 33 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
query I rowsort
SELECT ALL + col2 * col1 - col2 * + col2 * + col0 AS col1 FROM tab2 AS cor0
----
-113430
-4266
-51194
query I rowsort
SELECT DISTINCT - tab1.col2 * col1 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-2645
SELECT DISTINCT + 70 + col0 DIV 21 FROM tab2 AS cor0
----
70
73
skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT + 70 + col0 / 21 FROM tab2 AS cor0
----
70
73
query I rowsort
SELECT DISTINCT 21 + + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1019
-57
-619
query I rowsort
SELECT DISTINCT + - col1 * ( - col2 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - - cor0.col1 * col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col2 * - 78 * ( col0 ) FROM tab0 AS cor0
----
-2730
-569244
-61776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - cor0.col1 col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - col1 + 93 FROM tab0 AS cor0
----
-4
2
7
query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL ( col1 ) * cor0.col0 * 34 AS col1 FROM tab2 AS cor0
----
156468
45662
7378
query I rowsort
SELECT - 27 + 62 FROM tab1 AS cor0
----
35
35
35
query I rowsort
SELECT ALL - ( - col2 ) + + cor0.col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT - col2 + - col0 * + col0 FROM tab2 cor0
----
-6110
-6279
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-2657
SELECT ALL - - 24 DIV ( + col0 + 71 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL - - 24 / ( + col0 + 71 ) FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2658
SELECT DISTINCT - tab0.col2 DIV - 37 AS col0 FROM tab0
----
0
2
skipif mysql # not compatible
query I rowsort label-2658
SELECT DISTINCT - tab0.col2 / - 37 AS col0 FROM tab0
----
0
2
query I rowsort
SELECT DISTINCT + 88 FROM tab1 cor0
----
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-2660
SELECT ALL - cor0.col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL - cor0.col2 / + col0 AS col2 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT - + cor0.col0 * + 62 + - col1 AS col1 FROM tab1 AS cor0
----
-212
-3978
-4973
query I rowsort
SELECT + col2 * + col2 + col1 FROM tab2 cor0
----
1461
735
760
query I rowsort
SELECT ALL - + ( + 23 ) FROM tab1 AS cor0
----
-23
-23
-23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2664
SELECT CAST( NULL AS SIGNED ) * col0 - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2664
SELECT CAST ( NULL AS INTEGER ) * col0 - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2665
SELECT - + col1 DIV + col1 - + col1 AS col1 FROM tab0 AS cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-2665
SELECT - + col1 / + col1 - + col1 AS col1 FROM tab0 AS cor0
----
-87
-92
-98
query I rowsort
SELECT DISTINCT - - ( col2 ) * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + 54 * - col0 FROM tab0 AS cor0
----
-1296
-1890
-4806
query I rowsort
SELECT ALL + 3 * col2 + col1 FROM tab1 AS cor0
----
181
188
301
query I rowsort
SELECT DISTINCT 3 * col1 + + col0 FROM tab1 AS cor0
----
119
81
94
query I rowsort
SELECT DISTINCT + - 62 * col2 + - col0 FROM tab0 AS cor0
----
-2070
-5173
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2671
SELECT + ( + 13 ) * col1 DIV col1 - - col1 * + col1 * cor0.col1 FROM tab1 AS cor0
----
1013
17589
2210
skipif mysql # not compatible
query I rowsort label-2671
SELECT + ( + 13 ) * col1 / col1 - - col1 * + col1 * cor0.col1 FROM tab1 AS cor0
----
1013
17589
2210
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1 WHERE ( NULL ) <> NULL
----
query I rowsort
SELECT - col2 - tab0.col2 AS col2 FROM tab0
----
-164
-2
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2675
SELECT col2 - CAST( 0 AS SIGNED ) * + col0 AS col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-2675
SELECT col2 - CAST ( 0 AS INTEGER ) * + col0 AS col2 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT ( + col2 ) * col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL tab0.col0 * 80 AS col2 FROM tab0
----
1920
2800
7120
query I rowsort
SELECT ( 42 ) + col0 + - col0 * col0 FROM tab1
----
-3990
-6278
36
query I rowsort
SELECT 44 + - tab1.col2 FROM tab1
----
-10
-13
-52
query I rowsort
SELECT ALL col2 + col0 * + col2 * col0 AS col2 FROM tab2
----
1350
158210
237196
query I rowsort
SELECT + + 6 + col2 AS col0 FROM tab1 AS cor0
----
102
60
63
query I rowsort
SELECT ALL col2 + - tab1.col1 AS col0 FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT col0 + col1 + - col1 * - tab0.col0 AS col2 FROM tab0
----
2174
3527
8279
query I rowsort
SELECT + ( + col0 ) + tab2.col1 + col0 AS col1 FROM tab2
----
175
215
45
query I rowsort
SELECT 79 * + 95 FROM tab1
----
7505
7505
7505
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 72 col1 FROM tab0
----
-14
-19
-25
onlyif mysql # use DIV operator for integer division
query I rowsort label-2687
SELECT + 13 DIV + col0 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2687
SELECT + 13 / + col0 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2688
SELECT ALL 90 * 68 + col1 DIV col2 FROM tab1 AS cor0
----
6120
6120
6120
skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL 90 * 68 + col1 / col2 FROM tab1 AS cor0
----
6120
6120
6120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 * tab0.col2 col1 FROM tab0
----
2409
5986
73
query I rowsort
SELECT + 59 * col1 * col2 + col2 * col2 FROM tab1
----
36879
82848
85752
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2691
SELECT DISTINCT - CAST( 28 AS SIGNED ) * - col1 + + col0 FROM tab0
----
2432
2637
2751
skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT - CAST ( 28 AS INTEGER ) * - col1 + + col0 FROM tab0
----
2432
2637
2751
query I rowsort
SELECT ALL ( col0 ) * + 66 FROM tab1
----
198
4224
5280
query I rowsort
SELECT 17 + tab2.col0 * col0 FROM tab2
----
6101
6258
66
query I rowsort
SELECT - tab0.col2 - col1 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT - col1 * - ( + 73 ) - + cor0.col0 FROM tab2 AS cor0
----
1162
2256
4229
onlyif mysql # use DIV operator for integer division
query I rowsort label-2696
SELECT ALL + col1 * - ( - col1 ) DIV + col1 + + col2 + + col2 FROM tab1 cor0
----
124
134
205
skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL + col1 * - ( - col1 ) / + col1 + + col2 + + col2 FROM tab1 cor0
----
124
134
205
query I rowsort
SELECT DISTINCT - + col0 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT + col1 + - 99 AS col0 FROM tab2 AS cor0
----
-40
-68
-82
query I rowsort
SELECT col1 - - col0 * + col0 AS col1 FROM tab0
----
1322
662
8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 - col0 col1 FROM tab2
----
-19
-62
24
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to adb876f0e99f8d4fbf7b7fcf19919a21
query I rowsort
SELECT DISTINCT + - col0 + + col0 * col1 * col1 + + col1 FROM tab0 AS cor0
----
177566
329377
737011
query I rowsort
SELECT ALL + - cor0.col1 + cor0.col0 * col2 * - cor0.col1 + + col1 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL - col0 + 49 FROM tab1 cor0
----
-15
-31
46
query I rowsort
SELECT ALL cor0.col2 * col0 + + col1 * col1 + + col0 FROM tab0 AS cor0
----
15668
8212
9479
query I rowsort
SELECT ALL cor0.col0 + - ( - col2 ) AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL col2 + col1 + col2 * col2 AS col2 FROM tab1 cor0
----
2996
3316
9325
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + col2 * ( - col2 ) col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT - 28 + col2 FROM tab0
----
-27
5
54
query I rowsort
SELECT - col2 + - tab0.col0 AS col2 FROM tab0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2711
SELECT DISTINCT - col1 DIV col1 + col2 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT - col1 / col1 + col2 FROM tab1
----
53
56
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2712
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2712
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1
----
-3
-64
-80
query I rowsort
SELECT + tab0.col1 * + 77 + + col2 AS col1 FROM tab0
----
6655
7089
7470
query I rowsort
SELECT ALL - col0 + + col0 * cor0.col0 FROM tab2 cor0
----
42
6006
6162
query I rowsort
SELECT ALL col2 * col0 + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT + cor0.col0 * - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT + col0 * - 57 AS col2 FROM tab2 AS cor0
----
-399
-4446
-4503
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - cor0.col2 + + col2 * + col2 col1 FROM tab0 cor0
----
14022
1881
36
query I rowsort
SELECT ALL - col1 + + 5 * cor0.col1 FROM tab2 cor0
----
124
236
68
query I rowsort
SELECT DISTINCT + col1 + col0 * col0 + - 80 FROM tab1
----
-45
4026
6333
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 - col2 col0 FROM tab2
----
47
58
59
query I rowsort
SELECT DISTINCT - 49 + - col0 AS col1 FROM tab0
----
-138
-73
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-2724
SELECT DISTINCT - - 51 DIV + 99 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT - - 51 / + 99 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - 25 - col0 AS col2 FROM tab2 AS cor0
----
-103
-104
-32
query I rowsort
SELECT - col2 + + cor0.col0 * col2 - cor0.col0 * + ( - col2 ) FROM tab1 AS cor0
----
15264
270
7239
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2727
SELECT CAST( NULL AS SIGNED ) * - col0 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2727
SELECT CAST ( NULL AS INTEGER ) * - col0 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) + + col2 AS col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT - cor0.col1 * - col0 + - cor0.col2 - col1 AS col2 FROM tab1 AS cor0
----
-2
573
931
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - col1 col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - cor0.col1 + - col1 FROM tab2 AS cor0
----
-118
-34
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT + + col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT col1 - - 14 AS col0 FROM tab2
----
31
45
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2735
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2735
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL + col1 + col2 * + ( + 70 ) FROM tab1 cor0
----
3806
4000
6733
query I rowsort
SELECT + col1 * + cor0.col1 * 82 + col0 FROM tab0 AS cor0
----
606496
679131
771573
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 col0 FROM tab1 AS cor0
----
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-2739
SELECT - - col1 DIV - col2 col0 FROM tab0 AS cor0
----
-1
-2
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2739
SELECT - - col1 / - col2 col0 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT + col2 + col0 - - col1 * - 6 AS col0 FROM tab1 AS cor0
----
-99
61
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 col0 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT - 93 + cor0.col2 FROM tab2 AS cor0
----
-55
-66
-67
query I rowsort
SELECT col1 + + 14 * col2 FROM tab0 cor0
----
111
1239
548
query I rowsort
SELECT 72 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
onlyif mysql # use DIV operator for integer division
query I rowsort label-2745
SELECT - + col0 DIV col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-2745
SELECT - + col0 / col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2746
SELECT - col1 * 74 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
-11
-12
-641
skipif mysql # not compatible
query I rowsort label-2746
SELECT - col1 * 74 / cor0.col0 AS col0 FROM tab1 AS cor0
----
-11
-12
-641
query I rowsort
SELECT ALL + 79 * + cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 648d66fb956fc6f56908417b53d1a5d1
query I rowsort
SELECT + ( 82 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT + cor0.col2 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-2750
SELECT DISTINCT - col0 + col1 * - cor0.col1 + - ( 24 ) DIV + col0 FROM tab1 cor0
----
-164
-249
-687
skipif mysql # not compatible
query I rowsort label-2750
SELECT DISTINCT - col0 + col1 * - cor0.col1 + - ( 24 ) / + col0 FROM tab1 cor0
----
-164
-249
-687
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to f94a4a64ac54a61fc21f78e2b831ebee
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2752
SELECT CAST( NULL AS DECIMAL ) / 39 + - tab2.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2752
SELECT CAST ( NULL AS REAL ) / 39 + - tab2.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT col0 * col1 * tab1.col1 + 71 * + tab1.col2 FROM tab1
----
10447
20336
5862
query I rowsort
SELECT + - col1 + cor0.col1 - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + 92 * - col0 + col1 + 87 FROM tab1 AS cor0
----
-163
-5791
-7260
query I rowsort
SELECT DISTINCT + col1 * 12 * col2 FROM tab2
----
10044
18408
7752
query I rowsort
SELECT 19 AS col0 FROM tab1
----
19
19
19
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1, tab1 cor1
----
972 values hashing to f8fe28681e8720551e1ec173631fc529
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2759
SELECT + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2759
SELECT + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col2 * cor0.col1 + - col0 FROM tab0 cor0
----
2814
62
7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2761
SELECT ALL + CAST( NULL AS SIGNED ) + 76 * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL + CAST ( NULL AS INTEGER ) + 76 * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col1 FROM tab1 AS cor0
----
48
48
48
query I rowsort
SELECT + col2 + + col1 + + 19 FROM tab2
----
104
74
77
query I rowsort
SELECT DISTINCT col0 - col2 * + col0 * - col2 FROM tab1
----
208000
737360
8751
query I rowsort
SELECT - + col2 - ( 74 ) FROM tab2 AS cor0
----
-100
-101
-112
onlyif mysql # use DIV operator for integer division
query I rowsort label-2766
SELECT col0 DIV + 13 AS col0 FROM tab1
----
0
4
6
skipif mysql # not compatible
query I rowsort label-2766
SELECT col0 / + 13 AS col0 FROM tab1
----
0
4
6
query I rowsort
SELECT - col1 + 65 + + 41 FROM tab0
----
15
20
9
query I rowsort
SELECT col1 * col1 * - col2 FROM tab2
----
-10982
-25947
-90506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2769
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 47 AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 47 AS col2 FROM tab1
----
NULL
query I rowsort
SELECT - 12 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0
query I rowsort
SELECT col0 + - ( + col2 * + col1 ) - col1 FROM tab0
----
-159
-2900
-7464
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2772
SELECT + CAST( NULL AS SIGNED ) * + tab2.col1 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2772
SELECT + CAST ( NULL AS INTEGER ) * + tab2.col1 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( - 38 ) + col1 FROM tab1
----
-12
-25
-28
query I rowsort
SELECT DISTINCT 8 * - tab2.col0 + - col1 AS col0 FROM tab2
----
-649
-683
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-2775
SELECT + col0 DIV col1 - col0 FROM tab2 AS cor0
----
-7
-75
-77
skipif mysql # not compatible
query I rowsort label-2775
SELECT + col0 / col1 - col0 FROM tab2 AS cor0
----
-7
-75
-77
query I rowsort
SELECT - col1 + col2 * - col0 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT 33 * - col1 AS col2 FROM tab0 cor0
----
-2838
-3003
-3201
query I rowsort
SELECT + col0 * + cor0.col1 + 91 AS col2 FROM tab1 AS cor0
----
1131
169
731
query I rowsort
SELECT ALL - col2 * - ( 6 + col2 ) FROM tab1 AS cor0
----
3240
3591
9792
query I rowsort
SELECT - + col2 * ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - ( col0 + - cor0.col0 ) col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 89 * - col0 FROM tab0
----
2136
3115
7921
query I rowsort
SELECT ALL + - col1 * + 23 AS col1 FROM tab2 AS cor0
----
-1357
-391
-713
query I rowsort
SELECT DISTINCT + col1 * ( ( + col1 ) ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + col0 * - 65 AS col2 FROM tab2 AS cor0
----
-455
-5070
-5135
query I rowsort
SELECT ALL - + col2 * + col1 + + 18 FROM tab0 AS cor0
----
-2820
-7444
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT + 45 FROM tab1, tab1 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
onlyif mysql # use DIV operator for integer division
query I rowsort label-2789
SELECT + + col2 DIV + col2 AS col1 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2789
SELECT + + col2 / + col2 AS col1 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - + cor0.col2 + + 46 FROM tab1 AS cor0
----
-11
-50
-8
query I rowsort
SELECT DISTINCT col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT - - cor0.col1 AS col1 FROM tab0 cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 76 col1 FROM tab1 AS cor0
----
-4104
-4332
-7296
query I rowsort
SELECT ALL - + col0 + + cor0.col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL - - col2 * + ( ( + col1 ) ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + - cor0.col0 * - col1 AS col1 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2797
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + cor0.col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT CAST ( NULL AS REAL ) * + cor0.col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col1 * col2 + col0 + - cor0.col2 FROM tab0 AS cor0
----
-2847
-63
-7455
query I rowsort
SELECT + 60 + - col1 * + col1 AS col2 FROM tab0 cor0
----
-7336
-8221
-9349
onlyif mysql # use DIV operator for integer division
query I rowsort label-2800
SELECT DISTINCT CAST( + 56 AS SIGNED ) DIV col1 AS col0 FROM tab1 cor0
----
2
4
5
skipif mysql # not compatible
query I rowsort label-2800
SELECT DISTINCT CAST ( + 56 AS INTEGER ) / col1 AS col0 FROM tab1 cor0
----
2
4
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - 84 + 64 * col2 FROM tab1 AS cor0
----
3372
3564
6060
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - + 36 * 88 AS col0 FROM tab1 AS cor0
----
-3168
-3168
-3168
query I rowsort
SELECT + col2 * + col1 * + col2 AS col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT ALL col2 + + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + + 5 + - cor0.col2 FROM tab2 AS cor0
----
-21
-22
-33
query I rowsort
SELECT DISTINCT 49 * col1 - 32 FROM tab0 AS cor0
----
4182
4427
4721
onlyif mysql # use DIV operator for integer division
query I rowsort label-2809
SELECT ALL + col2 + col0 DIV - ( 95 ) col0 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL + col2 + col0 / - ( 95 ) col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + 10 * - col0 * col0 + - col0 * - col2 + - cor0.col0 FROM tab1 AS cor0
----
-37376
-56400
69
query I rowsort
SELECT DISTINCT - - cor0.col0 * - cor0.col1 + + 97 AS col0 FROM tab0 AS cor0
----
-1967
-3298
-8002
query I rowsort
SELECT ALL + - col0 * col1 + ( + col2 ) * + col0 FROM tab0 AS cor0
----
-1272
-3360
-801
query I rowsort
SELECT ALL ( col0 ) - cor0.col2 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT - col1 + col0 * col0 FROM tab0 AS cor0
----
1128
490
7830
onlyif mysql # use DIV operator for integer division
query I rowsort label-2815
SELECT DISTINCT + 46 DIV + col2 FROM tab0 AS cor0
----
0
1
46
skipif mysql # not compatible
query I rowsort label-2815
SELECT DISTINCT + 46 / + col2 FROM tab0 AS cor0
----
0
1
46
query I rowsort
SELECT 96 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT ALL + col1 + col1 * col2 AS col0 FROM tab0
----
194
2924
7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2818
SELECT + col2 * + col0 + - CAST( NULL AS DECIMAL ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2818
SELECT + col2 * + col0 + - CAST ( NULL AS REAL ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * cor0.col0 + + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL - col2 * 72 + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-16128
-6804
-7353
query I rowsort
SELECT ALL + - 8 * - col2 FROM tab0 cor0
----
264
656
8
query I rowsort
SELECT col0 * - col1 + + cor0.col2 * - 23 AS col0 FROM tab1 AS cor0
----
-1320
-1951
-3248
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 col2 FROM tab0 cor0
----
-63
-63
-63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2824
SELECT - CAST( col1 AS SIGNED ) + - col0 col2 FROM tab2 AS cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2824
SELECT - CAST ( col1 AS INTEGER ) + - col0 col2 FROM tab2 AS cor0
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( 30 AS REAL ) * col1 + - ( col2 ) AS col2 FROM tab0 AS cor0
----
-2613
-2812
-2911
query I rowsort
SELECT - 0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL - col2 * - 50 FROM tab0 AS cor0
----
1650
4100
50
query I rowsort
SELECT - + 26 * + col2 + col2 FROM tab1 AS cor0
----
-1350
-1425
-2400
onlyif mysql # use DIV operator for integer division
query I rowsort label-2829
SELECT + cor0.col2 * col1 + + col2 DIV col0 FROM tab2 AS cor0
----
1534
646
840
skipif mysql # not compatible
query I rowsort label-2829
SELECT + cor0.col2 * col1 + + col2 / col0 FROM tab2 AS cor0
----
1534
646
840
query I rowsort
SELECT ( - col2 ) * tab2.col0 + + ( + col1 ) * col0 * + ( 41 ) FROM tab2
----
186654
52061
8708
query I rowsort
SELECT - ( - tab1.col1 ) * + col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT - 31 + - col1 + - col2 FROM tab0
----
-129
-150
-204
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 + - tab2.col0 col2 FROM tab2
----
1264
210
4524
query I rowsort
SELECT - + 51 AS col1 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4
query I rowsort
SELECT ALL col0 * ( + col0 + 75 ) * + col0 AS col1 FROM tab2
----
4018
930852
961114
onlyif mysql # use DIV operator for integer division
query I rowsort label-2836
SELECT DISTINCT + tab0.col2 DIV + col2 AS col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT + tab0.col2 / + col2 AS col2 FROM tab0
----
1
query I rowsort
SELECT - ( ( col2 ) ) * - col1 AS col1 FROM tab2
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2838
SELECT ALL - col2 * - CAST( col2 * - col0 AS SIGNED ) + col0 * col2 AS col2 FROM tab1 AS cor0
----
-204288
-729600
-8586
skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL - col2 * - CAST ( col2 * - col0 AS INTEGER ) + col0 * col2 AS col2 FROM tab1 AS cor0
----
-204288
-729600
-8586
query I rowsort
SELECT DISTINCT col0 + 3 AS col1 FROM tab1 cor0
----
6
67
83
query I rowsort
SELECT DISTINCT - + col0 + 81 * 58 FROM tab2 AS cor0
----
4619
4620
4691
query I rowsort
SELECT cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL 68 AS col2 FROM tab1
----
68
68
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 col0 FROM tab1, tab1 AS cor0
----
45
query I rowsort
SELECT ALL - col0 * + 44 + col2 * col2 + col0 FROM tab2
----
-1953
-2678
428
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
-3
-64
-80
query I rowsort
SELECT col2 + 54 + 89 FROM tab2
----
169
170
181
query I rowsort
SELECT DISTINCT col0 + col2 + + 27 FROM tab2 AS cor0
----
131
144
61
query I rowsort
SELECT DISTINCT col2 + - ( 70 ) AS col0 FROM tab0 AS cor0
----
-37
-69
12
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2849
SELECT ALL + CAST( NULL AS SIGNED ) + tab1.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL + CAST ( NULL AS INTEGER ) + tab1.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 56 + col0 * + col0 col0 FROM tab2 cor0
----
10452
10665
441
query I rowsort
SELECT DISTINCT col0 + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - - 53 + + ( col2 ) FROM tab2 AS cor0
----
79
80
91
query I rowsort
SELECT DISTINCT - - col0 + + 35 AS col0 FROM tab0 AS cor0
----
124
59
70
query I rowsort
SELECT DISTINCT - col0 * - col1 - col0 AS col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT - col0 + - 20 AS col2 FROM tab0
----
-109
-44
-55
query I rowsort
SELECT DISTINCT 73 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
73
query I rowsort
SELECT DISTINCT col1 * - 63 AS col0 FROM tab2
----
-1071
-1953
-3717
query I rowsort
SELECT ALL - 19 - 77 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539
query I rowsort
SELECT 52 + - col2 AS col0 FROM tab2 AS cor0
----
14
25
26
query I rowsort
SELECT - 19 + + col0 FROM tab2 AS cor0
----
-12
59
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2861
SELECT - CAST( NULL AS SIGNED ) * 2 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2861
SELECT - CAST ( NULL AS INTEGER ) * 2 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( 43 ) * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-129
-2752
-3440
query I rowsort
SELECT - 90 * col1 - + col2 FROM tab1 AS cor0
----
-1266
-2394
-957
query I rowsort
SELECT - 46 * col0 FROM tab2 AS cor0
----
-322
-3588
-3634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col1 FROM tab2 AS cor0
----
30
query I rowsort
SELECT - - col1 * + 22 FROM tab0 AS cor0
----
1892
2002
2134
query I rowsort
SELECT DISTINCT + 48 FROM tab0, tab1 AS cor0
----
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT DISTINCT + - ( - col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2870
SELECT - 6 * col0 DIV + 82 AS col0 FROM tab2 AS cor0
----
-5
-5
0
skipif mysql # not compatible
query I rowsort label-2870
SELECT - 6 * col0 / + 82 AS col0 FROM tab2 AS cor0
----
-5
-5
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2871
SELECT ALL + - 11 DIV col1 + - col2 col1 FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL + - 11 / col1 + - col2 col1 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-2872
SELECT - col1 DIV cor0.col1 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2872
SELECT - col1 / cor0.col1 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT col0 * col1 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT + ( - 54 * col2 ) FROM tab2
----
-1404
-1458
-2052
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2875
SELECT ALL + - ( 55 ) * tab1.col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL + - ( 55 ) * tab1.col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + - ( col0 ) AS col1 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + col1 * col0 + - col2 * - 24 * + cor0.col2 FROM tab2 AS cor0
----
17713
20826
35999
query I rowsort
SELECT DISTINCT 91 + col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
191
260
767
query I rowsort
SELECT - ( col0 ) AS col1 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + col2 + col2 * 33 + + col1 AS col1 FROM tab1 AS cor0
----
1862
1948
3277
query I rowsort
SELECT DISTINCT col0 * + col0 + col1 * ( + col2 + + 54 * col2 ) FROM tab2 AS cor0
----
41771
46084
90454
query I rowsort
SELECT + + cor0.col1 * + cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-2883
SELECT col2 + - ( col0 ) * col1 DIV - CAST( cor0.col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-2883
SELECT col2 + - ( col0 ) * col1 / - CAST ( cor0.col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - 4 * 1 * - cor1.col0 AS col0 FROM tab1, tab0 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 888b8a58df867bf3a6c60002decf29dc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2885
SELECT + col2 * CAST( 61 AS SIGNED ) FROM tab1
----
3294
3477
5856
skipif mysql # not compatible
query I rowsort label-2885
SELECT + col2 * CAST ( 61 AS INTEGER ) FROM tab1
----
3294
3477
5856
query I rowsort
SELECT - + col1 + + col0 * cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
118728
49450
720720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 + 90 col2 FROM tab1 AS cor0
----
96
query I rowsort
SELECT ALL col2 + 42 * col1 * 60 AS col1 FROM tab0 AS cor0
----
216753
229402
244441
onlyif mysql # use DIV operator for integer division
query I rowsort label-2889
SELECT ALL - col1 DIV 17 + - col2 FROM tab0
----
-38
-6
-87
skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL - col1 / 17 + - col2 FROM tab0
----
-38
-6
-87
query I rowsort
SELECT DISTINCT cor1.col0 FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT DISTINCT col1 + - col2 * tab0.col2 AS col2 FROM tab0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT 89 AS col0 FROM tab0
----
89
query I rowsort
SELECT - 50 - + col0 * + col2 FROM tab2
----
-2078
-239
-3052
query I rowsort
SELECT - 45 * - col1 AS col0 FROM tab1 cor0
----
1170
450
585
query I rowsort
SELECT ALL col0 * ( + col0 ) - + 57 FROM tab0 cor0
----
1168
519
7864
query I rowsort
SELECT DISTINCT - + 87 * 25 AS col0 FROM tab0 AS cor0
----
-2175
query I rowsort
SELECT ALL 83 + + col0 FROM tab0 AS cor0
----
107
118
172
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 53 * + col2 col2 FROM tab1 AS cor0
----
-2862
-3021
-5088
query I rowsort
SELECT ALL - + ( + ( - cor0.col1 ) ) + - 23 AS col0 FROM tab2 AS cor0
----
-6
36
8
query I rowsort
SELECT DISTINCT cor0.col0 * + col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2901
SELECT + CAST( NULL AS SIGNED ) + + col2 * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2901
SELECT + CAST ( NULL AS INTEGER ) + + col2 * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 5 * 90 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 316d050d2ccd85699e32c52a5108a588
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - col1 * - col1 * - CAST ( col2 AS REAL ) + + col1 + - 32 FROM tab2 AS cor0
----
10967
25946
90533
query I rowsort
SELECT + 61 AS col2 FROM tab0
----
61
61
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-2905
SELECT + 14 + col1 DIV + 11 AS col0 FROM tab0
----
21
22
22
skipif mysql # not compatible
query I rowsort label-2905
SELECT + 14 + col1 / + 11 AS col0 FROM tab0
----
21
22
22
query I rowsort
SELECT DISTINCT + tab2.col0 FROM tab2, tab1, tab0 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - ( col1 ) + col1 + + ( col0 ) * - ( 6 ) FROM tab2 AS cor0
----
-42
-468
-474
query I rowsort
SELECT ALL - cor0.col1 + - col1 FROM tab1 cor0
----
-20
-26
-52
query I rowsort
SELECT + 33 * + col2 + - 0 FROM tab0 AS cor0
----
1089
2706
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-2910
SELECT ALL + - cor0.col0 + - col1 DIV col0 FROM tab1 AS cor0
----
-11
-64
-80
skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL + - cor0.col0 + - col1 / col0 FROM tab1 AS cor0
----
-11
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2911
SELECT ALL 58 DIV col0 FROM tab1 AS cor0
----
0
0
19
skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL 58 / col0 FROM tab1 AS cor0
----
0
0
19
query I rowsort
SELECT DISTINCT - 39 AS col2 FROM tab1 AS cor0
----
-39
query I rowsort
SELECT DISTINCT - + col1 * + col0 + + 67 FROM tab0 AS cor0
----
-1997
-3328
-8032
onlyif mysql # use DIV operator for integer division
query I rowsort label-2914
SELECT - col0 DIV cor0.col0 col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2914
SELECT - col0 / cor0.col0 col2 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2915
SELECT DISTINCT col2 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT col2 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col0 * 82 + + col2 + - col1 AS col0 FROM tab1
----
-218
-5201
-6477
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 731e4a6549b312ba21c2e61ca9bede27
query I rowsort
SELECT - col1 * col2 + 96 AS col2 FROM tab2 cor0
----
-1438
-550
-741
query I rowsort
SELECT DISTINCT col0 * + 4 FROM tab1 cor0
----
12
256
320
query I rowsort
SELECT DISTINCT - - col0 + + col0 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-2921
SELECT - + col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-2921
SELECT - + col2 / + col1 AS col1 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT DISTINCT + + col1 + col0 * + col0 FROM tab2 AS cor0
----
6143
6258
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2923
SELECT col2 + col2 - + col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
164
2
65
skipif mysql # not compatible
query I rowsort label-2923
SELECT col2 + col2 - + col2 / + col0 AS col1 FROM tab0 AS cor0
----
164
2
65
query I rowsort
SELECT - col1 + + col1 * - ( + col2 ) * col1 - cor0.col1 * - col2 AS col1 FROM tab2 AS cor0
----
-10353
-25141
-89031
query I rowsort
SELECT DISTINCT col0 * col2 + 64 FROM tab0 AS cor0
----
7362
856
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2926
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col1 * - ( + ( col2 ) ) * + col0 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-2928
SELECT DISTINCT - ( + 41 ) + col1 DIV + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-37
-41
skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT - ( + 41 ) + col1 / + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-37
-41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2929
SELECT CAST( NULL AS SIGNED ) * col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2929
SELECT CAST ( NULL AS INTEGER ) * col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 9 + 73 FROM tab1 AS cor0
----
82
82
82
query I rowsort
SELECT DISTINCT + ( col2 ) * cor0.col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL col0 + col0 * + col2 + col1 FROM tab0 cor0
----
167
7478
902
onlyif mysql # use DIV operator for integer division
query I rowsort label-2933
SELECT DISTINCT + col0 * col2 DIV cor0.col2 - - col2 AS col0 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT + col0 * col2 / cor0.col2 - - col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL cor0.col2 + - 32 AS col0 FROM tab2 AS cor0
----
-5
-6
6
query I rowsort
SELECT ALL - + 64 AS col2 FROM tab1 AS cor0
----
-64
-64
-64
query I rowsort
SELECT - 60 * 38 + + col1 AS col0 FROM tab1 AS cor0
----
-2254
-2267
-2270
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 * - cor0.col1 col0 FROM tab0 cor0
----
6708
7098
7566
query I rowsort
SELECT col0 * + ( + col1 * + col0 + + col0 * col0 ) AS col0 FROM tab0 AS cor0
----
1425780
161700
63360
query I rowsort
SELECT DISTINCT - - ( - col2 ) + - col1 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2940
SELECT ALL + col0 + - 11 DIV col1 FROM tab1
----
3
63
80
skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL + col0 + - 11 / col1 FROM tab1
----
3
63
80
query I rowsort
SELECT DISTINCT + ( 54 ) FROM tab2, tab1 AS cor0
----
54
query I rowsort
SELECT col0 * 31 + + 29 + col2 FROM tab1
----
176
2070
2605
onlyif mysql # use DIV operator for integer division
query I rowsort label-2943
SELECT + col0 DIV + col2 col0 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2943
SELECT + col0 / + col2 col0 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT - cor0.col2 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT ALL - 75 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2946
SELECT DISTINCT col1 * col0 DIV col1 + col1 FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT col1 * col0 / col1 + col1 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT + col0 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL + 84 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 3c092ed1a99ddb5afc7049fd2b9427f9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2949
SELECT - col2 DIV - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-2949
SELECT - col2 / - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT - + 55 + - cor0.col0 FROM tab2 AS cor0
----
-133
-134
-62
query I rowsort
SELECT DISTINCT cor0.col0 * + col2 * - 9 FROM tab0 AS cor0
----
-315
-65682
-7128
query I rowsort
SELECT col2 * + 29 + - col0 FROM tab2 cor0
----
1023
676
776
query I rowsort
SELECT - col0 + - 39 FROM tab1 AS cor0
----
-103
-119
-42
query I rowsort
SELECT + col0 + 72 * - 48 FROM tab2 AS cor0
----
-3377
-3378
-3449
query I rowsort
SELECT ALL + col0 * col2 + - 93 AS col0 FROM tab1
----
3555
69
7587
query I rowsort
SELECT DISTINCT + 31 + + col1 * col0 AS col0 FROM tab2
----
1374
248
4633
query I rowsort
SELECT DISTINCT col2 + - col2 + 76 FROM tab2
----
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-2958
SELECT ( col0 + - tab1.col1 ) DIV + col0 FROM tab1
----
-7
0
0
skipif mysql # not compatible
query I rowsort label-2958
SELECT ( col0 + - tab1.col1 ) / + col0 FROM tab1
----
-7
0
0
query I rowsort
SELECT + - col0 + - col2 - + col2 FROM tab2 cor0
----
-130
-155
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-2960
SELECT ALL ( + tab2.col2 ) + col2 DIV col0 AS col0 FROM tab2
----
26
30
38
skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL ( + tab2.col2 ) + col2 / col0 AS col0 FROM tab2
----
26
30
38
query I rowsort
SELECT DISTINCT - + 81 * col0 FROM tab1 cor0
----
-243
-5184
-6480
query I rowsort
SELECT + col0 + + 10 FROM tab0 AS cor0
----
34
45
99
query I rowsort
SELECT DISTINCT 20 * 39 + cor0.col0 AS col2 FROM tab1 AS cor0
----
783
844
860
query I rowsort
SELECT ALL - + col1 * 82 + + col0 FROM tab2 AS cor0
----
-1315
-2535
-4760
query I rowsort
SELECT DISTINCT col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ( - 76 ) FROM tab1 AS cor0
----
-76
-76
-76
query I rowsort
SELECT ALL - col1 * col1 + col0 AS col1 FROM tab1 AS cor0
----
-36
-673
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2968
SELECT ALL - 0 DIV ( + cor0.col1 ) + col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL - 0 / ( + cor0.col1 ) + col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + 94 * - col1 FROM tab1 AS cor0
----
-1222
-2444
-940
query I rowsort
SELECT ALL + - 44 * col2 AS col0 FROM tab2 AS cor0
----
-1144
-1188
-1672
query I rowsort
SELECT ALL + - 54 + - 71 FROM tab2 AS cor0
----
-125
-125
-125
query I rowsort
SELECT tab1.col0 * tab1.col2 * - col0 FROM tab1
----
-233472
-486
-614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col1 + + col2 col2 FROM tab2
----
134
163
65
query I rowsort
SELECT - tab0.col1 - + 76 AS col2 FROM tab0
----
-162
-167
-173
query I rowsort
SELECT DISTINCT - 60 + + ( col1 ) FROM tab2 AS cor0
----
-1
-29
-43
query I rowsort
SELECT + + 11 + + col1 FROM tab1 cor0
----
21
24
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2977
SELECT + CAST( NULL AS DECIMAL ) / col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2977
SELECT + CAST ( NULL AS REAL ) / col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( + 33 + col2 ) FROM tab1
----
129
87
90
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2, tab2 cor1
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2980
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - tab1.col2 AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - tab1.col2 AS col1 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT - 46 * tab0.col2 FROM tab0
----
-1518
-3772
-46
query I rowsort
SELECT DISTINCT + col1 * tab1.col2 AS col2 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-2983
SELECT DISTINCT col2 DIV col2 - ( - 17 ) AS col2 FROM tab0 AS cor0
----
18
skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT col2 / col2 - ( - 17 ) AS col2 FROM tab0 AS cor0
----
18
query I rowsort
SELECT ALL + 49 AS col0 FROM tab1
----
49
49
49
query I rowsort
SELECT cor0.col1 * + 36 * cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 7a18233a57a1ae6a76bb715fa50674db
query I rowsort
SELECT + - 28 + + col2 * + 69 * col2 AS col1 FROM tab1 AS cor0
----
201176
224153
635876
query I rowsort
SELECT ( + col2 ) + + ( 31 ) AS col2 FROM tab0 AS cor0
----
113
32
64
query I rowsort
SELECT cor0.col2 + col2 * cor0.col1 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT ALL col2 * - 81 AS col1 FROM tab1
----
-4374
-4617
-7776
query I rowsort
SELECT ALL ( - tab1.col1 ) * tab1.col0 FROM tab1, tab1 cor0
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f
query I rowsort
SELECT col0 + ( col1 ) * - col0 * + col2 + 64 AS col1 FROM tab0
----
-3296
-663965
-68024
query I rowsort
SELECT DISTINCT col2 + - ( + col1 * - col1 ) FROM tab2
----
327
3507
988
query I rowsort
SELECT 89 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT DISTINCT col2 + + 89 AS col1 FROM tab0 AS cor0
----
122
171
90
query I rowsort
SELECT DISTINCT - col1 * - 85 AS col2 FROM tab0 AS cor0
----
7310
7735
8245
query I rowsort
SELECT + col2 * + 77 + + ( - col0 ) * + 70 AS col1 FROM tab2 AS cor0
----
-2604
-3458
1589
query I rowsort
SELECT ALL - col2 + + col2 * col1 AS col2 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2998
SELECT ALL col0 * CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL col0 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - col1 + ( 57 ) * + col2 * + 82 AS col2 FROM tab1 AS cor0
----
252370
266408
448691
query I rowsort
SELECT DISTINCT + + col1 * 72 * col0 + - col1 - col2 * col0 FROM tab2 AS cor0
----
15404
329257
93677
query I rowsort
SELECT ALL + col1 * + ( + 1 ) AS col0 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * - 23 + + col1 * + col0 col1 FROM tab0 cor0
----
1305
3372
6213
query I rowsort
SELECT 48 * + col0 FROM tab2 AS cor0
----
336
3744
3792
query I rowsort
SELECT - ( col0 ) * col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT ( - col2 * col0 ) AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ( ( tab0.col1 ) ) AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT + + col2 * col0 AS col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT - - col1 * - col2 * - col1 AS col1 FROM tab1 AS cor0
----
16224
36504
5700
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2
query I rowsort
SELECT ALL col0 * - 96 AS col2 FROM tab1 AS cor0
----
-288
-6144
-7680
query I rowsort
SELECT - col1 * col0 * 96 AS col1 FROM tab2 cor0
----
-128928
-20832
-441792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - col1 + - 23 + - col0 col0 FROM tab1 AS cor0
----
-104
-1143
-727
query I rowsort
SELECT DISTINCT - + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT col0 * 8 AS col2 FROM tab2 AS cor0
----
56
624
632
query I rowsort
SELECT + cor0.col2 * 59 AS col1 FROM tab1 AS cor0
----
3186
3363
5664
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 col0 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT + + col1 + 53 AS col2 FROM tab1 AS cor0
----
63
66
79
query I rowsort
SELECT + col1 + + col2 + - 61 AS col2 FROM tab1 AS cor0
----
19
48
6
query I rowsort
SELECT DISTINCT + cor0.col0 * 5 FROM tab2 AS cor0
----
35
390
395
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to d6394df0309139ffe20e7d96c77e26ee
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * - col0 * col2 col1 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT DISTINCT + ( 43 ) + col1 FROM tab2 AS cor0
----
102
60
74
query I rowsort
SELECT ALL - + col0 * col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT 2 * - col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 cor2
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe
onlyif mysql # use DIV operator for integer division
query I rowsort label-3026
SELECT DISTINCT col0 + - col1 * + col2 DIV - col2 + - col2 AS col2 FROM tab0 cor0
----
131
77
98
skipif mysql # not compatible
query I rowsort label-3026
SELECT DISTINCT col0 + - col1 * + col2 / - col2 + - col2 AS col2 FROM tab0 cor0
----
131
77
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 * + 50 col1 FROM tab1 AS cor0
----
1297
436
570
query I rowsort
SELECT DISTINCT col2 + + col1 + col2 FROM tab1 AS cor0
----
124
134
205
query I rowsort
SELECT DISTINCT col2 * col0 + - 33 FROM tab2 AS cor0
----
156
1995
2969
query I rowsort
SELECT + 43 * + col0 AS col0 FROM tab2 AS cor0
----
301
3354
3397
query I rowsort
SELECT + 81 + + col2 * - col2 FROM tab1 AS cor0
----
-2835
-3168
-9135
query I rowsort
SELECT col2 + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT - col1 * + ( col0 ) + - col0 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT ALL - col2 * tab1.col1 AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + 13 * + col2 AS col0 FROM tab2 cor0
----
338
351
494
query I rowsort
SELECT - + 92 * - col2 * col0 AS col1 FROM tab1 AS cor0
----
14904
335616
706560
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0, tab2, tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL 26 * - col1 * ( ( - col0 ) * col1 ) + - 82 FROM tab2
----
174820
593524
7059386
query I rowsort
SELECT ( 26 ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT DISTINCT + col2 - - col0 * col1 FROM tab1
----
1136
132
697
query I rowsort
SELECT + tab0.col0 + - col0 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + - 9 FROM tab1 AS cor0
----
-6
55
71
query I rowsort
SELECT ALL - col0 * - col2 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1260
1368
15219
query I rowsort
SELECT - cor0.col2 * - 59 + + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 41aa1292e7b0a24d9dce4b101d4a8638
query I rowsort
SELECT ALL + col2 + col0 * col1 FROM tab1
----
1136
132
697
query I rowsort
SELECT 54 * - 17 FROM tab1, tab1 AS cor0
----
9 values hashing to 05967df4d1708762b74836d0a167b451
query I rowsort
SELECT - col2 + + ( tab0.col2 + - col0 ) AS col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT col2 * 54 AS col0 FROM tab2
----
1404
1458
2052
query I rowsort
SELECT ALL + col2 + ( - col1 ) FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT ALL col2 * ( col2 ) FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT col0 * 91 FROM tab2
----
637
7098
7189
query I rowsort
SELECT ALL - ( + 78 * - col1 ) AS col2 FROM tab0
----
6708
7098
7566
onlyif mysql # use DIV operator for integer division
query I rowsort label-3053
SELECT - 5 DIV col2 + - col0 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-3053
SELECT - 5 / col2 + - col0 FROM tab1
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3054
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col2 FROM tab2
----
NULL
query I rowsort
SELECT col2 + + tab0.col2 * col1 AS col1 FROM tab0
----
2871
7544
98
query I rowsort
SELECT ALL - 25 AS col1 FROM tab0
----
-25
-25
-25
query I rowsort
SELECT - ( 42 ) + - col2 AS col0 FROM tab1
----
-138
-96
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3058
SELECT CAST( col2 AS SIGNED ) FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3058
SELECT CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + col0 * col1 + - col0 FROM tab2 cor0
----
1264
210
4524
query I rowsort
SELECT ALL + - col1 + - col1 FROM tab0 cor0
----
-172
-182
-194
query I rowsort
SELECT ALL + ( col2 ) * - col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - col1 * - col1 - 45 * col1 AS col1 FROM tab0 AS cor0
----
3526
4186
5044
onlyif mysql # use DIV operator for integer division
query I rowsort label-3063
SELECT ALL 76 DIV cor0.col0 FROM tab0 cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL 76 / cor0.col0 FROM tab0 cor0
----
0
2
3
query I rowsort
SELECT ALL + - col2 * col2 - ( ( col1 ) ) * 76 AS col0 FROM tab2 AS cor0
----
-2736
-3085
-5160
query I rowsort
SELECT DISTINCT + - col2 - col1 AS col1 FROM tab2 cor0
----
-55
-58
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3066
SELECT DISTINCT 82 + col1 * - CAST( NULL AS SIGNED ) * - cor0.col2 + cor0.col0 * - 16 * + col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT 82 + col1 * - CAST ( NULL AS INTEGER ) * - cor0.col2 + cor0.col0 * - 16 * + col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3067
SELECT ALL - cor0.col1 DIV col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL - cor0.col1 / col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT DISTINCT 48 * col0 + + 72 FROM tab0 AS cor0
----
1224
1752
4344
query I rowsort
SELECT DISTINCT + ( - col2 + col1 * col0 ) AS col1 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT ALL + - ( - col0 ) * ( col0 ) FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - - col2 * + cor0.col1 + 58 AS col1 FROM tab2 AS cor0
----
1592
704
895
query I rowsort
SELECT ALL 47 AS col2 FROM tab0 AS cor0
----
47
47
47
query I rowsort
SELECT - - col1 * + cor0.col0 - col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT col1 * + col2 AS col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL + col1 + cor0.col2 * col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT col2 + col2 * + col0 FROM tab0 AS cor0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 + col1 col2 FROM tab0
----
168
173
179
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to d752a38ff42b067eedd12ad6c3f9365e
onlyif mysql # use DIV operator for integer division
query I rowsort label-3079
SELECT ALL - 87 DIV + cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL - 87 / + cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
onlyif mysql # use DIV operator for integer division
query I rowsort label-3080
SELECT ALL col1 DIV + col2 + - 12 FROM tab1 AS cor0
----
-12
-12
-12
skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL col1 / + col2 + - 12 FROM tab1 AS cor0
----
-12
-12
-12
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab1 cor0, tab0 AS cor1
----
972 values hashing to 5e655b1287771868a8f868574a94d749
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col1 FROM tab1
----
6
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 + + col0 col0 FROM tab1 AS cor0
----
100
23
84
query I rowsort
SELECT 23 * cor0.col0 FROM tab1 AS cor0
----
1472
1840
69
query I rowsort
SELECT DISTINCT + tab2.col1 * col2 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT 84 AS col1 FROM tab2, tab2 AS cor0
----
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3087
SELECT + col2 + + CAST( NULL AS DECIMAL ) * + col2 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3087
SELECT + col2 + + CAST ( NULL AS REAL ) * + col2 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + ( - col2 ) FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - + col2 * cor0.col2 * - 73 + col2 FROM tab1 AS cor0
----
212922
237234
672864
query I rowsort
SELECT 46 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3091
SELECT CAST( NULL AS SIGNED ) * - cor0.col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3091
SELECT CAST ( NULL AS INTEGER ) * - cor0.col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 22 * col2 + col2 FROM tab1 AS cor0
----
1242
1311
2208
query I rowsort
SELECT ALL + 80 * col1 FROM tab0 AS cor0
----
6880
7280
7760
query I rowsort
SELECT DISTINCT - cor0.col0 + + col0 * + cor0.col0 FROM tab0 cor0
----
1190
552
7832
query I rowsort
SELECT ALL - ( 47 ) * col1 - + ( + col1 ) FROM tab2 cor0
----
-1488
-2832
-816
query I rowsort
SELECT - 63 * col0 + + col1 AS col0 FROM tab0 AS cor0
----
-1426
-2108
-5516
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 49 + col0 col2 FROM tab0 AS cor0
----
1200
1750
4450
query I rowsort
SELECT - + 85 * 12 + col1 FROM tab0 AS cor0
----
-923
-929
-934
query I rowsort
SELECT col1 * + col1 * col1 FROM tab0 AS cor0
----
636056
753571
912673
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * - col0 col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT 15 AS col2 FROM tab1, tab2 AS cor0
----
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-3102
SELECT + col2 + + col2 DIV col2 col0 FROM tab0 AS cor0
----
2
34
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3102
SELECT + col2 + + col2 / col2 col0 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT + 76 + - col2 * - col2 * + col1 FROM tab2 AS cor0
----
22675
24624
39960
onlyif mysql # use DIV operator for integer division
query I rowsort label-3104
SELECT - col1 DIV + col2 AS col0 FROM tab0 cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-3104
SELECT - col1 / + col2 AS col0 FROM tab0 cor0
----
-1
-2
-97
query I rowsort
SELECT ALL + 70 * + col1 FROM tab0 AS cor0
----
6020
6370
6790
onlyif mysql # use DIV operator for integer division
query I rowsort label-3106
SELECT DISTINCT - col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT - col2 / col2 AS col1 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT DISTINCT - - 21 + + col0 FROM tab2 AS cor0
----
100
28
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * 51 col1 FROM tab0 AS cor0
----
1224
1785
4539
query I rowsort
SELECT ALL - - 87 * + col0 FROM tab0 AS cor0
----
2088
3045
7743
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + + col2 col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT - - ( cor0.col0 ) AS col1 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + + 50 * - col1 AS col2 FROM tab2 AS cor0
----
-1550
-2950
-850
query I rowsort
SELECT + 59 + - col1 AS col2 FROM tab0 AS cor0
----
-27
-32
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 66 - - cor0.col1 * + col0 col1 FROM tab1 AS cor0
----
-14
564
961
query I rowsort
SELECT + col0 * - col2 + 66 FROM tab0 AS cor0
----
-7232
-726
31
query I rowsort
SELECT + col0 * - 15 + col0 FROM tab2 AS cor0
----
-1092
-1106
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3117
SELECT col2 DIV 61 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3117
SELECT col2 / 61 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col2 + 86 AS col1 FROM tab2 AS cor0
----
112
113
124
query I rowsort
SELECT + - col0 * col1 + + 6 * col1 - col1 FROM tab1 AS cor0
----
-590
-975
52
query I rowsort
SELECT - col0 * - col1 + + 66 AS col1 FROM tab2 AS cor0
----
1409
283
4668
onlyif mysql # use DIV operator for integer division
query I rowsort label-3121
SELECT DISTINCT - col1 * col2 DIV - col0 FROM tab1
----
15
468
8
skipif mysql # not compatible
query I rowsort label-3121
SELECT DISTINCT - col1 * col2 / - col0 FROM tab1
----
15
468
8
query I rowsort
SELECT 94 AS col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT + cor0.col0 - - col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT col2 - + ( col0 ) AS col2 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT ALL + + col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + 25 - col1 * + col0 col2 FROM tab1 AS cor0
----
-45
1351
233
onlyif mysql # use DIV operator for integer division
query I rowsort label-3127
SELECT ALL 66 + col0 DIV 6 col1 FROM tab0
----
70
71
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL 66 + col0 / 6 col1 FROM tab0
----
70
71
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3128
SELECT ALL col0 + col2 * tab2.col1 DIV - 49 AS col0 FROM tab2
----
-10
47
66
skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL col0 + col2 * tab2.col1 / - 49 AS col0 FROM tab2
----
-10
47
66
query I rowsort
SELECT DISTINCT + tab0.col2 + tab0.col1 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL col2 + col2 + col2 AS col2 FROM tab1 AS cor0
----
162
171
288
query I rowsort
SELECT tab0.col0 + col0 + 80 AS col1 FROM tab0
----
128
150
258
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * - col0 col2 FROM tab1
----
-285
-6080
-7600
query I rowsort
SELECT ALL + tab2.col0 * - col1 + - ( + col1 ) FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT col0 + + col2 * 20 FROM tab0
----
1729
55
684
query I rowsort
SELECT ALL col2 * - ( - 81 ) + - col0 * ( + cor0.col0 + - cor0.col1 ) FROM tab2 AS cor0
----
-1820
2355
624
onlyif mysql # use DIV operator for integer division
query I rowsort label-3136
SELECT DISTINCT - col1 DIV - col1 AS col2 FROM tab2 cor0
----
1
skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT - col1 / - col1 AS col2 FROM tab2 cor0
----
1
query I rowsort
SELECT + - col0 + - cor0.col2 * + col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT DISTINCT - - col0 * col2 - + cor0.col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL - - col0 + + col0 AS col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT - col1 * - 32 + col0 FROM tab2 AS cor0
----
1966
623
999
query I rowsort
SELECT + - col2 * - 5 + - col1 FROM tab1 AS cor0
----
244
275
467
query I rowsort
SELECT - col2 * col2 + - cor0.col2 FROM tab0 cor0
----
-1122
-2
-6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-3144
SELECT ALL col2 DIV ( - 96 ) + - col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL col2 / ( - 96 ) + - col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - col2 * - col2 - + col2 AS col1 FROM tab1 AS cor0
----
2862
3192
9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-3146
SELECT ALL + col0 + col2 DIV col0 FROM tab1 AS cor0
----
21
64
81
skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL + col0 + col2 / col0 FROM tab1 AS cor0
----
21
64
81
query I rowsort
SELECT ALL + + col2 - 83 * col2 * col1 AS col0 FROM tab2 AS cor0
----
-127296
-53580
-69444
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3148
SELECT DISTINCT + - col2 * ( - cor0.col0 * col1 ) + CAST( - 48 + col0 AS SIGNED ) FROM tab2 AS cor0
----
119682
51065
5818
skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT + - col2 * ( - cor0.col0 * col1 ) + CAST ( - 48 + col0 AS INTEGER ) FROM tab2 AS cor0
----
119682
51065
5818
onlyif mysql # use DIV operator for integer division
query I rowsort label-3149
SELECT ALL col1 DIV col0 AS col1 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL col1 / col0 AS col1 FROM tab0
----
1
2
3
query I rowsort
SELECT + col1 + col0 * col0 + - tab0.col0 * - col0 FROM tab0
----
1238
15933
2547
onlyif mysql # use DIV operator for integer division
query I rowsort label-3151
SELECT ALL col2 * col1 DIV col0 AS col1 FROM tab0
----
118
2
83
skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL col2 * col1 / col0 AS col1 FROM tab0
----
118
2
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3152
SELECT ALL - col2 DIV - col0 AS col2 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL - col2 / - col0 AS col2 FROM tab0
----
0
0
1
query I rowsort
SELECT tab2.col0 + + col0 + col0 FROM tab2
----
21
234
237
query I rowsort
SELECT tab0.col1 - col2 AS col0 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3155
SELECT col0 + - col2 DIV tab2.col1 AS col0 FROM tab2
----
7
77
78
skipif mysql # not compatible
query I rowsort label-3155
SELECT col0 + - col2 / tab2.col1 AS col0 FROM tab2
----
7
77
78
query I rowsort
SELECT tab2.col0 - - tab2.col1 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT - col1 - col2 FROM tab2
----
-55
-58
-85
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL - col0 - - col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT - tab0.col2 * - col0 * - tab0.col2 + - col0 AS col2 FROM tab0
----
-26160
-598525
-70
query III rowsort
SELECT * FROM tab1 WHERE col2 NOT IN ( + col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT - tab2.col2 AS col1 FROM tab2 WHERE ( NULL ) < col1
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col0 * col1 - + col2 ) NOT IN ( col1 * - col2 * + tab2.col1 + - col2 )
----
query I rowsort
SELECT + col0 * - col0 + col1 + - tab0.col0 * + col2 FROM tab0
----
-1163
-1282
-15128
query I rowsort
SELECT ALL - + 47 AS col1 FROM tab1 AS cor0
----
-47
-47
-47
onlyif mysql # use DIV operator for integer division
query I rowsort label-3166
SELECT + - col1 DIV + col2 + col2 * cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-3166
SELECT + - col1 / + col2 + col2 * cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT col2 - + tab0.col0 AS col2 FROM tab0
----
-34
-7
9
query I rowsort
SELECT + col0 * + cor0.col1 + col1 * + 11 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-10354
-1836
-33689
query I rowsort
SELECT ALL + + cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3170
SELECT DISTINCT - col1 * cor0.col0 + CAST( col0 AS SIGNED ) + col1 FROM tab2 cor0
----
-1247
-179
-4465
skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT - col1 * cor0.col0 + CAST ( col0 AS INTEGER ) + col1 FROM tab2 cor0
----
-1247
-179
-4465
query I rowsort
SELECT ALL + - col0 * cor0.col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - - col2 * + col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + + 65 * + col1 FROM tab0 AS cor0
----
5590
5915
6305
query I rowsort
SELECT ( + col2 ) + ( col2 ) AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - + 20 + col2 AS col2 FROM tab2 cor0
----
18
6
7
query I rowsort
SELECT ALL + - col0 + + col2 * + cor0.col2 FROM tab2 cor0
----
1365
598
722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3177
SELECT - + cor0.col2 * CAST( col1 AS SIGNED ) + cor0.col1 FROM tab2 AS cor0
----
-1475
-629
-806
skipif mysql # not compatible
query I rowsort label-3177
SELECT - + cor0.col2 * CAST ( col1 AS INTEGER ) + cor0.col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT - col2 * ( + col1 ) + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT + + col1 * + ( 11 ) AS col2 FROM tab0 AS cor0
----
1001
1067
946
query I rowsort
SELECT + col0 * - col2 * - col0 FROM tab1
----
233472
486
614400
query I rowsort
SELECT + 93 + tab0.col0 * + 98 * col0 + col0 AS col0 FROM tab0
----
120178
56565
776440
onlyif mysql # use DIV operator for integer division
query I rowsort label-3182
SELECT ALL - - ( - col1 ) DIV col0 + col0 AS col0 FROM tab1 AS cor0
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL - - ( - col1 ) / col0 + col0 AS col0 FROM tab1 AS cor0
----
-5
64
80
query I rowsort
SELECT DISTINCT cor0.col1 + - col0 * - col1 * + ( - 33 ) FROM tab2 AS cor0
----
-151807
-44302
-7130
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 19 + col1 FROM tab2 AS cor0
----
36
50
78
query I rowsort
SELECT 33 * 7 AS col0 FROM tab1 AS cor0
----
231
231
231
query I rowsort
SELECT ALL 80 + col1 FROM tab2 AS cor0
----
111
139
97
query I rowsort
SELECT + col1 + col0 * - col1 * col1 FROM tab2
----
-22814
-271459
-6696
query I rowsort
SELECT - 64 * col2 + col2 AS col2 FROM tab2
----
-1638
-1701
-2394
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 * col2 ) - tab2.col2 col1 FROM tab2
----
-1560
-684
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 31 * cor0.col2 col2 FROM tab2 AS cor0
----
1195
865
868
query I rowsort
SELECT + 78 AS col1 FROM tab0 AS cor0
----
78
78
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3193
SELECT ALL + - col1 DIV 67 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL + - col1 / 67 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3194
SELECT - 34 DIV - cor0.col1 AS col1 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-3194
SELECT - 34 / - cor0.col1 AS col1 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT DISTINCT 48 AS col2 FROM tab0 cor0
----
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 col2 FROM tab2
----
7
7
7
query I rowsort
SELECT col2 * ( + col2 ) + col0 * col0 FROM tab2 AS cor0
----
6760
7685
778
query I rowsort
SELECT - col2 * col2 * col2 FROM tab2 AS cor0
----
-17576
-19683
-54872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * 34 col0 FROM tab1 AS cor0
----
-102
-2176
-2720
onlyif mysql # use DIV operator for integer division
query I rowsort label-3200
SELECT ALL tab2.col1 DIV + col0 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL tab2.col1 / + col0 FROM tab2
----
0
0
4
query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - ( - col0 + col0 ) col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL col2 * - col1 + + ( - col1 ) AS col0 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT ALL - col1 * tab0.col2 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + cor0.col2 * - tab1.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 6e831ce95b59398818a720c8e9b6e293
query I rowsort
SELECT ALL 42 FROM tab0, tab0 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query I rowsort
SELECT tab1.col0 AS col0 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT cor1.col0 AS col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - cor2.col1 ) + + ( cor1.col1 ) col2 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to c71350dca6d4123924ad9f9b7b981ed6
query I rowsort
SELECT + - tab1.col0 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT tab1.col2 * - 7 FROM tab1
----
-378
-399
-672
query I rowsort
SELECT col1 + + 77 + + col0 * + tab1.col2 AS col1 FROM tab1
----
265
3735
7770
query I rowsort
SELECT 1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ( col0 * + col2 ) FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-3215
SELECT 29 DIV - col2 AS col0 FROM tab0
----
-29
0
0
skipif mysql # not compatible
query I rowsort label-3215
SELECT 29 / - col2 AS col0 FROM tab0
----
-29
0
0
query I rowsort
SELECT ALL - col2 + - ( col1 ) * col2 AS col0 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT - col1 * + col1 + + col0 AS col1 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT ALL 2 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT col0 + col2 * - col0 AS col1 FROM tab1
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-3220
SELECT cor0.col1 * - col0 - 33 DIV - ( col2 ) FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-3220
SELECT cor0.col1 * - col0 - 33 / - ( col2 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - col1 * col1 + col2 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT ALL - col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - col0 * 12 col2 FROM tab0 cor0
----
1150
321
421
query I rowsort
SELECT + col2 * col0 + + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + col2 * - cor0.col2 + col2 * col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 + col1 * - 1 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3227
SELECT ALL col1 * + cor0.col0 + + CAST( NULL AS SIGNED ) / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL col1 * + cor0.col0 + + CAST ( NULL AS INTEGER ) / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3228
SELECT DISTINCT - 20 + - col1 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
-20
skipif mysql # not compatible
query I rowsort label-3228
SELECT DISTINCT - 20 + - col1 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
-20
query I rowsort
SELECT DISTINCT + - 78 * - cor0.col1 + + col2 + - cor0.col0 FROM tab0 AS cor0
----
6717
7091
7532
query I rowsort
SELECT ALL - + col2 - col1 * - 18 AS col0 FROM tab0 cor0
----
1515
1556
1745
query I rowsort
SELECT ALL - - col1 * col1 AS col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT + - 72 + - col1 FROM tab1 cor0
----
-82
-85
-98
query I rowsort
SELECT - col1 * + col1 + cor0.col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT + tab0.col0 + + cor1.col2 AS col1 FROM tab0, tab1, tab0 AS cor0, tab2 AS cor1
----
115
116
127
50
51
61
62
73
query I rowsort
SELECT - - ( - col0 ) - col0 * 88 AS col0 FROM tab2 cor0
----
-623
-6942
-7031
query I rowsort
SELECT - col2 * 94 FROM tab1 AS cor0
----
-5076
-5358
-9024
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3237
SELECT + col1 + + CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-3237
SELECT + col1 + + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + col0 * + 7 FROM tab1 AS cor0
----
21
448
560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 + col2 + cor0.col1 col2 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT ALL - col0 * 98 + 59 * - col2 AS col0 FROM tab0 AS cor0
----
-13560
-3489
-4299
query I rowsort
SELECT col1 * 75 + col0 FROM tab2 AS cor0
----
1354
2332
4503
query I rowsort
SELECT ALL + col1 * - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT - cor0.col2 + col2 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3244
SELECT DISTINCT - col0 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3244
SELECT DISTINCT - col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - cor0.col1 * col2 + - col2 FROM tab1 cor0
----
-1344
-1458
-627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3246
SELECT + CAST( NULL AS SIGNED ) * - 96 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3246
SELECT + CAST ( NULL AS INTEGER ) * - 96 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + 98 * col2 FROM tab2 AS cor0
----
2548
2646
3724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col2 col1 FROM tab0, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 39615739daa2056ffb6e430a8ff0bfc8
query I rowsort
SELECT + + 82 * - col0 * + col0 FROM tab0 AS cor0
----
-100450
-47232
-649522
query I rowsort
SELECT + - col1 * - col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + 33 AS col2 FROM tab2 AS cor0
----
33
33
33
query I rowsort
SELECT ALL + - 33 + + col2 FROM tab2 AS cor0
----
-6
-7
5
query I rowsort
SELECT DISTINCT - col1 + - col2 AS col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT + cor0.col1 * ( col2 ) + col0 AS col0 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT + - col2 * - 10 * col0 + cor0.col1 FROM tab2 cor0
----
1921
20339
30037
query I rowsort
SELECT ALL 29 * col2 AS col2 FROM tab1 AS cor0
----
1566
1653
2784
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 38 AS REAL ) * col2 - - CAST ( - cor0.col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1033
-1066
-1523
query I rowsort
SELECT DISTINCT col2 * col2 + + cor0.col2 * ( col0 ) AS col0 FROM tab1 AS cor0
----
16896
3078
6897
query I rowsort
SELECT ALL col1 * - 99 - - col1 AS col2 FROM tab2 AS cor0
----
-1666
-3038
-5782
query I rowsort
SELECT tab2.col0 * + ( 3 + col2 ) AS col2 FROM tab2
----
210
2262
3239
query I rowsort
SELECT + 83 - 79 AS col1 FROM tab1 AS cor0
----
4
4
4
query I rowsort
SELECT + + cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - 8 + - col1 AS col0 FROM tab1 AS cor0
----
-18
-21
-34
query I rowsort
SELECT ALL col1 * 47 FROM tab1 AS cor0
----
1222
470
611
query I rowsort
SELECT DISTINCT - 10 * - col2 AS col1 FROM tab2 AS cor0
----
260
270
380
query I rowsort
SELECT ( col2 ) - - col1 FROM tab1 cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3269
SELECT col1 * + ( - col1 ) DIV + col1 AS col0 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-3269
SELECT col1 * + ( - col1 ) / + col1 AS col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL + ( + tab2.col1 ) * col2 + col2 FROM tab2
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col2 + ( + cor0.col1 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b8b62762005dc0d7237145d0538edb34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 + + col0 col2 FROM tab2
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3273
SELECT - col0 DIV - 18 + - col0 FROM tab2 AS cor0
----
-7
-74
-75
skipif mysql # not compatible
query I rowsort label-3273
SELECT - col0 / - 18 + - col0 FROM tab2 AS cor0
----
-7
-74
-75
query I rowsort
SELECT - 2 * col0 AS col1 FROM tab2 cor0
----
-14
-156
-158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3275
SELECT ALL CAST( + col1 AS SIGNED ) * col0 + 7 * col2 FROM tab1 AS cor0
----
1039
1712
456
skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL CAST ( + col1 AS INTEGER ) * col0 + 7 * col2 FROM tab1 AS cor0
----
1039
1712
456
query I rowsort
SELECT - cor0.col0 * + 83 + col2 + 37 AS col2 FROM tab1 AS cor0
----
-158
-5218
-6507
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3277
SELECT DISTINCT + CAST( + col0 AS SIGNED ) * col2 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) * col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-3278
SELECT ALL + - 64 DIV + 9 + cor0.col1 FROM tab1 AS cor0
----
19
3
6
skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL + - 64 / + 9 + cor0.col1 FROM tab1 AS cor0
----
19
3
6
query I rowsort
SELECT DISTINCT - 17 FROM tab1 cor0
----
-17
query I rowsort
SELECT ALL - col2 + ( 67 * - cor0.col0 ) + + cor0.col2 AS col2 FROM tab0 cor0
----
-1608
-2345
-5963
query I rowsort
SELECT ALL col1 - 14 FROM tab2 AS cor0
----
17
3
45
query I rowsort
SELECT ALL + col0 * 90 AS col1 FROM tab1 AS cor0
----
270
5760
7200
query I rowsort
SELECT DISTINCT col2 + + col1 * 3 AS col1 FROM tab1 AS cor0
----
132
135
87
query I rowsort
SELECT - col0 + col2 * col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT - col0 * + col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + + col2 * - 67 FROM tab1 cor0
----
-3618
-3819
-6432
query I rowsort
SELECT - 43 FROM tab1, tab1 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
query I rowsort
SELECT 84 + cor0.col1 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to b76dbfc790bfe920a78eb35a0c4f628a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col0 col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT col1 + + 79 * col2 - col0 AS col2 FROM tab1 cor0
----
4289
4449
7517
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3291
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col1 * + 36 FROM tab2 AS cor0
----
1116
2124
612
query I rowsort
SELECT + col1 + 77 AS col2 FROM tab0 AS cor0
----
163
168
174
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3294
SELECT DISTINCT + col1 * + CAST( + col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT + col1 * + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - - col1 + ( col1 ) AS col2 FROM tab1 AS cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( + col1 + - col1 ) col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 + + 44 * + col0 AS col1 FROM tab2 cor0
----
277
3373
3459
query I rowsort
SELECT ALL + + col1 * 5 FROM tab0 AS cor0
----
430
455
485
query I rowsort
SELECT DISTINCT + col1 + 98 AS col2 FROM tab1 AS cor0
----
108
111
124
onlyif mysql # use DIV operator for integer division
query I rowsort label-3300
SELECT + col1 DIV col2 AS col0 FROM tab0 cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-3300
SELECT + col1 / col2 AS col0 FROM tab0 cor0
----
1
2
97
query I rowsort
SELECT DISTINCT - ( col0 ) AS col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT + 91 * col2 AS col0 FROM tab0 AS cor0
----
3003
7462
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 68 + - cor0.col0 col0 FROM tab0 cor0
----
-103
-157
-92
query I rowsort
SELECT ALL - 76 - col1 AS col1 FROM tab1 AS cor0
----
-102
-86
-89
query I rowsort
SELECT ALL - cor1.col1 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3306
SELECT DISTINCT - col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT - col2 / col1 AS col1 FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT DISTINCT ( col0 ) + ( - col0 ) AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - 2 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387
query I rowsort
SELECT ALL - + 51 FROM tab2 AS cor0
----
-51
-51
-51
query I rowsort
SELECT DISTINCT - col1 + + col1 * + cor0.col0 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT ALL - col1 + + col1 AS col1 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3312
SELECT - col2 * col1 + + 14 DIV - col1 AS col0 FROM tab0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-3312
SELECT - col2 * col1 + + 14 / - col1 AS col0 FROM tab0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3313
SELECT DISTINCT + col1 + col2 + - col0 DIV + tab1.col2 AS col0 FROM tab1
----
109
66
80
skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT + col1 + col2 + - col0 / + tab1.col2 AS col0 FROM tab1
----
109
66
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3314
SELECT - col1 + - col1 DIV col1 AS col1 FROM tab2
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-3314
SELECT - col1 + - col1 / col1 AS col1 FROM tab2
----
-18
-32
-60
query I rowsort
SELECT ALL col2 * - cor0.col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 + cor0.col1 * - 16 + col0 col0 FROM tab1 AS cor0
----
-32
-359
-39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 10 * - col2 col2 FROM tab0
----
-10
-330
-820
query I rowsort
SELECT col2 * tab2.col0 + - col1 FROM tab2
----
158
1969
2985
query I rowsort
SELECT + 96 - col2 * - col1 AS col2 FROM tab2
----
1630
742
933
query I rowsort
SELECT 85 + col0 AS col1 FROM tab2
----
163
164
92
query I rowsort
SELECT - 1 * 85 * - col1 AS col0 FROM tab1
----
1105
2210
850
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + cor0.col0 + + col1 * col2 * col1 col0 FROM tab2 AS cor0
----
11099
25981
90610
skipif mysql # not compatible
query I rowsort
SELECT - col1 * + ( col1 ) - + CAST ( + 31 AS REAL ) AS col0 FROM tab0 AS cor0
----
-7427
-8312
-9440
onlyif mysql # use DIV operator for integer division
query I rowsort label-3324
SELECT ( col2 ) DIV + col1 + col2 AS col0 FROM tab1 cor0
----
103
56
62
skipif mysql # not compatible
query I rowsort label-3324
SELECT ( col2 ) / + col1 + col2 AS col0 FROM tab1 cor0
----
103
56
62
query I rowsort
SELECT + - col2 + + col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-13
120
130
query I rowsort
SELECT - 5 * - col0 + + col2 - - col2 FROM tab1 AS cor0
----
123
434
592
query I rowsort
SELECT ALL - ( 21 + + col1 ) AS col2 FROM tab2
----
-38
-52
-80
query I rowsort
SELECT 54 * - col1 AS col1 FROM tab1
----
-1404
-540
-702
query I rowsort
SELECT + cor0.col1 * cor0.col1 AS col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT - col1 * col0 * - col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT - + col1 * - 18 AS col1 FROM tab0 AS cor0
----
1548
1638
1746
query I rowsort
SELECT - tab1.col2 + - tab1.col0 + - col1 FROM tab1
----
-131
-189
-83
query I rowsort
SELECT col2 + col2 * col1 AS col1 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3334
SELECT cor0.col0 * col2 + col0 DIV col1 FROM tab1 cor0
----
162
3654
7686
skipif mysql # not compatible
query I rowsort label-3334
SELECT cor0.col0 * col2 + col0 / col1 FROM tab1 cor0
----
162
3654
7686
onlyif mysql # use DIV operator for integer division
query I rowsort label-3335
SELECT DISTINCT col0 DIV + col0 + - col0 * - tab2.col1 AS col0 FROM tab2
----
1344
218
4603
skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT col0 / + col0 + - col0 * - tab2.col1 AS col0 FROM tab2
----
1344
218
4603
query I rowsort
SELECT ALL col0 + - 75 FROM tab0
----
-40
-51
14
query I rowsort
SELECT - 38 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
query I rowsort
SELECT DISTINCT - col2 * 79 AS col0 FROM tab2
----
-2054
-2133
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-3339
SELECT ALL - ( - cor0.col2 ) + - col2 DIV - col0 FROM tab0 AS cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL - ( - cor0.col2 ) + - col2 / - col0 FROM tab0 AS cor0
----
1
34
82
query I rowsort
SELECT DISTINCT col1 * ( - col0 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3341
SELECT + CAST( NULL AS SIGNED ) * + 25 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3341
SELECT + CAST ( NULL AS INTEGER ) * + 25 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 62 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT col0 + - col1 + col1 FROM tab1
----
3
64
80
query I rowsort
SELECT - col2 * + 16 AS col1 FROM tab0
----
-1312
-16
-528
query I rowsort
SELECT - + 87 AS col2 FROM tab2, tab0, tab2 cor0
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 - col2 col1 FROM tab2
----
-6
5
6
query I rowsort
SELECT ALL 78 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048
onlyif mysql # use DIV operator for integer division
query I rowsort label-3348
SELECT ALL - col2 DIV ( col2 ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL - col2 / ( col2 ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3349
SELECT DISTINCT - + col1 DIV + col2 + col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT - + col1 / + col2 + col1 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 - tab2.col2 * + tab2.col1 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 66d78d719bb36367d77ba0bd8157b089
query I rowsort
SELECT DISTINCT + col1 + col2 + 90 FROM tab0
----
188
209
263
query I rowsort
SELECT + col2 * col2 - + col2 AS col2 FROM tab1
----
2862
3192
9120
query I rowsort
SELECT ALL - 4 AS col1 FROM tab2
----
-4
-4
-4
query I rowsort
SELECT 46 AS col2 FROM tab0
----
46
46
46
query I rowsort
SELECT ALL + col0 + col1 * 1 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - - col1 + col0 + - col1 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - cor0.col0 * 70 AS col0 FROM tab0 AS cor0
----
-1680
-2450
-6230
query I rowsort
SELECT col2 * col2 + + ( - cor0.col1 ) * 31 FROM tab0 AS cor0
----
-1577
-3006
3903
query I rowsort
SELECT ALL + - col1 + col2 AS col0 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT + col2 + 81 FROM tab1 AS cor0
----
135
138
177
query I rowsort
SELECT ALL ( col1 ) FROM tab1 cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 col1 FROM tab2 AS cor0
----
-34
-34
-34
query I rowsort
SELECT DISTINCT + col0 * - col2 + - col1 * - ( col2 ) FROM tab1 cor0
----
-3078
-6432
1242
onlyif mysql # use DIV operator for integer division
query I rowsort label-3364
SELECT - col0 DIV + col2 AS col0 FROM tab0 cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-3364
SELECT - col0 / + col2 AS col0 FROM tab0 cor0
----
-1
-35
0
query I rowsort
SELECT ALL - - cor0.col0 * col1 * - col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT col0 * - cor0.col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 + + ( ( cor0.col1 ) ) col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT + 16 * - col2 * col0 FROM tab0 AS cor0
----
-116768
-12672
-560
query I rowsort
SELECT ALL - - 68 * + col0 FROM tab0 AS cor0
----
1632
2380
6052
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3370
SELECT ALL - col1 + - CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL - col1 + - CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col2 + 24 FROM tab2 AS cor0
----
50
51
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col1 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + col0 + + 60 * col2 FROM tab2 AS cor0
----
1482
1613
2201
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + 69 col2 FROM tab1 AS cor0
----
123
126
165
onlyif mysql # use DIV operator for integer division
query I rowsort label-3375
SELECT DISTINCT + cor0.col0 DIV 45 + col2 FROM tab1 AS cor0
----
54
58
97
skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT + cor0.col0 / 45 + col2 FROM tab1 AS cor0
----
54
58
97
query I rowsort
SELECT ALL - col2 - + 57 FROM tab1 AS cor0
----
-111
-114
-153
query I rowsort
SELECT - + cor0.col0 + - col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT col0 - 37 AS col0 FROM tab0 AS cor0
----
-13
-2
52
query I rowsort
SELECT ALL col0 * - cor0.col2 + col2 + - col0 AS col2 FROM tab2 AS cor0
----
-169
-2080
-3043
query I rowsort
SELECT - + 14 + - 92 + col1 AS col1 FROM tab2 AS cor0
----
-47
-75
-89
query I rowsort
SELECT + - cor0.col2 * - col0 + col2 AS col1 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT + + col2 * col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + cor0.col2 col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + ( + col2 ) + cor0.col0 + - 33 * col0 FROM tab0 AS cor0
----
-1119
-2766
-735
query I rowsort
SELECT ALL col2 + - col0 * + col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL + col0 * 50 AS col2 FROM tab0 AS cor0
----
1200
1750
4450
query I rowsort
SELECT - col0 + col2 + + col0 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 * + col0 col2 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT ALL 30 * - col2 AS col2 FROM tab0 AS cor0
----
-2460
-30
-990
onlyif mysql # use DIV operator for integer division
query I rowsort label-3390
SELECT ALL + + ( - col0 ) + cor0.col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL + + ( - col0 ) + cor0.col2 / + col2 AS col2 FROM tab0 AS cor0
----
-23
-34
-88
query I rowsort
SELECT DISTINCT 41 * + col2 FROM tab2 AS cor0
----
1066
1107
1558
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 33 col1 FROM tab2 AS cor0
----
50
64
92
query I rowsort
SELECT DISTINCT - col0 * - col0 + col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) col2 FROM tab0
----
86
91
97
query I rowsort
SELECT ( + col0 ) * tab1.col0 + col0 FROM tab1
----
12
4160
6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-3397
SELECT + ( + col2 ) DIV col1 + col1 col0 FROM tab1 AS cor0
----
15
20
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3397
SELECT + ( + col2 ) / col1 + col1 col0 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT - + ( col0 ) * + col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - 95 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
-16
-17
-88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3400
SELECT ALL - - CAST( NULL AS SIGNED ) * ( col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL - - CAST ( NULL AS INTEGER ) * ( col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 73 FROM tab0, tab0 cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT - 74 * col2 AS col2 FROM tab0 AS cor0
----
-2442
-6068
-74
query I rowsort
SELECT 9 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
query I rowsort
SELECT 63 * - col2 + col2 FROM tab2
----
-1612
-1674
-2356
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 col2 FROM tab2
----
55
58
85
query I rowsort
SELECT + col0 * col2 * - col1 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - col2 + ( tab2.col1 ) AS col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT col1 * + tab0.col0 + tab0.col1 * col0 FROM tab0
----
16198
4128
6790
query I rowsort
SELECT - ( - col0 ) * + col2 * + 70 FROM tab0
----
2450
510860
55440
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 + - col0 * - CAST ( col1 AS REAL ) FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT - 48 + col2 AS col2 FROM tab2 AS cor0
----
-10
-21
-22
query I rowsort
SELECT DISTINCT 33 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
43
46
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3413
SELECT col2 * cor0.col0 / - CAST( NULL AS SIGNED ) + + col0 + cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3413
SELECT col2 * cor0.col0 / - CAST ( NULL AS INTEGER ) + + col0 + cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 40 * col1 + cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
10938
3915
4232
query I rowsort
SELECT DISTINCT 52 + + col1 FROM tab0 AS cor0
----
138
143
149
query I rowsort
SELECT ALL + - col1 * + col2 * col2 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT + col0 + - cor0.col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col1 col0 FROM tab0
----
0
query I rowsort
SELECT DISTINCT + cor0.col0 * + 7 AS col1 FROM tab0 AS cor0
----
168
245
623
onlyif mysql # use DIV operator for integer division
query I rowsort label-3420
SELECT ALL - - col0 DIV col1 col2 FROM tab1 AS cor0
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL - - col0 / col1 col2 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT cor2.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
query I rowsort
SELECT - + col1 * + 41 AS col0 FROM tab2 AS cor0
----
-1271
-2419
-697
query I rowsort
SELECT - + 27 FROM tab1 AS cor0
----
-27
-27
-27
query I rowsort
SELECT + + 92 AS col0 FROM tab0 cor0
----
92
92
92
query I rowsort
SELECT DISTINCT + 0 AS col0 FROM tab1, tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 + 90 col0 FROM tab2 AS cor0
----
135
135
135
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col2 FROM tab2
----
-35
-35
-35
query I rowsort
SELECT 13 * col0 FROM tab2
----
1014
1027
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-3429
SELECT - 93 DIV col1 FROM tab1 AS cor0
----
-3
-7
-9
skipif mysql # not compatible
query I rowsort label-3429
SELECT - 93 / col1 FROM tab1 AS cor0
----
-3
-7
-9
query I rowsort
SELECT DISTINCT 72 * + col1 * col0 FROM tab0 AS cor0
----
148608
244440
583128
query I rowsort
SELECT - 79 * - col1 FROM tab1 AS cor0
----
1027
2054
790
query I rowsort
SELECT - 90 AS col0 FROM tab1
----
-90
-90
-90
query I rowsort
SELECT + col2 - - cor0.col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT col1 * col1 + col1 * col2 * - cor0.col1 + + col2 FROM tab0 AS cor0
----
-236639
-670679
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + + col1 col0 FROM tab2 AS cor0
----
1461
735
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-3436
SELECT DISTINCT + col1 DIV col2 + col0 * + col0 FROM tab1
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT + col1 / col2 + col0 * + col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT - + cor1.col1 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-17
-31
-59
query I rowsort
SELECT + col1 * col0 + col2 AS col0 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT - - 28 + col1 * - col2 FROM tab0 AS cor0
----
-2810
-69
-7434
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3440
SELECT DISTINCT CAST( col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT CAST ( col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT + 79 * col2 AS col2 FROM tab0 AS cor0
----
2607
6478
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 * + col2 col1 FROM tab2 cor0
----
1326
1377
1938
query I rowsort
SELECT ALL + 12 * col1 AS col2 FROM tab1
----
120
156
312
query I rowsort
SELECT DISTINCT 56 * cor0.col2 FROM tab0, tab2 AS cor0
----
1456
1512
2128
query I rowsort
SELECT - 25 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
query I rowsort
SELECT + cor0.col0 * col2 * col0 FROM tab0 cor0
----
1225
19008
649522
query I rowsort
SELECT ALL 74 - + cor0.col2 FROM tab0, tab0 cor0
----
9 values hashing to 8164e5ea1ac3d35c8be738ddf55a6987
query I rowsort
SELECT + - cor0.col1 * col1 AS col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT col0 * + cor0.col1 * - col2 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3450
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < NULL
----
query I rowsort
SELECT col2 + col0 * col0 * + col1 + col2 FROM tab0 cor0
----
118827
49602
720975
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 / col1 NOT IN ( - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * cor0.col1 col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT - col1 + col0 * - tab1.col2 * tab1.col2 FROM tab1
----
-207946
-737293
-8774
query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 * + col1 ) NOT BETWEEN ( NULL ) AND ( NULL )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 <> col0 + col2
----
query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT col1 + col2 * col2 AS col2 FROM tab0
----
1175
6815
98
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( + col2 * + col1 )
----
query III rowsort
SELECT * FROM tab1 WHERE col1 <= ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3463
SELECT ALL + col1 DIV - col1 + col2 AS col2 FROM tab2
----
25
26
37
skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL + col1 / - col1 + col2 AS col2 FROM tab2
----
25
26
37
query I rowsort
SELECT ALL col2 FROM tab0 WHERE NULL NOT IN ( + col2 )
----
query I rowsort
SELECT ALL col1 * tab0.col1 + + col1 * + col2 AS col0 FROM tab0
----
10234
15743
9506
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( col2 + - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3467
SELECT DISTINCT - tab2.col1 DIV col1 + + col1 FROM tab2
----
16
30
58
skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT - tab2.col1 / col1 + + col1 FROM tab2
----
16
30
58
query I rowsort
SELECT - col0 * + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT ALL - - cor0.col0 * + cor0.col1 + - col0 * + col2 FROM tab1 AS cor0
----
-3008
-6640
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-3470
SELECT + col1 * col1 + + tab1.col2 DIV - col1 AS col2 FROM tab1
----
162
674
95
skipif mysql # not compatible
query I rowsort label-3470
SELECT + col1 * col1 + + tab1.col2 / - col1 AS col2 FROM tab1
----
162
674
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-3471
SELECT + col0 DIV + col1 AS col2 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-3471
SELECT + col0 / + col1 AS col2 FROM tab1
----
0
6
6
query I rowsort
SELECT - col2 * + tab2.col1 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + col2 * + col2 * - col2 AS col1 FROM tab2
----
-17576
-19683
-54872
query I rowsort
SELECT ALL - col1 * - col2 + col2 * col2 FROM tab1
----
10464
3819
4320
query I rowsort
SELECT + col0 + - col2 * col1 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT ALL + tab0.col0 FROM tab0 WHERE NOT tab0.col1 * col0 * col2 - + col0 * col1 IN ( col2 )
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3477
SELECT col0 + col2 DIV - col0 + + col0 AS col0 FROM tab2 AS cor0
----
11
156
158
skipif mysql # not compatible
query I rowsort label-3477
SELECT col0 + col2 / - col0 + + col0 AS col0 FROM tab2 AS cor0
----
11
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-3478
SELECT + col1 * col2 + col2 DIV col1 AS col2 FROM tab2 AS cor0
----
1534
648
837
skipif mysql # not compatible
query I rowsort label-3478
SELECT + col1 * col2 + col2 / col1 AS col2 FROM tab2 AS cor0
----
1534
648
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3479
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3480
SELECT + CAST( NULL AS SIGNED ) col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3480
SELECT + CAST ( NULL AS INTEGER ) col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col0 + - 97 FROM tab0 cor0
----
-62
-73
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 col2 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-3483
SELECT ALL - col1 DIV + ( - ( col2 ) + ( + 82 ) ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL - col1 / + ( - ( col2 ) + ( + 82 ) ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 92 * col1 + - col2 AS col2 FROM tab2 cor0
----
1526
2825
5402
query I rowsort
SELECT ALL 7 + - col0 FROM tab2 AS cor0
----
-71
-72
0
query I rowsort
SELECT DISTINCT - + 34 * + cor0.col1 + - cor0.col0 FROM tab1 AS cor0
----
-404
-522
-887
query I rowsort
SELECT ALL - + col0 * - 53 + - col1 - 18 AS col2 FROM tab1 AS cor0
----
115
3364
4209
query I rowsort
SELECT ALL + ( - col2 ) + + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + cor0.col0 + + cor0.col0 - col1 * - col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - + ( 10 ) + + cor0.col2 + col1 * ( + col2 * col0 ) AS col0 FROM tab2 AS cor0
----
119668
51062
5876
query I rowsort
SELECT ALL - 3 * col1 + col0 FROM tab1 AS cor0
----
-75
34
41
query I rowsort
SELECT ALL + - ( cor0.col1 ) + col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT 26 + + col2 + - col2 FROM tab1 AS cor0
----
26
query I rowsort
SELECT DISTINCT + 33 * 54 * - col0 + + col1 - col2 FROM tab1 AS cor0
----
-114095
-142643
-5374
query I rowsort
SELECT - col1 + 95 * + 86 AS col0 FROM tab1
----
8144
8157
8160
query I rowsort
SELECT - col0 - + col2 * - 29 AS col2 FROM tab2
----
1023
676
776
query I rowsort
SELECT DISTINCT + + col1 + ( + cor0.col0 ) AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT cor0.col1 * + 5 AS col0 FROM tab1 AS cor0
----
130
50
65
query I rowsort
SELECT ALL + + 95 * + col1 FROM tab0 AS cor0
----
8170
8645
9215
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + cor0.col0 col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT 75 AS col1 FROM tab0 cor0
----
75
75
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3503
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT - - 48 AS col1 FROM tab1 AS cor0
----
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3505
SELECT - CAST( NULL AS SIGNED ) * 4 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3505
SELECT - CAST ( NULL AS INTEGER ) * 4 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3506
SELECT ( col2 ) + CAST( col0 * col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
36
7380
825
skipif mysql # not compatible
query I rowsort label-3506
SELECT ( col2 ) + CAST ( col0 * col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-3507
SELECT DISTINCT col0 DIV - col1 + - ( col2 ) * tab0.col0 AS col0 FROM tab0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT col0 / - col1 + - ( col2 ) * tab0.col0 AS col0 FROM tab0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT - - col0 + cor0.col0 * - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT + - cor0.col1 + - col1 * col1 AS col0 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT + tab0.col1 * + col2 AS col1 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3512
SELECT col0 DIV col1 AS col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-3512
SELECT col0 / col1 AS col1 FROM tab2
----
0
1
4
query I rowsort
SELECT ALL + 11 * col1 * col2 AS col2 FROM tab0 AS cor0
----
1067
31218
82082
query I rowsort
SELECT - ( col0 ) + col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT DISTINCT col1 + - col1 * + ( 67 ) FROM tab0 AS cor0
----
-5676
-6006
-6402
query I rowsort
SELECT 92 + - col0 - - ( - 94 ) * col1 FROM tab0 AS cor0
----
-8016
-8551
-9061
query I rowsort
SELECT DISTINCT + 45 + col1 AS col1 FROM tab0 AS cor0
----
131
136
142
query I rowsort
SELECT - cor0.col0 + - ( 15 * - col1 ) FROM tab0 AS cor0
----
1266
1276
1420
query I rowsort
SELECT 72 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT DISTINCT - 10 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-10
query I rowsort
SELECT ALL - col0 + - 69 * ( col2 ) + cor0.col0 FROM tab0 cor0
----
-2277
-5658
-69
query I rowsort
SELECT ALL col2 * - 24 + col0 AS col0 FROM tab2 cor0
----
-546
-641
-833
query I rowsort
SELECT col1 * col1 + cor0.col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT ALL + col0 + + 27 FROM tab2 AS cor0
----
105
106
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-3525
SELECT + col2 * cor0.col0 DIV cor0.col0 + + col1 col0 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3525
SELECT + col2 * cor0.col0 / cor0.col0 + + col1 col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL ( col1 ) + 55 AS col1 FROM tab0
----
141
146
152
query I rowsort
SELECT + - col1 + + cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT ALL - + col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT col1 - - cor0.col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col1 * - 17 + col1 FROM tab0 AS cor0
----
1548
1638
1746
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3531
SELECT col1 * CAST( + col1 + + col1 AS SIGNED ) FROM tab0 AS cor0
----
14792
16562
18818
skipif mysql # not compatible
query I rowsort label-3531
SELECT col1 * CAST ( + col1 + + col1 AS INTEGER ) FROM tab0 AS cor0
----
14792
16562
18818
query I rowsort
SELECT + - col0 * - ( - col2 * col0 ) FROM tab2 AS cor0
----
-1323
-158184
-237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-3533
SELECT + - col1 DIV 6 + col0 FROM tab0 AS cor0
----
10
19
74
skipif mysql # not compatible
query I rowsort label-3533
SELECT + - col1 / 6 + col0 FROM tab0 AS cor0
----
10
19
74
query I rowsort
SELECT DISTINCT - col1 * cor0.col2 + col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col1 FROM tab1, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - tab2.col2 * cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3f5ea019223361c8c7a5502ecc1aeefb
query I rowsort
SELECT DISTINCT 14 + col1 AS col0 FROM tab0
----
100
105
111
query I rowsort
SELECT ALL col1 + col0 + 51 AS col2 FROM tab0
----
161
183
231
query I rowsort
SELECT ALL - - col1 + - col1 * 78 FROM tab2 AS cor0
----
-1309
-2387
-4543
query I rowsort
SELECT + - col0 * - cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col1 * - col2 * - col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT - 6 AS col2 FROM tab2 cor0
----
-6
-6
-6
query I rowsort
SELECT - 43 + col1 FROM tab1 cor0
----
-17
-30
-33
query I rowsort
SELECT 84 * - tab2.col1 AS col0 FROM tab2
----
-1428
-2604
-4956
onlyif mysql # use DIV operator for integer division
query I rowsort label-3545
SELECT + col2 DIV tab0.col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3545
SELECT + col2 / tab0.col1 AS col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 + col1 col0 FROM tab1 AS cor0
----
18
2
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + col1 col1 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT col0 + col1 * col2 FROM tab1
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 col1 FROM tab1
----
20
26
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3550
SELECT + 6 + col2 * CAST( - col0 AS SIGNED ) FROM tab2
----
-183
-2022
-2996
skipif mysql # not compatible
query I rowsort label-3550
SELECT + 6 + col2 * CAST ( - col0 AS INTEGER ) FROM tab2
----
-183
-2022
-2996
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 - col2 col0 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col0 FROM tab2, tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT + cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3554
SELECT 45 DIV col0 FROM tab1 AS cor0
----
0
0
15
skipif mysql # not compatible
query I rowsort label-3554
SELECT 45 / col0 FROM tab1 AS cor0
----
0
0
15
query I rowsort
SELECT ALL + - col0 + - col0 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT ALL ( + col1 ) * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL col0 * - col0 + + col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT DISTINCT 1 * col2 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + + col0 - col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3560
SELECT - - col2 DIV col0 AS col2 FROM tab2 cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-3560
SELECT - - col2 / col0 AS col2 FROM tab2 cor0
----
0
0
3
query I rowsort
SELECT + - 42 * - col0 AS col2 FROM tab0 cor0
----
1008
1470
3738
onlyif mysql # use DIV operator for integer division
query I rowsort label-3562
SELECT - col0 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-3562
SELECT - col0 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT DISTINCT + 29 * col0 + - col0 AS col1 FROM tab1 cor0
----
1792
2240
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-3564
SELECT - col1 * - col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-3564
SELECT - col1 * - col1 / - col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - 65 AS col2 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57
query I rowsort
SELECT 4 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT + 56 * col1 + + col2 + ( + col1 ) AS col2 FROM tab0 AS cor0
----
4935
5269
5530
query I rowsort
SELECT ALL - cor0.col0 + 85 FROM tab2 AS cor0
----
6
7
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3569
SELECT DISTINCT - col1 + CAST( col0 AS SIGNED ) * col0 * 59 FROM tab0 cor0
----
33898
467248
72178
skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT - col1 + CAST ( col0 AS INTEGER ) * col0 * 59 FROM tab0 cor0
----
33898
467248
72178
query I rowsort
SELECT ALL - col0 * ( ( + cor0.col2 ) ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-3571
SELECT DISTINCT - 13 DIV + col0 FROM tab1
----
-4
0
skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT - 13 / + col0 FROM tab1
----
-4
0
query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - tab0.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3574
SELECT CAST( + col0 + tab0.col2 AS SIGNED ) * col2 AS col1 FROM tab0
----
14022
1881
36
skipif mysql # not compatible
query I rowsort label-3574
SELECT CAST ( + col0 + tab0.col2 AS INTEGER ) * col2 AS col1 FROM tab0
----
14022
1881
36
query I rowsort
SELECT 74 * col2 FROM tab0 AS cor0
----
2442
6068
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-3576
SELECT - 55 DIV + col2 + col2 * 43 * + ( col2 ) AS col1 FROM tab1 AS cor0
----
125387
139707
396288
skipif mysql # not compatible
query I rowsort label-3576
SELECT - 55 / + col2 + col2 * 43 * + ( col2 ) AS col1 FROM tab1 AS cor0
----
125387
139707
396288
onlyif mysql # use DIV operator for integer division
query I rowsort label-3577
SELECT DISTINCT col2 DIV - col1 + - col0 AS col2 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-3577
SELECT DISTINCT col2 / - col1 + - col0 AS col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ( + col1 ) * col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT + 46 * col2 FROM tab0
----
1518
3772
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3580
SELECT - CAST( - ( - col2 ) AS SIGNED ) - col1 FROM tab0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-3580
SELECT - CAST ( - ( - col2 ) AS INTEGER ) - col1 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT - col2 + - 21 FROM tab2 cor0
----
-47
-48
-59
query I rowsort
SELECT - ( - cor0.col2 ) FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - col1 * - col1 + - col1 AS col0 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT + + cor0.col1 - - col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - ( 85 ) + + col2 AS col2 FROM tab2 cor0
----
-47
-58
-59
query I rowsort
SELECT + col2 + + 45 FROM tab1 AS cor0
----
102
141
99
query I rowsort
SELECT DISTINCT - 8 * - cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
16512
27160
64792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col2 col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-1
-33
-82
query I rowsort
SELECT + 79 AS col1 FROM tab1 AS cor0
----
79
79
79
query I rowsort
SELECT DISTINCT - + ( col1 ) + - col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT - col1 * col2 * col1 - cor0.col0 * col1 FROM tab2 AS cor0
----
-12325
-26164
-95108
query I rowsort
SELECT - 5 * col0 FROM tab2
----
-35
-390
-395
query I rowsort
SELECT ALL - - 77 + - col0 * - col1 AS col0 FROM tab2 AS cor0
----
1420
294
4679
query I rowsort
SELECT + 92 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
onlyif mysql # use DIV operator for integer division
query I rowsort label-3595
SELECT DISTINCT - col0 DIV - col2 - col1 FROM tab1 cor0
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT - col0 / - col2 - col1 FROM tab1 cor0
----
-13
-26
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3596
SELECT - col2 * col1 + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3596
SELECT - col2 * col1 + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3597
SELECT - + col1 DIV - col1 - col1 AS col2 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-3597
SELECT - + col1 / - col1 - col1 AS col2 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT ALL tab2.col2 * ( col0 ) - - col2 * + 17 FROM tab2
----
2470
3648
648
query I rowsort
SELECT ALL + tab0.col2 - col2 * 44 FROM tab0
----
-1419
-3526
-43
query I rowsort
SELECT - + col0 * + 79 * col0 AS col1 FROM tab1 AS cor0
----
-323584
-505600
-711
query I rowsort
SELECT DISTINCT - 34 AS col1 FROM tab1 AS cor0
----
-34
query I rowsort
SELECT DISTINCT 56 + col2 FROM tab0 AS cor0
----
138
57
89
query I rowsort
SELECT ALL + ( 88 ) FROM tab1 AS cor0
----
88
88
88
query I rowsort
SELECT - + col1 * 71 + + col1 FROM tab2 AS cor0
----
-1190
-2170
-4130
query I rowsort
SELECT ALL 95 + col2 FROM tab2 AS cor0
----
121
122
133
query I rowsort
SELECT DISTINCT + 29 + - 77 * col2 * col1 AS col2 FROM tab0 AS cor0
----
-218497
-574545
-7440
query I rowsort
SELECT ALL + + cor0.col1 * col1 * + col1 + + col2 FROM tab2 AS cor0
----
205405
29818
4951
query I rowsort
SELECT + - col2 * col1 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT ( - cor0.col1 ) + col2 * cor0.col1 * + col2 FROM tab0 AS cor0
----
0
611793
93568
query I rowsort
SELECT ALL + col0 + col1 - - cor0.col0 * 72 AS col2 FROM tab1 AS cor0
----
245
4682
5853
query I rowsort
SELECT col0 - 68 AS col1 FROM tab1
----
-4
-65
12
query I rowsort
SELECT ALL col0 * + 2 AS col1 FROM tab2
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-3613
SELECT + col1 DIV 33 + + col0 * cor0.col2 + ( col0 ) FROM tab1 AS cor0
----
165
3712
7760
skipif mysql # not compatible
query I rowsort label-3613
SELECT + col1 / 33 + + col0 * cor0.col2 + ( col0 ) FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL col1 * + cor0.col1 AS col0 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT ( + 81 ) FROM tab0, tab1 AS cor0
----
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-3616
SELECT + col0 + + col0 + + ( col0 + - col2 ) DIV ( col2 ) AS col0 FROM tab0
----
104
178
48
skipif mysql # not compatible
query I rowsort label-3616
SELECT + col0 + + col0 + + ( col0 + - col2 ) / ( col2 ) AS col0 FROM tab0
----
104
178
48
query I rowsort
SELECT + col0 * 1 * col2 + - col2 AS col0 FROM tab0
----
34
7216
759
query I rowsort
SELECT ALL ( - 97 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + ( - 50 * - col2 ) col0 FROM tab0
----
-141900
-373100
-4850
query I rowsort
SELECT DISTINCT + col2 * - col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3621
SELECT ALL col2 * col1 DIV tab1.col0 FROM tab1
----
15
468
8
skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL col2 * col1 / tab1.col0 FROM tab1
----
15
468
8
query I rowsort
SELECT - - col2 * - 74 * - 59 FROM tab0 AS cor0
----
144078
358012
4366
query I rowsort
SELECT ALL - col1 * - col1 * col1 FROM tab2 AS cor0
----
205379
29791
4913
query I rowsort
SELECT col2 * ( tab2.col0 * - col1 ) + - col2 + + col0 FROM tab2
----
-119600
-50993
-5879
query I rowsort
SELECT 51 * - ( + col0 ) FROM tab0
----
-1224
-1785
-4539
query I rowsort
SELECT + col2 * - col2 + + col2 * + col0 AS col2 FROM tab1
----
-1536
-2754
399
query I rowsort
SELECT - 44 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 9c887509d218271b9365009eba440976
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3628
SELECT - + CAST( NULL AS SIGNED ) + 81 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3628
SELECT - + CAST ( NULL AS INTEGER ) + 81 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( col1 ) * + col2 AS col2 FROM tab2 cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - ( - col2 ) col2 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT - tab0.col0 AS col2 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL ( 49 ) AS col2 FROM tab0
----
49
49
49
query I rowsort
SELECT ALL 89 * col1 * col1 AS col2 FROM tab0 AS cor0
----
658244
737009
837401
query I rowsort
SELECT DISTINCT + - col2 * col0 * + 13 + + 36 AS col0 FROM tab0 AS cor0
----
-10260
-419
-94838
query I rowsort
SELECT - col1 + + col2 * cor0.col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL + cor0.col2 * + cor0.col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col2 * - cor0.col0 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ALL + + 74 * col1 + col0 * col2 * - col2 AS col2 FROM tab0 AS cor0
----
-19772
-591702
7143
query I rowsort
SELECT ALL - col1 + tab0.col2 FROM tab0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - 80 + col0 AS col1 FROM tab2 AS cor0
----
-1
-2
-73
query I rowsort
SELECT ALL - - col0 * col1 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + col2 * col0 * ( col1 ) FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT + ( col1 ) * col2 - 53 AS col1 FROM tab1
----
1195
1351
517
query I rowsort
SELECT DISTINCT + col0 * - col2 * - col1 AS col2 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3646
SELECT DISTINCT + ( + col0 ) * CAST( NULL AS SIGNED ) + cor0.col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT + ( + col0 ) * CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - + ( - col2 ) + - 21 FROM tab1 AS cor0
----
33
36
75
query I rowsort
SELECT ALL - 79 - - col1 FROM tab1 AS cor0
----
-53
-66
-69
query I rowsort
SELECT - ( + col1 ) * - 86 AS col0 FROM tab0 AS cor0
----
7396
7826
8342
query I rowsort
SELECT 79 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT DISTINCT + tab2.col2 + col0 AS col2 FROM tab2
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-3652
SELECT 61 DIV - col1 AS col1 FROM tab1
----
-2
-4
-6
skipif mysql # not compatible
query I rowsort label-3652
SELECT 61 / - col1 AS col1 FROM tab1
----
-2
-4
-6
query I rowsort
SELECT ALL 53 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0 WHERE NULL >= NULL
----
query I rowsort
SELECT DISTINCT + - col2 * + cor0.col2 - + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT - + col0 * + col0 - cor0.col1 FROM tab0 AS cor0
----
-1322
-662
-8012
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3657
SELECT - col0 + - CAST( NULL AS DECIMAL ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3657
SELECT - col0 + - CAST ( NULL AS REAL ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + + ( col1 ) FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT + col0 * - cor0.col1 + + col0 * col0 AS col2 FROM tab1 AS cor0
----
-69
3456
5360
onlyif mysql # use DIV operator for integer division
query I rowsort label-3660
SELECT + col0 DIV - tab2.col1 AS col1 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-3660
SELECT + col0 / - tab2.col1 AS col1 FROM tab2
----
-1
-4
0
query I rowsort
SELECT + tab1.col0 * col2 AS col0 FROM tab1
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3662
SELECT - - col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3662
SELECT - - col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - col2 ) * col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 col2 FROM tab0 cor0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3665
SELECT ALL - + CAST( col1 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL - + CAST ( col1 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 * col1 + col2 * + 65 FROM tab0 AS cor0
----
3460
669448
70257
query I rowsort
SELECT DISTINCT 73 * 0 FROM tab1 cor0
----
0
query I rowsort
SELECT + ( + 98 ) * cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
131614
21266
450996
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3669
SELECT ALL - CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL - CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + - col1 * + col1 + - col0 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT ALL tab2.col1 + + ( 37 ) + col0 FROM tab2
----
133
174
75
query I rowsort
SELECT - col1 + - ( - tab1.col2 * - col2 ) FROM tab1
----
-2942
-3259
-9229
query I rowsort
SELECT - - ( col0 ) * col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3674
SELECT ALL - CAST( + col1 * + col0 AS SIGNED ) FROM tab1
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL - CAST ( + col1 * + col0 AS INTEGER ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + 79 * + col1 FROM tab2 AS cor0
----
1343
2449
4661
query I rowsort
SELECT DISTINCT + 58 * + col2 FROM tab2
----
1508
1566
2204
query I rowsort
SELECT + 18 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT - cor0.col1 + col2 + col1 AS col0 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3679
SELECT - col1 * col2 + col0 DIV col1 FROM tab0 cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-3679
SELECT - col1 * col2 + col0 / col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col1 * + 8 AS col2 FROM tab1 AS cor0
----
-104
-208
-80
query I rowsort
SELECT + col1 * ( + col1 ) + col1 AS col0 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT - col0 * 62 AS col2 FROM tab0 cor0
----
-1488
-2170
-5518
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 34 * col1 col0 FROM tab0 cor0
----
3010
3185
3395
query I rowsort
SELECT + col2 * 99 * - ( col1 * - col1 ) FROM tab1 AS cor0
----
1606176
3613896
564300
query I rowsort
SELECT - - col0 * + 83 FROM tab1 AS cor0
----
249
5312
6640
onlyif mysql # use DIV operator for integer division
query I rowsort label-3686
SELECT - - col2 + 99 DIV ( col0 ) FROM tab0 AS cor0
----
3
37
83
skipif mysql # not compatible
query I rowsort label-3686
SELECT - - col2 + 99 / ( col0 ) FROM tab0 AS cor0
----
3
37
83
query I rowsort
SELECT DISTINCT + - 15 * 84 AS col2 FROM tab1 AS cor0
----
-1260
query I rowsort
SELECT - 49 * + col0 FROM tab2 AS cor0
----
-343
-3822
-3871
query I rowsort
SELECT DISTINCT - col1 - col1 * col2 FROM tab0 AS cor0
----
-194
-2924
-7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) + - col2 * - ( - col0 ) col1 FROM tab2 AS cor0
----
-162
-2002
-2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3691
SELECT ALL + CAST( col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL + CAST ( col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - cor0.col0 * 42 FROM tab2 AS cor0
----
-294
-3276
-3318
query I rowsort
SELECT + + 73 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT 91 + - col0 AS col0 FROM tab2 AS cor0
----
12
13
84
query I rowsort
SELECT - 75 * col1 FROM tab0 AS cor0
----
-6450
-6825
-7275
query I rowsort
SELECT - - 43 FROM tab0, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT 23 * - ( col2 ) AS col0 FROM tab0
----
-1886
-23
-759
query I rowsort
SELECT - 18 * col2 FROM tab0
----
-1476
-18
-594
query I rowsort
SELECT + + 25 AS col2 FROM tab2 AS cor0
----
25
25
25
query I rowsort
SELECT - col0 + + cor0.col0 + ( - col0 ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL col0 * ( ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT 99 * col0 + 69 FROM tab2 AS cor0
----
762
7791
7890
query I rowsort
SELECT + 20 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3704
SELECT + col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3704
SELECT + col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * + 83 + 45 AS col0 FROM tab0
----
7183
7598
8096
onlyif mysql # use DIV operator for integer division
query I rowsort label-3706
SELECT - tab0.col0 DIV col2 + 39 + - col2 FROM tab0
----
-44
3
6
skipif mysql # not compatible
query I rowsort label-3706
SELECT - tab0.col0 / col2 + 39 + - col2 FROM tab0
----
-44
3
6
query I rowsort
SELECT + col2 + + col1 - col2 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT - col0 * ( - 78 ) * col2 FROM tab2 cor0
----
14742
158184
234156
query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col0 FROM tab2, tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT + cor0.col0 + + col1 AS col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL 98 - - tab0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to bb30746139516a1c739173aee4f4a11c
query I rowsort
SELECT DISTINCT + - ( 52 ) AS col1 FROM tab0, tab2, tab0 AS cor0
----
-52
query I rowsort
SELECT - + ( - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + col1 * - ( col2 + - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-1326
-208
70
query I rowsort
SELECT ALL col2 * + col0 - col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT ALL + 79 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT DISTINCT + col0 * col2 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - col2 * + col2 * - col1 FROM tab0 AS cor0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3719
SELECT - cor0.col2 * 78 DIV - cor1.col1 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 350712b192b644c073df3871d011face
skipif mysql # not compatible
query I rowsort label-3719
SELECT - cor0.col2 * 78 / - cor1.col1 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 350712b192b644c073df3871d011face
query I rowsort
SELECT ALL - - 23 FROM tab0 AS cor0
----
23
23
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-3721
SELECT - 18 DIV - cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3721
SELECT - 18 / - cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 41 * - col0 FROM tab1 AS cor0
----
-123
-2624
-3280
query I rowsort
SELECT DISTINCT + + 6 + col2 AS col0 FROM tab0 AS cor0
----
39
7
88
query I rowsort
SELECT + - cor0.col1 + + col2 - col1 * + col2 FROM tab1 AS cor0
----
-1165
-1376
-523
query I rowsort
SELECT ALL - - 12 FROM tab1 AS cor0
----
12
12
12
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2, tab0 AS cor2
----
3645 values hashing to ca4c79a162f92454e0544707b897521a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3727
SELECT ALL + CAST( NULL AS SIGNED ) + 57 * col0 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL + CAST ( NULL AS INTEGER ) + 57 * col0 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( - 23 ) * - col2 + col1 FROM tab1
----
1268
1321
2221
query I rowsort
SELECT ALL ( 68 ) * col0 + - col1 + - 41 FROM tab0
----
1505
2242
5920
onlyif mysql # use DIV operator for integer division
query I rowsort label-3730
SELECT DISTINCT tab0.col2 + - col0 DIV col1 + + tab0.col2 DIV + col2 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT tab0.col2 + - col0 / col1 + + tab0.col2 / + col2 FROM tab0
----
2
34
83
query I rowsort
SELECT DISTINCT + col1 + 30 AS col0 FROM tab2
----
47
61
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3732
SELECT ALL + ( col0 ) DIV + col1 AS col2 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL + ( col0 ) / + col1 AS col2 FROM tab1 AS cor0
----
0
6
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-3733
SELECT CAST( - 39 AS SIGNED ) - - col1 * + col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
-125
-130
-136
skipif mysql # not compatible
query I rowsort label-3733
SELECT CAST ( - 39 AS INTEGER ) - - col1 * + col1 / - col1 AS col0 FROM tab0 AS cor0
----
-125
-130
-136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3734
SELECT CAST( - 3 AS SIGNED ) - + col0 * + cor0.col1 FROM tab0 AS cor0
----
-2067
-3398
-8102
skipif mysql # not compatible
query I rowsort label-3734
SELECT CAST ( - 3 AS INTEGER ) - + col0 * + cor0.col1 FROM tab0 AS cor0
----
-2067
-3398
-8102
query I rowsort
SELECT DISTINCT col1 * + 29 + col2 * 95 + 93 * - col1 FROM tab0
----
-2369
-6113
1966
query I rowsort
SELECT - 70 - + tab2.col1 AS col1 FROM tab2
----
-101
-129
-87
query I rowsort
SELECT DISTINCT - col1 * + ( + col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3738
SELECT ALL + cor0.col0 + CAST( NULL AS DECIMAL ) * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + cor0.col0 + CAST ( NULL AS REAL ) * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 * + col0 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT - col2 * ( - cor0.col0 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - 20 FROM tab1, tab2, tab2 AS cor0
----
-20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) * tab0.col1 col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - 67 - col2 AS col1 FROM tab0
----
-100
-149
-68
query I rowsort
SELECT + col2 + + ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3745
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) + - 9 * - col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) + - 9 * - col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - col2 - - col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 * 64 AS col2 FROM tab2 AS cor0
----
1088
1984
3776
query I rowsort
SELECT ALL + + col0 + + col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT ALL + col2 + + 14 * - ( - cor0.col2 + col2 ) * col1 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3750
SELECT ALL - col0 * CAST( + col2 AS SIGNED ) + col0 col0 FROM tab0 AS cor0
----
-7209
-768
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL - col0 * CAST ( + col2 AS INTEGER ) + col0 col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL + col1 + 38 FROM tab2 AS cor0
----
55
69
97
query I rowsort
SELECT - col1 * - ( cor0.col2 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col0 + + 76 + 0 FROM tab1 AS cor0
----
-4
12
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3754
SELECT ALL + + CAST( - col2 AS SIGNED ) * col0 FROM tab2 cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL + + CAST ( - col2 AS INTEGER ) * col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + + 39 AS col0 FROM tab1 cor0
----
39
39
39
query I rowsort
SELECT DISTINCT + col2 + - col2 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL 95 + + cor0.col0 + + col0 FROM tab0 AS cor0
----
143
165
273
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 * col0 col2 FROM tab2 AS cor0
----
-1092
-1106
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3759
SELECT ALL + CAST( - ( + col2 ) AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-108
-114
-192
skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL + CAST ( - ( + col2 ) AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT DISTINCT 0 + cor0.col1 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3761
SELECT ALL - col1 DIV + col0 AS col0 FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL - col1 / + col0 AS col0 FROM tab2
----
-4
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3762
SELECT ALL - CAST( + 80 AS SIGNED ) * + col2 + col2 FROM tab1 AS cor0
----
-4266
-4503
-7584
skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL - CAST ( + 80 AS INTEGER ) * + col2 + col2 FROM tab1 AS cor0
----
-4266
-4503
-7584
query I rowsort
SELECT - - 97 AS col2 FROM tab0 AS cor0
----
97
97
97
query I rowsort
SELECT + 45 + 40 FROM tab2 AS cor0
----
85
85
85
query I rowsort
SELECT DISTINCT - col1 * - col1 * 55 AS col1 FROM tab2 AS cor0
----
15895
191455
52855
query I rowsort
SELECT + 11 * + col0 FROM tab2 AS cor0
----
77
858
869
query I rowsort
SELECT ALL + col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - - cor0.col0 * + cor0.col0 AS col1 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT - 10 + - col2 * ( col0 + cor0.col2 ) FROM tab0 AS cor0
----
-14032
-1891
-46
query I rowsort
SELECT + 97 * + 69 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e9a44cd6796532ed158793c00f75038
query I rowsort
SELECT + - col0 * + col1 + - 70 * col0 * cor0.col1 FROM tab0 cor0
----
-146544
-241045
-575029
onlyif mysql # use DIV operator for integer division
query I rowsort label-3772
SELECT - col1 DIV - cor0.col2 + 32 AS col0 FROM tab1 AS cor0
----
32
32
32
skipif mysql # not compatible
query I rowsort label-3772
SELECT - col1 / - cor0.col2 + 32 AS col0 FROM tab1 AS cor0
----
32
32
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3773
SELECT ALL - 34 + - cor0.col0 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-69
-7332
-826
skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL - 34 + - cor0.col0 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-69
-7332
-826
query I rowsort
SELECT DISTINCT 66 * - col2 + col0 AS col1 FROM tab2 AS cor0
----
-1638
-1775
-2429
onlyif mysql # use DIV operator for integer division
query I rowsort label-3775
SELECT + col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3775
SELECT + col1 / + col1 AS col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT col0 * - col2 + 2 AS col1 FROM tab0 AS cor0
----
-33
-7296
-790
query I rowsort
SELECT ALL - + 86 FROM tab0 AS cor0
----
-86
-86
-86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3778
SELECT DISTINCT + col1 * col1 * CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT + col1 * col1 * CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT - cor0.col0 * col2 + - cor0.col1 * - col0 * col1 FROM tab0 cor0
----
176712
329280
729711
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3780
SELECT - 59 + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3780
SELECT - 59 + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 56 * col1 FROM tab2 AS cor0
----
1736
3304
952
query I rowsort
SELECT DISTINCT + col2 * col2 * - col0 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT + 86 * col2 + + ( 11 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
4677
5606
9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-3784
SELECT ALL + col1 DIV - col1 col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL + col1 / - col1 col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - + col2 * 77 FROM tab1 cor0
----
-4158
-4389
-7392
query I rowsort
SELECT ALL + - col0 + col0 * col1 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3787
SELECT DISTINCT + - cor0.col0 * CAST( col1 AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010
skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT + - cor0.col0 * CAST ( col1 AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT + col2 + + col0 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL + 63 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT DISTINCT - 1 AS col2 FROM tab2
----
-1
query I rowsort
SELECT DISTINCT 90 * 67 AS col2 FROM tab2
----
6030
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3792
SELECT DISTINCT CAST( col2 + + col2 AS SIGNED ) AS col1 FROM tab0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT CAST ( col2 + + col2 AS INTEGER ) AS col1 FROM tab0
----
164
2
66
query I rowsort
SELECT + ( + col1 ) * - tab0.col1 AS col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT - col1 + - 24 AS col2 FROM tab2 cor0
----
-41
-55
-83
query I rowsort
SELECT DISTINCT - 37 - tab2.col0 AS col1 FROM tab2
----
-115
-116
-44
query I rowsort
SELECT ALL + col0 * + tab0.col1 - + col2 AS col1 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT col0 * col1 + + cor0.col1 AS col0 FROM tab0 cor0
----
2150
3492
8190
query I rowsort
SELECT ALL + + col1 - col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col2 ) - col1 col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL 62 + col0 + col1 AS col1 FROM tab1 AS cor0
----
136
155
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-3801
SELECT - 24 DIV 10 FROM tab2
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-3801
SELECT - 24 / 10 FROM tab2
----
-2
-2
-2
query I rowsort
SELECT + ( col1 ) * col0 AS col1 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3803
SELECT col1 DIV col1 + - col1 AS col2 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-3803
SELECT col1 / col1 + - col1 AS col2 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT DISTINCT + col0 + col1 * col1 + col0 FROM tab0 cor0
----
7444
8459
9479
query I rowsort
SELECT + + col2 * col2 + - col1 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT DISTINCT - col1 * - col0 + - col1 FROM tab1 AS cor0
----
1027
52
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-3807
SELECT ALL - + col2 * col1 + cor0.col1 DIV - cor0.col0 FROM tab2 AS cor0
----
-1534
-646
-841
skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL - + col2 * col1 + cor0.col1 / - cor0.col0 FROM tab2 AS cor0
----
-1534
-646
-841
query I rowsort
SELECT cor0.col0 + 38 * + 17 FROM tab0 AS cor0
----
670
681
735
query I rowsort
SELECT + cor0.col2 * - 0 * col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col2 * + col1 AS col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + - cor0.col0 * col2 + - col2 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col1 - col1 * col0 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * 75 FROM tab2 AS cor0
----
525
5850
5925
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + col0 col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - 48 FROM tab0, tab1 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c
query I rowsort
SELECT cor0.col2 * - col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - col2 + - col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE - col2 * + col1 NOT IN ( col0 * - col0 ) OR NOT NULL IN ( + col0 * + cor0.col0 )
----
1
33
82
query I rowsort
SELECT DISTINCT cor0.col0 * + col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-3820
SELECT ALL col0 DIV + col0 + col1 * col1 AS col0 FROM tab2 AS cor0
----
290
3482
962
skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL col0 / + col0 + col1 * col1 AS col0 FROM tab2 AS cor0
----
290
3482
962
query I rowsort
SELECT ALL col0 * tab0.col2 - - col0 AS col2 FROM tab0
----
70
7387
816
query I rowsort
SELECT cor0.col0 * col1 + - cor0.col1 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-3823
SELECT - col1 DIV - col0 + col1 FROM tab2
----
17
35
59
skipif mysql # not compatible
query I rowsort label-3823
SELECT - col1 / - col0 + col1 FROM tab2
----
17
35
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col0 col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + col2 * tab1.col1 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL + cor0.col1 * + col1 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
7372
8192
9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-3827
SELECT ALL - - col1 DIV + col1 + cor0.col2 AS col0 FROM tab0 cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL - - col1 / + col1 + cor0.col2 AS col0 FROM tab0 cor0
----
2
34
83
query I rowsort
SELECT DISTINCT + cor0.col1 * col0 * col1 + - col2 AS col1 FROM tab2 cor0
----
22793
271492
6700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col0 + - col2 * col1 * + col2 FROM tab1
----
-119728
-32426
-75813
onlyif mysql # use DIV operator for integer division
query I rowsort label-3831
SELECT col2 - tab1.col2 DIV col2 AS col1 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-3831
SELECT col2 - tab1.col2 / col2 AS col1 FROM tab1
----
53
56
95
query I rowsort
SELECT DISTINCT - col1 * col0 AS col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT col2 + col1 * - tab2.col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT ALL - col2 * col1 + col1 * + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-3492
-671580
-70950
query I rowsort
SELECT + + col1 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + 64 AS col0 FROM tab0
----
64
64
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3837
SELECT ALL + - 89 * col2 + - CAST( - 58 AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
-2396
-605
1108
skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL + - 89 * col2 + - CAST ( - 58 AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
-2396
-605
1108
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * - 65 col1 FROM tab2 AS cor0
----
-455
-5070
-5135
query I rowsort
SELECT - ( col1 ) * col1 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-3840
SELECT DISTINCT + ( cor0.col2 ) DIV col2 AS col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-3840
SELECT DISTINCT + ( cor0.col2 ) / col2 AS col0 FROM tab1 AS cor0
----
1
query I rowsort
SELECT ALL - - ( col0 ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL col2 - - col1 * col0 AS col1 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT - cor0.col0 + + cor0.col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + 32 + - col2 FROM tab0 AS cor0
----
-1
-50
31
query I rowsort
SELECT ALL - cor0.col2 + col1 * - 13 + + 38 AS col1 FROM tab2 AS cor0
----
-221
-392
-755
query I rowsort
SELECT DISTINCT + col0 * - col2 + cor0.col2 - col2 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-2678
-4408
-891
query I rowsort
SELECT ALL - col1 - col1 * - col2 AS col0 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT - - col2 * - col0 + - 83 FROM tab1 AS cor0
----
-245
-3731
-7763
onlyif mysql # use DIV operator for integer division
query I rowsort label-3849
SELECT ALL - col2 DIV cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL - col2 / cor0.col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3850
SELECT ALL - col0 DIV ( + col2 ) FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL - col0 / ( + col2 ) FROM tab1 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 - - ( col2 ) col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + col0 + + col1 - 60 AS col0 FROM tab0 AS cor0
----
120
50
72
query I rowsort
SELECT DISTINCT col1 * col1 + + col0 + col2 FROM tab2 AS cor0
----
3585
406
995
onlyif mysql # use DIV operator for integer division
query I rowsort label-3854
SELECT - - col2 * col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3854
SELECT - - col2 * col1 / + col1 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - + col1 * + col2 + - col1 + 42 FROM tab0 cor0
----
-152
-2882
-7511
query I rowsort
SELECT DISTINCT + ( - col0 ) * - col1 + + cor0.col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT + + 87 * col1 + col0 FROM tab1 AS cor0
----
1211
2265
934
query I rowsort
SELECT ALL - ( col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + + col0 * 6 AS col1 FROM tab2 cor0
----
42
468
474
onlyif mysql # use DIV operator for integer division
query I rowsort label-3860
SELECT DISTINCT - col0 DIV - tab0.col2 AS col0 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-3860
SELECT DISTINCT - col0 / - tab0.col2 AS col0 FROM tab0
----
0
1
35
query I rowsort
SELECT DISTINCT - col2 + col1 * col1 AS col1 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT - 34 * - col0 AS col1 FROM tab1 AS cor0
----
102
2176
2720
query I rowsort
SELECT - 34 * col1 + col1 AS col1 FROM tab2 AS cor0
----
-1023
-1947
-561
onlyif mysql # use DIV operator for integer division
query I rowsort label-3864
SELECT ALL - col0 + col2 DIV + col1 col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL - col0 + col2 / + col1 col1 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3865
SELECT DISTINCT col0 * col2 DIV col1 FROM tab2 AS cor0
----
176
34
6
skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT col0 * col2 / col1 FROM tab2 AS cor0
----
176
34
6
query I rowsort
SELECT ( - col0 * + tab2.col0 ) + + col0 FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT ALL - 51 * cor0.col2 FROM tab0 cor0
----
-1683
-4182
-51
query I rowsort
SELECT ALL + - cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - 91 * - col0 AS col0 FROM tab0 AS cor0
----
2184
3185
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 + + col0 col0 FROM tab0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-3871
SELECT + col0 * - col1 + tab2.col2 DIV ( - 40 ) AS col0 FROM tab2
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-3871
SELECT + col0 * - col1 + tab2.col2 / ( - 40 ) AS col0 FROM tab2
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3872
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 43 * - col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 43 * - col1 FROM tab2
----
NULL
query I rowsort
SELECT + tab0.col2 + 10 FROM tab0
----
11
43
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3874
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * - col2 col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT ( 75 ) * col0 AS col2 FROM tab0
----
1800
2625
6675
query I rowsort
SELECT col1 + + col2 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
-110
-3628
-7654
query I rowsort
SELECT + + ( + col1 ) * + 80 FROM tab2 AS cor0
----
1360
2480
4720
query I rowsort
SELECT + col1 * col2 + + col1 + + 62 * cor0.col2 * + col1 FROM tab2 cor0
----
40715
52762
96701
query I rowsort
SELECT - - ( + col1 ) * + col0 + - col1 * col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col1 FROM tab1, tab2 cor0
----
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-3882
SELECT - tab0.col2 DIV - col0 + - col1 * col1 col1 FROM tab0
----
-7395
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3882
SELECT - tab0.col2 / - col0 + - col1 * col1 col1 FROM tab0
----
-7395
-8281
-9409
query I rowsort
SELECT 68 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT ALL 32 * tab2.col0 AS col1 FROM tab2
----
224
2496
2528
query I rowsort
SELECT - col0 + 38 * col1 FROM tab2 AS cor0
----
1171
2164
567
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 * - col2 + + 36 col0 FROM tab1
----
198
3684
7716
query I rowsort
SELECT + + 45 + col1 FROM tab0 AS cor0
----
131
136
142
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3888
SELECT ALL col2 + + CAST( NULL AS DECIMAL ) + ( + col1 ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL col2 + + CAST ( NULL AS REAL ) + ( + col1 ) FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3889
SELECT + col0 DIV 42 AS col2 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3889
SELECT + col0 / 42 AS col2 FROM tab1
----
0
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3890
SELECT - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3890
SELECT - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3891
SELECT DISTINCT + + col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT + + col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + - col1 - 3 FROM tab1 cor0
----
-13
-16
-29
query I rowsort
SELECT - 96 * + 16 * + col0 + ( - col1 ) FROM tab0 AS cor0
----
-136795
-36950
-53857
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3894
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + col0 * col2 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT - CAST ( NULL AS REAL ) + + col0 * col2 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT 22 + col2 * col0 + - 36 * cor0.col2 FROM tab1 AS cor0
----
-1760
1618
4246
query I rowsort
SELECT + 99 + col0 AS col0 FROM tab1 cor0
----
102
163
179
query I rowsort
SELECT col1 - 4 AS col0 FROM tab0 AS cor0
----
82
87
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3898
SELECT ALL - - CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL - - CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3899
SELECT DISTINCT - ( col1 ) + col1 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT - ( col1 ) + col1 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL 43 + + ( col0 ) AS col1 FROM tab2 AS cor0
----
121
122
50
query I rowsort
SELECT + col1 * - 0 + + col1 + col1 * + col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT - 17 + - cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 3a40683b6ef8f6b4003b58c1b0d39c21
onlyif mysql # use DIV operator for integer division
query I rowsort label-3903
SELECT DISTINCT + + col2 + - col0 * col2 DIV + col2 FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT + + col2 + - col0 * col2 / + col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + col2 * col0 AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + col2 - 43 AS col2 FROM tab1 cor0
----
11
14
53
query I rowsort
SELECT DISTINCT + - cor0.col0 * - col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-3907
SELECT - col0 DIV ( + col2 ) + tab0.col2 * - col2 FROM tab0
----
-1089
-36
-6725
skipif mysql # not compatible
query I rowsort label-3907
SELECT - col0 / ( + col2 ) + tab0.col2 * - col2 FROM tab0
----
-1089
-36
-6725
onlyif mysql # use DIV operator for integer division
query I rowsort label-3908
SELECT - col0 * col1 DIV col2 + + col2 * col1 FROM tab0 AS cor0
----
-3298
2776
7364
skipif mysql # not compatible
query I rowsort label-3908
SELECT - col0 * col1 / col2 + + col2 * col1 FROM tab0 AS cor0
----
-3298
2776
7364
onlyif mysql # use DIV operator for integer division
query I rowsort label-3909
SELECT 60 DIV - 50 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3909
SELECT 60 / - 50 FROM tab1
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3910
SELECT ( - col2 + - col0 ) DIV - ( tab1.col2 ) col2 FROM tab1
----
1
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3910
SELECT ( - col2 + - col0 ) / - ( tab1.col2 ) col2 FROM tab1
----
1
1
2
query I rowsort
SELECT ( 69 ) AS col2 FROM tab0 AS cor0
----
69
69
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-3912
SELECT col2 * - col1 - col1 DIV + col1 FROM tab1 AS cor0
----
-1249
-1405
-571
skipif mysql # not compatible
query I rowsort label-3912
SELECT col2 * - col1 - col1 / + col1 FROM tab1 AS cor0
----
-1249
-1405
-571
onlyif mysql # use DIV operator for integer division
query I rowsort label-3913
SELECT - col2 DIV 40 AS col2 FROM tab1 AS cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-3913
SELECT - col2 / 40 AS col2 FROM tab1 AS cor0
----
-1
-1
-2
query I rowsort
SELECT - + cor0.col0 * + col1 + - cor0.col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT 28 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * - col0 + 84 * - col1 * col2 col2 FROM tab2 AS cor0
----
-130884
-57266
-70497
query I rowsort
SELECT 53 * - col0 AS col0 FROM tab2 AS cor0
----
-371
-4134
-4187
onlyif mysql # use DIV operator for integer division
query I rowsort label-3918
SELECT ALL + - 62 + col0 DIV 29 + - col0 col2 FROM tab0 AS cor0
----
-148
-86
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + - 62 + col0 / 29 + - col0 col2 FROM tab0 AS cor0
----
-148
-86
-96
query I rowsort
SELECT - 7 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466
onlyif mysql # use DIV operator for integer division
query I rowsort label-3920
SELECT - cor0.col0 DIV col0 col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3920
SELECT - cor0.col0 / col0 col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - ( 52 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 39 col1 FROM tab0 AS cor0
----
1287
3198
39
query I rowsort
SELECT + cor2.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
query I rowsort
SELECT tab1.col0 + + ( 69 ) AS col0 FROM tab1
----
133
149
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-3925
SELECT + + cor0.col2 + - col2 * col2 DIV col0 FROM tab1 AS cor0
----
-19
-918
7
skipif mysql # not compatible
query I rowsort label-3925
SELECT + + cor0.col2 + - col2 * col2 / col0 FROM tab1 AS cor0
----
-19
-918
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * col1 + - col0 * cor0.col0 col1 FROM tab1 AS cor0
----
-1413
-4666
-7648
query I rowsort
SELECT DISTINCT + col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT col0 * - col2 + + 78 FROM tab1 AS cor0
----
-3570
-7602
-84
query I rowsort
SELECT cor0.col1 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 * cor0.col0 col2 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3931
SELECT - + cor0.col2 DIV 87 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3931
SELECT - + cor0.col2 / 87 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL - col2 * + ( - col0 ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT col0 * + 12 FROM tab2 AS cor0
----
84
936
948
query I rowsort
SELECT - + cor0.col0 * - col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL + col2 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - + cor0.col2 + + 53 AS col2 FROM tab2 cor0
----
15
26
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-3937
SELECT ALL - col2 DIV - col1 col0 FROM tab1 AS cor0
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL - col2 / - col1 col0 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT col2 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT DISTINCT 62 * col2 + - col1 - 37 * + cor0.col2 AS col2 FROM tab1 cor0
----
1324
1415
2387
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 47 - + col2 col2 FROM tab1 AS cor0
----
-1276
-527
-707
query I rowsort
SELECT - 76 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 30b3ee36c95bb84d1f6a640c4d41cf15
query I rowsort
SELECT ALL - - 1 * - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - - 89 + 14 FROM tab2 AS cor0
----
103
103
103
query I rowsort
SELECT ALL - 24 AS col0 FROM tab2 AS cor0
----
-24
-24
-24
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to f9101173abc9e524c6310e6c0eeefb0c
query I rowsort
SELECT DISTINCT + cor1.col0 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
7
78
79
query I rowsort
SELECT ALL col0 + + 33 FROM tab0 AS cor0
----
122
57
68
query I rowsort
SELECT DISTINCT + ( ( - col2 ) ) * cor0.col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT cor0.col1 * + col2 + + col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT + col2 + - cor0.col1 AS col1 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT 31 FROM tab1, tab0 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT - 68 * col1 FROM tab0 AS cor0
----
-5848
-6188
-6596
onlyif mysql # use DIV operator for integer division
query I rowsort label-3953
SELECT + + col2 DIV col2 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3953
SELECT + + col2 / col2 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - - cor0.col1 + 99 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to eae96f4b5fee6a8316f3a2fa4ca5ce65
onlyif mysql # use DIV operator for integer division
query I rowsort label-3955
SELECT DISTINCT 25 DIV 36 FROM tab0, tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT 25 / 36 FROM tab0, tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT cor1.col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
26
27
38
query I rowsort
SELECT ALL col0 * + cor0.col0 + + col0 FROM tab1 cor0
----
12
4160
6480
query I rowsort
SELECT ALL + + col1 * - col0 + - 26 FROM tab2 AS cor0
----
-1369
-243
-4628
query I rowsort
SELECT col1 + - ( col0 ) FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL col2 + 22 + - 81 AS col2 FROM tab2 AS cor0
----
-21
-32
-33
query I rowsort
SELECT ALL + col2 + col1 * col2 + + col1 AS col2 FROM tab1
----
1357
1484
637
query I rowsort
SELECT DISTINCT col2 * - col2 + col1 FROM tab2
----
-1427
-617
-698
query I rowsort
SELECT + + 89 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + tab0.col0 + col2 col2 FROM tab0
----
1226
609
8003
query I rowsort
SELECT + col2 * + col1 AS col2 FROM tab2 WHERE col2 = NULL
----
query I rowsort
SELECT - tab1.col1 * + col1 + + col0 * col1 + col1 * + col2 AS col1 FROM tab1
----
1110
2119
806
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 = NULL
----
query I rowsort
SELECT DISTINCT col0 * col1 - tab1.col0 * tab1.col0 FROM tab1
----
-3456
-5360
69
query I rowsort
SELECT tab0.col1 + + col1 + + tab0.col1 * col1 * tab0.col0 FROM tab0
----
177676
329509
737191
onlyif mysql # use DIV operator for integer division
query I rowsort label-3970
SELECT ALL tab1.col2 DIV + tab1.col2 - col2 AS col2 FROM tab1
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL tab1.col2 / + tab1.col2 - col2 AS col2 FROM tab1
----
-53
-56
-95
query I rowsort
SELECT - col0 + - col1 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( + col1 )
----
query I rowsort
SELECT col2 * + col2 - col0 * + col0 AS col1 FROM tab2
----
-4797
-5408
680
query I rowsort
SELECT ALL + tab0.col1 - - col1 AS col1 FROM tab0
----
172
182
194
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 NOT BETWEEN NULL AND + tab0.col0
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 IN ( col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT - 65 * col2 FROM tab2 AS cor0
----
-1690
-1755
-2470
onlyif mysql # use DIV operator for integer division
query I rowsort label-3977
SELECT + + 15 DIV col0 AS col0 FROM tab1 AS cor0
----
0
0
5
skipif mysql # not compatible
query I rowsort label-3977
SELECT + + 15 / col0 AS col0 FROM tab1 AS cor0
----
0
0
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3978
SELECT + CAST( - tab1.col2 AS SIGNED ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
skipif mysql # not compatible
query I rowsort label-3978
SELECT + CAST ( - tab1.col2 AS INTEGER ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3979
SELECT ALL - 38 * - col2 + - CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1287
3198
39
skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL - 38 * - col2 + - CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1287
3198
39
query I rowsort
SELECT ALL - 21 * col1 * + col2 FROM tab1
----
-11970
-26208
-29484
query I rowsort
SELECT ALL + ( + tab0.col1 + col0 ) AS col2 FROM tab0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-3982
SELECT DISTINCT + col2 + + cor0.col0 DIV - ( col2 * - col1 ) FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT + col2 + + cor0.col0 / - ( col2 * - col1 ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT 80 * cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
1953
2801
7202
query I rowsort
SELECT DISTINCT col2 * - cor0.col2 + col2 * - col1 * - col2 FROM tab1 AS cor0
----
110592
29241
72900
query I rowsort
SELECT ALL col0 + - tab2.col1 * col2 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT + col1 * - col0 * + col0 AS col0 FROM tab0
----
-118825
-49536
-720811
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab2 AS cor0 WHERE NOT NULL <> NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( tab0.col1 + tab0.col1 )
----
query I rowsort
SELECT + col1 * col2 * col2 + - col2 * - tab1.col0 AS col1 FROM tab1
----
127488
36138
75978
query I rowsort
SELECT col2 * - col2 + + cor0.col0 FROM tab0 AS cor0
----
-1065
-6635
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-3992
SELECT col0 * - col2 * col2 + cor0.col0 - + col2 * cor0.col0 DIV col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
skipif mysql # not compatible
query I rowsort label-3992
SELECT col0 * - col2 * col2 + cor0.col0 - + col2 * cor0.col0 / col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT col1 * col1 * col1 + col1 * col0 FROM tab1
----
1640
17654
3237
query I rowsort
SELECT + col1 + - tab1.col0 * tab1.col0 AS col1 FROM tab1
----
-4086
-6387
17
query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) NOT BETWEEN col2 AND NULL
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT ALL * FROM tab2 WHERE col2 >= NULL
----
query I rowsort
SELECT DISTINCT - col1 * col1 * - col0 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT col1 + + col0 * col1 * col1 FROM tab0
----
177590
329412
737100
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( col2 + tab1.col1 * - col2 )
----
query I rowsort
SELECT DISTINCT - col0 + col0 + + col0 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4001
SELECT col2 DIV tab0.col1 col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4001
SELECT col2 / tab0.col1 col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - tab2.col0 * col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL IN ( + tab2.col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL col1 * col0 + col1 + col2 FROM tab2
----
1398
275
4687
query I rowsort
SELECT DISTINCT ( tab0.col0 ) FROM tab0, tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL - cor0.col0 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT + + ( + cor0.col2 ) + + col0 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT 77 * col0 + + col2 FROM tab2 AS cor0
----
566
6032
6121
query I rowsort
SELECT col1 + + col1 * - 86 + - col2 FROM tab1
----
-1201
-2264
-907
query I rowsort
SELECT DISTINCT + ( + 77 ) AS col1 FROM tab0
----
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 * + col1 col1 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT col2 * + col1 + col1 * - col2 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 * + col0 col1 FROM tab0
----
1085
2759
744
query I rowsort
SELECT ALL - ( 6 * - col0 ) FROM tab1
----
18
384
480
query I rowsort
SELECT 40 * col2 AS col0 FROM tab0
----
1320
3280
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4017
SELECT + + col2 * CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4017
SELECT + + col2 * CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - 16 col0 FROM tab1 AS cor0
----
1536
864
912
query I rowsort
SELECT + - col0 * + col2 + col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4020
SELECT ALL - - cor0.col0 + + CAST( NULL AS DECIMAL ) + 5 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL - - cor0.col0 + + CAST ( NULL AS REAL ) + 5 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 * + ( col1 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT col2 + 73 * + col0 * col1 AS col2 FROM tab1 AS cor0
----
46777
5748
76016
query I rowsort
SELECT + ( - cor0.col0 ) AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL + - 30 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142
query I rowsort
SELECT cor1.col0 + + 24 AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to a9e482dece05f30620d3cc84c954d103
onlyif mysql # use DIV operator for integer division
query I rowsort label-4026
SELECT DISTINCT - col1 * ( 43 ) DIV + col2 + + col0 + + col1 FROM tab0
----
-2
-4039
133
skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT - col1 * ( 43 ) / + col2 + + col0 + + col1 FROM tab0
----
-2
-4039
133
query I rowsort
SELECT - + 52 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4028
SELECT - col0 * + col0 + + col0 * col1 + CAST( - 23 * - col0 AS SIGNED ) AS col1 FROM tab1
----
-1984
-3520
138
skipif mysql # not compatible
query I rowsort label-4028
SELECT - col0 * + col0 + + col0 * col1 + CAST ( - 23 * - col0 AS INTEGER ) AS col1 FROM tab1
----
-1984
-3520
138
onlyif mysql # use DIV operator for integer division
query I rowsort label-4029
SELECT DISTINCT col1 * - ( - ( cor0.col0 ) * 0 ) + - col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT col1 * - ( - ( cor0.col0 ) * 0 ) + - col1 / + col1 AS col0 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT DISTINCT + cor0.col1 + col1 * + 92 AS col2 FROM tab0 cor0
----
7998
8463
9021
query I rowsort
SELECT ALL col1 * col1 + - 95 + - col0 FROM tab0 AS cor0
----
7277
8097
9279
query I rowsort
SELECT ALL + col0 * - cor0.col2 + + col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL 3 * tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 643559ac626975360fee96de89aa95ee
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4034
SELECT + col1 * CAST( NULL AS SIGNED ) - + col2 / + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4034
SELECT + col1 * CAST ( NULL AS INTEGER ) - + col2 / + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4035
SELECT - col0 + col0 DIV - col0 + col0 * - col2 col2 FROM tab1 AS cor0
----
-166
-3713
-7761
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4035
SELECT - col0 + col0 / - col0 + col0 * - col2 col2 FROM tab1 AS cor0
----
-166
-3713
-7761
query I rowsort
SELECT ALL + 99 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 66b0b0906bcd72d5f1ade3ec251d414d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col0 col0 FROM tab1 cor0
----
-121
-176
-57
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab1 cor1, tab2, tab0 cor2
----
3645 values hashing to be7848c91584d04f21fd5bbb0d239aca
onlyif mysql # use DIV operator for integer division
query I rowsort label-4039
SELECT - + 50 DIV + cor0.col1 FROM tab2 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-4039
SELECT - + 50 / + cor0.col1 FROM tab2 AS cor0
----
-1
-2
0
query I rowsort
SELECT - ( - ( col0 ) ) FROM tab1
----
3
64
80
query I rowsort
SELECT - tab0.col2 * cor0.col1 + + 98 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 0be67981ec4e6164e25d3db7ab5cb881
query I rowsort
SELECT DISTINCT - col1 * col0 + col2 AS col1 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL - col1 + - col0 * 12 FROM tab2 cor0
----
-115
-965
-995
query I rowsort
SELECT DISTINCT col2 + + 78 AS col0 FROM tab0 AS cor0
----
111
160
79
query I rowsort
SELECT DISTINCT col1 * + col0 * ( + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
177504
329315
737009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4046
SELECT col1 * + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4046
SELECT col1 * + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col1 - - col0 AS col2 FROM tab2
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4048
SELECT - CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4048
SELECT - CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( + 12 ) * + col0 * + 54 AS col2 FROM tab0 AS cor0
----
15552
22680
57672
query I rowsort
SELECT col0 * 53 AS col1 FROM tab2
----
371
4134
4187
query I rowsort
SELECT ALL col0 * col0 + col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT DISTINCT + col1 + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4053
SELECT col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4053
SELECT col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab0.col0 * + col2 * col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT - col0 - + 34 AS col1 FROM tab2
----
-112
-113
-41
query I rowsort
SELECT ALL + 24 AS col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
81 values hashing to dfdfceb3acab6f866df9d676c07043ad
query I rowsort
SELECT col1 * col1 * col0 + ( ( col0 ) ) AS col2 FROM tab1 cor0
----
13600
2031
6464
query I rowsort
SELECT 84 + col1 * + col1 AS col0 FROM tab2 AS cor0
----
1045
3565
373
query I rowsort
SELECT + col0 + col2 * - col0 + ( + col2 ) FROM tab1 AS cor0
----
-105
-3527
-7504
query I rowsort
SELECT 35 * col0 + col0 FROM tab2 AS cor0
----
252
2808
2844
query I rowsort
SELECT ALL - col0 + - col0 * col0 + ( - col2 ) FROM tab1
----
-4217
-6576
-66
query I rowsort
SELECT ALL - - 70 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4026
-6330
61
query I rowsort
SELECT DISTINCT - col1 * col1 + col1 * col1 + col0 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + col1 * col0 + - col0 * - 84 FROM tab2 AS cor0
----
11154
7979
805
query I rowsort
SELECT - col0 * - cor0.col1 + 29 AS col0 FROM tab1 cor0
----
1069
107
669
query I rowsort
SELECT + 74 + col0 * col1 + + col0 AS col1 FROM tab1
----
1194
155
778
query I rowsort
SELECT + col1 + 9 AS col1 FROM tab0
----
100
106
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + cor0.col1 col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + + ( 54 ) + col0 FROM tab1 cor0
----
118
134
57
query I rowsort
SELECT 56 + + 15 AS col0 FROM tab2 AS cor0
----
71
71
71
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col1 AS REAL ) + - col1 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL col2 * col0 * col1 + ( col1 * - tab2.col2 ) FROM tab2
----
118118
5022
50388
onlyif mysql # use DIV operator for integer division
query I rowsort label-4073
SELECT + col1 * - col2 + col2 DIV - col2 FROM tab0 AS cor0
----
-2839
-7463
-98
skipif mysql # not compatible
query I rowsort label-4073
SELECT + col1 * - col2 + col2 / - col2 FROM tab0 AS cor0
----
-2839
-7463
-98
query I rowsort
SELECT DISTINCT - 1 AS col2 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT col1 + - col2 + + 35 AS col0 FROM tab0 AS cor0
----
131
44
88
query I rowsort
SELECT ALL - + 3 AS col1 FROM tab0 AS cor0
----
-3
-3
-3
query I rowsort
SELECT ALL - + ( col2 ) + - col0 * + col2 + col0 FROM tab0 cor0
----
-1
-7291
-801
query I rowsort
SELECT ALL ( + col2 ) + + col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT + + 60 * col1 AS col0 FROM tab1 AS cor0
----
1560
600
780
query I rowsort
SELECT DISTINCT ( cor0.col0 ) * col2 + col2 AS col1 FROM tab0 cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-4081
SELECT ALL + col0 DIV + cor0.col0 + cor0.col0 + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2912
-3184
-9135
skipif mysql # not compatible
query I rowsort label-4081
SELECT ALL + col0 / + cor0.col0 + cor0.col0 + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2912
-3184
-9135
query I rowsort
SELECT DISTINCT - + 1 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 + col2 col2 FROM tab1 AS cor0
----
122
125
164
query I rowsort
SELECT col0 + col0 * col2 * col2 AS col2 FROM tab0 AS cor0
----
26160
598525
70
query I rowsort
SELECT DISTINCT col1 - 61 AS col1 FROM tab1
----
-35
-48
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-4086
SELECT tab1.col0 DIV ( col0 ) col0 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4086
SELECT tab1.col0 / ( col0 ) col0 FROM tab1
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4087
SELECT + col2 DIV - col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4087
SELECT + col2 / - col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT - col1 - 22 FROM tab1 cor0
----
-32
-35
-48
query I rowsort
SELECT DISTINCT + col2 * col2 - col1 FROM tab1
----
2890
3239
9203
query I rowsort
SELECT tab0.col0 * - 67 FROM tab0
----
-1608
-2345
-5963
query I rowsort
SELECT ALL - - col0 * 79 - ( + col1 ) FROM tab0 AS cor0
----
1810
2668
6940
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + ( 58 ) * col0 col2 FROM tab0 AS cor0
----
-2030
-423284
-45936
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4093
SELECT - + cor0.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4093
SELECT - + cor0.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * 16 AS col1 FROM tab1 AS cor0
----
1024
1280
48
query I rowsort
SELECT DISTINCT + col1 + + col1 FROM tab0 cor0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-4096
SELECT cor0.col0 DIV - cor0.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-4096
SELECT cor0.col0 / - cor0.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - cor0.col2 * - 27 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to f0321cf9fd3eef0e3f1c9529425df9d3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4098
SELECT ALL CAST( NULL AS SIGNED ) / + col1 + col1 * col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL CAST ( NULL AS INTEGER ) / + col1 + col1 * col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 71 * 9 FROM tab1 AS cor0
----
-639
-639
-639
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 * + col0 col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-4101
SELECT DISTINCT + cor0.col0 DIV - col1 + col0 FROM tab2 AS cor0
----
7
75
77
skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT + cor0.col0 / - col1 + col0 FROM tab2 AS cor0
----
7
75
77
query I rowsort
SELECT ALL + 25 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 68fc0eecd4f434589f3ec576bbd0c540
query I rowsort
SELECT col1 * col2 * tab2.col1 AS col2 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT DISTINCT + + col2 + cor0.col2 * col1 * - 33 FROM tab2 AS cor0
----
-21280
-27594
-50596
query I rowsort
SELECT ALL col2 - 11 AS col2 FROM tab1 AS cor0
----
43
46
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 + + col0 * - cor0.col1 col0 FROM tab2 AS cor0
----
-2787
-5278
-946
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4107
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + - col2 * 3 * - col1 AS col2 FROM tab0 cor0
----
22386
291
8514
query I rowsort
SELECT ALL - col2 * + ( 4 ) + + col1 * col0 AS col2 FROM tab0 AS cor0
----
1932
3391
7771
onlyif mysql # use DIV operator for integer division
query I rowsort label-4110
SELECT + - cor0.col2 DIV col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-4110
SELECT + - cor0.col2 / col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT ALL - - col0 * 83 AS col0 FROM tab0 AS cor0
----
1992
2905
7387
query I rowsort
SELECT ALL - cor0.col2 * col1 + 95 FROM tab2 cor0
----
-1439
-551
-742
query I rowsort
SELECT + col2 - tab2.col1 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL tab2.col0 * col0 + ( + 27 ) AS col1 FROM tab2
----
6111
6268
76
query I rowsort
SELECT + col0 * + ( col1 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - col1 + + ( cor0.col2 ) * - col1 * + 53 AS col2 FROM tab1 AS cor0
----
-30220
-66157
-74438
query I rowsort
SELECT + 76 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT - 97 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b
query I rowsort
SELECT DISTINCT cor0.col1 * - tab1.col2 + cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 51cc12e063f465528d137d915d05a97e
query I rowsort
SELECT DISTINCT + cor0.col1 * + ( col2 ) + + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT col1 + - 39 FROM tab2 AS cor0
----
-22
-8
20
query I rowsort
SELECT ALL 21 * - col0 AS col0 FROM tab2
----
-147
-1638
-1659
onlyif mysql # use DIV operator for integer division
query I rowsort label-4123
SELECT ALL - 8 + col2 DIV - col1 FROM tab0 AS cor0
----
-8
-8
-8
skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL - 8 + col2 / - col1 FROM tab0 AS cor0
----
-8
-8
-8
query I rowsort
SELECT col1 * + col1 * - 10 + + col0 FROM tab1
----
-1610
-6757
-936
query I rowsort
SELECT col1 + col0 * + col2 + 64 FROM tab2
----
2151
284
3083
query I rowsort
SELECT ALL 3 * col1 + col0 AS col0 FROM tab0
----
282
326
362
onlyif mysql # use DIV operator for integer division
query I rowsort label-4127
SELECT ALL - ( - tab2.col2 ) DIV - col1 + + col1 AS col0 FROM tab2
----
15
31
59
skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL - ( - tab2.col2 ) / - col1 + + col1 AS col0 FROM tab2
----
15
31
59
query I rowsort
SELECT DISTINCT col1 * col1 * + ( - 26 ) + col1 * 74 * + 66 + col2 * col2 FROM tab2 cor0
----
127147
198326
76958
query I rowsort
SELECT ALL + + ( + cor0.col2 ) FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4130
SELECT col0 + cor0.col2 DIV cor0.col1 FROM tab1 cor0
----
5
69
87
skipif mysql # not compatible
query I rowsort label-4130
SELECT col0 + cor0.col2 / cor0.col1 FROM tab1 cor0
----
5
69
87
query I rowsort
SELECT ALL + - 73 FROM tab0, tab0 cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc
query I rowsort
SELECT col2 + + col0 * 65 AS col0 FROM tab2 AS cor0
----
482
5096
5173
query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab2 cor0
----
30
query I rowsort
SELECT DISTINCT + 69 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
5934
6279
6693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col0 FROM tab0 AS cor0
----
65
query I rowsort
SELECT 20 + col1 - - col0 * col0 FROM tab2 AS cor0
----
100
6163
6278
query I rowsort
SELECT ALL + 4 * col2 AS col2 FROM tab0
----
132
328
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-4138
SELECT + cor0.col1 DIV - 25 FROM tab1, tab0 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
skipif mysql # not compatible
query I rowsort label-4138
SELECT + cor0.col1 / - 25 FROM tab1, tab0 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
query I rowsort
SELECT 26 + 79 * cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 38c98605397c0c44e01ede42809d6f9d
onlyif mysql # use DIV operator for integer division
query I rowsort label-4140
SELECT DISTINCT 39 + col2 DIV ( - col1 + + col0 ) FROM tab0
----
-2
39
skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT 39 + col2 / ( - col1 + + col0 ) FROM tab0
----
-2
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-4141
SELECT DISTINCT - col2 + + col2 * col1 DIV cor0.col2 - + col2 * - col0 FROM tab1 AS cor0
----
134
3601
7597
skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT - col2 + + col2 * col1 / cor0.col2 - + col2 * - col0 FROM tab1 AS cor0
----
134
3601
7597
query I rowsort
SELECT ALL - col2 + + col2 * - 34 AS col2 FROM tab1 AS cor0
----
-1890
-1995
-3360
query I rowsort
SELECT - - cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col2 - 64 AS col0 FROM tab2 cor0
----
-26
-37
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4145
SELECT - col1 DIV + col0 AS col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-4145
SELECT - col1 / + col0 AS col0 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT - - col2 * col0 * col2 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT DISTINCT - col2 + col0 + - col1 * + 24 AS col2 FROM tab1 AS cor0
----
-233
-328
-675
query I rowsort
SELECT cor0.col2 * ( - col1 ) + - 42 AS col1 FROM tab0 cor0
----
-139
-2880
-7504
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col0 FROM tab0
----
33
33
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-4150
SELECT ALL + col1 + col1 + + 19 DIV tab2.col0 FROM tab2
----
118
34
64
skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL + col1 + col1 + + 19 / tab2.col0 FROM tab2
----
118
34
64
query I rowsort
SELECT ALL + tab0.col0 * - col0 * + col0 + col2 FROM tab0
----
-13791
-42874
-704887
query I rowsort
SELECT col0 + 21 AS col0 FROM tab0
----
110
45
56
query I rowsort
SELECT - col2 + + col0 * - col2 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT + col2 * + 71 + col0 * col1 FROM tab2
----
2134
4041
6448
query I rowsort
SELECT - col0 * + 95 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-638
-7384
-7467
query I rowsort
SELECT col2 * + 77 AS col2 FROM tab2 AS cor0
----
2002
2079
2926
query I rowsort
SELECT col0 * - ( col1 ) * col2 + 53 AS col2 FROM tab0 AS cor0
----
-3342
-664065
-68059
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + ( col0 ) col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT 88 + ( + col2 ) FROM tab1 AS cor0
----
142
145
184
query I rowsort
SELECT DISTINCT + ( - 61 ) AS col0 FROM tab0 cor0
----
-61
query I rowsort
SELECT ALL + + col2 + - col1 * col2 * 84 AS col0 FROM tab0 AS cor0
----
-238359
-626726
-8147
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4162
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4162
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + ( col1 ) * - col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT col1 * + col2 * + col2 + - ( - col1 + + col0 ) AS col1 FROM tab0 cor0
----
159
611886
93716
query I rowsort
SELECT - 3 * + ( col1 ) FROM tab2 cor0
----
-177
-51
-93
query I rowsort
SELECT - col2 * - 71 FROM tab2
----
1846
1917
2698
query I rowsort
SELECT ALL + ( col2 ) + + col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT col1 - ( - col2 * 22 ) FROM tab0 AS cor0
----
119
1895
812
query I rowsort
SELECT - 46 * + col2 + - col2 * - 38 AS col1 FROM tab1 AS cor0
----
-432
-456
-768
query I rowsort
SELECT + 51 AS col2 FROM tab2 AS cor0
----
51
51
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-4171
SELECT - col2 * - col0 + ( 41 ) DIV - col1 - + col1 * - cor0.col2 * - col2 FROM tab0 AS cor0
----
-604586
-62
-92862
skipif mysql # not compatible
query I rowsort label-4171
SELECT - col2 * - col0 + ( 41 ) / - col1 - + col1 * - cor0.col2 * - col2 FROM tab0 AS cor0
----
-604586
-62
-92862
query I rowsort
SELECT + - col1 * + col1 + 21 FROM tab1 AS cor0
----
-148
-655
-79
query I rowsort
SELECT - col1 * - col1 + - col2 FROM tab2 AS cor0
----
251
3455
934
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4174
SELECT + col1 + col1 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4174
SELECT + col1 + col1 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col2 * - col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col2 - - col1 * + col0 FROM tab2
----
1381
244
4628
query I rowsort
SELECT + 83 + + cor0.col1 * + 36 FROM tab2 AS cor0
----
1199
2207
695
query I rowsort
SELECT + col2 + + ( + 69 ) * cor0.col1 FROM tab1 AS cor0
----
1848
747
993
query I rowsort
SELECT ALL col2 + - ( - col0 ) * col2 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4180
SELECT DISTINCT cor0.col0 + + CAST( NULL AS SIGNED ) * col1 col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT cor0.col0 + + CAST ( NULL AS INTEGER ) * col1 col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + col1 * + 46 FROM tab1 cor0
----
1196
460
598
query I rowsort
SELECT col0 * - col2 + + ( col1 ) AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT + col0 + + ( col2 ) * - col1 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT + col0 * + col0 AS col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT + - col1 * 72 + + ( col0 ) * - 95 FROM tab1 cor0
----
-2157
-6800
-8536
query I rowsort
SELECT DISTINCT col1 + + ( - col1 ) FROM tab0 AS cor0
----
0
query I rowsort
SELECT + + cor0.col0 * col1 + + 66 AS col0 FROM tab2 AS cor0
----
1409
283
4668
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 * + 82 col1 FROM tab0 AS cor0
----
1944
2835
7209
onlyif mysql # use DIV operator for integer division
query I rowsort label-4189
SELECT - + col0 DIV + col0 + ( - col2 ) FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-4189
SELECT - + col0 / + col0 + ( - col2 ) FROM tab2 AS cor0
----
-27
-28
-39
query I rowsort
SELECT + tab2.col0 * - col0 + + col0 * + col0 - col2 AS col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL col1 - + tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - 89 - - col1 FROM tab1
----
-63
-76
-79
query I rowsort
SELECT DISTINCT + col0 + - 63 AS col0 FROM tab1
----
-60
1
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-4194
SELECT DISTINCT cor0.col1 + - ( + 34 ) DIV - col2 AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT cor0.col1 + - ( + 34 ) / - col2 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + col1 + + 50 * 15 FROM tab0 AS cor0
----
836
841
847
query I rowsort
SELECT ALL + cor0.col1 * + col2 * ( col0 * - 48 + 16 ) AS col0 FROM tab1 AS cor0
----
-1741920
-179712
-4772352
query I rowsort
SELECT + col1 + ( col0 ) FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col1 + - 93 AS col2 FROM tab1 cor0
----
-67
-80
-83
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 cor1
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4200
SELECT + ( + 86 ) DIV + tab0.col2 + col0 AS col0 FROM tab0
----
121
26
90
skipif mysql # not compatible
query I rowsort label-4200
SELECT + ( + 86 ) / + tab0.col2 + col0 AS col0 FROM tab0
----
121
26
90
query I rowsort
SELECT - 85 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede
query I rowsort
SELECT ALL 30 * - col2 - - 75 AS col2 FROM tab1
----
-1545
-1635
-2805
query I rowsort
SELECT DISTINCT + 86 + + cor0.col2 + + col1 FROM tab2 AS cor0
----
141
144
171
query I rowsort
SELECT ALL 16 * - col2 + 19 FROM tab0 cor0
----
-1293
-509
3
query I rowsort
SELECT ALL + + 47 + col2 FROM tab1 AS cor0
----
101
104
143
query I rowsort
SELECT - - 39 FROM tab2 cor0
----
39
39
39
query I rowsort
SELECT DISTINCT - + ( col0 ) * - col1 - col2 AS col1 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT ALL 42 * - ( - col2 ) + - col1 + - col0 FROM tab0 AS cor0
----
-90
1276
3264
query I rowsort
SELECT ( 42 ) AS col1 FROM tab2 cor0
----
42
42
42
query I rowsort
SELECT DISTINCT col1 - 5 FROM tab0 AS cor0
----
81
86
92
query I rowsort
SELECT ALL ( 66 ) + - cor0.col0 * ( col2 ) AS col0 FROM tab2 AS cor0
----
-123
-1962
-2936
query I rowsort
SELECT - 27 * + ( + col0 ) + col1 AS col0 FROM tab0 AS cor0
----
-2312
-562
-848
query I rowsort
SELECT - 5 * + col1 * - col1 AS col0 FROM tab2 AS cor0
----
1445
17405
4805
query I rowsort
SELECT + + col2 * 81 FROM tab1 AS cor0
----
4374
4617
7776
query I rowsort
SELECT 19 - cor0.col2 FROM tab0 AS cor0
----
-14
-63
18
query I rowsort
SELECT DISTINCT - ( col1 ) + col2 * col0 AS col0 FROM tab2 AS cor0
----
158
1969
2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 * - 85 col0 FROM tab0 cor0
----
-2805
-6970
-85
query I rowsort
SELECT - + col0 * cor0.col2 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 6 ) col1 FROM tab0 AS cor0
----
-6
-6
-6
query I rowsort
SELECT DISTINCT ( cor0.col1 ) * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + + 62 - 20 * - col0 AS col2 FROM tab0 AS cor0
----
1842
542
762
query I rowsort
SELECT 90 * 80 AS col1 FROM tab0
----
7200
7200
7200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 9 col2 FROM tab2 AS cor0
----
153
279
531
query I rowsort
SELECT ALL - 95 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 7f375e73ca6bbe6b79001c2cbb1efee5
query I rowsort
SELECT ( + cor0.col2 ) - cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ae0eeb942db3f01544a81804e95e971a
query I rowsort
SELECT - + col2 * - ( - cor0.col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - col2 * - col2 * - col2 FROM tab1 AS cor0
----
-157464
-185193
-884736
query I rowsort
SELECT - - col1 + col1 * cor0.col0 * col1 FROM tab1 AS cor0
----
13533
2054
6410
query I rowsort
SELECT DISTINCT - - col1 * - col1 + 55 FROM tab1 AS cor0
----
-114
-45
-621
query I rowsort
SELECT - ( 7 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
query I rowsort
SELECT col0 * 0 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + 49 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT ALL tab0.col1 * + col1 AS col2 FROM tab0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4234
SELECT tab0.col1 DIV col0 + - col2 col0 FROM tab0
----
-30
-81
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4234
SELECT tab0.col1 / col0 + - col2 col0 FROM tab0
----
-30
-81
1
query I rowsort
SELECT tab1.col2 * + col0 * col0 - col2 FROM tab1
----
233415
432
614304
query I rowsort
SELECT ALL + 56 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT 5 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT ALL col0 * + 11 FROM tab0
----
264
385
979
query I rowsort
SELECT + + 1 * col2 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4240
SELECT DISTINCT + CAST( col1 + - col0 AS SIGNED ) * + ( - tab0.col2 ) FROM tab0
----
-164
-2046
-62
skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT + CAST ( col1 + - col0 AS INTEGER ) * + ( - tab0.col2 ) FROM tab0
----
-164
-2046
-62
query I rowsort
SELECT DISTINCT - 57 FROM tab1, tab2, tab0 AS cor0
----
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + col1 col2 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-4243
SELECT - 47 * col2 DIV col0 col0 FROM tab1 AS cor0
----
-41
-56
-846
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4243
SELECT - 47 * col2 / col0 col0 FROM tab1 AS cor0
----
-41
-56
-846
query I rowsort
SELECT 23 + - col2 FROM tab0
----
-10
-59
22
query I rowsort
SELECT DISTINCT + 26 * - tab1.col1 FROM tab1, tab0, tab2 AS cor0
----
-260
-338
-676
query I rowsort
SELECT + ( 99 ) FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT DISTINCT ( - col1 + - 62 ) FROM tab1
----
-72
-75
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 col0 FROM tab2, tab1, tab1 AS cor0
----
2
query I rowsort
SELECT cor0.col2 * + col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - 26 * tab0.col0 * + ( col2 ) AS col1 FROM tab0
----
-189748
-20592
-910
query I rowsort
SELECT 87 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 + col1 col0 FROM tab0 AS cor0
----
46
51
57
query I rowsort
SELECT - col1 + 37 AS col1 FROM tab2 AS cor0
----
-22
20
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4254
SELECT cor0.col1 + + ( - col0 ) DIV + col0 AS col1 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-4254
SELECT cor0.col1 + + ( - col0 ) / + col0 AS col1 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT - - col0 + - col1 + + cor0.col0 AS col0 FROM tab1 cor0
----
-20
118
147
query I rowsort
SELECT DISTINCT cor0.col0 + col2 * + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT cor0.col0 * col2 AS col1 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-4258
SELECT - col0 DIV 93 + - 92 * - col2 AS col0 FROM tab1 AS cor0
----
4968
5244
8832
skipif mysql # not compatible
query I rowsort label-4258
SELECT - col0 / 93 + - 92 * - col2 AS col0 FROM tab1 AS cor0
----
4968
5244
8832
query I rowsort
SELECT ALL - cor0.col1 + 87 AS col1 FROM tab2 AS cor0
----
28
56
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-4260
SELECT - col0 * col1 DIV + col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-4260
SELECT - col0 * col1 / + col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + tab2.col1 + - tab2.col2 * 45 AS col1 FROM tab2
----
-1111
-1184
-1693
query I rowsort
SELECT 33 * - col0 FROM tab1
----
-2112
-2640
-99
query I rowsort
SELECT - col0 + + ( ( col1 ) ) AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - - col2 + - 26 AS col1 FROM tab0 AS cor0
----
-25
56
7
query I rowsort
SELECT col0 * + ( + 18 ) FROM tab0 AS cor0
----
1602
432
630
query I rowsort
SELECT ALL col2 * - col0 AS col1 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + col0 col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT + + 65 + + 93 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9d3400f2b4f3756b63546a6a379b95c4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-28
query I rowsort
SELECT ALL ( col0 ) * col1 * col1 - - col1 FROM tab2
----
22848
271577
6758
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4271
SELECT + col1 + col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4271
SELECT + col1 + col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + - col1 - + col1 * + col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT col2 * + col1 * tab2.col0 + - col1 * - 34 FROM tab2
----
121658
51612
6913
query I rowsort
SELECT 1 * 54 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT ALL + col0 + 38 + col1 AS col2 FROM tab1
----
112
131
67
query I rowsort
SELECT - col1 * + col1 + 8 AS col1 FROM tab0
----
-7388
-8273
-9401
query I rowsort
SELECT - tab0.col1 * 33 + + col2 * col0 FROM tab0
----
-2046
-3166
4295
query I rowsort
SELECT DISTINCT + col1 * + ( col2 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + cor0.col1 + ( cor0.col0 ) FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + + col2 * ( 50 * col2 ) FROM tab0 AS cor0
----
336200
50
54450
query I rowsort
SELECT + col2 * ( - ( col0 ) ) AS col1 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT - col2 * ( col2 ) * cor0.col1 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT ALL - col1 * - ( - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + col2 + - 82 * 33 AS col0 FROM tab0 cor0
----
-2624
-2673
-2705
query I rowsort
SELECT 0 - + col1 * + col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT - col1 * - col0 + - col0 AS col0 FROM tab1
----
576
75
960
query I rowsort
SELECT col1 * - col1 + + col2 * col0 AS col2 FROM tab2
----
-1453
-772
2713
query I rowsort
SELECT ( col1 ) - col2 FROM tab2
----
-21
33
4
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col2 AS REAL ) FROM tab0
----
1
33
82
query I rowsort
SELECT - col2 - 8 * + col2 AS col1 FROM tab1
----
-486
-513
-864
query I rowsort
SELECT - ( col2 + col0 ) FROM tab1
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4292
SELECT ALL + + col0 DIV cor0.col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL + + col0 / cor0.col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT ALL - col2 + + cor0.col1 AS col2 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT + col2 * - col2 - + col0 AS col1 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT + ( cor0.col1 ) + - ( - col0 ) FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT DISTINCT + 32 AS col2 FROM tab0 AS cor0
----
32
query I rowsort
SELECT ALL + - col0 + cor0.col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL col0 + - col0 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL 12 * col0 AS col2 FROM tab0 AS cor0
----
1068
288
420
query I rowsort
SELECT DISTINCT - 36 * + col2 FROM tab2 AS cor0
----
-1368
-936
-972
onlyif mysql # use DIV operator for integer division
query I rowsort label-4302
SELECT ALL + + 78 DIV + col2 + ( cor0.col1 ) * - col1 AS col0 FROM tab1 AS cor0
----
-169
-675
-99
skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL + + 78 / + col2 + ( cor0.col1 ) * - col1 AS col0 FROM tab1 AS cor0
----
-169
-675
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-4303
SELECT DISTINCT + 69 * + col0 * col2 + col0 * col1 DIV ( - col1 * + col0 ) - col1 AS col1 FROM tab2 cor0
----
13009
139872
207120
skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT + 69 * + col0 * col2 + col0 * col1 / ( - col1 * + col0 ) - col1 AS col1 FROM tab2 cor0
----
13009
139872
207120
onlyif mysql # use DIV operator for integer division
query I rowsort label-4304
SELECT DISTINCT - col2 + + col1 DIV col1 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT - col2 + + col1 / col1 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT DISTINCT + col0 * + col0 + col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT + + 19 + - col1 * - 27 AS col2 FROM tab1 AS cor0
----
289
370
721
query I rowsort
SELECT ALL + col2 * col0 - + col1 * 22 AS col0 FROM tab0 AS cor0
----
-1100
-2099
5296
query I rowsort
SELECT DISTINCT + 5 * + col0 FROM tab1 AS cor0
----
15
320
400
query I rowsort
SELECT ALL + 8 + + cor0.col1 FROM tab0 AS cor0
----
105
94
99
query I rowsort
SELECT ALL + cor0.col1 + col1 - + col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL 9 FROM tab0, tab2 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to b7e6b25481699c3a4ee7381c7eae0817
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 * col1 col2 FROM tab0 AS cor0
----
7654
8099
8633
query I rowsort
SELECT + - col2 + 48 FROM tab2 cor0
----
10
21
22
query I rowsort
SELECT DISTINCT col2 * 10 * col2 AS col2 FROM tab1 cor0
----
29160
32490
92160
query I rowsort
SELECT + - col1 * - col0 - col1 * col0 * + ( + 74 ) FROM tab2 AS cor0
----
-15841
-335946
-98039
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - col2 + - CAST ( col0 AS REAL ) col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - + col0 - + ( col0 ) AS col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT col2 - + col1 * col1 AS col0 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT - - cor0.col1 - - cor0.col1 * col1 FROM tab1 AS cor0
----
110
182
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-4320
SELECT ALL col2 * ( col1 ) + col2 + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
2871
7544
98
skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL col2 * ( col1 ) + col2 + col2 / col1 AS col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + cor0.col0 - + col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - col1 * col2 - cor0.col0 FROM tab1 cor0
----
-1328
-1407
-634
query I rowsort
SELECT + + cor0.col1 + 71 FROM tab2 cor0
----
102
130
88
query I rowsort
SELECT ALL cor0.col1 * ( col2 * + col0 ) - - 16 * - 44 AS col2 FROM tab2 AS cor0
----
118948
50330
5155
query I rowsort
SELECT DISTINCT + col0 * - col2 + - col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT ALL + 99 * - col2 FROM tab1
----
-5346
-5643
-9504
query I rowsort
SELECT DISTINCT 73 FROM tab2, tab0, tab1 AS cor0
----
73
query I rowsort
SELECT col2 * col0 + 9 AS col2 FROM tab2
----
198
2037
3011
onlyif mysql # use DIV operator for integer division
query I rowsort label-4329
SELECT DISTINCT + col0 * + col1 * + 69 - col2 DIV + col1 FROM tab0
----
142416
234255
558831
skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT + col0 * + col1 * + 69 - col2 / + col1 FROM tab0
----
142416
234255
558831
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col2 FROM tab1
----
-35
-35
-35
query I rowsort
SELECT ALL - + col0 * + col0 + col2 * col2 + col2 FROM tab0 cor0
----
-1115
-1223
546
query I rowsort
SELECT DISTINCT - 59 - col1 AS col2 FROM tab0 AS cor0
----
-145
-150
-156
query I rowsort
SELECT col0 * - col1 * - col1 AS col0 FROM tab0 cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT + col1 + 19 FROM tab2 AS cor0
----
36
50
78
query I rowsort
SELECT + + col0 + 83 AS col0 FROM tab1 AS cor0
----
147
163
86
query I rowsort
SELECT DISTINCT - 64 * cor0.col2 AS col0 FROM tab0 cor0
----
-2112
-5248
-64
query I rowsort
SELECT DISTINCT + cor0.col0 * 10 FROM tab0 AS cor0
----
240
350
890
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4338
SELECT ALL CAST( col2 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL CAST ( col2 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4339
SELECT + col2 DIV ( - col1 ) + - col2 + ( + col2 ) FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-4339
SELECT + col2 / ( - col1 ) + - col2 + ( + col2 ) FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT DISTINCT - - col1 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4341
SELECT DISTINCT - - col0 + col1 DIV + col0 FROM tab2 AS cor0
----
11
78
79
skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT - - col0 + col1 / + col0 FROM tab2 AS cor0
----
11
78
79
query I rowsort
SELECT DISTINCT + - col1 + - col1 * col2 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL + col0 * - col1 + col2 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT ALL col1 * - 26 + + ( - col1 ) AS col1 FROM tab0
----
-2322
-2457
-2619
query I rowsort
SELECT - col1 + + col0 * col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT DISTINCT - - 93 * col1 FROM tab1 cor0
----
1209
2418
930
query I rowsort
SELECT ALL - - ( + col0 ) * col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT 67 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 * col1 col0 FROM tab2 AS cor0
----
221
403
767
query I rowsort
SELECT ALL + + ( - col2 ) AS col0 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - col0 + + col0 * col1 AS col2 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT col1 * col2 FROM tab2 WHERE NULL >= col2
----
query I rowsort
SELECT col2 * + tab0.col1 AS col1 FROM tab0 WHERE col0 NOT IN ( + col0 * - col0 * col1 )
----
2838
7462
97
query I rowsort
SELECT DISTINCT col2 * col1 * col1 + tab2.col1 * + tab2.col1 AS col1 FROM tab2
----
11271
26908
93987
query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT NULL <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col0 col1 FROM tab0
----
110
132
180
query I rowsort
SELECT - col0 - col2 * + col1 FROM tab0
----
-132
-2862
-7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 * + cor0.col0 col2 FROM tab1 AS cor0
----
104
1053
650
query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + col2 * col0 AND NULL
----
query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE col1 NOT IN ( col0 + col1 )
----
-7
-78
-79
query I rowsort
SELECT ALL col0 * + col0 - + col0 FROM tab2
----
42
6006
6162
query I rowsort
SELECT ALL - col1 + col2 * col0 FROM tab0 WHERE NOT NULL <= + col2
----
query I rowsort
SELECT col2 * tab1.col2 + col1 AS col2 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT DISTINCT col0 - - col0 * tab1.col2 AS col1 FROM tab1
----
165
3712
7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * + col1 col0 FROM tab1
----
104
1053
650
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 IN ( col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL col2 + tab1.col2 AS col2 FROM tab1
----
108
114
192
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col0 / col2 ) = col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4369
SELECT DISTINCT cor0.col2 DIV + col1 FROM tab2 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT cor0.col2 / + col1 FROM tab2 AS cor0
----
0
2
query I rowsort
SELECT DISTINCT + + col2 * + col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4371
SELECT ALL col2 DIV cor0.col0 + - cor0.col1 FROM tab1 AS cor0
----
-10
-12
-8
skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL col2 / cor0.col0 + - cor0.col1 FROM tab1 AS cor0
----
-10
-12
-8
query I rowsort
SELECT col1 + tab1.col2 AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT + - cor0.col0 * - col1 + - col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT ALL - cor0.col1 * + col2 - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT cor0.col1 + + col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT + + cor0.col1 * col2 * + col0 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT ALL - col0 + col2 * col2 FROM tab2 cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT col2 * col2 + col2 AS col1 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT - - col1 + - cor0.col2 AS col1 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT DISTINCT + + cor0.col1 + + col0 AS col1 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-4381
SELECT DISTINCT + - col2 DIV - cor0.col2 AS col2 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT + - col2 / - cor0.col2 AS col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT DISTINCT - col0 * col1 + + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL col2 + col2 * + col2 * col0 FROM tab2 cor0
----
114114
5130
52754
query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 col0 FROM tab1 cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4387
SELECT ALL + col1 DIV cor0.col1 - col0 * - col2 col2 FROM tab1 AS cor0
----
163
3649
7681
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL + col1 / cor0.col1 - col0 * - col2 col2 FROM tab1 AS cor0
----
163
3649
7681
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 AS col2 FROM tab2, tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - - col2 + col0 * 95 AS col0 FROM tab1 AS cor0
----
339
6137
7696
query I rowsort
SELECT + + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col2 * col0 * - 75 + col0 * - col0 FROM tab0 cor0
----
1400
539429
58824
query I rowsort
SELECT - cor0.col2 * + col0 + - 87 FROM tab0 AS cor0
----
-122
-7385
-879
query I rowsort
SELECT ALL - - col0 * 55 AS col1 FROM tab0 AS cor0
----
1320
1925
4895
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col1 FROM tab0, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL + - col0 + - col1 - col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1397
550
799
query I rowsort
SELECT DISTINCT 93 * 92 FROM tab1 AS cor0
----
8556
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * + col2 + col0 col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL col2 * - col0 * + col1 AS col0 FROM tab1
----
-36480
-4212
-99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4399
SELECT - 30 * - col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4399
SELECT - 30 * - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4400
SELECT + col1 + - cor0.col1 DIV CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4400
SELECT + col1 + - cor0.col1 / CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10
13
26
query III rowsort
SELECT ALL * FROM tab2 WHERE col1 NOT BETWEEN NULL AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4402
SELECT + col2 DIV col1 - tab1.col0 AS col1 FROM tab1
----
-1
-59
-73
skipif mysql # not compatible
query I rowsort label-4402
SELECT + col2 / col1 - tab1.col0 AS col1 FROM tab1
----
-1
-59
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-4403
SELECT col1 DIV col1 + col0 * col0 AS col0 FROM tab0
----
1226
577
7922
skipif mysql # not compatible
query I rowsort label-4403
SELECT col1 / col1 + col0 * col0 AS col0 FROM tab0
----
1226
577
7922
query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * - col0 NOT IN ( col1 )
----
query I rowsort
SELECT ALL col0 * - col0 AS col1 FROM tab0 WHERE NOT - col2 + - col0 >= ( col1 )
----
-1225
-576
-7921
query I rowsort
SELECT ALL col0 * + col2 * col0 AS col2 FROM tab1
----
233472
486
614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-4407
SELECT col1 DIV col1 + - col1 AS col2 FROM tab1
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-4407
SELECT col1 / col1 + - col1 AS col2 FROM tab1
----
-12
-25
-9
query I rowsort
SELECT DISTINCT + 42 AS col1 FROM tab1, tab2, tab1 AS cor0
----
42
query I rowsort
SELECT + col1 + col1 * 71 FROM tab0 AS cor0
----
6192
6552
6984
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 col0 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-4411
SELECT ALL - - col0 + + col0 * col2 DIV - col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL - - col0 + + col0 * col2 / - col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4412
SELECT - - ( + cor0.col2 ) - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4412
SELECT - - ( + cor0.col2 ) - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + ( + cor0.col0 ) FROM tab1, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + ( - 62 ) * + cor2.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 1eb894048322070cf9264aeddae51baa
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4415
SELECT + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-4415
SELECT + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + ( col1 ) + - col0 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) * - col2 AS col2 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4418
SELECT col1 * col1 DIV col1 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-4418
SELECT col1 * col1 / col1 FROM tab2
----
17
31
59
query I rowsort
SELECT ( + 66 ) * - col1 * ( + col1 ) FROM tab0
----
-488136
-546546
-620994
query I rowsort
SELECT DISTINCT 6 - - col2 FROM tab1
----
102
60
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4421
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4421
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * col1 * - col1 AS col0 FROM tab1
----
-13520
-2028
-6400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4423
SELECT ALL CAST( col2 AS SIGNED ) * col2 - - 97 * - 86 AS col1 FROM tab2
----
-6898
-7613
-7666
skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL CAST ( col2 AS INTEGER ) * col2 - - 97 * - 86 AS col1 FROM tab2
----
-6898
-7613
-7666
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4424
SELECT ALL + CAST( NULL AS SIGNED ) - col0 / + col1 col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL + CAST ( NULL AS INTEGER ) - col0 / + col1 col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + col1 - col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL 19 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
query I rowsort
SELECT ALL + - 16 * tab2.col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 97bab84fdedcdefcf6dc48261e95ed59
query I rowsort
SELECT - 56 * col1 FROM tab0
----
-4816
-5096
-5432
query I rowsort
SELECT ALL tab2.col2 + + col1 * - col1 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT + + 95 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT + col2 * - col0 * 62 FROM tab1 AS cor0
----
-10044
-226176
-476160
query I rowsort
SELECT + + cor0.col2 * col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-4433
SELECT ALL col2 * col0 DIV 46 FROM tab1 AS cor0
----
166
3
79
skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL col2 * col0 / 46 FROM tab1 AS cor0
----
166
3
79
query I rowsort
SELECT DISTINCT - - col1 + + 11 * col1 AS col2 FROM tab2 AS cor0
----
204
372
708
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + 94 col1 FROM tab0 AS cor0
----
127
176
95
query I rowsort
SELECT ALL + cor0.col0 * + col0 * col1 + cor0.col0 FROM tab2 cor0
----
106176
1526
359034
query I rowsort
SELECT ALL col0 + 55 * col0 FROM tab0 AS cor0
----
1344
1960
4984
query I rowsort
SELECT col0 + + ( + col0 ) FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT + + col2 + cor0.col1 * col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT + col2 * + ( col2 ) FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-4441
SELECT - col2 DIV ( + col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4441
SELECT - col2 / ( + col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + tab2.col0 * - col2 - - col0 * col1 AS col1 FROM tab2
----
-1659
2574
28
query I rowsort
SELECT - + tab0.col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT 23 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 + col2 * cor0.col0 * - cor0.col2 + + col1 col0 FROM tab0 AS cor0
----
-27139
-605069
61
query I rowsort
SELECT - col0 * - 57 FROM tab2 AS cor0
----
399
4446
4503
query I rowsort
SELECT ALL - + col0 * 61 AS col2 FROM tab1 AS cor0
----
-183
-3904
-4880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4448
SELECT DISTINCT col1 * + CAST( + col0 AS SIGNED ) + col1 FROM tab1 AS cor0
----
104
1053
650
skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT col1 * + CAST ( + col0 AS INTEGER ) + col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT ( col1 ) * cor0.col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - cor0.col0 * - ( + cor0.col0 ) AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + col2 * + 76 AS col2 FROM tab2 AS cor0
----
1976
2052
2888
query I rowsort
SELECT ALL - col1 + 53 * col2 FROM tab1 AS cor0
----
2836
3011
5075
query I rowsort
SELECT - ( col0 ) * + cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4454
SELECT ALL - cor0.col1 * col0 DIV col0 + 14 FROM tab1 AS cor0
----
-12
1
4
skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL - cor0.col1 * col0 / col0 + 14 FROM tab1 AS cor0
----
-12
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 + - col0 col1 FROM tab2 AS cor0
----
-10
-9
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4456
SELECT + CAST( 31 AS SIGNED ) FROM tab1 AS cor0
----
31
31
31
skipif mysql # not compatible
query I rowsort label-4456
SELECT + CAST ( 31 AS INTEGER ) FROM tab1 AS cor0
----
31
31
31
query I rowsort
SELECT ALL - col1 + col1 * + col2 + + cor0.col0 * 71 FROM tab1 AS cor0
----
1591
5104
6915
query I rowsort
SELECT ALL - - ( - 91 ) - - cor0.col2 * col2 FROM tab1 AS cor0
----
2825
3158
9125
query I rowsort
SELECT DISTINCT - - 15 * col0 FROM tab1 AS cor0
----
1200
45
960
query I rowsort
SELECT - + 95 * 61 AS col1 FROM tab2 AS cor0
----
-5795
-5795
-5795
query I rowsort
SELECT + col1 + col0 * col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT - - ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL 31 + + cor0.col2 AS col2 FROM tab2 cor0
----
57
58
69
query I rowsort
SELECT DISTINCT - ( col2 ) + + col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL ( - 99 ) * col2 FROM tab2 cor0
----
-2574
-2673
-3762
query I rowsort
SELECT DISTINCT - - 45 + - 91 FROM tab0 AS cor0
----
-46
query I rowsort
SELECT - col0 + - col1 * + 81 FROM tab0 AS cor0
----
-6990
-7460
-7892
query I rowsort
SELECT ALL ( - col2 ) * - ( cor0.col0 ) + + col1 AS col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + - 82 * + col1 AS col1 FROM tab0 AS cor0
----
-7052
-7462
-7954
query I rowsort
SELECT - + 62 * col0 + col1 FROM tab2 AS cor0
----
-403
-4777
-4881
query I rowsort
SELECT + col2 * col1 + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ( col2 ) * col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT - - 91 AS col1 FROM tab1 AS cor0
----
91
91
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4474
SELECT DISTINCT cor0.col0 - cor0.col2 * + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT cor0.col0 - cor0.col2 * + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col1 * - col0 AS col1 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4476
SELECT + + col0 + col0 * 78 DIV 51 FROM tab0 AS cor0
----
225
60
88
skipif mysql # not compatible
query I rowsort label-4476
SELECT + + col0 + col0 * 78 / 51 FROM tab0 AS cor0
----
225
60
88
query I rowsort
SELECT ALL - 99 + col1 * - ( - col0 ) FROM tab2 AS cor0
----
118
1244
4503
query I rowsort
SELECT - col0 - - cor0.col2 * 97 AS col0 FROM tab0 AS cor0
----
3177
62
7865
query I rowsort
SELECT DISTINCT + 1 * col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - - cor0.col1 + + col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT col2 * - col2 + - col2 FROM tab1 cor0
----
-2970
-3306
-9312
query I rowsort
SELECT ALL + - col0 * - col1 - ( + cor0.col0 ) FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL 0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - - 62 * col1 + + col0 * col0 + col2 AS col0 FROM tab2 AS cor0
----
1998
7333
9768
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4485
SELECT DISTINCT CAST( NULL AS SIGNED ) * 77 AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 77 AS col0 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 * - col1 col0 FROM tab1
----
-104
-208
-80
query I rowsort
SELECT col2 * + col1 + - 19 + + col2 AS col0 FROM tab2 AS cor0
----
1541
665
845
query I rowsort
SELECT - 33 + - col0 * col1 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
177471
329282
736976
query I rowsort
SELECT - 75 * col0 + - col1 FROM tab2
----
-556
-5909
-5942
query I rowsort
SELECT + col2 + 1 FROM tab0
----
2
34
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4491
SELECT DISTINCT CAST( col0 AS SIGNED ) * + col0 FROM tab1
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT CAST ( col0 AS INTEGER ) * + col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT + col2 + + col2 * - col2 FROM tab0
----
-1056
-6642
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 95 col2 FROM tab2
----
112
126
154
onlyif mysql # use DIV operator for integer division
query I rowsort label-4494
SELECT + tab1.col1 * tab1.col2 DIV tab1.col0 + col1 AS col2 FROM tab1
----
18
28
494
skipif mysql # not compatible
query I rowsort label-4494
SELECT + tab1.col1 * tab1.col2 / tab1.col0 + col1 AS col2 FROM tab1
----
18
28
494
query I rowsort
SELECT 33 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 col0 FROM tab2 cor0
----
-79
-79
-79
query I rowsort
SELECT ALL + - 60 * + col1 AS col2 FROM tab2 cor0
----
-1020
-1860
-3540
query I rowsort
SELECT DISTINCT + ( col1 ) AS col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - 70 * col1 AS col1 FROM tab0 AS cor0
----
-6020
-6370
-6790
query I rowsort
SELECT DISTINCT col0 + cor0.col1 AS col2 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-4501
SELECT + col1 DIV ( col1 ) FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4501
SELECT + col1 / ( col1 ) FROM tab1
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4502
SELECT DISTINCT - col0 + col2 DIV + 21 AS col0 FROM tab2
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT - col0 + col2 / + 21 AS col0 FROM tab2
----
-6
-77
-78
query I rowsort
SELECT DISTINCT - - col1 * + 70 AS col1 FROM tab2 AS cor0
----
1190
2170
4130
query I rowsort
SELECT + cor0.col0 - col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + - col1 + + ( col2 ) FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT cor0.col1 - col1 * 51 FROM tab0 cor0
----
-4300
-4550
-4850
onlyif mysql # use DIV operator for integer division
query I rowsort label-4507
SELECT ALL + col0 * col2 + col1 DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
161
3647
7679
skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL + col0 * col2 + col1 / - cor0.col1 AS col0 FROM tab1 AS cor0
----
161
3647
7679
query I rowsort
SELECT DISTINCT + col1 * col1 - col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT - 26 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39
query I rowsort
SELECT ALL col1 + 74 FROM tab2
----
105
133
91
query I rowsort
SELECT DISTINCT - col0 * 43 FROM tab1 AS cor0
----
-129
-2752
-3440
query I rowsort
SELECT ALL - col2 * - col2 + col2 * cor0.col1 * ( + col0 ) FROM tab1 AS cor0
----
109056
39729
7128
query I rowsort
SELECT ALL + + col0 + - ( - cor0.col1 ) * + ( + 87 ) AS col2 FROM tab2 AS cor0
----
1558
2704
5211
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) * col0 FROM tab2 cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 col0 FROM tab0 AS cor0
----
53
53
53
query I rowsort
SELECT DISTINCT col1 + 1 FROM tab2
----
18
32
60
query I rowsort
SELECT - col0 * - 69 FROM tab0
----
1656
2415
6141
query I rowsort
SELECT + cor1.col1 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - + col0 - - 25 AS col0 FROM tab1 cor0
----
-39
-55
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) + - col2 col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT col0 * col1 + - cor0.col1 * col0 * - col0 AS col0 FROM tab2 AS cor0
----
107440
1736
363558
onlyif mysql # use DIV operator for integer division
query I rowsort label-4522
SELECT col1 DIV col0 - cor0.col1 FROM tab0 AS cor0
----
-83
-90
-95
skipif mysql # not compatible
query I rowsort label-4522
SELECT col1 / col0 - cor0.col1 FROM tab0 AS cor0
----
-83
-90
-95
query I rowsort
SELECT - 94 + - ( col2 ) FROM tab1 AS cor0
----
-148
-151
-190
query I rowsort
SELECT - 55 + 64 * + col0 FROM tab1 cor0
----
137
4041
5065
query I rowsort
SELECT - col0 * - col0 + col2 FROM tab2 cor0
----
6110
6279
76
query I rowsort
SELECT cor0.col0 * col0 + 30 FROM tab2 AS cor0
----
6114
6271
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 * - 88 col2 FROM tab1
----
-3080
-3080
-3080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + cor0.col0 col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT + 23 AS col1 FROM tab2
----
23
23
23
query I rowsort
SELECT + col1 * + 81 AS col1 FROM tab1 AS cor0
----
1053
2106
810
query I rowsort
SELECT 47 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT ALL - col2 + - ( + col1 + - col1 ) FROM tab0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4533
SELECT - ( 27 ) * + col2 - CAST( + 68 AS SIGNED ) AS col2 FROM tab0 cor0
----
-2282
-95
-959
skipif mysql # not compatible
query I rowsort label-4533
SELECT - ( 27 ) * + col2 - CAST ( + 68 AS INTEGER ) AS col2 FROM tab0 cor0
----
-2282
-95
-959
onlyif mysql # use DIV operator for integer division
query I rowsort label-4534
SELECT ALL - tab0.col1 * - ( col0 ) * - col0 + ( - col2 ) DIV col2 + + 8 AS col0 FROM tab0
----
-118818
-49529
-720804
skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL - tab0.col1 * - ( col0 ) * - col0 + ( - col2 ) / col2 + + 8 AS col0 FROM tab0
----
-118818
-49529
-720804
query I rowsort
SELECT ALL 79 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT + + 36 AS col1 FROM tab2 AS cor0
----
36
36
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-4537
SELECT DISTINCT - + 47 DIV + col1 + 9 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
114
233
86
skipif mysql # not compatible
query I rowsort label-4537
SELECT DISTINCT - + 47 / + col1 + 9 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
114
233
86
query I rowsort
SELECT + 46 + - col2 FROM tab1 AS cor0
----
-11
-50
-8
query I rowsort
SELECT DISTINCT - - col2 * - col1 + col2 + cor0.col2 FROM tab2 AS cor0
----
-1482
-570
-783
query I rowsort
SELECT ALL - col1 * + col1 - + 34 FROM tab0 AS cor0
----
-7430
-8315
-9443
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * col1 col2 FROM tab1 cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-4542
SELECT ALL + col2 * col2 + + ( col2 ) DIV - col0 + + CAST( + 68 AS SIGNED ) * + col2 AS col1 FROM tab1 cor0
----
15743
6570
7125
skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL + col2 * col2 + + ( col2 ) / - col0 + + CAST ( + 68 AS INTEGER ) * + col2 AS col1 FROM tab1 cor0
----
15743
6570
7125
query I rowsort
SELECT DISTINCT - 86 + - cor0.col0 * + 48 AS col2 FROM tab1 AS cor0
----
-230
-3158
-3926
query I rowsort
SELECT ALL + - 50 AS col0 FROM tab2 AS cor0
----
-50
-50
-50
query I rowsort
SELECT 22 + + col1 AS col0 FROM tab1 AS cor0
----
32
35
48
query I rowsort
SELECT ALL + 90 + col2 AS col0 FROM tab2 AS cor0
----
116
117
128
query I rowsort
SELECT DISTINCT - col2 * col1 + col1 + col0 AS col1 FROM tab0 cor0
----
-2728
-7282
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-4548
SELECT ALL col2 * 8 DIV col0 FROM tab0 AS cor0
----
0
11
7
skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL col2 * 8 / col0 FROM tab0 AS cor0
----
0
11
7
query I rowsort
SELECT ALL - + col2 - + 41 FROM tab0 AS cor0
----
-123
-42
-74
query I rowsort
SELECT - col2 - col0 * - col0 FROM tab2
----
22
6058
6203
query I rowsort
SELECT + 9 * - 92 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 00cf694a0c1770170955b839d7cbe914
query I rowsort
SELECT ALL - + 51 AS col2 FROM tab1 AS cor0
----
-51
-51
-51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4553
SELECT DISTINCT + CAST( ( + col0 ) AS SIGNED ) * + 19 FROM tab2 cor0
----
133
1482
1501
skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT + CAST ( ( + col0 ) AS INTEGER ) * + 19 FROM tab2 cor0
----
133
1482
1501
onlyif mysql # use DIV operator for integer division
query I rowsort label-4554
SELECT ALL col2 DIV cor0.col0 + + col1 col2 FROM tab2 AS cor0
----
17
34
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL col2 / cor0.col0 + + col1 col2 FROM tab2 AS cor0
----
17
34
59
query I rowsort
SELECT 96 + + col0 AS col2 FROM tab2 AS cor0
----
103
174
175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 col2 FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT DISTINCT - + 75 + - col2 * + col1 AS col0 FROM tab1 cor0
----
-1323
-1479
-645
query I rowsort
SELECT ALL + col0 * col1 * + col1 + - col2 FROM tab1 AS cor0
----
13424
1974
6343
query I rowsort
SELECT - + ( col0 ) + col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL - ( + ( col1 ) ) + - col0 * - col1 * + col2 FROM tab2 AS cor0
----
119593
51017
5828
onlyif mysql # use DIV operator for integer division
query I rowsort label-4561
SELECT DISTINCT cor0.col2 DIV - cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT cor0.col2 / - cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
-1
query I rowsort
SELECT + ( + col2 * col2 + 39 * - col1 ) FROM tab2
----
-1625
-480
781
query I rowsort
SELECT DISTINCT 42 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-17
11
25
query I rowsort
SELECT + col0 * 11 AS col2 FROM tab0
----
264
385
979
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4565
SELECT DISTINCT - CAST( col2 AS SIGNED ) + col1 FROM tab2
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT ALL 84 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT 9 - - tab0.col2 AS col2 FROM tab0
----
10
42
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 41 col0 FROM tab2
----
67
68
79
query I rowsort
SELECT ALL + - 6 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934
query I rowsort
SELECT DISTINCT + - col2 * - col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - 81 AS col2 FROM tab0 AS cor0
----
-81
-81
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-4572
SELECT + - col2 DIV col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4572
SELECT + - col2 / col2 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4573
SELECT - tab1.col1 DIV - 4 FROM tab1
----
2
3
6
skipif mysql # not compatible
query I rowsort label-4573
SELECT - tab1.col1 / - 4 FROM tab1
----
2
3
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 + - 89 ) * col0 col2 FROM tab1
----
-560
105
2048
query I rowsort
SELECT - ( + tab0.col1 ) + - col0 AS col2 FROM tab0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-4576
SELECT - col2 DIV + col1 + CAST( + col0 AS SIGNED ) AS col2 FROM tab2
----
7
77
78
skipif mysql # not compatible
query I rowsort label-4576
SELECT - col2 / + col1 + CAST ( + col0 AS INTEGER ) AS col2 FROM tab2
----
7
77
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4577
SELECT DISTINCT - + cor0.col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT - + cor0.col1 / + col1 AS col1 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT ALL - 20 * col2 * + col1 FROM tab0
----
-149240
-1940
-56760
query I rowsort
SELECT DISTINCT - 58 * col0 AS col1 FROM tab0 AS cor0
----
-1392
-2030
-5162
query I rowsort
SELECT DISTINCT 68 FROM tab0, tab0 AS cor0
----
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-4581
SELECT ALL + - 52 DIV + col2 col1 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL + - 52 / + col2 col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 - 26 FROM tab0
----
-115
-50
-61
query I rowsort
SELECT + tab1.col2 + - 54 * + col0 - - col1 FROM tab1
----
-3389
-4211
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT - ( 80 ) + cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5f79894c7f6c2ff63e1c4792039ff3c9
query I rowsort
SELECT ALL + - col2 + ( col1 ) AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + cor0.col2 * cor0.col1 + + cor0.col1 * 9 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 1103263e44e038252ae0fc96a8676709
query I rowsort
SELECT + 11 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT col2 * col0 + - col2 FROM tab0 AS cor0
----
34
7216
759
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( 6 AS REAL ) + + cor0.col2 FROM tab2 AS cor0
----
20
21
32
query I rowsort
SELECT ( ( col2 ) ) + col2 AS col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - ( col0 ) * col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - + col0 * + cor0.col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - - 38 + col2 AS col2 FROM tab2 AS cor0
----
64
65
76
query I rowsort
SELECT DISTINCT 5 + col0 * + col2 AS col0 FROM tab0 AS cor0
----
40
7303
797
query I rowsort
SELECT + + cor0.col1 - col0 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT - col2 + - col0 * + 93 + - col1 FROM tab2
----
-709
-7339
-7402
onlyif mysql # use DIV operator for integer division
query I rowsort label-4598
SELECT DISTINCT ( col1 ) DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT ( col1 ) / cor0.col2 AS col0 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ALL + col0 * 96 AS col1 FROM tab0 AS cor0
----
2304
3360
8544
onlyif mysql # use DIV operator for integer division
query I rowsort label-4600
SELECT + - ( col0 ) DIV - col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4600
SELECT + - ( col0 ) / - col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT + ( 6 ) * col1 + 10 FROM tab0 AS cor0
----
526
556
592
query I rowsort
SELECT DISTINCT - 30 * col2 FROM tab2 cor0
----
-1140
-780
-810
query I rowsort
SELECT DISTINCT ( col2 ) * - col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - 70 - col0 FROM tab2 AS cor0
----
-148
-149
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-4605
SELECT cor0.col0 * col2 DIV col1 FROM tab1 AS cor0
----
364
590
6
skipif mysql # not compatible
query I rowsort label-4605
SELECT cor0.col0 * col2 / col1 FROM tab1 AS cor0
----
364
590
6
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + cor0.col2 * ( col1 ) - + col1 AS col2 FROM tab2 cor0
----
1475
629
806
query I rowsort
SELECT + cor0.col0 * + col1 + - col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT - col1 * col2 * 4 + + col0 AS col0 FROM tab2 cor0
----
-2505
-3341
-6058
query I rowsort
SELECT + tab2.col1 * - col2 + col2 AS col1 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT - col1 + - col1 * - col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT + tab1.col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4613
SELECT - col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4613
SELECT - col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 77 FROM tab0, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab1.col0 * col0 col1 FROM tab1
----
234
40960
83200
query I rowsort
SELECT + col0 * + 66 FROM tab2
----
462
5148
5214
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4617
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * 30 AS col2 FROM tab1, tab0, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * 30 AS col2 FROM tab1, tab0, tab0 AS cor0
----
NULL
query I rowsort
SELECT 14 + + 46 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162
query I rowsort
SELECT ( - tab1.col0 ) + - col0 FROM tab1
----
-128
-160
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4620
SELECT + col0 + col1 DIV + col0 FROM tab0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-4620
SELECT + col0 + col1 / + col0 FROM tab0
----
27
37
90
query I rowsort
SELECT ALL 3 * + col2 + + 60 + - col2 FROM tab1
----
168
174
252
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4623
SELECT 91 * + tab1.col1 + - col1 DIV 40 + + col2 * - 15 AS col2 FROM tab1
----
-257
1556
55
skipif mysql # not compatible
query I rowsort label-4623
SELECT 91 * + tab1.col1 + - col1 / 40 + + col2 * - 15 AS col2 FROM tab1
----
-257
1556
55
query I rowsort
SELECT DISTINCT + - cor0.col0 + col1 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT + col1 * col1 + 63 * 57 AS col0 FROM tab1 AS cor0
----
3691
3760
4267
query I rowsort
SELECT + col1 + col0 * + ( col2 ) AS col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT 33 * col1 * col2 FROM tab1 AS cor0
----
18810
41184
46332
query I rowsort
SELECT ( + cor0.col0 ) AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4629
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col0 col2 FROM tab1
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4631
SELECT DISTINCT cor0.col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col1 * + 54 + - col1 AS col1 FROM tab0 AS cor0
----
-4730
-5005
-5335
query I rowsort
SELECT + + col2 * col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - col1 * cor0.col2 + col2 - col1 FROM tab0 AS cor0
----
-193
-2891
-7471
query I rowsort
SELECT - ( col0 + ( col2 ) ) AS col1 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT ( tab1.col0 ) - col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT - col1 * col2 * - col0 + 78 AS col2 FROM tab0
----
3473
664196
68190
query I rowsort
SELECT DISTINCT - ( + col1 ) * + ( col0 * - col0 ) FROM tab2
----
106097
1519
358956
query I rowsort
SELECT ALL ( + col2 ) AS col1 FROM tab1
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4640
SELECT DISTINCT + tab2.col1 - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT + tab2.col1 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col2 FROM tab0 cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4642
SELECT - + col2 DIV + 13 + col2 col1 FROM tab0 AS cor0
----
1
31
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4642
SELECT - + col2 / + 13 + col2 col1 FROM tab0 AS cor0
----
1
31
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-4643
SELECT + col2 DIV cor0.col0 + col2 * col1 * - col2 - + 13 AS col1 FROM tab0 AS cor0
----
-110
-611897
-93666
skipif mysql # not compatible
query I rowsort label-4643
SELECT + col2 / cor0.col0 + col2 * col1 * - col2 - + 13 AS col1 FROM tab0 AS cor0
----
-110
-611897
-93666
query I rowsort
SELECT + col0 + col1 * col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-4645
SELECT - col2 * 91 - - col0 DIV col2 FROM tab1 AS cor0
----
-4914
-5186
-8736
skipif mysql # not compatible
query I rowsort label-4645
SELECT - col2 * 91 - - col0 / col2 FROM tab1 AS cor0
----
-4914
-5186
-8736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4646
SELECT col2 * - CAST( + col1 AS SIGNED ) - - col2 FROM tab1 AS cor0
----
-1152
-1350
-513
skipif mysql # not compatible
query I rowsort label-4646
SELECT col2 * - CAST ( + col1 AS INTEGER ) - - col2 FROM tab1 AS cor0
----
-1152
-1350
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 67 * cor0.col1 col0 FROM tab0 AS cor0
----
5729
6015
6498
query I rowsort
SELECT + + col1 * - 47 FROM tab1 AS cor0
----
-1222
-470
-611
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4649
SELECT CAST( 64 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
64
64
64
skipif mysql # not compatible
query I rowsort label-4649
SELECT CAST ( 64 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
64
64
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-4650
SELECT DISTINCT 50 DIV + col0 AS col2 FROM tab1
----
0
16
skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT 50 / + col0 AS col2 FROM tab1
----
0
16
query I rowsort
SELECT + 32 * col0 AS col0 FROM tab1 cor0
----
2048
2560
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 + + col1 col0 FROM tab2 AS cor0
----
38
52
80
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0 CROSS JOIN tab1, tab0, tab1 AS cor1
----
3645 values hashing to f9101173abc9e524c6310e6c0eeefb0c
query I rowsort
SELECT DISTINCT - 50 AS col2 FROM tab0, tab2 AS cor0
----
-50
query I rowsort
SELECT 88 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
query I rowsort
SELECT col0 + ( - col1 ) AS col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT - tab1.col1 * + ( col2 ) + col1 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT col2 + 25 * - col2 AS col0 FROM tab0 AS cor0
----
-1968
-24
-792
query I rowsort
SELECT DISTINCT - cor0.col1 * - cor0.col1 - - col1 FROM tab2 AS cor0
----
306
3540
992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4660
SELECT + + col0 * CAST( NULL AS SIGNED ) / - col0 + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4660
SELECT + + col0 * CAST ( NULL AS INTEGER ) / - col0 + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4661
SELECT DISTINCT + 95 * - 18 + col2 DIV col2 FROM tab0 AS cor0
----
-1709
skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT + 95 * - 18 + col2 / col2 FROM tab0 AS cor0
----
-1709
query I rowsort
SELECT DISTINCT - ( 73 ) AS col2 FROM tab2 AS cor0
----
-73
query I rowsort
SELECT - - 72 + col2 * + col2 AS col1 FROM tab0 cor0
----
1161
6796
73
query I rowsort
SELECT - - 78 * col1 FROM tab0 AS cor0
----
6708
7098
7566
query I rowsort
SELECT ALL - 90 * + 19 + col1 FROM tab1 AS cor0
----
-1684
-1697
-1700
query I rowsort
SELECT + col1 - cor0.col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 - - cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
1456
567
830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - col0 col0 FROM tab1
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 34 + - col1 - col2 col1 FROM tab2
----
-21
-24
-51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 + - col0 col2 FROM tab2
----
-24
51
7
query I rowsort
SELECT - 82 * + col1 + - col1 AS col1 FROM tab1 AS cor0
----
-1079
-2158
-830
query I rowsort
SELECT + col0 * col0 + - col0 * col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 91 + cor0.col0 * + col2 FROM tab1 AS cor0
----
3557
71
7589
query I rowsort
SELECT DISTINCT + 12 * col1 + ( col1 ) * col0 * col1 AS col0 FROM tab2 AS cor0
----
23035
272226
7099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4675
SELECT ALL - col1 DIV col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL - col1 / col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT - 95 * col0 AS col1 FROM tab0 cor0
----
-2280
-3325
-8455
query I rowsort
SELECT DISTINCT + col0 * - col1 + + col2 + col0 FROM tab2 AS cor0
----
-1226
-183
-4498
query I rowsort
SELECT ALL - - col1 + + cor0.col0 AS col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + - cor0.col2 AS col2 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT col1 + 89 * - 14 FROM tab1 AS cor0
----
-1220
-1233
-1236
query I rowsort
SELECT DISTINCT - 88 AS col2 FROM tab0
----
-88
query I rowsort
SELECT ALL + - col2 + - 1 + col0 FROM tab1 cor0
----
-17
-52
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4683
SELECT DISTINCT - col2 DIV cor0.col2 - 17 * col1 AS col0 FROM tab0 AS cor0
----
-1463
-1548
-1650
skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT - col2 / cor0.col2 - 17 * col1 AS col0 FROM tab0 AS cor0
----
-1463
-1548
-1650
onlyif mysql # use DIV operator for integer division
query I rowsort label-4684
SELECT ALL + col0 + - cor0.col1 DIV 69 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL + col0 + - cor0.col1 / 69 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4685
SELECT DISTINCT - col0 DIV + cor0.col0 - col2 AS col1 FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT - col0 / + cor0.col0 - col2 AS col1 FROM tab2 AS cor0
----
-27
-28
-39
query I rowsort
SELECT DISTINCT - col1 + 6 * col0 AS col1 FROM tab1 cor0
----
-8
374
467
query I rowsort
SELECT + tab0.col2 * + col1 * + 57 + - col2 - col2 FROM tab0
----
161700
425170
5527
query I rowsort
SELECT - col0 - col2 AS col2 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT + 85 FROM tab0, tab0 cor0, tab2 cor1
----
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-4690
SELECT ( - col1 ) DIV + col0 AS col1 FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-4690
SELECT ( - col1 ) / + col0 AS col1 FROM tab2
----
-4
0
0
query I rowsort
SELECT + col0 * - col2 * ( 34 + tab1.col0 ) FROM tab1
----
-357504
-5994
-875520
query I rowsort
SELECT - col1 * + cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-4693
SELECT ALL + col0 DIV col2 + col2 * col0 AS col2 FROM tab0 AS cor0
----
70
7299
792
skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL + col0 / col2 + col2 * col0 AS col2 FROM tab0 AS cor0
----
70
7299
792
query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 * - col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT ALL 66 - + col2 FROM tab0
----
-16
33
65
query I rowsort
SELECT DISTINCT + col0 + col1 * col0 * - col0 FROM tab1
----
-231
-40896
-83120
query I rowsort
SELECT DISTINCT tab0.col0 + col2 * col2 AS col0 FROM tab0
----
1113
36
6813
query I rowsort
SELECT DISTINCT + tab2.col2 AS col2 FROM tab2, tab1 cor0
----
26
27
38
query I rowsort
SELECT col0 * - col2 + col0 + - col2 AS col1 FROM tab1
----
-213
-3641
-7696
query I rowsort
SELECT ALL col0 + + col1 * col0 * + col1 AS col2 FROM tab1
----
13600
2031
6464
onlyif mysql # use DIV operator for integer division
query I rowsort label-4701
SELECT ALL col2 * - col0 * + col2 + + tab2.col1 DIV + col0 FROM tab2
----
-114076
-5099
-52728
skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL col2 * - col0 * + col2 + + tab2.col1 / + col0 FROM tab2
----
-114076
-5099
-52728
query I rowsort
SELECT ALL + 9 AS col2 FROM tab1
----
9
9
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4703
SELECT ALL + 79 DIV + col1 FROM tab2 AS cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL + 79 / + col1 FROM tab2 AS cor0
----
1
2
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4704
SELECT ALL + CAST( NULL AS SIGNED ) * col1 col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col2 * + col0 AS col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + col1 * col2 + + col0 * + cor0.col1 * col2 FROM tab1 AS cor0
----
101088
37050
5616
query I rowsort
SELECT DISTINCT cor0.col2 * + col0 AS col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT col2 + cor0.col2 * + cor0.col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT col0 + + col1 AS col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + 94 * - 98 * - col0 FROM tab2
----
64484
718536
727748
query I rowsort
SELECT col1 * 11 * - col1 + + col2 AS col2 FROM tab2
----
-10544
-3141
-38265
query I rowsort
SELECT - ( - col0 ) - col1 * + col2 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT ( col2 * + col2 ) AS col0 FROM tab0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4714
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4715
SELECT DISTINCT col2 DIV - 70 AS col1 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT col2 / - 70 AS col1 FROM tab2
----
0
query I rowsort
SELECT DISTINCT - ( - tab0.col1 + col0 ) AS col1 FROM tab0
----
2
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4717
SELECT + col0 DIV 95 + col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4717
SELECT + col0 / 95 + col2 FROM tab1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 * + tab1.col1 + + tab1.col2 col2 FROM tab1
----
36537
4266
99936
query I rowsort
SELECT DISTINCT - 23 * + tab1.col2 AS col2 FROM tab1
----
-1242
-1311
-2208
query I rowsort
SELECT ALL tab0.col1 * - cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 7ad65e484b98a033eea3a66598d2975c
query I rowsort
SELECT ALL cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-4722
SELECT + ( col2 ) DIV col2 col1 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4722
SELECT + ( col2 ) / col2 col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - + ( + col2 ) FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT - col1 * - col1 * - col1 AS col0 FROM tab0 AS cor0
----
-636056
-753571
-912673
query I rowsort
SELECT ALL - + 27 AS col2 FROM tab1 AS cor0
----
-27
-27
-27
onlyif mysql # use DIV operator for integer division
query I rowsort label-4726
SELECT ALL + col1 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL + col1 / cor0.col1 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + - col0 + cor0.col0 * + col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT ALL + 54 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
64
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 + - cor0.col0 col1 FROM tab2 AS cor0
----
-132
-133
-61
query I rowsort
SELECT 7 * cor0.col1 + col2 FROM tab1 AS cor0
----
127
187
236
query I rowsort
SELECT ALL 46 * + col1 FROM tab0 AS cor0
----
3956
4186
4462
onlyif mysql # use DIV operator for integer division
query I rowsort label-4732
SELECT DISTINCT - + col2 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT - + col2 / cor0.col1 AS col2 FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT ALL + - 64 * col1 FROM tab1 AS cor0
----
-1664
-640
-832
onlyif mysql # use DIV operator for integer division
query I rowsort label-4734
SELECT 43 DIV + col0 FROM tab2
----
0
0
6
skipif mysql # not compatible
query I rowsort label-4734
SELECT 43 / + col0 FROM tab2
----
0
0
6
query I rowsort
SELECT ( tab2.col0 ) * + col2 AS col1 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-4736
SELECT DISTINCT - col1 DIV + 43 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT - col1 / + 43 FROM tab1
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4737
SELECT ALL + + CAST( NULL AS SIGNED ) + col0 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL + + CAST ( NULL AS INTEGER ) + col0 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 9 FROM tab2, tab0, tab1 AS cor0
----
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * - col1 * 96 col2 FROM tab1
----
-119808
-134784
-54720
query I rowsort
SELECT - col0 + col1 * + col1 AS col0 FROM tab2
----
210
3403
954
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
query I rowsort
SELECT + ( col1 ) * - col0 + col2 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL + + col2 + - 86 AS col2 FROM tab0 AS cor0
----
-4
-53
-85
query I rowsort
SELECT ALL - + ( col2 ) + - col1 * - 50 AS col0 FROM tab2 AS cor0
----
1523
2924
812
query I rowsort
SELECT ALL - col2 * + col1 + - col2 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT - 23 AS col0 FROM tab1 AS cor0
----
-23
-23
-23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4747
SELECT DISTINCT - CAST( - col2 AS SIGNED ) FROM tab2 cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT col2 * col2 * + ( cor0.col2 ) + col1 * cor0.col1 FROM tab0 AS cor0
----
43333
559649
9410
query I rowsort
SELECT - + col1 + col2 * col0 * - col0 + col1 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT + + cor0.col1 + - col2 * 96 FROM tab2 cor0
----
-2437
-2561
-3631
query I rowsort
SELECT + + 8 * - col0 * + ( col0 ) - + col2 * 33 * + ( + col0 * col1 ) AS col1 FROM tab2 AS cor0
----
-1734050
-193739
-3997188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 + col1 col0 FROM tab2 AS cor0
----
-14
0
28
query I rowsort
SELECT ALL + ( 12 ) + + col2 * + 63 AS col2 FROM tab0
----
2091
5178
75
query I rowsort
SELECT - cor0.col2 + + col0 + 26 FROM tab0 cor0
----
17
33
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4755
SELECT ALL 31 * - ( col0 * + CAST( NULL AS SIGNED ) ) + col1 * - col1 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL 31 * - ( col0 * + CAST ( NULL AS INTEGER ) ) + col1 * - col1 AS col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4756
SELECT ALL + col2 * ( col1 * - col1 + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL + col2 * ( col1 * - col1 + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4757
SELECT DISTINCT + col2 + + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT + col2 + + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT col0 * col2 + 40 AS col1 FROM tab2 AS cor0
----
2068
229
3042
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 44 * col1 col1 FROM tab1 AS cor0
----
-29744
-4400
-7436
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
query I rowsort
SELECT DISTINCT + + ( col2 ) - - col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - col0 + col0 * col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT - col2 * - 45 AS col2 FROM tab1 AS cor0
----
2430
2565
4320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4764
SELECT ALL - col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 * ( tab2.col1 * - col1 ) FROM tab2
----
10982
25947
90506
query I rowsort
SELECT ALL - - ( 16 ) + + cor0.col2 * ( - col1 ) FROM tab2 cor0
----
-1518
-630
-821
query I rowsort
SELECT ALL - ( 73 ) * col2 AS col2 FROM tab1 AS cor0
----
-3942
-4161
-7008
query I rowsort
SELECT ALL - col2 * + col1 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + + 35 * 29 AS col1 FROM tab1 AS cor0
----
1015
1015
1015
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4770
SELECT + col0 + CAST( NULL AS SIGNED ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4770
SELECT + col0 + CAST ( NULL AS INTEGER ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * 73 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 432098466bb897618b0210cf05e1209e
query I rowsort
SELECT ALL ( + col0 ) * col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4773
SELECT + 93 * col0 + - 80 DIV + 44 AS col1 FROM tab0 AS cor0
----
2231
3254
8276
skipif mysql # not compatible
query I rowsort label-4773
SELECT + 93 * col0 + - 80 / + 44 AS col1 FROM tab0 AS cor0
----
2231
3254
8276
onlyif mysql # use DIV operator for integer division
query I rowsort label-4774
SELECT ALL + col2 DIV + cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL + col2 / + cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT col0 + 31 FROM tab1
----
111
34
95
skipif mysql # not compatible
query I rowsort
SELECT ALL col0 / - CAST ( col0 AS REAL ) FROM tab0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT 41 FROM tab2, tab1 AS cor0
----
41
query I rowsort
SELECT cor0.col2 * + 73 FROM tab1 AS cor0
----
3942
4161
7008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * col0 col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT col0 * + ( col2 + - col0 ) AS col2 FROM tab1 AS cor0
----
-448
1280
153
query I rowsort
SELECT ALL + - col0 + col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col0 + - col0 - - col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + - col2 + - 23 AS col0 FROM tab0 AS cor0
----
-105
-24
-56
query I rowsort
SELECT ALL - col2 * 86 FROM tab0 cor0
----
-2838
-7052
-86
query I rowsort
SELECT DISTINCT col1 + + 48 AS col0 FROM tab2 AS cor0
----
107
65
79
query I rowsort
SELECT - col0 * + ( 78 ) + + col1 AS col2 FROM tab1 cor0
----
-208
-4982
-6227
query I rowsort
SELECT col1 + - col2 * 32 * col2 FROM tab2
----
-21573
-23297
-46191
query I rowsort
SELECT + tab2.col1 - col2 * + col2 FROM tab2
----
-1427
-617
-698
query I rowsort
SELECT ALL 21 * + col2 - - tab0.col1 FROM tab0
----
118
1813
779
onlyif mysql # use DIV operator for integer division
query I rowsort label-4790
SELECT cor0.col0 DIV CAST( - 58 AS SIGNED ) col1 FROM tab2, tab0, tab0 cor0, tab0 cor1
----
81 values hashing to 063db608d01f692c861786cda5bbbc09
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4790
SELECT cor0.col0 / CAST ( - 58 AS INTEGER ) col1 FROM tab2, tab0, tab0 cor0, tab0 cor1
----
81 values hashing to 063db608d01f692c861786cda5bbbc09
query I rowsort
SELECT DISTINCT ( col0 ) * col1 - col1 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT - col2 * + col1 - col2 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT + ( 56 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 9cee91ca9c60ba6e45a33b388a3b7d9b
query I rowsort
SELECT DISTINCT col2 + col1 * col1 FROM tab0
----
7429
8363
9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - cor0.col2 col0 FROM tab0 cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col1 * CAST ( 9 AS REAL ) + col2 * ( 13 ) FROM tab1 AS cor0
----
1365
831
936
onlyif mysql # use DIV operator for integer division
query I rowsort label-4797
SELECT + col1 + + col2 DIV + col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4797
SELECT + col1 + + col2 / + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - col0 * 87 AS col2 FROM tab1 AS cor0
----
-261
-5568
-6960
query I rowsort
SELECT - + col0 * + 10 * col2 AS col2 FROM tab2 AS cor0
----
-1890
-20280
-30020
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4800
SELECT ALL + CAST( NULL AS DECIMAL ) col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL + CAST ( NULL AS REAL ) col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - - col1 * col2 + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-3078
-6432
1242
query I rowsort
SELECT - col2 + + 30 AS col2 FROM tab0 AS cor0
----
-3
-52
29
query I rowsort
SELECT + col1 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-4804
SELECT col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4804
SELECT col0 / + col0 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL 23 * col0 + ( col2 ) AS col2 FROM tab1 AS cor0
----
123
1529
1936
query I rowsort
SELECT ALL 82 - col2 AS col0 FROM tab1
----
-14
25
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-4807
SELECT col2 + + col1 + col0 DIV 15 AS col1 FROM tab2
----
58
60
90
skipif mysql # not compatible
query I rowsort label-4807
SELECT col2 + + col1 + col0 / 15 AS col1 FROM tab2
----
58
60
90
query I rowsort
SELECT ALL 33 AS col1 FROM tab0 AS cor0
----
33
33
33
query I rowsort
SELECT - + 66 + + col1 * 13 FROM tab0 AS cor0
----
1052
1117
1195
query I rowsort
SELECT + 32 * + col1 AS col0 FROM tab1 AS cor0
----
320
416
832
query I rowsort
SELECT DISTINCT + ( + col0 ) + 56 FROM tab1 AS cor0
----
120
136
59
query I rowsort
SELECT ALL 81 + + 70 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cf22002891a88578dbc2596c0472ad61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4813
SELECT DISTINCT + tab0.col0 + - CAST( 69 AS SIGNED ) FROM tab0, tab0 AS cor0
----
-34
-45
20
skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT + tab0.col0 + - CAST ( 69 AS INTEGER ) FROM tab0, tab0 AS cor0
----
-34
-45
20
query I rowsort
SELECT ALL + 8 * col1 * col0 AS col2 FROM tab0 AS cor0
----
16512
27160
64792
query I rowsort
SELECT + - 48 * + col1 FROM tab0 AS cor0
----
-4128
-4368
-4656
onlyif mysql # use DIV operator for integer division
query I rowsort label-4816
SELECT DISTINCT - col2 * col0 + + cor0.col0 DIV 80 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT - col2 * col0 + + cor0.col0 / 80 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - + ( + col2 ) + 88 AS col1 FROM tab1 AS cor0
----
-8
31
34
query I rowsort
SELECT ALL 2 AS col1 FROM tab0 cor0
----
2
2
2
query I rowsort
SELECT DISTINCT + + col1 + - col0 FROM tab0 cor0
----
2
62
query I rowsort
SELECT - 97 * col0 FROM tab2 cor0
----
-679
-7566
-7663
query I rowsort
SELECT - - 5 AS col2 FROM tab2 AS cor0
----
5
5
5
query I rowsort
SELECT ALL + - col1 + + cor0.col2 * - ( + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT DISTINCT - col2 + - 70 * col2 FROM tab1 AS cor0
----
-3834
-4047
-6816
query I rowsort
SELECT + + col2 - - 35 * - 42 AS col0 FROM tab0 AS cor0
----
-1388
-1437
-1469
query I rowsort
SELECT col2 - + ( + col1 ) * cor0.col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL + - cor0.col2 * cor0.col1 + col2 AS col2 FROM tab0 cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL - cor0.col2 * + col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4828
SELECT ALL col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab0 AS cor1, tab2, tab1 cor2
----
3645 values hashing to d8caf2ef7d9c405db0aec8c013a5107c
onlyif mysql # use DIV operator for integer division
query I rowsort label-4830
SELECT ALL + cor1.col1 DIV cor0.col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9d6e6bbe4ada8e46a68bf8f7295564bf
skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL + cor1.col1 / cor0.col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9d6e6bbe4ada8e46a68bf8f7295564bf
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4831
SELECT ALL + CAST( NULL AS SIGNED ) / + col2 + + col0 / + col0 + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL + CAST ( NULL AS INTEGER ) / + col2 + + col0 / + col0 + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4832
SELECT + 7 * + col0 + col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4832
SELECT + 7 * + col0 + col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 34 FROM tab2 AS cor0
----
-34
query I rowsort
SELECT + cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ( + 91 ) * + col2 AS col0 FROM tab0
----
3003
7462
91
query I rowsort
SELECT DISTINCT + col1 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT + - col1 * 27 + + col2 AS col2 FROM tab0 AS cor0
----
-2289
-2375
-2618
query I rowsort
SELECT DISTINCT + cor0.col1 * col0 + - col2 AS col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT + 86 + - col1 FROM tab2 AS cor0
----
27
55
69
query I rowsort
SELECT ALL + - col2 + + col0 FROM tab1 cor0
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4841
SELECT DISTINCT CAST( + 56 AS SIGNED ) + col2 FROM tab1 cor0
----
110
113
152
skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT CAST ( + 56 AS INTEGER ) + col2 FROM tab1 cor0
----
110
113
152
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + - col0 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + ( tab2.col1 + col2 ) FROM tab2
----
55
58
85
query I rowsort
SELECT 0 + col0 FROM tab0
----
24
35
89
query I rowsort
SELECT col2 + - 74 AS col1 FROM tab1
----
-17
-20
22
query I rowsort
SELECT DISTINCT ( 25 * - col2 ) FROM tab0
----
-2050
-25
-825
query I rowsort
SELECT ( 2 ) AS col1 FROM tab0
----
2
2
2
query I rowsort
SELECT - 81 + tab2.col2 * col0 FROM tab2
----
108
1947
2921
query I rowsort
SELECT col2 + tab1.col0 * col0 * - 79 FROM tab1
----
-323527
-505504
-657
query I rowsort
SELECT + ( - 93 * + col1 ) AS col1 FROM tab0
----
-7998
-8463
-9021
query I rowsort
SELECT 10 * col1 AS col1 FROM tab2
----
170
310
590
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4853
SELECT - CAST( - col0 AS SIGNED ) * + col1 * 12 AS col1 FROM tab1 cor0
----
12480
7680
936
skipif mysql # not compatible
query I rowsort label-4853
SELECT - CAST ( - col0 AS INTEGER ) * + col1 * 12 AS col1 FROM tab1 cor0
----
12480
7680
936
query I rowsort
SELECT 90 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT cor0.col1 * 22 FROM tab1 cor0
----
220
286
572
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4856
SELECT + CAST( NULL AS SIGNED ) / tab2.col1 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4856
SELECT + CAST ( NULL AS INTEGER ) / tab2.col1 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + 33 * - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c558179f93e1b3182d54cac4cbc4db5a
query I rowsort
SELECT - - 1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT - ( 11 ) AS col0 FROM tab2
----
-11
-11
-11
query I rowsort
SELECT ALL col0 * 39 AS col0 FROM tab0
----
1365
3471
936
query I rowsort
SELECT + ( + col1 ) + col1 * - ( col2 ) FROM tab0 cor0
----
-2752
-7371
0
query I rowsort
SELECT - ( col0 ) * + col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - 74 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 83dc6c0e38784f5f5c6b91de33ab4ff1
query I rowsort
SELECT - cor1.col2 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT ALL 33 AS col0 FROM tab1
----
33
33
33
query I rowsort
SELECT DISTINCT - 9 * col0 AS col2 FROM tab1
----
-27
-576
-720
query I rowsort
SELECT + tab1.col2 * - col2 * ( 61 ) FROM tab1
----
-177876
-198189
-562176
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 94 col1 FROM tab0 AS cor0
----
94
query I rowsort
SELECT ALL + 76 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT - cor0.col1 + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1175
-6815
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4871
SELECT + + col2 * + ( ( col0 ) * + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4871
SELECT + + col2 * + ( ( col0 ) * + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 + + 25 AS col2 FROM tab1 AS cor0
----
105
28
89
query I rowsort
SELECT ALL - col2 * + col1 * + 1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - cor0.col1 * + 12 FROM tab1 cor0
----
-120
-156
-312
onlyif mysql # use DIV operator for integer division
query I rowsort label-4875
SELECT + cor0.col1 DIV - ( col0 ) AS col1 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-4875
SELECT + cor0.col1 / - ( col0 ) AS col1 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT 84 * - col2 * tab1.col0 + col1 * col2 * col2 AS col1 FROM tab1
----
-273942
-525312
62208
query I rowsort
SELECT - col1 + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + col0 * + col1 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4879
SELECT ALL col2 + + CAST( NULL AS SIGNED ) * - col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) * - col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * 5 FROM tab0 AS cor0
----
-430
-455
-485
query I rowsort
SELECT ALL tab0.col1 * - col0 + + col0 AS col0 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT + col2 + - 83 FROM tab0
----
-1
-50
-82
query I rowsort
SELECT DISTINCT - col1 + 57 FROM tab1
----
31
44
47
query I rowsort
SELECT col0 * + 58 AS col1 FROM tab0 AS cor0
----
1392
2030
5162
query I rowsort
SELECT ALL + 68 + cor2.col1 AS col0 FROM tab0, tab1 cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 91dc2072a986e0f0d52ef48e16b164c8
query I rowsort
SELECT DISTINCT col2 * ( - col1 ) + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT - col1 + + ( + cor0.col1 ) * + col2 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT + 29 + 70 * - col2 AS col2 FROM tab0 AS cor0
----
-2281
-41
-5711
query I rowsort
SELECT - + ( col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + 33 + col0 AS col0 FROM tab2 AS cor0
----
111
112
40
query I rowsort
SELECT ALL col2 * col1 * col2 FROM tab1 AS cor0
----
119808
32490
75816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * col2 * col2 + cor0.col2 col0 FROM tab1 AS cor0
----
207993
737376
8802
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 * col2 + cor0.col0 col2 FROM tab0 AS cor0
----
104
2301
5747
query I rowsort
SELECT ALL col0 - cor0.col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + 61 * + col1 FROM tab1 cor0
----
1586
610
793
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) + cor0.col0 * - 84 col0 FROM tab0 cor0
----
-1930
-2843
-7385
query I rowsort
SELECT DISTINCT - 18 * col0 + + col1 FROM tab1 AS cor0
----
-1142
-1427
-28
query I rowsort
SELECT + ( 32 ) * cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5bab2fc20dabff750dfade93721cd696
query I rowsort
SELECT - 70 FROM tab2 cor0
----
-70
-70
-70
query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT - col1 * + col1 AS col2 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT - + col0 * - col2 + + cor0.col2 * + cor0.col1 FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT + col0 + - cor0.col0 + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL col2 * - 38 * + col1 + tab2.col0 AS col1 FROM tab2
----
-24469
-31799
-58214
query I rowsort
SELECT 0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + col2 col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - + 69 FROM tab0 AS cor0
----
-69
-69
-69
query I rowsort
SELECT ALL - col0 * col0 + - cor0.col2 FROM tab0 cor0
----
-1226
-609
-8003
query I rowsort
SELECT 41 + col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-248
-3440
-920
query I rowsort
SELECT + 0 * + col1 * + ( ( col2 ) ) - col2 AS col1 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT ALL 3 + + col0 FROM tab0
----
27
38
92
query I rowsort
SELECT - col2 * col2 + ( col2 ) AS col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT ALL ( + col0 ) * 51 FROM tab2 AS cor0
----
357
3978
4029
query I rowsort
SELECT ALL - col0 * col2 + 94 + + col2 * + col2 AS col1 FROM tab1 AS cor0
----
-305
1630
2848
query I rowsort
SELECT - + 9 * 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d4eb14663371284a43201c028a7773e8
query I rowsort
SELECT DISTINCT + + 52 AS col2 FROM tab1 AS cor0
----
52
query I rowsort
SELECT - ( ( cor0.col0 ) ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - col0 * + 57 AS col2 FROM tab2 AS cor0
----
-399
-4446
-4503
query I rowsort
SELECT - col1 * + 74 FROM tab1 AS cor0
----
-1924
-740
-962
query I rowsort
SELECT DISTINCT + - col1 + + 20 FROM tab0 AS cor0
----
-66
-71
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4921
SELECT ALL + CAST( NULL AS DECIMAL ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL + CAST ( NULL AS REAL ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + 57 * + col1 AS col0 FROM tab0 AS cor0
----
4902
5187
5529
query I rowsort
SELECT ALL ( cor0.col1 ) * - col1 - + ( col0 ) FROM tab2 AS cor0
----
-3559
-368
-968
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4924
SELECT ALL - CAST( col0 AS SIGNED ) + + cor0.col0 AS col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL - CAST ( col0 AS INTEGER ) + + cor0.col0 AS col1 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4925
SELECT DISTINCT - col2 + ( + col2 ) DIV cor0.col2 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-4925
SELECT DISTINCT - col2 + ( + col2 ) / cor0.col2 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT + col1 * 1 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + ( col0 ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + cor0.col2 - col2 * col1 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL 46 - - col1 FROM tab0
----
132
137
143
query I rowsort
SELECT ALL - col2 * - col2 + col0 + + col1 * col1 FROM tab0 AS cor0
----
15094
8509
9445
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab2 cor1, tab1, tab2 AS cor2
----
3645 values hashing to bd2b318ad064d89aa12ab468220362b6
query I rowsort
SELECT DISTINCT - ( - col1 ) + ( - ( + col2 ) * cor0.col0 ) FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4933
SELECT DISTINCT CAST( col1 + - col2 AS SIGNED ) * 85 col1 FROM tab0
----
4505
765
8160
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT CAST ( col1 + - col2 AS INTEGER ) * 85 col1 FROM tab0
----
4505
765
8160
query I rowsort
SELECT - 10 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0
query I rowsort
SELECT DISTINCT + 59 - + col2 FROM tab2
----
21
32
33
query I rowsort
SELECT + 22 * tab0.col2 * + tab0.col2 FROM tab0
----
147928
22
23958
query I rowsort
SELECT col1 + col2 + - 87 * col1 FROM tab1 cor0
----
-1022
-2182
-803
query I rowsort
SELECT col0 * + 32 AS col0 FROM tab0 AS cor0
----
1120
2848
768
query I rowsort
SELECT DISTINCT col1 * - 95 FROM tab2
----
-1615
-2945
-5605
query I rowsort
SELECT ALL - col2 * + ( col1 + + col1 ) AS col0 FROM tab2 AS cor0
----
-1292
-1674
-3068
query I rowsort
SELECT DISTINCT 64 + cor1.col1 AS col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
150
155
161
query I rowsort
SELECT ALL + - cor0.col2 * + cor0.col0 + ( + col1 ) AS col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT - col0 * + tab1.col1 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL col2 * 20 + col0 AS col2 FROM tab2 AS cor0
----
547
598
839
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 677ef6b86493a7e48d2f6a3cfd7eea4c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4946
SELECT + CAST( NULL AS SIGNED ) + tab2.col2 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4946
SELECT + CAST ( NULL AS INTEGER ) + tab2.col2 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * cor0.col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + col1 + 62 * col1 AS col2 FROM tab1 AS cor0
----
1638
630
819
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) * col0 col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT ( + 21 ) + - col0 FROM tab1 AS cor0
----
-43
-59
18
query I rowsort
SELECT ALL - 35 * col2 FROM tab0 AS cor0
----
-1155
-2870
-35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 + - col2 col0 FROM tab2 AS cor0
----
-123
-124
-135
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 20 * + col1 col2 FROM tab2 AS cor0
----
-1180
-340
-620
query I rowsort
SELECT ALL ( col0 ) + 50 * + col2 + - col1 FROM tab2 AS cor0
----
1319
1326
1962
query I rowsort
SELECT ALL - + 13 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
query I rowsort
SELECT ALL + ( + col1 ) * - col0 * + 90 FROM tab1 cor0
----
-57600
-7020
-93600
query I rowsort
SELECT 14 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
query I rowsort
SELECT DISTINCT - + col0 + - ( cor0.col2 ) FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT - - cor0.col0 * + 56 AS col1 FROM tab0 AS cor0
----
1344
1960
4984
onlyif mysql # use DIV operator for integer division
query I rowsort label-4960
SELECT ALL + col2 DIV - 93 col0 FROM tab1 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL + col2 / - 93 col0 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT cor0.col2 * 47 + 10 * col2 FROM tab0 AS cor0
----
1881
4674
57
query I rowsort
SELECT DISTINCT + col1 * 20 + cor0.col0 * col0 * + cor0.col1 FROM tab0 AS cor0
----
120765
51256
722631
query I rowsort
SELECT ALL - + col1 - col0 * ( + col2 ) * col1 AS col2 FROM tab1 AS cor0
----
-36490
-4238
-99853
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4964
SELECT ALL + - col2 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL + - col2 + + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4965
SELECT - cor0.col2 DIV - 34 + col0 col2 FROM tab0 AS cor0
----
24
35
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4965
SELECT - cor0.col2 / - 34 + col0 col2 FROM tab0 AS cor0
----
24
35
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4966
SELECT ALL + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + 49 * col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
33150
35748
70794
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT - col2 * + col0 + col1 * - col0 FROM tab2 cor0
----
-406
-4345
-6630
query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + - 57 AS col2 FROM tab0 AS cor0
----
-7355
-849
-92
query I rowsort
SELECT col2 * - col0 + cor0.col1 * col2 + - col1 FROM tab0 AS cor0
----
-35
1960
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-4972
SELECT + + cor0.col2 * col2 DIV col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-4972
SELECT + + cor0.col2 * col2 / col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4973
SELECT + CAST( - 33 AS SIGNED ) * - cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to d3834505d5e42cb1b3ed13f8b694cb07
skipif mysql # not compatible
query I rowsort label-4973
SELECT + CAST ( - 33 AS INTEGER ) * - cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to d3834505d5e42cb1b3ed13f8b694cb07
query I rowsort
SELECT - 69 * + col2 + + 94 * + ( col0 + col1 ) FROM tab1 AS cor0
----
-1000
2118
3023
query I rowsort
SELECT + 3 AS col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
query I rowsort
SELECT - cor0.col0 + col1 * - 78 FROM tab1 AS cor0
----
-1094
-2031
-844
query I rowsort
SELECT - 56 + + cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 780b316530a5a40e55933e8e1f1523ff
query I rowsort
SELECT ALL ( + tab0.col0 ) * 13 * col1 AS col1 FROM tab0
----
105287
26832
44135
query I rowsort
SELECT ALL - 60 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1
query I rowsort
SELECT ALL - + 72 + col1 + col1 FROM tab0 AS cor0
----
100
110
122
query I rowsort
SELECT ALL + col0 + + 83 * - col1 + + col0 AS col1 FROM tab0
----
-7090
-7375
-7981
query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab1, tab1 AS cor0
----
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-4983
SELECT col1 + col0 DIV + col0 AS col1 FROM tab1 cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-4983
SELECT col1 + col0 / + col0 AS col1 FROM tab1 cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( cor0.col1 AS REAL ) * col1 + - 95 FROM tab1 AS cor0
----
-195
-264
-771
onlyif mysql # use DIV operator for integer division
query I rowsort label-4985
SELECT col0 DIV - col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-4985
SELECT col0 / - col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT 63 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
query I rowsort
SELECT ALL col0 * + 69 + + col0 * - col1 * + col1 + col2 FROM tab1
----
-1767
-1927
-7904
query I rowsort
SELECT ALL - 37 FROM tab2 cor0
----
-37
-37
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col0 ) * + col1 + + 91 col2 FROM tab0 AS cor0
----
2155
3486
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-4990
SELECT + - col2 * cor0.col2 DIV col2 + col1 DIV - 54 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-4990
SELECT + - col2 * cor0.col2 / col2 + col1 / - 54 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - + col1 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT col1 * - 27 + + col2 FROM tab0 AS cor0
----
-2289
-2375
-2618
query I rowsort
SELECT ALL + col0 * ( - col0 ) AS col1 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT ( cor0.col1 ) * + col0 * - 54 FROM tab2 AS cor0
----
-11718
-248508
-72522
query I rowsort
SELECT ALL - - col1 * - ( - col2 ) + + col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 - col0 col2 FROM tab1
----
10
13
26
query I rowsort
SELECT - ( + ( + col1 ) ) - col2 AS col1 FROM tab0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4998
SELECT ALL + 9 - col0 DIV col1 AS col1 FROM tab0
----
9
9
9
skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL + 9 - col0 / col1 AS col1 FROM tab0
----
9
9
9
query I rowsort
SELECT + ( - cor0.col1 ) * - cor0.col0 * col2 FROM tab2 cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-5000
SELECT + 62 + col1 DIV - col1 FROM tab0 AS cor0
----
61
61
61
skipif mysql # not compatible
query I rowsort label-5000
SELECT + 62 + col1 / - col1 FROM tab0 AS cor0
----
61
61
61
query I rowsort
SELECT + 9 + col1 AS col0 FROM tab1 AS cor0
----
19
22
35
query I rowsort
SELECT - col1 + - col1 + 84 AS col0 FROM tab0 AS cor0
----
-110
-88
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5003
SELECT col0 DIV col1 AS col1 FROM tab1 cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-5003
SELECT col0 / col1 AS col1 FROM tab1 cor0
----
0
6
6
query I rowsort
SELECT ALL + 22 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
1408
1760
66
query I rowsort
SELECT - 10 + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-9
1079
6714
onlyif mysql # use DIV operator for integer division
query I rowsort label-5006
SELECT ALL + + col2 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL + + col2 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - cor0.col2 * - col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + - 5 FROM tab0 AS cor0
----
-5
query I rowsort
SELECT - col0 + col2 * col1 AS col1 FROM tab1 cor0
----
1168
1401
506
query I rowsort
SELECT + 18 + col0 + 25 AS col1 FROM tab0 AS cor0
----
132
67
78
query I rowsort
SELECT + 19 * - cor0.col0 FROM tab0 AS cor0
----
-1691
-456
-665
query I rowsort
SELECT ALL col2 + - cor0.col0 * ( ( + col1 ) * cor0.col1 + + col2 ) FROM tab0 AS cor0
----
-178263
-329349
-744225
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 * ( + col0 + + col1 * + ( + col0 ) ) col1 FROM tab2 AS cor0
----
10976
28473120
8874702
query I rowsort
SELECT + 90 * + col1 AS col1 FROM tab0 AS cor0
----
7740
8190
8730
query I rowsort
SELECT + col1 + ( + 21 ) * + col1 FROM tab1 AS cor0
----
220
286
572
query I rowsort
SELECT - col2 + + ( + col1 ) FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col2 * 32 AS col1 FROM tab2 cor0
----
-1216
-832
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 + cor0.col0 col1 FROM tab2 AS cor0
----
110
111
39
query I rowsort
SELECT - 47 * ( col0 ) + 57 AS col0 FROM tab1 cor0
----
-2951
-3703
-84
query I rowsort
SELECT col2 * + col1 + - col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT + col0 + col2 + - col2 FROM tab1
----
3
64
80
query I rowsort
SELECT ( col0 ) + col0 * col1 FROM tab1
----
1120
704
81
query I rowsort
SELECT DISTINCT - ( - col2 ) AS col2 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 col2 FROM tab0
----
82
query I rowsort
SELECT + + 34 AS col2 FROM tab1 cor0
----
34
34
34
query I rowsort
SELECT ALL col2 * + col2 + 35 FROM tab1 AS cor0
----
2951
3284
9251
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 * 44 col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7b3c9760e8a13fbd4130c552d6a81e6c
query I rowsort
SELECT DISTINCT + 28 + col0 AS col0 FROM tab2 AS cor0
----
106
107
35
query I rowsort
SELECT DISTINCT 44 + + col0 FROM tab1 AS cor0
----
108
124
47
query I rowsort
SELECT - 29 + col2 AS col2 FROM tab1 cor0
----
25
28
67
query I rowsort
SELECT ALL cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - ( + col2 ) AS col0 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT - - col0 * 12 FROM tab1 AS cor0
----
36
768
960
query I rowsort
SELECT DISTINCT - col2 * 75 FROM tab0 AS cor0
----
-2475
-6150
-75
query I rowsort
SELECT ALL col1 + + col0 * col1 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-5037
SELECT ALL + col2 * CAST( - 68 AS SIGNED ) + cor0.col1 DIV col1 FROM tab2 AS cor0
----
-1767
-1835
-2583
skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL + col2 * CAST ( - 68 AS INTEGER ) + cor0.col1 / col1 FROM tab2 AS cor0
----
-1767
-1835
-2583
query I rowsort
SELECT DISTINCT + col2 * 78 AS col1 FROM tab1 AS cor0
----
4212
4446
7488
query I rowsort
SELECT ALL - - col1 * - 14 AS col2 FROM tab1 AS cor0
----
-140
-182
-364
query I rowsort
SELECT cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - - col1 * col0 * - ( col2 ) FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT cor0.col1 * - cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT 75 + tab0.col0 FROM tab0
----
110
164
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 39 col1 FROM tab1 AS cor0
----
135
93
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5045
SELECT - + col1 DIV 85 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5045
SELECT - + col1 / 85 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5046
SELECT 41 * cor0.col1 * col2 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5046
SELECT 41 * cor0.col1 * col2 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col2 col2 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5048
SELECT - + CAST( NULL AS DECIMAL ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5048
SELECT - + CAST ( NULL AS REAL ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + ( 77 ) + - col0 - + ( + 98 ) * col0 FROM tab2 cor0
----
-770
-7799
-7898
query I rowsort
SELECT ALL - ( col2 ) * col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5051
SELECT CAST( NULL AS SIGNED ) + 31 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5051
SELECT CAST ( NULL AS INTEGER ) + 31 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 + - 16 AS col0 FROM tab1 AS cor0
----
38
41
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5053
SELECT - CAST( NULL AS SIGNED ) + ( col0 + - col1 ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5053
SELECT - CAST ( NULL AS INTEGER ) + ( col0 + - col1 ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 94 * 95 + col2 FROM tab1 AS cor0
----
-8834
-8873
-8876
query I rowsort
SELECT ALL - col0 + - col0 + - col2 * col0 * + ( col0 ) AS col1 FROM tab2 AS cor0
----
-1337
-158340
-237316
query I rowsort
SELECT DISTINCT + ( 63 ) AS col0 FROM tab0 AS cor0
----
63
query I rowsort
SELECT DISTINCT col0 * col1 + col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5058
SELECT ALL + CAST( col2 AS SIGNED ) * + col2 + - col1 - + 4 * col1 * col0 FROM tab0 AS cor0
----
-13676
-25763
-7253
skipif mysql # not compatible
query I rowsort label-5058
SELECT ALL + CAST ( col2 AS INTEGER ) * + col2 + - col1 - + 4 * col1 * col0 FROM tab0 AS cor0
----
-13676
-25763
-7253
query I rowsort
SELECT - + 50 + + col0 AS col0 FROM tab0 AS cor0
----
-15
-26
39
query I rowsort
SELECT ALL - 1 * - col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT ( 15 ) * - col0 * col2 FROM tab0 cor0
----
-109470
-11880
-525
query I rowsort
SELECT DISTINCT + - col1 * - col1 + col0 + - ( col0 ) AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT col0 + 62 FROM tab2 AS cor0
----
140
141
69
query I rowsort
SELECT + + 3 + + col2 FROM tab0 AS cor0
----
36
4
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-5065
SELECT ALL - + col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL - + col2 / + col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5066
SELECT + col1 + cor0.col1 DIV col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-5066
SELECT + col1 + cor0.col1 / col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT DISTINCT 97 FROM tab1, tab0 AS cor0
----
97
query I rowsort
SELECT DISTINCT col1 * col0 + + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT - 81 + + col2 FROM tab1 cor0
----
-24
-27
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-5070
SELECT DISTINCT + col1 DIV col0 + col2 FROM tab0 AS cor0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT + col1 / col0 + col2 FROM tab0 AS cor0
----
3
36
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5071
SELECT + CAST( col0 AS SIGNED ) + - col1 DIV + col0 FROM tab0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-5071
SELECT + CAST ( col0 AS INTEGER ) + - col1 / + col0 FROM tab0
----
21
33
88
query I rowsort
SELECT DISTINCT + tab0.col2 + - tab0.col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
-53
-9
-96
query I rowsort
SELECT + 2 * col2 - - col1 AS col0 FROM tab1
----
124
134
205
query I rowsort
SELECT + col0 * + col0 + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT - - col0 * + col2 + col2 * + col2 AS col1 FROM tab2 AS cor0
----
2704
4446
918
onlyif mysql # use DIV operator for integer division
query I rowsort label-5076
SELECT DISTINCT + col0 + + col0 DIV + col0 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT + col0 + + col0 / + col0 FROM tab2 AS cor0
----
79
8
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - col2 col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + 69 + cor0.col0 FROM tab0 AS cor0
----
104
158
93
query I rowsort
SELECT DISTINCT - 28 + cor0.col2 * + col0 AS col1 FROM tab1 AS cor0
----
134
3620
7652
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + col1 col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT ALL 63 + - col2 AS col1 FROM tab2 cor0
----
25
36
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + ( + tab0.col2 ) * + col1 + col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT ALL 35 + ( col0 + col1 ) AS col1 FROM tab2
----
131
172
73
query I rowsort
SELECT - tab0.col1 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ALL + 2 + - 52 * - col1 FROM tab2
----
1614
3070
886
query I rowsort
SELECT + col2 * 49 AS col2 FROM tab0
----
1617
4018
49
query I rowsort
SELECT - + 4 AS col2 FROM tab0 AS cor0
----
-4
-4
-4
query I rowsort
SELECT DISTINCT - col1 + col0 AS col1 FROM tab0 cor0
----
-2
-62
query I rowsort
SELECT ALL - 63 - col0 AS col2 FROM tab0 AS cor0
----
-152
-87
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5091
SELECT CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5091
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * - 52 AS col2 FROM tab2
----
-1352
-1404
-1976
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5093
SELECT + col1 / - CAST( NULL AS SIGNED ) + + ( tab1.col2 + col2 ) * col0 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5093
SELECT + col1 / - CAST ( NULL AS INTEGER ) + + ( tab1.col2 + col2 ) * col0 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * - col2 * + col0 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT ALL 94 * - col1 FROM tab2
----
-1598
-2914
-5546
query I rowsort
SELECT - 42 * 73 AS col0 FROM tab1
----
-3066
-3066
-3066
query I rowsort
SELECT ALL col1 * 45 AS col2 FROM tab1 AS cor0
----
1170
450
585
query I rowsort
SELECT ALL + col0 * col1 + + col0 FROM tab0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col1 col1 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL - tab0.col1 + + 57 * col1 AS col1 FROM tab0
----
4816
5096
5432
onlyif mysql # use DIV operator for integer division
query I rowsort label-5101
SELECT col1 DIV + col1 + + col1 AS col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-5101
SELECT col1 / + col1 + + col1 AS col1 FROM tab0 AS cor0
----
87
92
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5102
SELECT ALL CAST( - ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL CAST ( - ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5103
SELECT cor0.col2 DIV - cor1.col0 AS col1 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 29accd0669ae54bcd3eed21448a4e99f
skipif mysql # not compatible
query I rowsort label-5103
SELECT cor0.col2 / - cor1.col0 AS col1 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 29accd0669ae54bcd3eed21448a4e99f
query I rowsort
SELECT + - ( - cor0.col2 ) + - cor0.col1 AS col2 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT + col0 - + col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col2 - + col2 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT + 81 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT + col0 + + col0 * - 43 FROM tab1 AS cor0
----
-126
-2688
-3360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + 57 col0 FROM tab1 AS cor0
----
171
3648
4560
query I rowsort
SELECT col2 * col0 + - col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col1 + - 52 + 5 AS col2 FROM tab1 AS cor0
----
-21
-34
-37
onlyif mysql # use DIV operator for integer division
query I rowsort label-5112
SELECT + col0 DIV - col0 + col1 + - col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5112
SELECT + col0 / - col0 + col1 + - col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * + col0 * ( + col1 ) col1 FROM tab1 AS cor0
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-5114
SELECT col1 DIV + col0 + + col1 FROM tab0 cor0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-5114
SELECT col1 / + col0 + + col1 FROM tab0 cor0
----
89
92
99
query I rowsort
SELECT - 14 + + 54 FROM tab1 AS cor0
----
40
40
40
query I rowsort
SELECT 61 + + col0 + cor0.col1 * 37 AS col2 FROM tab1 AS cor0
----
1026
495
622
query I rowsort
SELECT ( col2 ) * col0 + + 40 + col1 AS col2 FROM tab0 AS cor0
----
172
7429
918
onlyif mysql # use DIV operator for integer division
query I rowsort label-5118
SELECT ALL col1 DIV col1 + - col0 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL col1 / col1 + - col0 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT DISTINCT col2 * - 84 - + col0 FROM tab0 AS cor0
----
-119
-2796
-6977
query I rowsort
SELECT ALL 98 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT - - ( col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - col2 * + col0 + - col2 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT + col0 * col1 - + col2 * col0 FROM tab1 AS cor0
----
-3008
-6640
-84
query I rowsort
SELECT - col0 * + col2 + 1 AS col1 FROM tab0 AS cor0
----
-34
-7297
-791
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5125
SELECT - col2 * CAST( NULL AS DECIMAL ) + + col1 * col2 * ( + col2 + + col2 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5125
SELECT - col2 * CAST ( NULL AS REAL ) + + col1 * col2 * ( + col2 + + col2 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col2 + - 91 AS col2 FROM tab1 AS cor0
----
-145
-148
-187
query I rowsort
SELECT + + 81 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT + cor0.col2 AS col0 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ( col1 * - tab0.col1 ) AS col1 FROM tab0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) * - ( + col2 ) col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col2 + col0 * col0 FROM tab2 cor0
----
6110
6279
76
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 83 AS REAL ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb
query I rowsort
SELECT - + cor0.col1 * col2 * col2 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + ( cor0.col2 ) * + col2 col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT + - col2 - - col2 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col2 - + 17 FROM tab1 AS cor0
----
37
40
79
query I rowsort
SELECT DISTINCT + tab2.col2 * 57 - + tab2.col2 * col2 FROM tab2
----
722
806
810
query I rowsort
SELECT ALL col0 - col1 AS col1 FROM tab0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL + 42 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
query I rowsort
SELECT DISTINCT - ( + 44 + col0 ) FROM tab0
----
-133
-68
-79
query I rowsort
SELECT 62 AS col0 FROM tab1
----
62
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5143
SELECT + - cor0.col0 DIV col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5143
SELECT + - cor0.col0 / col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + cor0.col0 * col1 * - col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT + 63 + col0 FROM tab1 cor0
----
127
143
66
query I rowsort
SELECT ALL - 34 AS col2 FROM tab1 AS cor0
----
-34
-34
-34
query I rowsort
SELECT 37 * + col1 FROM tab0 AS cor0
----
3182
3367
3589
query I rowsort
SELECT ALL + col0 * + col2 + - 88 FROM tab2 AS cor0
----
101
1940
2914
query I rowsort
SELECT - + 7 * col0 AS col2 FROM tab2 AS cor0
----
-49
-546
-553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 col2 FROM tab2 AS cor0
----
-41
-41
-41
query I rowsort
SELECT ALL col1 + + col0 + col0 FROM tab1
----
138
173
32
query I rowsort
SELECT ALL col2 * - col1 * cor0.col2 FROM tab2 cor0
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT - 36 * - col1 AS col1 FROM tab1 AS cor0
----
360
468
936
query I rowsort
SELECT ALL - 37 * + col1 AS col2 FROM tab1 AS cor0
----
-370
-481
-962
query I rowsort
SELECT DISTINCT - 92 FROM tab1, tab0, tab1 AS cor0
----
-92
query I rowsort
SELECT col2 * - col2 + col0 AS col1 FROM tab1
----
-2913
-3185
-9136
query I rowsort
SELECT DISTINCT ( + tab0.col0 ) * tab0.col2 + ( col0 ) * - col2 AS col2 FROM tab0
----
0
query I rowsort
SELECT cor0.col0 * + col1 - cor0.col2 * col0 FROM tab1 AS cor0
----
-3008
-6640
-84
query I rowsort
SELECT ALL + 28 + + col2 FROM tab1
----
124
82
85
query I rowsort
SELECT DISTINCT + col0 * tab2.col1 + + col0 FROM tab2
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5161
SELECT ALL - tab2.col1 + col2 DIV - col0 FROM tab2
----
-17
-34
-59
skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL - tab2.col1 + col2 / - col0 FROM tab2
----
-17
-34
-59
query I rowsort
SELECT ALL 61 * + col0 FROM tab2 AS cor0
----
427
4758
4819
query I rowsort
SELECT DISTINCT - 43 AS col1 FROM tab1 AS cor0
----
-43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5164
SELECT - - col0 + col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5164
SELECT - - col0 + col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT DISTINCT - 27 * col0 FROM tab2 AS cor0
----
-189
-2106
-2133
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col2 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - 31 * col0 AS col1 FROM tab1 AS cor0
----
-1984
-2480
-93
query I rowsort
SELECT + + 23 + col1 * - col2 + - col1 * col0 FROM tab2 AS cor0
----
-1031
-1966
-6113
query I rowsort
SELECT 84 * col0 + - 36 FROM tab1 AS cor0
----
216
5340
6684
query I rowsort
SELECT DISTINCT + - col2 - + col2 AS col2 FROM tab1 cor0
----
-108
-114
-192
query I rowsort
SELECT ALL - col2 * - col2 * - col1 AS col2 FROM tab1 cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ALL col2 * + col1 - - col2 FROM tab1
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-5174
SELECT + col0 DIV + 30 col0 FROM tab0 AS cor0
----
0
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5174
SELECT + col0 / + 30 col0 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT ALL - col0 * - col0 + cor0.col1 FROM tab1 AS cor0
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-5176
SELECT DISTINCT + - col2 DIV ( col0 ) AS col1 FROM tab2 AS cor0
----
-3
0
skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT + - col2 / ( col0 ) AS col1 FROM tab2 AS cor0
----
-3
0
query I rowsort
SELECT ALL + cor0.col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col2 + - ( ( col0 ) ) * ( - col0 ) FROM tab0 cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT - col1 * 63 + + 77 * col2 AS col2 FROM tab2 AS cor0
----
-1715
126
1855
onlyif mysql # use DIV operator for integer division
query I rowsort label-5180
SELECT DISTINCT + col1 DIV col2 + + 62 FROM tab1 AS cor0
----
62
skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT + col1 / col2 + + 62 FROM tab1 AS cor0
----
62
query I rowsort
SELECT - col1 * cor0.col1 - col0 AS col2 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT + col1 + - col2 - col0 * cor0.col0 FROM tab1 AS cor0
----
-37
-4143
-6483
query I rowsort
SELECT DISTINCT cor1.col1 * cor1.col2 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5184
SELECT - CAST( NULL AS SIGNED ) + + cor0.col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5184
SELECT - CAST ( NULL AS INTEGER ) + + cor0.col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - 13 * - col2 AS col1 FROM tab1 AS cor0
----
-1248
-702
-741
query I rowsort
SELECT ALL - + col1 + - col2 AS col1 FROM tab0 AS cor0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 col0 FROM tab2 cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) * col0 col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - - cor0.col2 * + ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 col2 FROM tab0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5191
SELECT + ( col2 ) * + col0 + + CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5191
SELECT + ( col2 ) * + col0 + + CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 col2 FROM tab1 AS cor0
----
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT ALL - cor0.col0 * col1 * - col1 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT - col1 * col1 + col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col2 + - col1 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT DISTINCT + col0 * col2 + cor0.col2 * cor0.col1 + - col1 AS col0 FROM tab0 AS cor0
----
14669
35
3544
query I rowsort
SELECT 49 * - 59 + col1 FROM tab2 AS cor0
----
-2832
-2860
-2874
query I rowsort
SELECT - + 22 - col0 FROM tab2 AS cor0
----
-100
-101
-29
query I rowsort
SELECT - - 43 AS col2 FROM tab1 AS cor0
----
43
43
43
query I rowsort
SELECT DISTINCT - col0 * 5 * - col1 AS col0 FROM tab2 AS cor0
----
1085
23010
6715
query I rowsort
SELECT DISTINCT + ( + col1 ) * col0 + + col1 * - col1 FROM tab2 AS cor0
----
-744
1054
1121
query I rowsort
SELECT ALL + ( + col1 ) * col2 + 8 AS col0 FROM tab1 AS cor0
----
1256
1412
578
onlyif mysql # use DIV operator for integer division
query I rowsort label-5204
SELECT col0 + - col0 DIV col2 AS col1 FROM tab0 AS cor0
----
0
24
88
skipif mysql # not compatible
query I rowsort label-5204
SELECT col0 + - col0 / col2 AS col1 FROM tab0 AS cor0
----
0
24
88
query I rowsort
SELECT ALL ( - 69 ) * col0 FROM tab2 AS cor0
----
-483
-5382
-5451
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + - 32 col0 FROM tab1 cor0
----
-29
32
48
query I rowsort
SELECT - 34 * + col1 + + 31 * - 35 FROM tab2 AS cor0
----
-1663
-2139
-3091
query I rowsort
SELECT + + col2 + + col2 AS col1 FROM tab2 AS cor0
----
52
54
76
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
972 values hashing to 5621675b1bd32b061d284d0444c76601
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5210
SELECT ALL + CAST( NULL AS SIGNED ) + - col1 / - col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 / - col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5211
SELECT ALL - col1 + col1 DIV - col1 FROM tab2
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL - col1 + col1 / - col1 FROM tab2
----
-18
-32
-60
query I rowsort
SELECT cor0.col0 * - ( + 29 ) FROM tab0 AS cor0
----
-1015
-2581
-696
onlyif mysql # use DIV operator for integer division
query I rowsort label-5213
SELECT + col0 * cor0.col0 DIV col1 col0 FROM tab2 AS cor0
----
1
103
367
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5213
SELECT + col0 * cor0.col0 / col1 col0 FROM tab2 AS cor0
----
1
103
367
query I rowsort
SELECT ALL - + col1 + + 76 AS col1 FROM tab1 AS cor0
----
50
63
66
query I rowsort
SELECT DISTINCT col0 + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL - - col0 * + 56 AS col0 FROM tab0 AS cor0
----
1344
1960
4984
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 72 * col0 col2 FROM tab0 AS cor0
----
-148608
-244440
-583128
query I rowsort
SELECT + 31 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
onlyif mysql # use DIV operator for integer division
query I rowsort label-5219
SELECT cor0.col0 DIV - 70 FROM tab2, tab1 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
skipif mysql # not compatible
query I rowsort label-5219
SELECT cor0.col0 / - 70 FROM tab2, tab1 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
query I rowsort
SELECT - cor0.col2 * + ( cor0.col0 ) * - col1 AS col2 FROM tab2 AS cor0
----
119652
51034
5859
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5222
SELECT - col0 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5222
SELECT - col0 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * 59 FROM tab1
----
3186
3363
5664
query I rowsort
SELECT + col0 * - ( + col0 ) + - col1 AS col0 FROM tab0
----
-1322
-662
-8012
query I rowsort
SELECT col1 + ( + col1 * + tab0.col2 ) FROM tab0
----
194
2924
7553
query I rowsort
SELECT 52 FROM tab1, tab2 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT ALL col1 * + ( col0 ) + + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL + - col2 - col1 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-5229
SELECT col0 * col2 DIV - col0 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5229
SELECT col0 * col2 / - col0 FROM tab1
----
-54
-57
-96
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) >= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col0 * + col0 col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT + + col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * cor0.col1 col0 FROM tab2 AS cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query III rowsort
SELECT * FROM tab1 WHERE ( - col2 * col1 ) <> col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-5236
SELECT col2 DIV + cor0.col2 AS col1 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5236
SELECT col2 / + cor0.col2 AS col1 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT ALL - tab0.col0 + col1 + col1 * col1 AS col1 FROM tab0
----
7458
8283
9471
query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NOT - col1 - col2 NOT BETWEEN col2 AND ( NULL )
----
query III rowsort
SELECT * FROM tab0 WHERE + col0 + + col2 - - col2 < NULL
----
query I rowsort
SELECT ALL - col1 + col1 + tab2.col1 FROM tab2
----
17
31
59
query I rowsort
SELECT - cor0.col1 + - col2 AS col0 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT ALL cor0.col2 * col2 * + col1 FROM tab0 AS cor0 WHERE ( + col1 ) NOT IN ( col1 * cor0.col1 )
----
611884
93654
97
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 / col0 ) <> col2 + col2 - col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL col0 * + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 AND NULL
----
query I rowsort
SELECT + cor0.col1 FROM tab1, tab1 cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT DISTINCT - - cor0.col1 * col0 + - col0 AS col1 FROM tab2 cor0
----
1264
210
4524
query I rowsort
SELECT ALL - cor0.col1 + col1 + + col2 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - - col0 * + cor0.col1 - + col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT - col2 * col0 + - col2 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 + col0 AS col0 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT + cor0.col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 * + col0 col1 FROM tab1 AS cor0
----
-234
-40960
-83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-5253
SELECT DISTINCT col0 DIV col1 AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT col0 / col1 AS col2 FROM tab0
----
0
query I rowsort
SELECT + col0 + col2 * - col0 * - col1 FROM tab1
----
36544
4215
99920
query I rowsort
SELECT DISTINCT col0 * - col2 * - tab2.col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT - 31 FROM tab0 cor0
----
-31
-31
-31
query I rowsort
SELECT + col2 * + col2 + col0 AS col0 FROM tab0
----
1113
36
6813
query I rowsort
SELECT DISTINCT + 60 FROM tab0 AS cor0
----
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-5259
SELECT DISTINCT ( - col1 ) + - col0 DIV 19 AS col2 FROM tab0 AS cor0
----
-87
-95
-98
skipif mysql # not compatible
query I rowsort label-5259
SELECT DISTINCT ( - col1 ) + - col0 / 19 AS col2 FROM tab0 AS cor0
----
-87
-95
-98
query I rowsort
SELECT 45 * - col0 FROM tab1 AS cor0
----
-135
-2880
-3600
query I rowsort
SELECT ALL + 98 + col1 + col0 AS col1 FROM tab0 cor0
----
208
230
278
query I rowsort
SELECT + 72 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT + 80 AS col1 FROM tab1 AS cor0
----
80
80
80
query I rowsort
SELECT DISTINCT col2 * 67 + - 97 AS col0 FROM tab0 AS cor0
----
-30
2114
5397
query I rowsort
SELECT - col2 * + 97 AS col0 FROM tab0 AS cor0
----
-3201
-7954
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5266
SELECT DISTINCT - - col2 * col0 + - 34 DIV + col1 AS col2 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT - - col2 * col0 + - 34 / + col1 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + cor0.col1 + col2 * col2 AS col0 FROM tab0 cor0
----
1175
6815
98
query I rowsort
SELECT col2 - - col1 AS col1 FROM tab0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5269
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + col0 + col0 * - ( - col0 ) AS col2 FROM tab0
----
1260
600
8010
query I rowsort
SELECT DISTINCT + col1 + - col1 FROM tab2 WHERE NOT ( NULL ) < + col1 + - col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5272
SELECT col0 + + col1 DIV col0 col2 FROM tab1
----
11
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5272
SELECT col0 + + col1 / col0 col2 FROM tab1
----
11
64
80
query I rowsort
SELECT DISTINCT - col1 + + col0 * col2 * - col0 FROM tab1
----
-233482
-512
-614413
query I rowsort
SELECT ALL - col1 * + tab1.col1 * + col0 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - col2 * col1 col2 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT + col2 * + col2 + - col1 AS col1 FROM tab0
----
-96
1003
6633
query I rowsort
SELECT + col1 * col1 - + col2 AS col1 FROM tab1
----
43
622
73
query I rowsort
SELECT DISTINCT + tab1.col1 FROM tab1 WHERE ( col2 * col2 ) <> col1 * + col2
----
10
13
26
query I rowsort
SELECT col0 * tab0.col0 + - col1 * col0 AS col0 FROM tab0
----
-1488
-178
-2170
query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE + col1 NOT IN ( + tab0.col2 * + col1 )
----
-86
-91
query I rowsort
SELECT ALL col0 FROM tab2 WHERE ( NULL ) <> ( col2 )
----
query I rowsort
SELECT ALL - tab0.col2 * col2 FROM tab0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 * col1 * col2 col1 FROM tab2
----
22599
24548
39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT ( NULL ) IN ( - col2 )
----
query I rowsort
SELECT + col2 + - col2 * col1 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT col2 * col2 + + col1 FROM tab2
----
1461
735
760
query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 * col1 ) IN ( + col2 * + col0 - + col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT + col1 * col2 AS col1 FROM tab0 WHERE col0 + - col0 NOT IN ( + col0 )
----
2838
7462
97
query I rowsort
SELECT col2 + tab1.col1 + col1 AS col0 FROM tab1
----
106
122
77
query I rowsort
SELECT tab2.col0 * - col0 + - col0 * - col0 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL - cor0.col1 * + 40 FROM tab2 AS cor0
----
-1240
-2360
-680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5293
SELECT + col1 + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5293
SELECT + col1 + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5294
SELECT DISTINCT col2 DIV col1 + col0 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT col2 / col1 + col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - - col0 + 31 AS col2 FROM tab2 AS cor0
----
109
110
38
query I rowsort
SELECT DISTINCT cor0.col0 * ( + col1 ) + - col1 AS col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL + cor0.col2 * - col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5299
SELECT ( tab1.col0 ) / + CAST( NULL AS DECIMAL ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5299
SELECT ( tab1.col0 ) / + CAST ( NULL AS REAL ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + 95 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT DISTINCT + col2 + col0 * tab2.col2 * col0 AS col0 FROM tab2
----
1350
158210
237196
query I rowsort
SELECT ALL + col0 * - 70 + col2 * - col0 * col0 FROM tab1
----
-237952
-620000
-696
query I rowsort
SELECT ALL - 11 AS col0 FROM tab2 AS cor0
----
-11
-11
-11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5304
SELECT ALL CAST( col0 AS SIGNED ) * tab1.col1 FROM tab1
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL CAST ( col0 AS INTEGER ) * tab1.col1 FROM tab1
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5305
SELECT - CAST( NULL AS DECIMAL ) - + 60 * col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5305
SELECT - CAST ( NULL AS REAL ) - + 60 * col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 + col0 col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT - + col0 - col0 * 36 AS col0 FROM tab0 AS cor0
----
-1295
-3293
-888
query I rowsort
SELECT DISTINCT col2 + - cor0.col1 AS col0 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT - ( - col1 ) * + 83 + 23 AS col1 FROM tab0 cor0
----
7161
7576
8074
onlyif mysql # use DIV operator for integer division
query I rowsort label-5310
SELECT ALL - - col0 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL - - col0 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + + col1 + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5312
SELECT CAST( NULL AS SIGNED ) + 1 * col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5312
SELECT CAST ( NULL AS INTEGER ) + 1 * col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 * col1 col2 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT ALL + 23 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
onlyif mysql # use DIV operator for integer division
query I rowsort label-5315
SELECT 9 DIV - col1 AS col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5315
SELECT 9 / - col1 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + 62 * + col0 FROM tab2
----
434
4836
4898
query I rowsort
SELECT ALL - tab0.col2 - col2 FROM tab0
----
-164
-2
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-5318
SELECT DISTINCT ( - col0 ) DIV 78 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT ( - col0 ) / 78 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT ALL - 22 - col2 AS col1 FROM tab1 AS cor0
----
-118
-76
-79
query I rowsort
SELECT + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT + ( col1 ) + + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT - 99 * col0 AS col2 FROM tab1 AS cor0
----
-297
-6336
-7920
query I rowsort
SELECT ALL col0 + col2 * 5 AS col1 FROM tab1 AS cor0
----
273
349
560
query I rowsort
SELECT - - 13 * col0 FROM tab0 cor0
----
1157
312
455
query I rowsort
SELECT DISTINCT - - cor0.col0 + + col0 AS col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT col1 * - tab1.col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT 18 * col2 * 5 FROM tab0
----
2970
7380
90
query I rowsort
SELECT DISTINCT + 27 AS col2 FROM tab1
----
27
query I rowsort
SELECT - col1 * + col1 + col0 * col0 AS col2 FROM tab0
----
-360
-6820
-8184
query I rowsort
SELECT DISTINCT + + 16 * cor0.col1 FROM tab0, tab1, tab1 cor0
----
160
208
416
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 col0 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 col1 FROM tab1 AS cor0
----
29
29
29
query I rowsort
SELECT 51 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
query I rowsort
SELECT ALL - + cor0.col1 * + 40 AS col0 FROM tab2 AS cor0
----
-1240
-2360
-680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5335
SELECT DISTINCT + + col0 DIV col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT + + col0 / col2 FROM tab0 AS cor0
----
0
1
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5336
SELECT - + col0 + CAST( - 50 * col2 AS SIGNED ) + + ( + col0 * col1 ) FROM tab2 AS cor0
----
-1140
-636
3224
skipif mysql # not compatible
query I rowsort label-5336
SELECT - + col0 + CAST ( - 50 * col2 AS INTEGER ) + + ( + col0 * col1 ) FROM tab2 AS cor0
----
-1140
-636
3224
query I rowsort
SELECT + col0 * + 22 + - 28 * - col1 AS col0 FROM tab0 AS cor0
----
2936
3486
4506
query I rowsort
SELECT + - col0 * col2 * - cor0.col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT + col0 + col0 * col0 * col0 AS col2 FROM tab0 cor0
----
13848
42910
705058
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5340
SELECT - - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5340
SELECT - - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL tab2.col2 AS col1 FROM tab2, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5342
SELECT ALL + CAST( - 20 AS SIGNED ) + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2896
3229
9196
skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL + CAST ( - 20 AS INTEGER ) + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2896
3229
9196
query I rowsort
SELECT ALL + + col0 + cor0.col2 * - col0 + col1 FROM tab0 cor0
----
-682
-7118
97
query I rowsort
SELECT + col0 * - 34 FROM tab1 AS cor0
----
-102
-2176
-2720
query I rowsort
SELECT DISTINCT - + 34 * - cor0.col0 FROM tab2 AS cor0
----
238
2652
2686
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5346
SELECT - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5346
SELECT - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 + 30 FROM tab0 AS cor0
----
116
121
127
query I rowsort
SELECT ALL - + col1 * + col2 + col1 * + col0 * - col0 FROM tab2 AS cor0
----
-106743
-2356
-360490
query I rowsort
SELECT ALL col1 * col0 + col2 AS col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL - 57 * + col0 FROM tab1 AS cor0
----
-171
-3648
-4560
query I rowsort
SELECT + 70 * col0 * - 38 AS col0 FROM tab2 AS cor0
----
-18620
-207480
-210140
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 * + col0 + ( col0 ) col1 FROM tab2 AS cor0
----
-511
-5694
-5767
query I rowsort
SELECT col0 * cor0.col2 AS col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT ALL - - ( - col2 ) * col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT 7 * + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-51772
-57967
-65863
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col0 FROM tab1 AS cor0
----
-36
-36
-36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5357
SELECT DISTINCT + tab2.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT + tab2.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5358
SELECT DISTINCT - col1 DIV + col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-5358
SELECT DISTINCT - col1 / + col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT 3 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT - 42 - 23 FROM tab2
----
-65
-65
-65
query I rowsort
SELECT ALL 65 * col1 AS col2 FROM tab0
----
5590
5915
6305
query I rowsort
SELECT - 33 + - col2 * col2 * + ( cor0.col2 ) FROM tab2 AS cor0
----
-17609
-19716
-54905
query I rowsort
SELECT - ( 84 ) + cor1.col1 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to bf61ad7e6f04b96e83d4c32c8ec347f5
query I rowsort
SELECT + cor0.col0 + ( - col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 * col1 + + col1 * col2 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 + - 42 * + col1 AS col1 FROM tab0 AS cor0
----
-3588
-3733
-4039
query I rowsort
SELECT col0 * ( col2 ) AS col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + + cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
26
27
38
query I rowsort
SELECT + col2 + + 72 AS col2 FROM tab1 AS cor0
----
126
129
168
query I rowsort
SELECT DISTINCT col1 + + col1 * col1 AS col1 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT + col2 * + 33 + - ( + col2 ) * + col2 AS col0 FROM tab0 AS cor0
----
-4018
0
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5372
SELECT CAST( NULL AS SIGNED ) + - 63 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5372
SELECT CAST ( NULL AS INTEGER ) + - 63 AS col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5373
SELECT CAST( col0 AS SIGNED ) AS col2 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-5373
SELECT CAST ( col0 AS INTEGER ) AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT + + ( + col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( col2 AS REAL ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - col0 * - col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + ( col1 ) + col1 * + ( ( col0 ) ) FROM tab0 cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT + 60 AS col0 FROM tab2, tab0, tab2 cor0
----
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-5379
SELECT col2 DIV col1 + 67 AS col2 FROM tab2
----
67
67
69
skipif mysql # not compatible
query I rowsort label-5379
SELECT col2 / col1 + 67 AS col2 FROM tab2
----
67
67
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-5380
SELECT DISTINCT + col0 DIV + tab0.col1 - 57 AS col1 FROM tab0
----
-57
skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT + col0 / + tab0.col1 - 57 AS col1 FROM tab0
----
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5381
SELECT col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5381
SELECT col2 / - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + + 64 AS col1 FROM tab1 AS cor0
----
64
64
64
query I rowsort
SELECT ALL - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-5384
SELECT DISTINCT - + col0 + 32 DIV + 13 FROM tab1 AS cor0
----
-1
-62
-78
skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT - + col0 + 32 / + 13 FROM tab1 AS cor0
----
-1
-62
-78
query I rowsort
SELECT ALL - - col0 + 58 FROM tab0 cor0
----
147
82
93
query I rowsort
SELECT + - col0 + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - + col1 * + ( + col2 ) + - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT - col0 + 22 * - col1 + + col2 AS col0 FROM tab0 AS cor0
----
-1883
-2009
-2168
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5389
SELECT - + col1 + + CAST( - 49 AS SIGNED ) FROM tab1 cor0
----
-59
-62
-75
skipif mysql # not compatible
query I rowsort label-5389
SELECT - + col1 + + CAST ( - 49 AS INTEGER ) FROM tab1 cor0
----
-59
-62
-75
query I rowsort
SELECT ALL + + col1 * + col1 + - col2 * col0 FROM tab0 AS cor0
----
6604
9374
983
onlyif mysql # use DIV operator for integer division
query I rowsort label-5391
SELECT DISTINCT - col2 DIV tab1.col0 - + col0 AS col0 FROM tab1
----
-21
-64
-81
skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT - col2 / tab1.col0 - + col0 AS col0 FROM tab1
----
-21
-64
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 + - tab2.col2 col0 FROM tab2
----
-23
-59
7
query I rowsort
SELECT DISTINCT - col1 * tab1.col0 + ( - col0 ) * col1 - col1 * ( + col0 ) FROM tab1
----
-1920
-234
-3120
query I rowsort
SELECT ( - col1 ) * 61 FROM tab1
----
-1586
-610
-793
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5395
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 - - cor0.col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 - - cor0.col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT 96 + col2 FROM tab2 AS cor0
----
122
123
134
query I rowsort
SELECT ALL + - col2 * cor0.col1 + col0 + - col2 FROM tab1 cor0
----
-1264
-1455
-563
onlyif mysql # use DIV operator for integer division
query I rowsort label-5398
SELECT DISTINCT - + ( col2 ) DIV cor0.col2 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT - + ( col2 ) / cor0.col2 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT ALL + 61 FROM tab0, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT - col2 + tab2.col2 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + 50 + + 58 + cor0.col0 FROM tab1 AS cor0
----
111
172
188
query I rowsort
SELECT DISTINCT - - col1 * + col1 - col2 * + 92 AS col1 FROM tab1 AS cor0
----
-4292
-5144
-8663
query I rowsort
SELECT - col2 + 14 AS col1 FROM tab0 AS cor0
----
-19
-68
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 73 col0 FROM tab1 AS cor0
----
73
query I rowsort
SELECT + 82 * + cor0.col0 + col1 AS col2 FROM tab0 AS cor0
----
2054
2967
7389
query I rowsort
SELECT + 63 - col1 * 39 FROM tab2 AS cor0
----
-1146
-2238
-600
query I rowsort
SELECT 22 + col0 FROM tab1 AS cor0
----
102
25
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + + col0 col2 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5409
SELECT DISTINCT + + 56 * col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT + + 56 * col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + + ( - col2 ) + + col0 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5411
SELECT + col2 DIV cor0.col2 + ( + col1 * col0 + + col2 ) AS col0 FROM tab0 AS cor0
----
2098
3397
8182
skipif mysql # not compatible
query I rowsort label-5411
SELECT + col2 / cor0.col2 + ( + col1 * col0 + + col2 ) AS col0 FROM tab0 AS cor0
----
2098
3397
8182
query I rowsort
SELECT DISTINCT - + col0 * - cor0.col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL ( col1 ) * 17 FROM tab0 AS cor0
----
1462
1547
1649
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5414
SELECT DISTINCT col2 + - col0 * CAST( NULL AS SIGNED ) * 68 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5414
SELECT DISTINCT col2 + - col0 * CAST ( NULL AS INTEGER ) * 68 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + ( + 58 ) * + col1 + ( col0 ) * col0 - - col1 FROM tab0
----
13290
5650
6948
query I rowsort
SELECT 62 + col1 AS col2 FROM tab2
----
121
79
93
query I rowsort
SELECT DISTINCT - col1 - 36 FROM tab0
----
-122
-127
-133
query I rowsort
SELECT 59 * col1 + col2 AS col1 FROM tab0
----
5107
5451
5724
query I rowsort
SELECT ALL - col1 + col1 + - col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + col0 * - 81 - cor0.col0 FROM tab0 AS cor0
----
-1968
-2870
-7298
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + cor0.col0 col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - + cor0.col2 + - col2 + - col2 * col0 AS col1 FROM tab2 cor0
----
-2080
-243
-3078
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5423
SELECT ALL - col0 * CAST( NULL AS SIGNED ) - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 + ( - col1 ) FROM tab2 cor0
----
-1360
-248
-4661
query I rowsort
SELECT + 97 * - col1 + + tab1.col1 * + col0 AS col2 FROM tab1
----
-221
-2444
-330
query I rowsort
SELECT DISTINCT - col1 * - col1 + 94 FROM tab1
----
194
263
770
query I rowsort
SELECT ALL col0 + + col0 AS col1 FROM tab2
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-5428
SELECT DISTINCT col1 DIV 46 AS col1 FROM tab0 AS cor0
----
1
2
skipif mysql # not compatible
query I rowsort label-5428
SELECT DISTINCT col1 / 46 AS col1 FROM tab0 AS cor0
----
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 - tab1.col1 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 0b0a707f0cd5ea50d9831dfc6af84138
onlyif mysql # use DIV operator for integer division
query I rowsort label-5430
SELECT DISTINCT + - col2 + col1 DIV + col0 AS col2 FROM tab0 cor0
----
-30
-81
1
skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT + - col2 + col1 / + col0 AS col2 FROM tab0 cor0
----
-30
-81
1
query I rowsort
SELECT DISTINCT 19 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
19
query I rowsort
SELECT + ( + col2 ) + + cor0.col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - - ( ( col2 ) ) * + cor0.col0 * + 29 AS col2 FROM tab2 AS cor0
----
5481
58812
87058
query I rowsort
SELECT - col0 * + ( col1 * col1 ) FROM tab0 cor0
----
-177504
-329315
-737009
query I rowsort
SELECT - tab0.col1 * 64 AS col2 FROM tab0
----
-5504
-5824
-6208
query I rowsort
SELECT + 11 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT + col2 * + col0 * - 54 AS col1 FROM tab0
----
-1890
-394092
-42768
query I rowsort
SELECT ALL + 78 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048
query I rowsort
SELECT DISTINCT - 43 AS col1 FROM tab0, tab2 AS cor0
----
-43
onlyif mysql # use DIV operator for integer division
query I rowsort label-5440
SELECT ALL - col2 + col0 DIV col1 FROM tab2 AS cor0
----
-25
-27
-34
skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL - col2 + col0 / col1 FROM tab2 AS cor0
----
-25
-27
-34
query I rowsort
SELECT ALL + col0 - - col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL col0 * - cor0.col2 + - col0 - - 62 FROM tab2 AS cor0
----
-134
-2044
-3019
query I rowsort
SELECT ALL ( cor0.col0 ) + - col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5445
SELECT cor0.col2 DIV 69 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 14fcfa6c11198893073049d94262832c
skipif mysql # not compatible
query I rowsort label-5445
SELECT cor0.col2 / 69 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 14fcfa6c11198893073049d94262832c
query I rowsort
SELECT - col2 * + cor0.col0 - + col0 FROM tab0 AS cor0
----
-70
-7387
-816
onlyif mysql # use DIV operator for integer division
query I rowsort label-5447
SELECT col1 DIV col1 - 3 FROM tab0 AS cor0
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-5447
SELECT col1 / col1 - 3 FROM tab0 AS cor0
----
-2
-2
-2
query I rowsort
SELECT ALL - + col1 + col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT col0 * 61 * + col0 FROM tab2 AS cor0
----
2989
371124
380701
query I rowsort
SELECT DISTINCT + + cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5451
SELECT ALL + col0 DIV col0 col0 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL + col0 / col0 col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT cor0.col0 + 49 AS col0 FROM tab2 AS cor0
----
127
128
56
query I rowsort
SELECT + - col2 + col1 AS col1 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT cor0.col0 * 47 + + col1 AS col1 FROM tab2 AS cor0
----
360
3725
3730
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 5e27196f2932b25a5297ddec46b8b8f1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5456
SELECT ( col1 ) + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
20
26
52
skipif mysql # not compatible
query I rowsort label-5456
SELECT ( col1 ) + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT - - col0 + cor0.col2 FROM tab2 cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + 67 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2211
-5494
-67
query I rowsort
SELECT - + ( + col1 ) AS col2 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT - - 36 * - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-147456
-230400
-324
query I rowsort
SELECT DISTINCT + + col0 * - ( + cor0.col0 ) * col0 + + 95 * + col2 FROM tab1 cor0
----
-256729
-502880
5103
query I rowsort
SELECT DISTINCT - col0 * + 94 FROM tab1 AS cor0
----
-282
-6016
-7520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5464
SELECT ALL - tab2.col1 + CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL - tab2.col1 + CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 col0 FROM tab0
----
-33
query I rowsort
SELECT ALL + 72 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT DISTINCT - col0 * + col2 AS col1 FROM tab0
----
-35
-7298
-792
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
query I rowsort
SELECT col2 * col1 + col0 AS col1 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-5470
SELECT - + cor0.col1 DIV - cor0.col2 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-5470
SELECT - + cor0.col1 / - cor0.col2 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-5471
SELECT DISTINCT - 58 DIV - cor0.col1 FROM tab0, tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5471
SELECT DISTINCT - 58 / - cor0.col1 FROM tab0, tab0 AS cor0
----
0
query I rowsort
SELECT - - 14 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT 45 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
query I rowsort
SELECT ALL - 90 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to c0d96679aba507520916e8654e5a6618
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 * col2 col1 FROM tab1
----
270
285
480
onlyif mysql # use DIV operator for integer division
query I rowsort label-5476
SELECT ( - col0 ) + + col2 * ( col0 ) DIV + col1 AS col2 FROM tab0 AS cor0
----
-15
-35
-9
skipif mysql # not compatible
query I rowsort label-5476
SELECT ( - col0 ) + + col2 * ( col0 ) / + col1 AS col2 FROM tab0 AS cor0
----
-15
-35
-9
skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( - 13 AS REAL ) + - col2 AS col0 FROM tab0 AS cor0
----
-14
-46
-95
query I rowsort
SELECT 45 * + col1 AS col1 FROM tab1
----
1170
450
585
query I rowsort
SELECT DISTINCT col1 * - tab0.col1 * - col2 AS col2 FROM tab0
----
244068
679042
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 * 16 col2 FROM tab0
----
1008
1008
1008
query I rowsort
SELECT DISTINCT col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * cor0.col2 + cor0.col2 * - cor0.col1 col0 FROM tab2 AS cor0
----
-1292
-1674
-3068
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5483
SELECT cor0.col0 * + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5483
SELECT cor0.col0 * + col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * + col2 - col2 AS col2 FROM tab2
----
162
2002
2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-5485
SELECT DISTINCT tab1.col2 + + col2 * col0 + + col0 DIV + tab1.col0 AS col1 FROM tab1
----
217
3706
7777
skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT tab1.col2 + + col2 * col0 + + col0 / + tab1.col0 AS col1 FROM tab1
----
217
3706
7777
query I rowsort
SELECT ALL col2 + - col0 - col1 AS col1 FROM tab0
----
-131
-77
-98
query I rowsort
SELECT ALL ( + col2 ) * + col0 + col2 * col1 AS col2 FROM tab0
----
132
14760
3630
query I rowsort
SELECT DISTINCT + 31 AS col1 FROM tab0, tab0 AS cor0
----
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-5489
SELECT DISTINCT - col1 * col0 * col2 + + tab1.col1 + + col1 DIV + tab1.col1 FROM tab1
----
-36469
-4185
-99826
skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT - col1 * col0 * col2 + + tab1.col1 + + col1 / + tab1.col1 FROM tab1
----
-36469
-4185
-99826
query I rowsort
SELECT ALL - 68 * col1 + - 71 FROM tab1
----
-1839
-751
-955
query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT ALL - col2 * cor0.col0 + + 94 FROM tab2 cor0
----
-1934
-2908
-95
query I rowsort
SELECT ALL - 18 * + cor0.col1 FROM tab0 AS cor0
----
-1548
-1638
-1746
query I rowsort
SELECT DISTINCT col0 + - col0 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT 71 FROM tab2 cor0
----
71
query I rowsort
SELECT - tab2.col2 - ( + 88 * + col0 ) FROM tab2
----
-643
-6890
-6990
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2, tab1, tab0 cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5498
SELECT - - col2 DIV 91 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5498
SELECT - - col2 / 91 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5499
SELECT col1 * col0 DIV + col0 col1 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5499
SELECT col1 * col0 / + col0 col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT col0 * - ( + 91 ) AS col0 FROM tab2 AS cor0
----
-637
-7098
-7189
query I rowsort
SELECT - ( col2 ) + - col0 * col2 * + col1 - col1 AS col0 FROM tab1 AS cor0
----
-36547
-4292
-99949
onlyif mysql # use DIV operator for integer division
query I rowsort label-5502
SELECT + 65 DIV - 16 FROM tab2 AS cor0
----
-4
-4
-4
skipif mysql # not compatible
query I rowsort label-5502
SELECT + 65 / - 16 FROM tab2 AS cor0
----
-4
-4
-4
query I rowsort
SELECT DISTINCT 30 * 75 AS col0 FROM tab1 AS cor0
----
2250
query I rowsort
SELECT + - 19 + - cor0.col0 * - col0 - + 43 * + 99 * + col0 FROM tab1 AS cor0
----
-12781
-268371
-334179
query I rowsort
SELECT DISTINCT 0 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5506
SELECT DISTINCT + + CAST( col1 AS SIGNED ) * col2 * + 90 + - col1 * col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
134638
57868
74400
skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) * col2 * + 90 + - col1 * col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
134638
57868
74400
query I rowsort
SELECT - 84 + 65 AS col1 FROM tab1 AS cor0
----
-19
-19
-19
query I rowsort
SELECT col1 * - 90 FROM tab2 AS cor0
----
-1530
-2790
-5310
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - + 41 * col0 + - col0 * - col2 FROM tab2 AS cor0
----
-1170
-237
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5511
SELECT + CAST( ( + col2 ) AS SIGNED ) * col1 - - cor0.col2 * + col1 col0 FROM tab2 AS cor0
----
1292
1674
3068
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5511
SELECT + CAST ( ( + col2 ) AS INTEGER ) * col1 - - cor0.col2 * + col1 col0 FROM tab2 AS cor0
----
1292
1674
3068
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + 55 * + col2 * ( col0 ) col0 FROM tab1 AS cor0
----
200583
422304
8856
query I rowsort
SELECT DISTINCT - - 11 FROM tab2 AS cor0
----
11
query I rowsort
SELECT ALL + + 71 + 24 AS col2 FROM tab2 cor0
----
95
95
95
query I rowsort
SELECT ALL 96 * - col1 FROM tab2 AS cor0
----
-1632
-2976
-5664
query I rowsort
SELECT DISTINCT ( + ( + col0 ) ) FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT 49 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
query I rowsort
SELECT + - cor0.col2 * col2 * - col1 AS col1 FROM tab0 cor0
----
611884
93654
97
query I rowsort
SELECT + 69 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT ALL + 24 * col0 AS col2 FROM tab0 AS cor0
----
2136
576
840
query I rowsort
SELECT DISTINCT + 25 * ( + col1 ) FROM tab0 AS cor0
----
2150
2275
2425
query I rowsort
SELECT DISTINCT - - 25 * - col1 FROM tab1 AS cor0
----
-250
-325
-650
query I rowsort
SELECT DISTINCT + col0 + + ( - col2 ) * 71 FROM tab0 AS cor0
----
-2319
-36
-5733
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5524
SELECT ( col0 ) * - col0 * CAST( + 63 AS SIGNED ) + + tab1.col2 * - col1 FROM tab1
----
-1971
-258618
-404448
skipif mysql # not compatible
query I rowsort label-5524
SELECT ( col0 ) * - col0 * CAST ( + 63 AS INTEGER ) + + tab1.col2 * - col1 FROM tab1
----
-1971
-258618
-404448
query I rowsort
SELECT ALL 2 * col2 FROM tab0
----
164
2
66
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col0 AS REAL ) * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + 85 + + 19 FROM tab0 cor0
----
104
104
104
query I rowsort
SELECT ALL + - col1 * - ( col0 * ( col2 ) ) AS col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL + col0 + col1 + + 96 * 88 AS col0 FROM tab2
----
8486
8544
8585
query I rowsort
SELECT ALL - + 86 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to d7fc9af0e5231b22842de415b968daa3
query I rowsort
SELECT ALL col2 * col1 + 33 + col1 AS col2 FROM tab0
----
227
2957
7586
query I rowsort
SELECT ALL + 10 * + col0 + tab1.col1 AS col2 FROM tab1
----
56
650
813
query I rowsort
SELECT + col2 + - col2 * 95 AS col1 FROM tab0 AS cor0
----
-3102
-7708
-94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 * + col0 col0 FROM tab0 AS cor0
----
2304
3360
8544
query I rowsort
SELECT DISTINCT 45 AS col2 FROM tab0 AS cor0
----
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 * - col0 * col1 col2 FROM tab2 AS cor0
----
123556
19964
423384
query I rowsort
SELECT + - col1 * + 61 * col0 FROM tab0 AS cor0
----
-125904
-207095
-494039
onlyif mysql # use DIV operator for integer division
query I rowsort label-5538
SELECT ALL + - col0 DIV + 91 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL + - col0 / + 91 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * - 81 + + col1 + + col2 * col1 FROM tab2 AS cor0
----
2040
3379
6372
onlyif mysql # use DIV operator for integer division
query I rowsort label-5540
SELECT DISTINCT + cor0.col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-5540
SELECT DISTINCT + cor0.col2 / - col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT + col2 * cor0.col1 + col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
1586
722
891
query I rowsort
SELECT 74 + tab1.col2 FROM tab1
----
128
131
170
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5543
SELECT + + col2 + CAST( NULL AS SIGNED ) + - ( col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5543
SELECT + + col2 + CAST ( NULL AS INTEGER ) + - ( col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + - ( 15 * + col2 ) AS col0 FROM tab1 AS cor0
----
-1427
-784
-845
query I rowsort
SELECT - 15 FROM tab2, tab0 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2
onlyif mysql # use DIV operator for integer division
query I rowsort label-5546
SELECT - col2 * 18 + col1 DIV 55 + 68 AS col1 FROM tab0 AS cor0
----
-1407
-525
51
skipif mysql # not compatible
query I rowsort label-5546
SELECT - col2 * 18 + col1 / 55 + 68 AS col1 FROM tab0 AS cor0
----
-1407
-525
51
query I rowsort
SELECT 42 * col0 FROM tab1 AS cor0
----
126
2688
3360
query I rowsort
SELECT + cor0.col1 + + col0 + col0 FROM tab2 AS cor0
----
175
215
45
query I rowsort
SELECT - col0 * + col2 + - col1 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT + 35 FROM tab0, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT + + cor0.col1 * + 76 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to b0f893c51e418c43f5ded62f151d9453
query I rowsort
SELECT - col2 * - col2 * ( col0 ) FROM tab2
----
114076
5103
52728
query I rowsort
SELECT + col1 * - 34 FROM tab0
----
-2924
-3094
-3298
query I rowsort
SELECT - + ( + cor0.col1 ) + 44 * - cor0.col0 FROM tab1 AS cor0
----
-158
-2826
-3533
query I rowsort
SELECT + 80 * + cor0.col0 FROM tab0 AS cor0
----
1920
2800
7120
query I rowsort
SELECT DISTINCT + col2 * - col1 - col0 * ( col2 ) AS col2 FROM tab2 AS cor0
----
-1026
-3562
-3648
query I rowsort
SELECT - - col0 * + cor0.col2 * col0 + col0 AS col0 FROM tab1 AS cor0
----
233536
489
614480
query I rowsort
SELECT col0 * - col0 + - col2 FROM tab0
----
-1226
-609
-8003
onlyif mysql # use DIV operator for integer division
query I rowsort label-5559
SELECT + 15 + - col0 DIV - col2 FROM tab1
----
15
15
16
skipif mysql # not compatible
query I rowsort label-5559
SELECT + 15 + - col0 / - col2 FROM tab1
----
15
15
16
query I rowsort
SELECT ALL + cor0.col2 * - tab0.col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 7bbc838944bf624aeb89c83e3012c97c
query I rowsort
SELECT - ( 77 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
query I rowsort
SELECT DISTINCT 26 FROM tab0 cor0
----
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5563
SELECT ALL col0 * col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL col0 * col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 26 * col2 + - col1 FROM tab1 AS cor0
----
1378
1472
2483
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT 75 * + col1 - 31 * - ( - col0 + 12 ) AS col0 FROM tab0 AS cor0
----
4438
6078
6562
query I rowsort
SELECT ALL - 27 + col1 AS col0 FROM tab2 AS cor0
----
-10
32
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 * col2 col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL tab2.col0 + - col2 - + tab2.col1 FROM tab2
----
-51
-7
24
query I rowsort
SELECT col2 + col0 - col0 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5571
SELECT + col1 DIV + tab0.col0 - - col1 FROM tab0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-5571
SELECT + col1 / + tab0.col0 - - col1 FROM tab0
----
89
92
99
query I rowsort
SELECT DISTINCT + tab2.col2 * col2 AS col0 FROM tab2
----
1444
676
729
query I rowsort
SELECT - col1 * col1 + + col1 AS col1 FROM tab2 cor0
----
-272
-3422
-930
query I rowsort
SELECT + col0 + - col0 * col1 AS col0 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT ALL - col1 * - col2 + col0 - - col0 AS col0 FROM tab0
----
167
2886
7640
query I rowsort
SELECT DISTINCT - tab2.col0 * tab2.col1 - + col1 * - col2 AS col0 FROM tab2
----
-3068
-697
620
query I rowsort
SELECT col2 * - tab1.col0 - + col0 * col1 AS col0 FROM tab1
----
-240
-4288
-8720
onlyif mysql # use DIV operator for integer division
query I rowsort label-5578
SELECT DISTINCT col0 + + col2 + + col1 DIV - col1 FROM tab0
----
170
35
56
skipif mysql # not compatible
query I rowsort label-5578
SELECT DISTINCT col0 + + col2 + + col1 / - col1 FROM tab0
----
170
35
56
query I rowsort
SELECT + + col2 * - col2 + - col2 * + col0 FROM tab2 cor0
----
-2704
-4446
-918
query I rowsort
SELECT - cor0.col1 + + col2 * - col2 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT DISTINCT - col2 * col2 AS col2 FROM tab0 cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-5582
SELECT col0 DIV + col0 + cor0.col0 * - cor0.col1 + + col1 AS col1 FROM tab2 AS cor0
----
-1325
-185
-4542
skipif mysql # not compatible
query I rowsort label-5582
SELECT col0 / + col0 + cor0.col0 * - cor0.col1 + + col1 AS col1 FROM tab2 AS cor0
----
-1325
-185
-4542
onlyif mysql # use DIV operator for integer division
query I rowsort label-5583
SELECT DISTINCT col1 * + col1 + col0 DIV col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-5583
SELECT DISTINCT col1 * + col1 + col0 / col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL cor0.col2 * col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + + col0 + cor0.col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT - - col2 * col1 + col2 AS col0 FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT ALL + ( - col1 ) AS col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT 89 + col0 FROM tab0 AS cor0
----
113
124
178
onlyif mysql # use DIV operator for integer division
query I rowsort label-5589
SELECT + col0 * col1 DIV col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5589
SELECT + col0 * col1 / col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - cor0.col2 * - col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL + cor1.col2 - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-5592
SELECT - col2 + + col1 DIV col0 FROM tab0
----
-30
-81
1
skipif mysql # not compatible
query I rowsort label-5592
SELECT - col2 + + col1 / col0 FROM tab0
----
-30
-81
1
query I rowsort
SELECT ALL col2 + col0 * + col2 + col2 AS col0 FROM tab2
----
2080
243
3078
query I rowsort
SELECT ALL - col1 FROM tab0 WHERE ( NULL ) BETWEEN ( col0 ) AND ( NULL )
----
query I rowsort
SELECT col0 * - col1 + col0 AS col2 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL col0 * + col2 - + col1 AS col1 FROM tab0
----
-62
706
7207
query III rowsort
SELECT * FROM tab0 WHERE NOT col2 = col2 + col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col2 * col2 AND NULL
----
query I rowsort
SELECT ALL + tab2.col2 * col2 + col0 * tab2.col0 FROM tab2
----
6760
7685
778
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND col2 * tab0.col2 * - col0 + + col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5601
SELECT col2 * col0 DIV col0 AS col1 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5601
SELECT col2 * col0 / col0 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT col0 + - tab1.col1 - col0 FROM tab1 WHERE NOT col1 - col2 >= col2 * col2
----
-10
-13
-26
query I rowsort
SELECT DISTINCT col1 + tab1.col0 - col1 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT + tab0.col0 * + col2 AS col1 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-5605
SELECT ALL col1 * + col0 DIV col0 AS col0 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL col1 * + col0 / col0 AS col0 FROM tab2
----
17
31
59
query III rowsort
SELECT * FROM tab1 WHERE - col2 - + col1 <> ( col2 * col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-5607
SELECT + col2 * - col0 + col2 DIV col0 - - col0 FROM tab0
----
-7209
-767
0
skipif mysql # not compatible
query I rowsort label-5607
SELECT + col2 * - col0 + col2 / col0 - - col0 FROM tab0
----
-7209
-767
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5608
SELECT - + col1 + - col2 DIV cor0.col0 + col1 * - col1 FROM tab1 AS cor0
----
-110
-183
-720
skipif mysql # not compatible
query I rowsort label-5608
SELECT - + col1 + - col2 / cor0.col0 + col1 * - col1 FROM tab1 AS cor0
----
-110
-183
-720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 57 col2 FROM tab0 AS cor0
----
-57
query I rowsort
SELECT + + col1 + col2 + 78 FROM tab2 AS cor0
----
133
136
163
onlyif mysql # use DIV operator for integer division
query I rowsort label-5611
SELECT + col0 DIV col2 - - col1 * col1 FROM tab0
----
7396
8282
9444
skipif mysql # not compatible
query I rowsort label-5611
SELECT + col0 / col2 - - col1 * col1 FROM tab0
----
7396
8282
9444
query I rowsort
SELECT + tab2.col2 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - col0 * col0 )
----
query I rowsort
SELECT + col2 * - col2 + col1 * - col0 FROM tab1
----
-10256
-2994
-3889
query I rowsort
SELECT col2 * - col1 + col0 - col0 * + col1 AS col2 FROM tab1
----
-1146
-1479
-2208
query I rowsort
SELECT + tab1.col1 - + tab1.col1 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + col1 - - col1 * col0 AS col2 FROM tab1 AS cor0
----
107
1133
714
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 * col1 - - col1 col2 FROM tab0 AS cor0
----
118922
49622
720902
query I rowsort
SELECT ALL col0 - cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * col2 <> - col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT + col0 * + col2 + + col2 * col0 FROM tab1
----
15360
324
7296
query I rowsort
SELECT DISTINCT - col1 + col2 * col0 AS col1 FROM tab0
----
-62
706
7207
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 NOT IN ( - col0 + + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NOT ( - col0 ) IN ( + col0 * tab1.col2 )
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-5625
SELECT ALL col2 * + col0 + col1 DIV + col2 FROM tab0
----
132
7299
794
skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL col2 * + col0 + col1 / + col2 FROM tab0
----
132
7299
794
query I rowsort
SELECT tab2.col0 * - col0 AS col2 FROM tab2
----
-49
-6084
-6241
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IN ( col1 * - col2 )
----
query I rowsort
SELECT col1 * col0 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( - col0 * col0 + - col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 col2 FROM tab0
----
0
0
0
query I rowsort
SELECT + col1 * + col2 FROM tab2 WHERE ( col1 ) NOT BETWEEN col0 * - col0 AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5631
SELECT ALL - col0 DIV col1 + col1 + cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
104
176
702
skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL - col0 / col1 + col1 + cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
104
176
702
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > ( col0 )
----
query I rowsort
SELECT col1 * + col1 + col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + tab0.col2 * + col0 + + col2 * col1 + - col1 * + col1 FROM tab0
----
-3766
-9277
6479
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = + col2
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5636
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * col2 + col0 + + col2 col1 FROM tab1
----
-1072
-1347
-449
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * col2 + col0 + + col2 col1 FROM tab1
----
-1072
-1347
-449
query I rowsort
SELECT ALL - - col2 * - col2 + + 65 FROM tab1 AS cor0
----
-2851
-3184
-9151
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col1 col1 FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col2 FROM tab1
----
-37
-37
-37
query I rowsort
SELECT ALL + tab2.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col0 FROM tab1
----
95
95
95
query I rowsort
SELECT 70 * - col0 + ( col1 ) FROM tab1 AS cor0
----
-184
-4470
-5587
onlyif mysql # use DIV operator for integer division
query I rowsort label-5643
SELECT ALL + col2 DIV col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL + col2 / col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + - col1 * - cor0.col0 + + col2 * + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-2609
-2838
-8176
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 col0 FROM tab2
----
67
67
67
query I rowsort
SELECT - ( - cor0.col0 ) * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL cor0.col0 * + cor0.col0 * ( col1 * col2 ) FROM tab1 AS cor0
----
12636
2334720
7987200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5648
SELECT DISTINCT - + col1 * col1 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT - + col1 * col1 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - + col2 * col0 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT tab2.col2 + 11 * - tab2.col1 - + col0 * - col0 AS col0 FROM tab2
----
-265
5461
6092
query I rowsort
SELECT + 69 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5652
SELECT col0 * 96 DIV - tab1.col2 FROM tab1
----
-107
-5
-80
skipif mysql # not compatible
query I rowsort label-5652
SELECT col0 * 96 / - tab1.col2 FROM tab1
----
-107
-5
-80
query I rowsort
SELECT DISTINCT col1 - - 59 FROM tab1
----
69
72
85
query I rowsort
SELECT col2 - - col1 * tab0.col0 AS col1 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - tab2.col2 * + col2 - + col0 FROM tab2
----
-1523
-736
-754
query I rowsort
SELECT DISTINCT + col1 * 41 * cor0.col1 FROM tab2 AS cor0
----
11849
142721
39401
query I rowsort
SELECT 91 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
onlyif mysql # use DIV operator for integer division
query I rowsort label-5658
SELECT + tab0.col0 * ( + 42 + col0 ) DIV + ( 22 ) FROM tab0
----
122
529
72
skipif mysql # not compatible
query I rowsort label-5658
SELECT + tab0.col0 * ( + 42 + col0 ) / + ( 22 ) FROM tab0
----
122
529
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5659
SELECT ALL + col0 + CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + ( + col0 ) * + col1 + + col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT 62 * ( col2 ) FROM tab0 AS cor0
----
2046
5084
62
query I rowsort
SELECT - 67 * + col1 - col0 FROM tab0 cor0
----
-5786
-6186
-6534
query I rowsort
SELECT ALL - 18 * + 56 + - col0 * - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-819
1020
1994
query I rowsort
SELECT DISTINCT + 27 * - col1 AS col2 FROM tab2 AS cor0
----
-1593
-459
-837
query I rowsort
SELECT DISTINCT - + col1 * - col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - 20 AS col1 FROM tab0 AS cor0
----
-20
-20
-20
query I rowsort
SELECT ALL 92 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) col0 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-5669
SELECT DISTINCT - cor0.col2 - + col2 DIV col2 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT - cor0.col2 - + col2 / col2 FROM tab0 AS cor0
----
-2
-34
-83
query I rowsort
SELECT DISTINCT + + 74 * col1 - - col1 AS col1 FROM tab2 AS cor0
----
1275
2325
4425
query I rowsort
SELECT ALL + 64 * + col1 * col0 FROM tab2 AS cor0
----
13888
294528
85952
onlyif mysql # use DIV operator for integer division
query I rowsort label-5672
SELECT - 67 DIV col2 + + col1 FROM tab0 AS cor0
----
30
84
91
skipif mysql # not compatible
query I rowsort label-5672
SELECT - 67 / col2 + + col1 FROM tab0 AS cor0
----
30
84
91
query I rowsort
SELECT ALL + + cor0.col0 * cor0.col0 + - col0 AS col0 FROM tab1 cor0
----
4032
6
6320
query I rowsort
SELECT + 34 + + col2 * - col2 FROM tab2 AS cor0
----
-1410
-642
-695
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5675
SELECT DISTINCT CAST( + 45 AS SIGNED ) * col1 col2 FROM tab2 AS cor0
----
1395
2655
765
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT CAST ( + 45 AS INTEGER ) * col1 col2 FROM tab2 AS cor0
----
1395
2655
765
query I rowsort
SELECT DISTINCT col1 + - 23 FROM tab0 cor0
----
63
68
74
query I rowsort
SELECT ALL - ( - col1 ) * + col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT + col1 + 74 - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1161
-1304
-486
query I rowsort
SELECT ( - cor0.col1 ) FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT DISTINCT + - col0 + - 73 AS col1 FROM tab2 AS cor0
----
-151
-152
-80
query I rowsort
SELECT DISTINCT + + col0 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + 58 AS col0 FROM tab2, tab0 AS cor0
----
58
query I rowsort
SELECT 57 * + col2 * ( col1 ) AS col0 FROM tab2 AS cor0
----
36822
47709
87438
onlyif mysql # use DIV operator for integer division
query I rowsort label-5684
SELECT + 45 DIV - col0 FROM tab0 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-5684
SELECT + 45 / - col0 FROM tab0 AS cor0
----
-1
-1
0
query I rowsort
SELECT + 55 + col0 * - ( - ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
-134
-1973
-2947
onlyif mysql # use DIV operator for integer division
query I rowsort label-5686
SELECT col2 + + col0 DIV col1 + - col2 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5686
SELECT col2 + + col0 / col1 + - col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + + col2 * + 90 FROM tab2 AS cor0
----
2399
2461
3437
onlyif mysql # use DIV operator for integer division
query I rowsort label-5688
SELECT - 14 DIV + cor0.col1 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5688
SELECT - 14 / + cor0.col1 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 85 AS col0 FROM tab2, tab2 AS cor0
----
85
query I rowsort
SELECT ALL col2 * - col2 * col1 + + 14 FROM tab2
----
-22585
-24534
-39870
query I rowsort
SELECT ALL 70 FROM tab0, tab1, tab2 cor0
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
query I rowsort
SELECT - 46 + + col0 AS col0 FROM tab0 AS cor0
----
-11
-22
43
query I rowsort
SELECT + col2 * + col0 - + col0 * col0 AS col0 FROM tab2 cor0
----
-3239
-4056
140
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5694
SELECT ALL col2 + + CAST( NULL AS SIGNED ) / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5694
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 + - col1 * + 22 * col0 FROM tab2 AS cor0
----
-101166
-29467
-4767
query I rowsort
SELECT DISTINCT + col2 + - ( + col1 ) AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL - col0 * + ( - col0 ) + + col0 FROM tab1 cor0
----
12
4160
6480
query I rowsort
SELECT DISTINCT + cor0.col2 + ( + col2 ) + cor0.col1 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT DISTINCT col1 + ( 44 ) * + col0 FROM tab0 AS cor0
----
1142
1637
4007
skipif mysql # not compatible
query I rowsort
SELECT - - col2 * + CAST ( cor0.col1 AS REAL ) AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + + col1 + col0 * col2 + - col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col0 + - 47 FROM tab2 AS cor0
----
-40
31
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 * - 34 col0 FROM tab1 AS cor0
----
-1833
-1874
-3184
query I rowsort
SELECT + + col1 * + ( col2 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + tab2.col1 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ( 20 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT DISTINCT + cor1.col2 * 78 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
2028
2106
2964
query I rowsort
SELECT ALL col1 * + col2 + - col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT ALL col2 * 8 + 40 + + cor0.col1 FROM tab0 AS cor0
----
145
390
787
onlyif mysql # use DIV operator for integer division
query I rowsort label-5710
SELECT DISTINCT + + cor0.col2 - - 68 DIV - 82 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5710
SELECT DISTINCT + + cor0.col2 - - 68 / - 82 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + - col1 * ( + col2 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5712
SELECT + - cor0.col1 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5712
SELECT + - cor0.col1 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 * - col1 - - col0 * + col2 FROM tab0 AS cor0
----
15397
2856
3430
query I rowsort
SELECT 82 + tab0.col1 FROM tab0
----
168
173
179
query I rowsort
SELECT col1 * col2 * + 21 - col0 FROM tab1
----
11906
26128
29481
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 - col1 * ( col0 + - col0 ) col0 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5717
SELECT - col0 DIV - col2 + - 17 AS col2 FROM tab0
----
-16
-17
18
skipif mysql # not compatible
query I rowsort label-5717
SELECT - col0 / - col2 + - 17 AS col2 FROM tab0
----
-16
-17
18
query I rowsort
SELECT ALL - tab0.col2 * tab0.col2 AS col0 FROM tab0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-5719
SELECT DISTINCT col0 DIV + tab2.col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT col0 / + tab2.col1 FROM tab2
----
0
1
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5720
SELECT + col2 DIV + 49 AS col1 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5720
SELECT + col2 / + 49 AS col1 FROM tab0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5721
SELECT ALL - col0 + - tab2.col1 DIV - 60 AS col1 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL - col0 + - tab2.col1 / - 60 AS col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT col1 + ( - col2 ) AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT + col2 * col2 + col2 * col2 FROM tab0 AS cor0
----
13448
2
2178
query I rowsort
SELECT cor0.col1 * + col1 + + cor0.col2 * col2 FROM tab1 AS cor0
----
3349
3592
9385
query I rowsort
SELECT - + cor0.col1 + 69 AS col1 FROM tab0 AS cor0
----
-17
-22
-28
query I rowsort
SELECT + col1 + - cor0.col0 * + col0 AS col0 FROM tab1 cor0
----
-4086
-6387
17
query I rowsort
SELECT ALL 83 FROM tab2, tab1 cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col1 ) * col0 col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) * - col2 col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5730
SELECT - + cor0.col2 DIV col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5730
SELECT - + cor0.col2 / col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 + col0 * ( + cor0.col1 ) col2 FROM tab2 cor0
----
1353
227
4612
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 * - ( + col2 ) col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL 24 * col0 AS col0 FROM tab2
----
168
1872
1896
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5734
SELECT DISTINCT col1 * - col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT col1 * - col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + ( col2 ) * 27 FROM tab1 AS cor0
----
1458
1539
2592
onlyif mysql # use DIV operator for integer division
query I rowsort label-5736
SELECT cor0.col1 DIV + col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-5736
SELECT cor0.col1 / + col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT ALL - 49 * - col1 AS col1 FROM tab1 AS cor0
----
1274
490
637
query I rowsort
SELECT ( + col1 ) + col1 * - 96 FROM tab2 AS cor0
----
-1615
-2945
-5605
onlyif mysql # use DIV operator for integer division
query I rowsort label-5739
SELECT DISTINCT - 49 DIV + col1 AS col2 FROM tab1 AS cor0
----
-1
-3
-4
skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT - 49 / + col1 AS col2 FROM tab1 AS cor0
----
-1
-3
-4
query I rowsort
SELECT - - 2 * col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT ALL cor0.col0 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT cor0.col1 + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5743
SELECT ALL 19 + col2 * - CAST( NULL AS SIGNED ) / - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL 19 + col2 * - CAST ( NULL AS INTEGER ) / - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( cor0.col1 ) - col2 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT + cor0.col1 + - col1 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + + col0 * ( 82 + col0 ) FROM tab2 AS cor0
----
12480
12719
623
query I rowsort
SELECT 84 * - 98 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 0ad51606afe177039123346bbe7e1e7a
query I rowsort
SELECT DISTINCT + - col2 * 9 FROM tab0 AS cor0
----
-297
-738
-9
query I rowsort
SELECT + col0 + ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + col0 + + 21 * col0 AS col0 FROM tab2 AS cor0
----
154
1716
1738
query I rowsort
SELECT 62 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 0bc652564a158b9c0f7952026f90b60a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) * - col2 + col0 * 52 * - col1 col1 FROM tab1 AS cor0
----
-2652
-32710
-52832
query I rowsort
SELECT DISTINCT col2 * col2 + - col1 FROM tab2 AS cor0
----
1427
617
698
onlyif mysql # use DIV operator for integer division
query I rowsort label-5754
SELECT col0 * col2 + cor0.col1 DIV col1 AS col1 FROM tab1 AS cor0
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-5754
SELECT col0 * col2 + cor0.col1 / col1 AS col1 FROM tab1 AS cor0
----
163
3649
7681
query I rowsort
SELECT DISTINCT ( + cor0.col0 ) * + col2 + + cor0.col2 FROM tab1 cor0
----
216
3705
7776
skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * CAST ( 66 AS REAL ) FROM tab1
----
198
4224
5280
query I rowsort
SELECT - + 73 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc
query I rowsort
SELECT DISTINCT - 59 + 68 AS col0 FROM tab1 AS cor0
----
9
query I rowsort
SELECT ALL - + col2 + - 29 - cor0.col1 FROM tab2 AS cor0
----
-114
-84
-87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5760
SELECT ALL - CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL - CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-5762
SELECT ALL col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL col2 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + col1 + - col1 * col2 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT - + cor0.col1 + col1 * col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT ALL col2 * 56 + - col2 + col1 FROM tab2
----
1489
1516
2107
onlyif mysql # use DIV operator for integer division
query I rowsort label-5766
SELECT col1 + col0 DIV - col2 AS col1 FROM tab1
----
13
26
9
skipif mysql # not compatible
query I rowsort label-5766
SELECT col1 + col0 / - col2 AS col1 FROM tab1
----
13
26
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5767
SELECT ALL CAST( NULL AS SIGNED ) / col1 + col2 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL CAST ( NULL AS INTEGER ) / col1 + col2 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + ( + 93 ) AS col0 FROM tab0 AS cor0
----
-4
2
7
query I rowsort
SELECT DISTINCT + col2 + 22 FROM tab0 cor0
----
104
23
55
query I rowsort
SELECT DISTINCT - col1 * ( col2 + + cor0.col1 * - col0 ) FROM tab1 AS cor0
----
12272
5830
624
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 99 + col1 col2 FROM tab2 AS cor0
----
724
7781
7838
query I rowsort
SELECT DISTINCT - cor0.col2 + 57 * - col2 AS col1 FROM tab0 cor0
----
-1914
-4756
-58
query I rowsort
SELECT + + col2 * col2 - + col2 FROM tab0 AS cor0
----
0
1056
6642
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + + 40 col0 FROM tab2 AS cor0
----
-38
-39
33
query I rowsort
SELECT col0 + - 0 * col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + + col1 + + 24 AS col0 FROM tab2 AS cor0
----
41
55
83
query I rowsort
SELECT ALL - cor0.col0 * + 36 FROM tab0 AS cor0
----
-1260
-3204
-864
query I rowsort
SELECT col0 + col0 * - cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
-1190
-18984
-649433
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5779
SELECT - - col0 + + col1 + - cor0.col1 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5779
SELECT - - col0 + + col1 + - cor0.col1 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + col0 * - 81 FROM tab0
----
-1911
-2834
-7127
query I rowsort
SELECT DISTINCT col0 + col2 * + col2 AS col1 FROM tab2
----
1523
736
754
query I rowsort
SELECT ALL + - cor0.col2 + col2 - 80 AS col1 FROM tab2 AS cor0
----
-80
-80
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 col2 FROM tab2 AS cor0
----
57
57
57
query I rowsort
SELECT DISTINCT + - cor0.col1 + + col1 * 83 AS col0 FROM tab2 AS cor0
----
1394
2542
4838
query I rowsort
SELECT 50 + + 13 FROM tab0
----
63
63
63
query I rowsort
SELECT - 18 FROM tab2, tab1 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de
query I rowsort
SELECT + col1 - - col1 AS col0 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-5788
SELECT col1 DIV - tab2.col0 + ( tab2.col1 ) DIV + col1 AS col1 FROM tab2
----
-3
1
1
skipif mysql # not compatible
query I rowsort label-5788
SELECT col1 / - tab2.col0 + ( tab2.col1 ) / + col1 AS col1 FROM tab2
----
-3
1
1
query I rowsort
SELECT col1 * + col1 + col0 + - 94 AS col1 FROM tab0
----
7326
8276
9350
query I rowsort
SELECT ( col1 * - tab1.col0 + col2 * + col0 ) FROM tab1
----
3008
6640
84
query I rowsort
SELECT DISTINCT - col2 - col2 AS col1 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT DISTINCT - col0 * col2 + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-5793
SELECT + 99 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-33
skipif mysql # not compatible
query I rowsort label-5793
SELECT + 99 / - col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-33
query I rowsort
SELECT + + col1 + - ( + col0 ) * + col1 * ( 62 ) FROM tab0 AS cor0
----
-127882
-210393
-502047
query I rowsort
SELECT DISTINCT + 97 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 col1 FROM tab2, tab1 AS cor0
----
-89
query I rowsort
SELECT DISTINCT + 89 FROM tab0, tab2, tab0 AS cor0, tab0 AS cor1
----
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5798
SELECT DISTINCT ( 16 ) DIV - cor0.col1 FROM tab0, tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5798
SELECT DISTINCT ( 16 ) / - cor0.col1 FROM tab0, tab2 AS cor0
----
0
query I rowsort
SELECT ALL - 53 FROM tab2, tab2 cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5800
SELECT - col1 * + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-5800
SELECT - col1 * + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col1 FROM tab0, tab1 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT 70 + - 88 FROM tab1
----
-18
-18
-18
query I rowsort
SELECT - + col0 + col2 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-131
-2829
-7469
onlyif mysql # use DIV operator for integer division
query I rowsort label-5804
SELECT DISTINCT CAST( 74 AS SIGNED ) DIV + col1 AS col0 FROM tab2 AS cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT CAST ( 74 AS INTEGER ) / + col1 AS col0 FROM tab2 AS cor0
----
1
2
4
query I rowsort
SELECT 39 * - col0 FROM tab1
----
-117
-2496
-3120
query I rowsort
SELECT ALL - 92 * - col1 AS col0 FROM tab1 AS cor0
----
1196
2392
920
query I rowsort
SELECT DISTINCT 15 * - col1 - + 33 AS col0 FROM tab1 AS cor0
----
-183
-228
-423
query I rowsort
SELECT - col0 * + cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT + 97 * col2 FROM tab1 AS cor0
----
5238
5529
9312
query I rowsort
SELECT col1 * col0 * + col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT - cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-5812
SELECT col0 DIV col2 + tab1.col1 * - col1 * - col0 AS col2 FROM tab1
----
13520
2028
6401
skipif mysql # not compatible
query I rowsort label-5812
SELECT col0 / col2 + tab1.col1 * - col1 * - col0 AS col2 FROM tab1
----
13520
2028
6401
query I rowsort
SELECT - 87 * + cor0.col2 + 58 AS col0 FROM tab0 AS cor0
----
-2813
-29
-7076
query I rowsort
SELECT + cor0.col0 * + col0 + - col0 * col1 + col1 FROM tab0 AS cor0
----
-1402
-2073
-87
query I rowsort
SELECT DISTINCT + col1 + ( col1 + + ( + col1 ) ) * + col2 AS col1 FROM tab1 AS cor0
----
1150
2509
2834
query I rowsort
SELECT ( 57 ) - - col2 AS col0 FROM tab0
----
139
58
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5817
SELECT + CAST( NULL AS SIGNED ) * + cor0.col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5817
SELECT + CAST ( NULL AS INTEGER ) * + cor0.col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 62 * - col1 AS col2 FROM tab2 cor0
----
1054
1922
3658
query I rowsort
SELECT DISTINCT 87 * + col1 + col1 AS col1 FROM tab2 AS cor0
----
1496
2728
5192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5820
SELECT ALL - CAST( 12 AS SIGNED ) AS col2 FROM tab0 cor0
----
-12
-12
-12
skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL - CAST ( 12 AS INTEGER ) AS col2 FROM tab0 cor0
----
-12
-12
-12
onlyif mysql # use DIV operator for integer division
query I rowsort label-5821
SELECT + ( col1 ) DIV 91 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5821
SELECT + ( col1 ) / 91 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
onlyif mysql # use DIV operator for integer division
query I rowsort label-5823
SELECT ( - col2 ) * + 76 * + col0 - col0 DIV col2 AS col1 FROM tab0 AS cor0
----
-2695
-554649
-60192
skipif mysql # not compatible
query I rowsort label-5823
SELECT ( - col2 ) * + 76 * + col0 - col0 / col2 AS col1 FROM tab0 AS cor0
----
-2695
-554649
-60192
query I rowsort
SELECT DISTINCT - col2 + col1 * - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT ALL - + ( cor0.col2 ) * col1 * col1 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT ( tab2.col0 ) AS col1 FROM tab2
----
7
78
79
query I rowsort
SELECT ( col0 ) + col0 AS col1 FROM tab2
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 col0 FROM tab2, tab0, tab2 AS cor0
----
27
query I rowsort
SELECT ( - col2 ) * col2 + + col0 AS col2 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT + col0 * + col1 * col2 + ( col2 ) * col1 FROM tab2
----
121186
51680
6696
query I rowsort
SELECT 14 + + 38 AS col2 FROM tab0
----
52
52
52
query I rowsort
SELECT ALL - col2 + col2 * + 99 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
151840
63916
82836
query I rowsort
SELECT DISTINCT - col2 * - ( - 68 ) * col1 FROM tab2 AS cor0
----
-104312
-43928
-56916
query I rowsort
SELECT DISTINCT - - col0 - col2 FROM tab1 cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5835
SELECT ALL + col2 DIV 75 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL + col2 / 75 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT + cor0.col1 + + cor0.col1 FROM tab2 AS cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 + 34 col0 FROM tab0 AS cor0
----
-2804
-63
-7428
query I rowsort
SELECT col1 * + ( + col2 ) AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - col2 * col2 + + ( + col2 * 49 ) FROM tab0 AS cor0
----
-2706
48
528
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5840
SELECT - col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5840
SELECT - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * + col2 + + col2 FROM tab0 AS cor0
----
1122
2
6806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 * col2 col2 FROM tab0
----
1452
3608
44
query I rowsort
SELECT - - col1 + col2 * + 27 * - col1 FROM tab2 AS cor0
----
-17425
-22568
-41359
query I rowsort
SELECT - cor0.col1 * ( - col0 + col2 ) AS col1 FROM tab1 AS cor0
----
-1326
-208
70
query I rowsort
SELECT col1 + col2 * ( + col1 * - tab0.col0 ) FROM tab0
----
-3298
-664027
-68026
query I rowsort
SELECT ALL - col2 * - col2 + - col0 * tab2.col1 AS col2 FROM tab2
----
-3926
101
512
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5847
SELECT DISTINCT - CAST( col1 AS SIGNED ) + - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT 27 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT - col2 * + 45 FROM tab0
----
-1485
-3690
-45
query I rowsort
SELECT ALL col0 + + col2 * - col2 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT + 68 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT ALL 95 + + col2 FROM tab2 AS cor0
----
121
122
133
query I rowsort
SELECT DISTINCT col0 * col1 - col1 AS col0 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT - 20 + - col2 AS col0 FROM tab1 AS cor0
----
-116
-74
-77
query I rowsort
SELECT DISTINCT 59 * + cor1.col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
413
4602
4661
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2
----
3645 values hashing to 7e572cf6967c395d92dce41dcb35c4db
query I rowsort
SELECT 81 + 44 * + col0 FROM tab1 AS cor0
----
213
2897
3601
onlyif mysql # use DIV operator for integer division
query I rowsort label-5858
SELECT DISTINCT + - 76 DIV col1 FROM tab2 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT + - 76 / col1 FROM tab2 AS cor0
----
-1
-2
-4
query I rowsort
SELECT ALL - 34 * col1 AS col2 FROM tab1 AS cor0
----
-340
-442
-884
query I rowsort
SELECT + + 84 * - col1 AS col0 FROM tab2 AS cor0
----
-1428
-2604
-4956
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5861
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 6 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 6 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col0 + 22 AS col0 FROM tab0 cor0
----
111
46
57
query I rowsort
SELECT + + ( 36 ) FROM tab2 AS cor0
----
36
36
36
query I rowsort
SELECT - col0 + 34 FROM tab2 cor0
----
-44
-45
27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5865
SELECT - CAST( 33 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
-231
-2574
-2607
skipif mysql # not compatible
query I rowsort label-5865
SELECT - CAST ( 33 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
-231
-2574
-2607
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * col0 + + col0 * col0 + - col1 * - col0 col0 FROM tab1 AS cor0
----
-240
-75
1088
query I rowsort
SELECT DISTINCT - - 5 FROM tab1 AS cor0
----
5
query I rowsort
SELECT DISTINCT + + col0 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5869
SELECT ALL - CAST( + col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT + 50 * + col0 FROM tab1 AS cor0
----
150
3200
4000
query I rowsort
SELECT ALL + + 36 FROM tab1 AS cor0
----
36
36
36
query I rowsort
SELECT ALL col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb
onlyif mysql # use DIV operator for integer division
query I rowsort label-5874
SELECT ALL col0 DIV col0 + col2 * tab0.col2 + col2 FROM tab0
----
1123
3
6807
skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL col0 / col0 + col2 * tab0.col2 + col2 FROM tab0
----
1123
3
6807
query I rowsort
SELECT ALL 55 * + 64 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ecf004e68a0387b9da74fc8334332f6f
query I rowsort
SELECT ALL + 87 * - col1 AS col1 FROM tab1 AS cor0
----
-1131
-2262
-870
query I rowsort
SELECT ALL - col2 + - col1 * 83 + + cor0.col1 FROM tab0 AS cor0
----
-7085
-7544
-7955
query I rowsort
SELECT ALL ( col1 ) * - ( cor0.col0 ) + col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL - - 57 * - col2 AS col1 FROM tab0 AS cor0
----
-1881
-4674
-57
query I rowsort
SELECT + - col2 + col0 * 90 AS col0 FROM tab0 AS cor0
----
2127
3149
7928
onlyif mysql # use DIV operator for integer division
query I rowsort label-5881
SELECT - col0 DIV - col2 + + ( - 20 ) - cor0.col2 DIV col0 AS col2 FROM tab0 AS cor0
----
-19
-21
15
skipif mysql # not compatible
query I rowsort label-5881
SELECT - col0 / - col2 + + ( - 20 ) - cor0.col2 / col0 AS col2 FROM tab0 AS cor0
----
-19
-21
15
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5882
SELECT - col2 * col1 + CAST( col1 * + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1326
-208
70
skipif mysql # not compatible
query I rowsort label-5882
SELECT - col2 * col1 + CAST ( col1 * + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1326
-208
70
query I rowsort
SELECT DISTINCT + - col2 + - col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-5884
SELECT - + cor0.col2 DIV col1 + - cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-5884
SELECT - + cor0.col2 / col1 + - cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * ( + col1 ) col0 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + col1 * + col2 col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL + cor0.col2 + - 2 FROM tab1 AS cor0
----
52
55
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * ( 70 ) + col1 col0 FROM tab0 AS cor0
----
-5934
-6279
-6693
query I rowsort
SELECT DISTINCT + col1 + col1 + + col2 * col2 FROM tab1 AS cor0
----
2968
3269
9242
query I rowsort
SELECT DISTINCT - cor0.col1 + + 10 * + col2 FROM tab0 AS cor0
----
-87
244
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5891
SELECT col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5891
SELECT col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5892
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5892
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5893
SELECT ALL + 20 - + col1 * CAST( col2 AS SIGNED ) FROM tab1
----
-1228
-1384
-550
skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL + 20 - + col1 * CAST ( col2 AS INTEGER ) FROM tab1
----
-1228
-1384
-550
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5894
SELECT col0 / + CAST( NULL AS SIGNED ) + + col0 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5894
SELECT col0 / + CAST ( NULL AS INTEGER ) + + col0 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col2 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * + CAST ( 41 AS REAL ) + + col1 AS col1 FROM tab1 AS cor0
----
1092
420
546
query I rowsort
SELECT - - col2 + - col0 * ( - col1 ) FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + col2 * 0 + + col2 AS col1 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col2 col2 FROM tab2, tab1 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT + tab2.col0 * col2 * col0 + - tab2.col1 FROM tab2
----
1292
158125
237141
query I rowsort
SELECT ALL - col2 * + cor0.col1 * - cor0.col1 FROM tab1 AS cor0
----
16224
36504
5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 col0 FROM tab0 AS cor0
----
-75
-75
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 + - cor0.col1 * cor0.col0 col2 FROM tab2 AS cor0
----
-1293
-167
-4552
query I rowsort
SELECT 89 * - col2 FROM tab0 cor0
----
-2937
-7298
-89
query I rowsort
SELECT + 12 * 69 AS col1 FROM tab0 AS cor0
----
828
828
828
query I rowsort
SELECT DISTINCT - + 78 + - 11 * + col1 FROM tab2 AS cor0
----
-265
-419
-727
query I rowsort
SELECT - - ( + 34 ) * + cor0.col1 AS col0 FROM tab1 AS cor0
----
340
442
884
query I rowsort
SELECT ALL col0 * 36 AS col1 FROM tab0 AS cor0
----
1260
3204
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-5909
SELECT DISTINCT + ( col0 ) DIV col2 FROM tab0 cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT + ( col0 ) / col2 FROM tab0 cor0
----
0
1
35
query I rowsort
SELECT ALL + ( - col2 ) * col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-5911
SELECT 5 DIV cor0.col1 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5911
SELECT 5 / cor0.col1 FROM tab2 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5912
SELECT DISTINCT + - CAST( col2 AS SIGNED ) * - col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT + - CAST ( col2 AS INTEGER ) * - col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + 92 * + 83 FROM tab0 AS cor0
----
7636
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 * col2 + + col0 col1 FROM tab0 AS cor0
----
2004
5009
95
query I rowsort
SELECT ALL - 95 + col1 * col2 FROM tab2 AS cor0
----
1439
551
742
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 * col1 col1 FROM tab2 AS cor0
----
-1564
-2852
-5428
query I rowsort
SELECT - - 97 FROM tab0 cor0
----
97
97
97
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + - col1 + - col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT + - col1 * col1 + + col2 FROM tab2 AS cor0
----
-251
-3455
-934
onlyif mysql # use DIV operator for integer division
query I rowsort label-5921
SELECT DISTINCT - col1 + col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT - col1 + col1 / + col1 AS col2 FROM tab2 AS cor0
----
-16
-30
-58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5922
SELECT col2 * CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5922
SELECT col2 * CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col0 + - col2 * + 67 FROM tab0 AS cor0
----
-2187
-32
-5405
query I rowsort
SELECT ALL + col1 * 45 AS col2 FROM tab2 AS cor0
----
1395
2655
765
query I rowsort
SELECT + col1 * 30 + - col1 FROM tab2 AS cor0
----
1711
493
899
query I rowsort
SELECT ALL col1 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + col0 + - col0 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * + col2 + col2 AS col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT + + cor0.col0 * + col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + + ( + col2 ) * + col1 + + col0 AS col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT + cor0.col2 * 47 FROM tab1 AS cor0
----
2538
2679
4512
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 68 col0 FROM tab0 AS cor0
----
68
68
68
query I rowsort
SELECT col2 + 57 AS col1 FROM tab2
----
83
84
95
query I rowsort
SELECT ALL 61 * 70 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to be016dacecb35922a28e2772c719a9cd
query I rowsort
SELECT DISTINCT - ( + cor1.col1 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-10
-13
-26
query I rowsort
SELECT cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - 11 + col1 AS col2 FROM tab2 AS cor0
----
20
48
6
query I rowsort
SELECT DISTINCT + ( col0 * + col2 + + col0 ) AS col1 FROM tab1
----
165
3712
7760
query I rowsort
SELECT DISTINCT + + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT 77 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2541
6314
77
query I rowsort
SELECT DISTINCT col2 * + tab2.col0 AS col1 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5943
SELECT col2 + + ( col2 ) DIV col0 AS col2 FROM tab2
----
26
30
38
skipif mysql # not compatible
query I rowsort label-5943
SELECT col2 + + ( col2 ) / col0 AS col2 FROM tab2
----
26
30
38
query I rowsort
SELECT DISTINCT ( 26 * + col2 + tab0.col1 ) FROM tab0
----
123
2223
944
query I rowsort
SELECT DISTINCT + 75 AS col1 FROM tab1, tab1 AS cor0
----
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5946
SELECT ALL - CAST( + col0 AS SIGNED ) FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-5946
SELECT ALL - CAST ( + col0 AS INTEGER ) FROM tab0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 + 22 col2 FROM tab1
----
122
191
698
query I rowsort
SELECT ALL 58 + col2 + - ( + tab1.col2 ) * col2 * + col1 FROM tab1
----
-119654
-32375
-75704
query I rowsort
SELECT col1 * 10 FROM tab1 AS cor0
----
100
130
260
onlyif mysql # use DIV operator for integer division
query I rowsort label-5950
SELECT tab0.col2 DIV col0 AS col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5950
SELECT tab0.col2 / col0 AS col0 FROM tab0
----
0
0
1
query I rowsort
SELECT col2 * + col2 * 16 AS col1 FROM tab1
----
147456
46656
51984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5952
SELECT DISTINCT - col2 - + CAST( NULL AS SIGNED ) * + ( + col0 ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5952
SELECT DISTINCT - col2 - + CAST ( NULL AS INTEGER ) * + ( + col0 ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - tab2.col1 - 77 AS col0 FROM tab2, tab0 AS cor0
----
-108
-136
-94
query I rowsort
SELECT + col2 + + cor0.col0 * col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT - cor0.col1 + 69 AS col0 FROM tab1 AS cor0
----
43
56
59
query I rowsort
SELECT col1 + - 50 FROM tab1 AS cor0
----
-24
-37
-40
query I rowsort
SELECT cor0.col1 * ( 55 ) + - col2 * - col2 AS col1 FROM tab1 AS cor0
----
3799
4346
9931
query I rowsort
SELECT 46 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5959
SELECT ALL - col2 + col0 * CAST( NULL AS SIGNED ) + + col2 * + col0 * - col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL - col2 + col0 * CAST ( NULL AS INTEGER ) + + col2 * + col0 * - col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 + + col2 col1 FROM tab1
----
102
141
99
query I rowsort
SELECT DISTINCT + col1 * col2 + col0 * - col0 + - col1 AS col0 FROM tab0 AS cor0
----
-1225
-550
2176
query I rowsort
SELECT + col2 * - col0 + col1 * col1 AS col0 FROM tab1 AS cor0
----
-3548
-7511
514
query I rowsort
SELECT ALL - cor0.col0 * - col0 * col2 AS col1 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT + col0 + col2 + + 31 FROM tab2 AS cor0
----
135
148
65
query I rowsort
SELECT col1 + ( - col2 ) FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + col1 * + 20 FROM tab0 AS cor0
----
1720
1820
1940
query I rowsort
SELECT + + col1 + 24 * col1 FROM tab0 AS cor0
----
2150
2275
2425
query I rowsort
SELECT DISTINCT cor0.col1 * + 53 AS col2 FROM tab1 AS cor0
----
1378
530
689
query I rowsort
SELECT - + col1 * 22 FROM tab0 AS cor0
----
-1892
-2002
-2134
query I rowsort
SELECT DISTINCT col2 * ( col0 ) AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT cor0.col2 * - 22 FROM tab0 AS cor0
----
-1804
-22
-726
query I rowsort
SELECT ALL + 28 AS col2 FROM tab0
----
28
28
28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5973
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5973
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-5974
SELECT ALL - + cor0.col1 DIV cor0.col2 + - cor0.col1 FROM tab0 cor0
----
-194
-88
-92
skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL - + cor0.col1 / cor0.col2 + - cor0.col1 FROM tab0 cor0
----
-194
-88
-92
onlyif mysql # use DIV operator for integer division
query I rowsort label-5975
SELECT 21 + col0 DIV - col0 FROM tab2 cor0
----
20
20
20
skipif mysql # not compatible
query I rowsort label-5975
SELECT 21 + col0 / - col0 FROM tab2 cor0
----
20
20
20
query I rowsort
SELECT + 32 + + ( - col2 ) * 16 FROM tab0 AS cor0
----
-1280
-496
16
query I rowsort
SELECT ( ( - col2 ) ) * 91 FROM tab2 AS cor0
----
-2366
-2457
-3458
query I rowsort
SELECT + + 41 FROM tab1 AS cor0
----
41
41
41
query I rowsort
SELECT - + cor0.col1 + + col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT - ( - col0 ) - col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - ( + 63 ) + - col0 AS col0 FROM tab0 AS cor0
----
-152
-87
-98
query I rowsort
SELECT ALL - - col1 + - col1 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + 9 - col2 * col0 FROM tab2 AS cor0
----
-180
-2019
-2993
query I rowsort
SELECT ALL - 56 * - 66 AS col1 FROM tab2 cor0
----
3696
3696
3696
query I rowsort
SELECT ALL - - 52 * col2 AS col2 FROM tab1 AS cor0
----
2808
2964
4992
query I rowsort
SELECT + col2 * cor0.col0 + - col2 + col1 FROM tab2 AS cor0
----
193
2061
2981
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5987
SELECT ALL + CAST( NULL AS SIGNED ) - + col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL + CAST ( NULL AS INTEGER ) - + col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - + 76 + - col0 FROM tab1 AS cor0
----
-140
-156
-79
query I rowsort
SELECT cor0.col2 * - col0 - col1 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-5990
SELECT DISTINCT + col1 + col1 DIV col0 FROM tab1 AS cor0
----
10
13
34
skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT + col1 + col1 / col0 FROM tab1 AS cor0
----
10
13
34
query I rowsort
SELECT ALL + col0 - cor0.col2 AS col0 FROM tab1 cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT - 23 AS col2 FROM tab1 cor0
----
-23
query I rowsort
SELECT - - col1 - - cor0.col2 * ( col1 ) FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL 84 + + col1 FROM tab1 AS cor0
----
110
94
97
query I rowsort
SELECT ALL - - col2 + - col2 * ( - col1 + + col0 ) FROM tab1 AS cor0
----
-3021
-6336
1296
onlyif mysql # use DIV operator for integer division
query I rowsort label-5997
SELECT DISTINCT + col2 + - col1 * col2 DIV col2 FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT + col2 + - col1 * col2 / col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + ( + col0 ) * tab2.col2 + + 53 - col0 AS col1 FROM tab2
----
2003
235
2976
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5999
SELECT - CAST( NULL AS SIGNED ) + - tab2.col1 * col1 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5999
SELECT - CAST ( NULL AS INTEGER ) + - tab2.col1 * col1 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - 47 FROM tab2, tab0, tab1 cor0
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5
query I rowsort
SELECT DISTINCT ( col0 ) - - col0 AS col0 FROM tab2
----
14
156
158
query I rowsort
SELECT tab2.col1 + tab2.col2 - - col2 FROM tab2
----
111
85
93
query I rowsort
SELECT 82 * - col2 AS col2 FROM tab0
----
-2706
-6724
-82
query I rowsort
SELECT ALL + 51 - tab0.col1 AS col2 FROM tab0
----
-35
-40
-46
query I rowsort
SELECT DISTINCT - col2 * + col2 - col2 FROM tab2
----
-1482
-702
-756
onlyif mysql # use DIV operator for integer division
query I rowsort label-6006
SELECT DISTINCT tab0.col0 + + col1 DIV col0 FROM tab0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT tab0.col0 + + col1 / col0 FROM tab0
----
27
37
90
query I rowsort
SELECT DISTINCT + tab1.col2 + - col2 * - col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT DISTINCT - 27 + col2 * col1 FROM tab0
----
2811
70
7435
query I rowsort
SELECT ALL 95 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - cor0.col1 ) * - col1 col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT col0 - + cor0.col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 col0 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + - 25 * col1 FROM tab2 cor0
----
-1475
-425
-775
query I rowsort
SELECT DISTINCT cor0.col1 * - col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL - col2 + + col1 * col0 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT - 72 AS col2 FROM tab2 AS cor0
----
-72
query I rowsort
SELECT ALL + - 76 + - col1 AS col0 FROM tab0 AS cor0
----
-162
-167
-173
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2, tab1 cor3
----
3645 values hashing to 77ce60d8d42550cc1b5a38c7d1dc5d13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6019
SELECT col1 - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6019
SELECT col1 - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + + cor0.col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - col1 + - col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 53ea9df66efbebef5063fb0b15c25baa
query I rowsort
SELECT 76 FROM tab1, tab0 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT ALL + 99 AS col1 FROM tab0 AS cor0
----
99
99
99
query I rowsort
SELECT + col1 + + col1 + tab1.col1 * 8 AS col0 FROM tab1
----
100
130
260
query I rowsort
SELECT col2 * + col2 * - col1 AS col2 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT ( col2 * col0 ) + col1 * ( + col1 ) AS col1 FROM tab0
----
15579
8188
9444
query I rowsort
SELECT ALL 88 * - col1 * col1 FROM tab0 cor0
----
-650848
-728728
-827992
query I rowsort
SELECT ALL - + 84 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-2
-51
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6030
SELECT DISTINCT - col1 DIV col0 + cor0.col1 + + col1 * - 67 FROM tab1 AS cor0
----
-1724
-660
-858
skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT - col1 / col0 + cor0.col1 + + col1 * - 67 FROM tab1 AS cor0
----
-1724
-660
-858
query I rowsort
SELECT DISTINCT - + col0 * 43 AS col1 FROM tab1 AS cor0
----
-129
-2752
-3440
query I rowsort
SELECT ( - col1 ) * + col0 + + col2 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + tab0.col2 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL 64 FROM tab0, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT ALL - 53 * + 11 FROM tab0
----
-583
-583
-583
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 + + col0 col1 FROM tab2 cor0
----
-1264
-210
-4524
query I rowsort
SELECT - 34 AS col0 FROM tab0 AS cor0
----
-34
-34
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6038
SELECT + CAST( NULL AS SIGNED ) * col2 + col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6038
SELECT + CAST ( NULL AS INTEGER ) * col2 + col2 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6039
SELECT DISTINCT col2 + col0 + + col1 DIV - cor0.col0 AS col1 FROM tab0 AS cor0
----
170
34
54
skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT col2 + col0 + + col1 / - cor0.col0 AS col1 FROM tab0 AS cor0
----
170
34
54
query I rowsort
SELECT ALL + ( + col1 ) - - col2 * - col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL 98 * 35 FROM tab0 AS cor0
----
3430
3430
3430
query I rowsort
SELECT DISTINCT - + 64 * - col2 FROM tab1 AS cor0
----
3456
3648
6144
onlyif mysql # use DIV operator for integer division
query I rowsort label-6043
SELECT + col0 + col1 DIV cor0.col2 FROM tab0 cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-6043
SELECT + col0 + col1 / cor0.col2 FROM tab0 cor0
----
132
26
90
query I rowsort
SELECT - - 45 * + col0 FROM tab2 AS cor0
----
315
3510
3555
query I rowsort
SELECT ALL cor0.col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 * - col1 col1 FROM tab1 AS cor0
----
-1222
-2444
-940
query I rowsort
SELECT DISTINCT + col0 * col0 + cor0.col1 * + col0 + col1 FROM tab1 AS cor0
----
113
4746
7453
onlyif mysql # use DIV operator for integer division
query I rowsort label-6048
SELECT ALL - col1 + + col2 * col1 DIV col0 AS col0 FROM tab2 AS cor0
----
-40
-9
88
skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL - col1 + + col2 * col1 / col0 AS col0 FROM tab2 AS cor0
----
-40
-9
88
query I rowsort
SELECT ALL + cor0.col0 * - 73 + cor0.col0 FROM tab1 AS cor0
----
-216
-4608
-5760
onlyif mysql # use DIV operator for integer division
query I rowsort label-6050
SELECT + col0 DIV + 68 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6050
SELECT + col0 / + 68 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT - col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - + col0 + + ( 9 ) AS col0 FROM tab2 AS cor0
----
-69
-70
2
query I rowsort
SELECT cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 41 col1 FROM tab1 AS cor0
----
2214
2337
3936
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( col2 ) col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - - cor0.col1 * col1 + - 25 * + col2 AS col2 FROM tab0 AS cor0
----
6231
6571
9384
query I rowsort
SELECT col0 * 45 + + col2 * col0 * col1 AS col0 FROM tab1 AS cor0
----
103440
39360
4347
onlyif mysql # use DIV operator for integer division
query I rowsort label-6058
SELECT - col1 DIV cor0.col1 + col1 FROM tab0 cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-6058
SELECT - col1 / cor0.col1 + col1 FROM tab0 cor0
----
85
90
96
query I rowsort
SELECT + - col1 * 14 + + col0 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-483
-6479
-6910
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6060
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT - - CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL
query I rowsort
SELECT - 72 AS col2 FROM tab1 cor0
----
-72
-72
-72
query I rowsort
SELECT + + col2 + 64 * + col2 FROM tab0 AS cor0
----
2145
5330
65
query I rowsort
SELECT - 36 FROM tab1, tab1 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6064
SELECT ALL - col2 DIV - ( col1 ) FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL - col2 / - ( col1 ) FROM tab2
----
0
0
2
query I rowsort
SELECT + + cor0.col2 * col2 + col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ALL - cor0.col0 * - 96 FROM tab1 AS cor0
----
288
6144
7680
query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6068
SELECT DISTINCT - - 33 DIV - col1 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT - - 33 / - col1 FROM tab0 cor0
----
0
query I rowsort
SELECT + col2 + - col0 + - col0 AS col2 FROM tab1 cor0
----
-64
-71
48
query I rowsort
SELECT ALL + - 19 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
query I rowsort
SELECT - 43 * + col0 - - 40 FROM tab1 cor0
----
-2712
-3400
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6072
SELECT + - ( col0 ) DIV + col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-6072
SELECT + - ( col0 ) / + col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT ALL 92 + col2 + + 93 FROM tab2
----
211
212
223
query I rowsort
SELECT + cor0.col0 + - col1 * 39 AS col0 FROM tab1 AS cor0
----
-1011
-326
-427
query I rowsort
SELECT + col1 * + col1 + + ( col2 * + cor0.col1 ) FROM tab1 AS cor0
----
1417
2080
670
onlyif mysql # use DIV operator for integer division
query I rowsort label-6076
SELECT DISTINCT - col0 + 27 DIV 8 AS col1 FROM tab2 AS cor0
----
-4
-75
-76
skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT - col0 + 27 / 8 AS col1 FROM tab2 AS cor0
----
-4
-75
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + 13 AS REAL ) col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
13
query I rowsort
SELECT ALL - 85 * col0 FROM tab0
----
-2040
-2975
-7565
query I rowsort
SELECT DISTINCT 12 AS col1 FROM tab2
----
12
query I rowsort
SELECT tab2.col2 * - 67 * col0 AS col0 FROM tab2
----
-12663
-135876
-201134
query I rowsort
SELECT ALL ( col1 ) * - tab2.col1 - + 53 AS col1 FROM tab2
----
-1014
-342
-3534
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + col1 * - 72 col1 FROM tab1 AS cor0
----
-1818
-663
-840
query I rowsort
SELECT DISTINCT col1 * col0 * + 35 + col1 FROM tab1
----
22410
2756
36413
query I rowsort
SELECT - - 10 AS col0 FROM tab2 AS cor0
----
10
10
10
query I rowsort
SELECT + 73 + + cor0.col0 * - 41 * + cor0.col1 FROM tab1 AS cor0
----
-26167
-3125
-42567
query I rowsort
SELECT ALL - 81 AS col2 FROM tab2 cor0
----
-81
-81
-81
query I rowsort
SELECT 85 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1333
1489
655
query I rowsort
SELECT DISTINCT - col0 * - col1 + 33 FROM tab0 AS cor0
----
2097
3428
8132
query I rowsort
SELECT ALL col1 * ( 31 ) * col2 FROM tab1
----
17670
38688
43524
query I rowsort
SELECT - cor0.col1 * col2 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - cor0.col1 * col0 col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT + 8 + cor0.col2 + col1 AS col2 FROM tab2 AS cor0
----
63
66
93
query I rowsort
SELECT ALL - 77 + + 11 AS col2 FROM tab0 AS cor0
----
-66
-66
-66
query I rowsort
SELECT + + 28 - col1 FROM tab2 AS cor0
----
-3
-31
11
query I rowsort
SELECT + - cor0.col1 * col1 + + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL + - ( + 2 ) FROM tab2 AS cor0
----
-2
-2
-2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6097
SELECT DISTINCT CAST( - ( col1 ) AS SIGNED ) * col1 * col0 AS col2 FROM tab2 cor0
----
-22831
-271518
-6727
skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT CAST ( - ( col1 ) AS INTEGER ) * col1 * col0 AS col2 FROM tab2 cor0
----
-22831
-271518
-6727
query I rowsort
SELECT - + cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - - 47 FROM tab1 cor0
----
47
47
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-6100
SELECT - + col1 * - col0 - - col2 DIV + col0 FROM tab2 AS cor0
----
1343
220
4602
skipif mysql # not compatible
query I rowsort label-6100
SELECT - + col1 * - col0 - - col2 / + col0 FROM tab2 AS cor0
----
1343
220
4602
query I rowsort
SELECT + 29 + col1 AS col0 FROM tab2 AS cor0
----
46
60
88
query I rowsort
SELECT ALL - cor0.col2 * - col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - 90 * + col0 + + col0 AS col2 FROM tab0 cor0
----
-2136
-3115
-7921
query I rowsort
SELECT + + 44 FROM tab2 AS cor0
----
44
44
44
query I rowsort
SELECT ALL + 43 * - cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
-24768
-340603
-52675
query I rowsort
SELECT DISTINCT 25 * + col1 FROM tab1 AS cor0
----
250
325
650
query I rowsort
SELECT + cor0.col2 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6108
SELECT - 65 DIV + col1 FROM tab2 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-6108
SELECT - 65 / + col1 FROM tab2 AS cor0
----
-1
-2
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-6109
SELECT DISTINCT - + 53 DIV + 70 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT - + 53 / + 70 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6110
SELECT ALL CAST( col1 AS SIGNED ) + + col2 AS col2 FROM tab1
----
109
67
80
skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL CAST ( col1 AS INTEGER ) + + col2 AS col2 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT 19 * col1 AS col1 FROM tab0
----
1634
1729
1843
query I rowsort
SELECT ALL + cor0.col2 * ( - col1 ) + - col0 * col0 AS col2 FROM tab2 AS cor0
----
-6887
-7618
-886
query I rowsort
SELECT DISTINCT + ( col1 ) + + col2 * + 91 FROM tab0 AS cor0
----
188
3089
7553
query I rowsort
SELECT col0 * 30 AS col1 FROM tab1 AS cor0
----
1920
2400
90
query I rowsort
SELECT ALL + ( + col2 ) * + col0 + - col1 * - col0 + + col2 FROM tab0 AS cor0
----
15479
2889
3431
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6116
SELECT + + ( cor0.col0 ) / CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6116
SELECT + + ( cor0.col0 ) / CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + col1 - + 29 FROM tab1 AS cor0
----
-6
-83
-96
query I rowsort
SELECT DISTINCT - cor0.col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + + cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + - col1 + cor0.col2 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT ALL - 11 * col1 * - col2 AS col0 FROM tab1 AS cor0
----
13728
15444
6270
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT 42 * ( - tab2.col2 ) + CAST ( + 98 AS REAL ) * + col1 + col0 * 1 AS col0 FROM tab2
----
149
1911
4768
query I rowsort
SELECT - col2 + - 35 + col1 FROM tab2
----
-2
-31
-56
query I rowsort
SELECT ALL ( + col1 ) + + col0 FROM tab0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6125
SELECT CAST( col2 AS SIGNED ) + + col0 + col0 FROM tab1
----
185
256
60
skipif mysql # not compatible
query I rowsort label-6125
SELECT CAST ( col2 AS INTEGER ) + + col0 + col0 FROM tab1
----
185
256
60
query I rowsort
SELECT + tab2.col0 - - 95 FROM tab2
----
102
173
174
query I rowsort
SELECT ALL col2 * + 6 FROM tab0 cor0
----
198
492
6
query I rowsort
SELECT DISTINCT - + col0 + ( - col2 ) * col0 AS col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT col1 + ( - col2 ) FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6130
SELECT DISTINCT + - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT + - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT col1 * + 13 FROM tab0 AS cor0
----
1118
1183
1261
query I rowsort
SELECT ALL - col0 * - col1 + cor0.col0 * col0 * + 1 FROM tab1 AS cor0
----
4736
7440
87
query I rowsort
SELECT + 72 + + col1 FROM tab1
----
82
85
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6134
SELECT ALL col2 DIV tab0.col1 + - col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-6134
SELECT ALL col2 / tab0.col1 + - col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT col0 * - ( - col0 ) + col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT ALL col2 * - 47 AS col1 FROM tab0 AS cor0
----
-1551
-3854
-47
query I rowsort
SELECT ALL - col2 + 93 AS col1 FROM tab2 AS cor0
----
55
66
67
query I rowsort
SELECT ALL col1 * + col1 + col0 AS col2 FROM tab2 cor0
----
3559
368
968
query I rowsort
SELECT DISTINCT - - col0 * + cor0.col1 + - cor0.col1 * col1 FROM tab1 cor0
----
-598
540
871
query I rowsort
SELECT + tab1.col1 + + col2 * col0 * col0 AS col0 FROM tab1
----
233482
512
614413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col1 col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + col1 + 53 FROM tab0 AS cor0
----
139
144
150
onlyif mysql # use DIV operator for integer division
query I rowsort label-6143
SELECT ALL col2 + col0 DIV - 89 AS col1 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL col2 + col0 / - 89 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - - col0 - - col0 FROM tab2 cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * cor0.col2 + col2 col0 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6146
SELECT + col2 + - cor0.col2 * CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2871
7544
98
skipif mysql # not compatible
query I rowsort label-6146
SELECT + col2 + - cor0.col2 * CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + cor0.col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + 46 FROM tab1 AS cor0
----
46
query I rowsort
SELECT ALL - col2 * - col0 + + 41 AS col2 FROM tab0 AS cor0
----
7339
76
833
query I rowsort
SELECT ALL + - col2 + - col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT + col2 + col1 * col2 + col1 AS col2 FROM tab2
----
1619
701
895
query I rowsort
SELECT col1 + tab2.col0 + col2 AS col1 FROM tab2
----
134
163
65
query I rowsort
SELECT ALL - 76 + 49 AS col2 FROM tab2
----
-27
-27
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) + + col1 col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - ( col2 ) * col0 + + ( - col1 ) * - col0 FROM tab0 AS cor0
----
1272
3360
801
query I rowsort
SELECT col1 + + tab2.col2 AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL + - cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT ALL + ( cor1.col1 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT - ( + col2 * col1 ) FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - - cor0.col0 * col2 + 25 AS col0 FROM tab2 AS cor0
----
2053
214
3027
query I rowsort
SELECT + col0 * + col2 * - col0 + col2 FROM tab2 AS cor0
----
-1296
-158158
-237120
query I rowsort
SELECT DISTINCT - 41 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 AS cor2, tab0 AS cor3
----
-41
query I rowsort
SELECT ( 29 ) * col1 FROM tab1 AS cor0
----
290
377
754
query I rowsort
SELECT tab2.col2 + tab2.col0 * + 22 FROM tab2
----
1742
1776
181
query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT - + 82 + col1 AS col1 FROM tab1 AS cor0
----
-56
-69
-72
query I rowsort
SELECT DISTINCT + 31 + col0 * col2 FROM tab2 cor0
----
2059
220
3033
query I rowsort
SELECT ALL col0 * - 64 + - col1 AS col1 FROM tab2 AS cor0
----
-479
-5051
-5073
query I rowsort
SELECT - cor0.col0 + col2 AS col1 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT ALL 97 * col1 * col1 AS col0 FROM tab1
----
16393
65572
9700
query I rowsort
SELECT col2 * + col1 - - col2 AS col2 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-6172
SELECT - ( col0 ) DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-6172
SELECT - ( col0 ) / col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT - ( 79 ) FROM tab1 AS cor0
----
-79
-79
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6174
SELECT col1 * tab2.col2 DIV ( 13 ) AS col1 FROM tab2
----
118
49
64
skipif mysql # not compatible
query I rowsort label-6174
SELECT col1 * tab2.col2 / ( 13 ) AS col1 FROM tab2
----
118
49
64
query I rowsort
SELECT + ( - col0 ) - - 54 FROM tab1
----
-10
-26
51
query I rowsort
SELECT ALL + tab1.col0 * - col2 - 62 AS col2 FROM tab1
----
-224
-3710
-7742
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 + + col1 col1 FROM tab0
----
143
148
154
query I rowsort
SELECT 84 + - cor0.col0 * + col0 FROM tab1 AS cor0
----
-4012
-6316
75
query I rowsort
SELECT - col0 + 6 FROM tab0 AS cor0
----
-18
-29
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6180
SELECT ALL + - col0 DIV col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL + - col0 / col1 FROM tab2 AS cor0
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * ( col0 ) col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT - 34 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7
query I rowsort
SELECT col2 + 7 * ( col2 ) FROM tab0 AS cor0
----
264
656
8
query I rowsort
SELECT - ( + 83 ) * cor0.col0 FROM tab1 AS cor0
----
-249
-5312
-6640
query I rowsort
SELECT - col0 + 19 AS col0 FROM tab1 AS cor0
----
-45
-61
16
query I rowsort
SELECT col1 + + col0 * col1 * - col0 FROM tab0
----
-118728
-49450
-720720
query I rowsort
SELECT - 37 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
query I rowsort
SELECT + ( - 27 ) FROM tab1 AS cor0
----
-27
-27
-27
query I rowsort
SELECT col0 + + col2 * - col1 * - col2 FROM tab1
----
119888
32554
75819
onlyif mysql # use DIV operator for integer division
query I rowsort label-6190
SELECT + tab1.col1 DIV + col0 + col0 * col0 * - 49 AS col2 FROM tab1
----
-200704
-313600
-433
skipif mysql # not compatible
query I rowsort label-6190
SELECT + tab1.col1 / + col0 + col0 * col0 * - 49 AS col2 FROM tab1
----
-200704
-313600
-433
query I rowsort
SELECT DISTINCT + tab2.col1 AS col0 FROM tab2, tab0 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-6192
SELECT DISTINCT col0 DIV - 27 AS col0 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-6192
SELECT DISTINCT col0 / - 27 AS col0 FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT + col1 * 73 AS col2 FROM tab2 AS cor0
----
1241
2263
4307
query I rowsort
SELECT ALL col2 + cor0.col0 AS col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT 72 AS col0 FROM tab0, tab0 cor0, tab1 AS cor1
----
72
query I rowsort
SELECT col1 + - 90 FROM tab0 AS cor0
----
-4
1
7
query I rowsort
SELECT ALL + col1 * - ( ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + col0 + + 25 + + col2 AS col1 FROM tab0 AS cor0
----
196
61
82
query I rowsort
SELECT - col1 - col0 AS col2 FROM tab2
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort
SELECT col0 - + CAST ( col0 AS REAL ) * col1 AS col2 FROM tab0
----
-2040
-3360
-8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-6201
SELECT - col1 * col2 + 80 DIV + col0 AS col1 FROM tab0
----
-2835
-7462
-95
skipif mysql # not compatible
query I rowsort label-6201
SELECT - col1 * col2 + 80 / + col0 AS col1 FROM tab0
----
-2835
-7462
-95
query I rowsort
SELECT DISTINCT - col0 * + col0 + - col1 FROM tab1
----
-35
-4106
-6413
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6203
SELECT DISTINCT CAST( 66 AS SIGNED ) FROM tab0, tab0 AS cor0
----
66
skipif mysql # not compatible
query I rowsort label-6203
SELECT DISTINCT CAST ( 66 AS INTEGER ) FROM tab0, tab0 AS cor0
----
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6204
SELECT col2 * + CAST( + col1 * + col0 AS SIGNED ) FROM tab0
----
3395
664118
68112
skipif mysql # not compatible
query I rowsort label-6204
SELECT col2 * + CAST ( + col1 * + col0 AS INTEGER ) FROM tab0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 col2 FROM tab2
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6206
SELECT DISTINCT - col1 * + ( col1 ) * col2 - CAST( - 89 AS SIGNED ) AS col1 FROM tab1
----
-16135
-36415
-5611
skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT - col1 * + ( col1 ) * col2 - CAST ( - 89 AS INTEGER ) AS col1 FROM tab1
----
-16135
-36415
-5611
onlyif mysql # use DIV operator for integer division
query I rowsort label-6207
SELECT + col0 DIV CAST( + col0 AS SIGNED ) + col2 * col0 AS col0 FROM tab1
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-6207
SELECT + col0 / CAST ( + col0 AS INTEGER ) + col2 * col0 AS col0 FROM tab1
----
163
3649
7681
query I rowsort
SELECT DISTINCT + tab2.col2 + - tab2.col1 * col1 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT - + 5 * + cor0.col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to e4307922311fa4d855e5bd73b5c8b024
query I rowsort
SELECT ALL 14 AS col0 FROM tab2
----
14
14
14
query I rowsort
SELECT DISTINCT - - ( cor0.col0 ) + + col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - ( - col0 ) * + col2 + - col0 AS col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT - 80 - + col1 AS col2 FROM tab1 AS cor0
----
-106
-90
-93
query I rowsort
SELECT DISTINCT col1 + col1 AS col0 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT - col0 * 22 FROM tab2 AS cor0
----
-154
-1716
-1738
query I rowsort
SELECT ALL - 84 + 51 + + col2 * col2 FROM tab1
----
2883
3216
9183
query I rowsort
SELECT ALL - ( col2 ) + + col1 AS col0 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT - col1 + col1 * ( col2 ) AS col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT ALL - 7 AS col0 FROM tab0
----
-7
-7
-7
query I rowsort
SELECT 75 + + col1 FROM tab2 AS cor0
----
106
134
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-6221
SELECT ALL - col1 DIV - col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL - col1 / - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + col2 + col2 * col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT ALL + ( - col2 ) AS col0 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + 9 + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1031
-631
-69
query I rowsort
SELECT DISTINCT - + col0 * col1 + - col1 * + 60 AS col2 FROM tab0 AS cor0
----
-13559
-7224
-9215
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT cor0.col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT ALL 83 AS col2 FROM tab2 AS cor0
----
83
83
83
query I rowsort
SELECT ALL - 88 * + col0 FROM tab1 AS cor0
----
-264
-5632
-7040
onlyif mysql # use DIV operator for integer division
query I rowsort label-6231
SELECT DISTINCT col1 DIV CAST( cor0.col1 AS SIGNED ) - - col2 * - col2 FROM tab1 AS cor0
----
-2915
-3248
-9215
skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT col1 / CAST ( cor0.col1 AS INTEGER ) - - col2 * - col2 FROM tab1 AS cor0
----
-2915
-3248
-9215
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6232
SELECT ALL + col1 * - CAST( 50 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
-32000
-3900
-52000
skipif mysql # not compatible
query I rowsort label-6232
SELECT ALL + col1 * - CAST ( 50 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
-32000
-3900
-52000
query I rowsort
SELECT - col0 * ( 27 + col1 ) FROM tab1 AS cor0
----
-159
-2368
-3200
onlyif mysql # use DIV operator for integer division
query I rowsort label-6234
SELECT DISTINCT - col2 + col0 DIV + 41 AS col1 FROM tab2 AS cor0
----
-25
-27
-37
skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT - col2 + col0 / + 41 AS col1 FROM tab2 AS cor0
----
-25
-27
-37
query I rowsort
SELECT col1 * - ( + col0 ) * col1 AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL - - col2 + + col0 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - - col2 + - 25 AS col1 FROM tab0 AS cor0
----
-24
57
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 77 * + col0 * col0 + col0 col2 FROM tab0 AS cor0
----
44343
609924
94359
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6239
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) - 0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6239
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) - 0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - col1 + 53 * col2 FROM tab2 AS cor0
----
1437
1462
2031
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6241
SELECT DISTINCT - + col1 - cor0.col1 * ( + col0 * + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6241
SELECT DISTINCT - + col1 - cor0.col1 * ( + col0 * + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6242
SELECT ALL col1 * - col1 + - cor0.col0 DIV col0 AS col1 FROM tab0 AS cor0
----
-7397
-8282
-9410
skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL col1 * - col1 + - cor0.col0 / col0 AS col1 FROM tab0 AS cor0
----
-7397
-8282
-9410
query I rowsort
SELECT DISTINCT cor0.col0 * ( col2 * + col0 ) FROM tab2 AS cor0
----
1323
158184
237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * col2 col0 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT + col2 + ( col0 ) * - col0 AS col1 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT DISTINCT - 45 * - cor0.col0 FROM tab2 AS cor0
----
315
3510
3555
onlyif mysql # use DIV operator for integer division
query I rowsort label-6247
SELECT ALL ( - cor0.col0 ) * - col0 + col1 DIV col1 FROM tab1 AS cor0
----
10
4097
6401
skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL ( - cor0.col0 ) * - col0 + col1 / col1 FROM tab1 AS cor0
----
10
4097
6401
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6248
SELECT - CAST( - cor0.col0 AS SIGNED ) + + col2 + col2 AS col0 FROM tab0 AS cor0
----
253
37
90
skipif mysql # not compatible
query I rowsort label-6248
SELECT - CAST ( - cor0.col0 AS INTEGER ) + + col2 + col2 AS col0 FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT DISTINCT + + 48 * - col2 AS col2 FROM tab0 AS cor0
----
-1584
-3936
-48
query I rowsort
SELECT ALL - col1 * col2 + - col2 AS col1 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT 91 * col2 * col0 AS col0 FROM tab1 cor0
----
14742
331968
698880
query I rowsort
SELECT + + col0 + ( + col0 ) * + cor0.col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT col1 * col1 + - col2 * + col1 FROM tab1 cor0
----
-1079
-470
-728
query I rowsort
SELECT col0 + + 67 FROM tab0 cor0
----
102
156
91
query I rowsort
SELECT - col0 + col2 * - col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT - + col0 + 25 * col0 + + ( 64 ) FROM tab0 AS cor0
----
2200
640
904
query I rowsort
SELECT ALL + - col2 - 24 FROM tab0 AS cor0
----
-106
-25
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6258
SELECT - col0 + col0 DIV - col0 FROM tab2 AS cor0
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-6258
SELECT - col0 + col0 / - col0 FROM tab2 AS cor0
----
-79
-8
-80
query I rowsort
SELECT ALL - + 44 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-3784
-4004
-4268
query I rowsort
SELECT - ( 36 ) + col2 * - 42 AS col0 FROM tab2 AS cor0
----
-1128
-1170
-1632
query I rowsort
SELECT ALL - ( + col1 ) * col0 + + col0 * + 78 FROM tab0 cor0
----
-1157
-192
-665
onlyif mysql # use DIV operator for integer division
query I rowsort label-6262
SELECT ALL + + 82 DIV cor0.col1 + col2 + 12 AS col2 FROM tab1 AS cor0
----
114
69
77
skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL + + 82 / cor0.col1 + col2 + 12 AS col2 FROM tab1 AS cor0
----
114
69
77
query I rowsort
SELECT DISTINCT + 12 * - 23 + - col2 AS col1 FROM tab1 cor0
----
-330
-333
-372
query I rowsort
SELECT ALL 20 * - col0 FROM tab2 AS cor0
----
-140
-1560
-1580
query I rowsort
SELECT - - col0 * - col1 * + 16 AS col1 FROM tab1 AS cor0
----
-10240
-1248
-16640
query I rowsort
SELECT DISTINCT 34 FROM tab2 cor0
----
34
query I rowsort
SELECT - col2 * col0 + 85 + - col2 FROM tab0 AS cor0
----
-7295
-740
49
query I rowsort
SELECT DISTINCT col1 + tab0.col1 * col2 FROM tab0
----
194
2924
7553
query I rowsort
SELECT + col2 * - ( - ( tab2.col2 ) ) FROM tab2
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col0 FROM tab1 cor0
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6271
SELECT + CAST( 42 AS SIGNED ) AS col2 FROM tab0 cor0
----
42
42
42
skipif mysql # not compatible
query I rowsort label-6271
SELECT + CAST ( 42 AS INTEGER ) AS col2 FROM tab0 cor0
----
42
42
42
query I rowsort
SELECT + col0 * col0 + + col0 * + col0 AS col0 FROM tab0 cor0
----
1152
15842
2450
query I rowsort
SELECT col1 + ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL col0 + - col2 * - col1 AS col1 FROM tab1
----
1328
1407
634
skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 + CAST ( 5 AS REAL ) * tab1.col0 FROM tab1
----
-39
263
304
query I rowsort
SELECT col0 + 60 * - col0 AS col2 FROM tab2
----
-413
-4602
-4661
query I rowsort
SELECT - col1 + + ( - col2 ) AS col2 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT ALL - col0 + col0 + + col1 * + col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT 71 + 67 FROM tab2 AS cor0
----
138
138
138
query I rowsort
SELECT + + 92 * cor0.col1 + col0 * - col1 AS col0 FROM tab2 AS cor0
----
221
2635
826
query I rowsort
SELECT ALL + col1 * col2 * col1 AS col2 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT 24 + col0 * 34 FROM tab0 AS cor0
----
1214
3050
840
query I rowsort
SELECT ALL - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - cor0.col0 col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT 47 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1222
1269
1786
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6286
SELECT + ( + col2 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6286
SELECT + ( + col2 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6287
SELECT col2 DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6287
SELECT col2 / + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 * ( 91 ) AS col1 FROM tab2 AS cor0
----
637
7098
7189
query I rowsort
SELECT - 15 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2
onlyif mysql # use DIV operator for integer division
query I rowsort label-6290
SELECT - + cor1.col0 DIV 52 + + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0f0566f4e46c362fb4581f87cc1d3039
skipif mysql # not compatible
query I rowsort label-6290
SELECT - + cor1.col0 / 52 + + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0f0566f4e46c362fb4581f87cc1d3039
query I rowsort
SELECT - + col1 + + col0 * + cor0.col2 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT - col1 * ( 89 ) AS col2 FROM tab0 AS cor0
----
-7654
-8099
-8633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6293
SELECT ALL cor0.col2 * - CAST( col1 AS SIGNED ) + + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL cor0.col2 * - CAST ( col1 AS INTEGER ) + + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - - cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - cor0.col0 + 70 AS col1 FROM tab0 AS cor0
----
-19
35
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6296
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( tab2.col2 * - col1 ) AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT 8 - - 35 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT + col1 * + 89 FROM tab1
----
1157
2314
890
query I rowsort
SELECT ALL + 74 * col0 + - col0 AS col0 FROM tab2 AS cor0
----
511
5694
5767
query I rowsort
SELECT + 62 AS col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
query I rowsort
SELECT ALL + ( - cor0.col1 ) FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT - + col2 + + 88 AS col1 FROM tab0 AS cor0
----
55
6
87
query I rowsort
SELECT - cor0.col1 * 55 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 3396b6e3a9a33a8501d0661305be581c
query I rowsort
SELECT ALL - 29 FROM tab0
----
-29
-29
-29
query I rowsort
SELECT - col1 * col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + 57 FROM tab1 cor0
----
57
57
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6308
SELECT CAST( 80 AS SIGNED ) * col2 * + ( + col0 ) FROM tab2 AS cor0
----
15120
162240
240160
skipif mysql # not compatible
query I rowsort label-6308
SELECT CAST ( 80 AS INTEGER ) * col2 * + ( + col0 ) FROM tab2 AS cor0
----
15120
162240
240160
query I rowsort
SELECT - ( ( col0 ) ) * 42 FROM tab2 cor0
----
-294
-3276
-3318
query I rowsort
SELECT col0 + 62 * col1 FROM tab1 AS cor0
----
1615
684
886
query I rowsort
SELECT ALL + - 14 + col0 AS col1 FROM tab2 AS cor0
----
-7
64
65
query I rowsort
SELECT DISTINCT + + col1 + - col0 + - col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT 80 * cor0.col0 + - col1 FROM tab1 AS cor0
----
214
5110
6387
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6314
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * col2 + col2 AS col0 FROM tab2 cor0
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-6316
SELECT DISTINCT + col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT + col1 / + col2 AS col1 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ALL + - 52 FROM tab1 cor0
----
-52
-52
-52
query I rowsort
SELECT 21 * col2 AS col2 FROM tab2 AS cor0
----
546
567
798
query I rowsort
SELECT ALL + ( col1 ) * - col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT 99 * 30 * - col0 AS col0 FROM tab1 AS cor0
----
-190080
-237600
-8910
query I rowsort
SELECT ALL - + col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6322
SELECT - cor0.col2 DIV 91 AS col0 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6322
SELECT - cor0.col2 / 91 AS col0 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL col0 * col2 * col2 + - col0 * - col0 AS col1 FROM tab0 AS cor0
----
1260
26712
606357
query I rowsort
SELECT DISTINCT col2 - - cor0.col2 * col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab1, tab2 cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6326
SELECT 13 DIV + tab0.col2 + - col0 AS col0 FROM tab0
----
-22
-24
-89
skipif mysql # not compatible
query I rowsort label-6326
SELECT 13 / + tab0.col2 + - col0 AS col0 FROM tab0
----
-22
-24
-89
query I rowsort
SELECT DISTINCT - col1 * - 22 AS col2 FROM tab1
----
220
286
572
query I rowsort
SELECT - col1 + ( - col0 ) * - col2 AS col0 FROM tab0 cor0
----
-62
706
7207
query I rowsort
SELECT - - col0 * - col0 + - col2 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT DISTINCT + 55 AS col1 FROM tab0, tab2 cor0
----
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * cor0.col2 + - 1 col0 FROM tab0 cor0
----
-36
-7299
-793
query I rowsort
SELECT ALL + col1 + - ( col0 ) * - col2 * 64 FROM tab1 AS cor0
----
10394
233482
491533
query I rowsort
SELECT - col1 * - 97 + col1 AS col1 FROM tab0 AS cor0
----
8428
8918
9506
query I rowsort
SELECT ALL - col1 * - 30 + + 76 FROM tab0 AS cor0
----
2656
2806
2986
query I rowsort
SELECT - 29 + - 88 AS col1 FROM tab1 AS cor0
----
-117
-117
-117
onlyif mysql # use DIV operator for integer division
query I rowsort label-6336
SELECT ALL 90 * - col0 DIV cor0.col0 col1 FROM tab1 AS cor0
----
-90
-90
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL 90 * - col0 / cor0.col0 col1 FROM tab1 AS cor0
----
-90
-90
-90
query I rowsort
SELECT DISTINCT - tab2.col0 * ( + 84 * col1 ) AS col1 FROM tab2
----
-112812
-18228
-386568
query I rowsort
SELECT ALL col2 + 43 * col0 FROM tab2
----
328
3380
3435
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6339
SELECT col2 + + CAST( - col0 AS SIGNED ) * col0 AS col1 FROM tab0
----
-1224
-543
-7839
skipif mysql # not compatible
query I rowsort label-6339
SELECT col2 + + CAST ( - col0 AS INTEGER ) * col0 AS col1 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT ALL - col2 * + 65 + - tab1.col2 FROM tab1
----
-3564
-3762
-6336
query I rowsort
SELECT ALL col2 * ( - col2 ) + col1 FROM tab2
----
-1427
-617
-698
onlyif mysql # use DIV operator for integer division
query I rowsort label-6342
SELECT DISTINCT + col2 DIV - ( col1 ) + - col0 + - col0 FROM tab1
----
-133
-167
-8
skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT + col2 / - ( col1 ) + - col0 + - col0 FROM tab1
----
-133
-167
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-6343
SELECT - - col2 * - col1 + - col1 DIV col1 FROM tab1 AS cor0
----
-1249
-1405
-571
skipif mysql # not compatible
query I rowsort label-6343
SELECT - - col2 * - col1 + - col1 / col1 FROM tab1 AS cor0
----
-1249
-1405
-571
onlyif mysql # use DIV operator for integer division
query I rowsort label-6344
SELECT DISTINCT cor0.col0 DIV col0 + col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT cor0.col0 / col0 + col2 FROM tab1 AS cor0
----
55
58
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6345
SELECT + col2 + 73 DIV cor0.col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-6345
SELECT + col2 + 73 / cor0.col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + col0 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-6347
SELECT col1 DIV + 14 + - col1 FROM tab0
----
-80
-85
-91
skipif mysql # not compatible
query I rowsort label-6347
SELECT col1 / + 14 + - col1 FROM tab0
----
-80
-85
-91
query I rowsort
SELECT DISTINCT + + 8 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
8
query I rowsort
SELECT col2 + 8 * col2 * col2 + - col0 * col2 AS col1 FROM tab2
----
3406
5670
8588
query I rowsort
SELECT DISTINCT 76 AS col0 FROM tab2, tab2 AS cor0
----
76
query I rowsort
SELECT 14 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 742ac5d81e64168a26fbd2bc8c808eff
query I rowsort
SELECT ALL + 69 FROM tab0
----
69
69
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 * col2 col2 FROM tab0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-6354
SELECT ALL - col0 DIV - ( col1 * col2 ) + - col2 * - col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-6354
SELECT ALL - col0 / - ( col1 * col2 ) + - col2 * - col1 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 col2 FROM tab1 AS cor0
----
86
86
86
query I rowsort
SELECT ALL col1 + col2 * + col1 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT - col2 * + col2 + + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT ALL - col1 + 0 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 83 ) col2 FROM tab2
----
-83
-83
-83
query I rowsort
SELECT DISTINCT - ( + tab0.col1 + + col2 ) FROM tab0
----
-119
-173
-98
query I rowsort
SELECT ALL + 20 + 2 FROM tab1 cor0
----
22
22
22
query I rowsort
SELECT ( + col2 ) * 67 FROM tab2
----
1742
1809
2546
onlyif mysql # use DIV operator for integer division
query I rowsort label-6363
SELECT + col2 - - col0 DIV col1 AS col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-6363
SELECT + col2 - - col0 / col1 AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT - cor1.col2 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT - ( + col0 ) * ( col1 + + col1 ) FROM tab1
----
-1280
-156
-2080
onlyif mysql # use DIV operator for integer division
query I rowsort label-6366
SELECT 49 + - col0 DIV tab0.col1 FROM tab0
----
49
49
49
skipif mysql # not compatible
query I rowsort label-6366
SELECT 49 + - col0 / tab0.col1 FROM tab0
----
49
49
49
query I rowsort
SELECT DISTINCT col2 - + col1 AS col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT 71 + tab2.col0 AS col1 FROM tab2
----
149
150
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6369
SELECT DISTINCT col1 * + col2 + - col0 - col0 DIV tab0.col1 FROM tab0
----
2814
62
7373
skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT col1 * + col2 + - col0 - col0 / tab0.col1 FROM tab0
----
2814
62
7373
query I rowsort
SELECT DISTINCT - 18 * col1 - + col1 FROM tab2
----
-1121
-323
-589
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 col0 FROM tab0 AS cor0
----
60
query I rowsort
SELECT 51 * + col0 + + 24 + - 58 FROM tab2
----
323
3944
3995
query I rowsort
SELECT - cor0.col1 * col2 + + 51 * cor0.col1 FROM tab0 cor0
----
-2821
1548
4850
onlyif mysql # use DIV operator for integer division
query I rowsort label-6374
SELECT DISTINCT + col0 * - col0 + col2 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-1224
-575
-7920
skipif mysql # not compatible
query I rowsort label-6374
SELECT DISTINCT + col0 * - col0 + col2 / cor0.col2 AS col2 FROM tab0 AS cor0
----
-1224
-575
-7920
query I rowsort
SELECT DISTINCT cor0.col2 * + 20 + cor0.col0 AS col2 FROM tab0 AS cor0
----
1729
55
684
query I rowsort
SELECT DISTINCT - + col0 + col0 * col2 * col0 FROM tab2 AS cor0
----
1316
158106
237079
query I rowsort
SELECT ALL - cor0.col2 * 90 + ( col1 ) - + col1 AS col2 FROM tab1 AS cor0
----
-4860
-5130
-8640
query I rowsort
SELECT + - col0 + 90 * cor0.col1 AS col0 FROM tab0 AS cor0
----
7716
8101
8695
query I rowsort
SELECT ALL + cor0.col0 * 75 FROM tab2 cor0
----
525
5850
5925
query I rowsort
SELECT ALL - - col2 * 47 AS col0 FROM tab1 AS cor0
----
2538
2679
4512
onlyif mysql # use DIV operator for integer division
query I rowsort label-6381
SELECT + col0 DIV cor0.col0 + col2 col0 FROM tab2 cor0
----
27
28
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6381
SELECT + col0 / cor0.col0 + col2 col0 FROM tab2 cor0
----
27
28
39
query I rowsort
SELECT ALL - + col2 - 9 AS col2 FROM tab1 AS cor0
----
-105
-63
-66
query I rowsort
SELECT DISTINCT - col2 * col1 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL + - col1 + - col2 AS col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL + cor0.col1 + + ( 78 * + col2 ) - ( + cor0.col2 ) * - col0 * + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-3220
-65452
-657631
query I rowsort
SELECT 9 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
query I rowsort
SELECT ALL - 57 * + col0 AS col0 FROM tab2
----
-399
-4446
-4503
query I rowsort
SELECT ALL 81 AS col1 FROM tab1
----
81
81
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * ( - 90 * tab2.col0 ) col2 FROM tab2
----
-16979
-182461
-270163
query I rowsort
SELECT ALL 78 * - col0 FROM tab0
----
-1872
-2730
-6942
query I rowsort
SELECT - - 49 * col1 FROM tab0 AS cor0
----
4214
4459
4753
query I rowsort
SELECT + 91 AS col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT ALL + tab2.col0 * + col0 AS col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL + + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT cor0.col0 * - 4 + col1 FROM tab1 cor0
----
-246
-307
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-6396
SELECT + col1 + col2 DIV + col0 FROM tab2 AS cor0
----
17
34
59
skipif mysql # not compatible
query I rowsort label-6396
SELECT + col1 + col2 / + col0 FROM tab2 AS cor0
----
17
34
59
query I rowsort
SELECT col0 * cor0.col1 * - col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT + + col2 - 97 AS col1 FROM tab0 cor0
----
-15
-64
-96
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 >= NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE tab0.col1 * - col0 < ( + col1 * + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT tab1.col0 * - col0 + + tab1.col0 * col1 FROM tab1
----
-3456
-5360
69
query I rowsort
SELECT DISTINCT col1 * + tab1.col0 AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT col1 * - col0 + - col0 - col2 FROM tab0
----
-2121
-3431
-8270
query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) IN ( col0 * col2 )
----
query I rowsort
SELECT col1 * tab1.col1 - - col0 FROM tab1
----
164
249
679
query I rowsort
SELECT ALL 36 * col1 AS col1 FROM tab2 AS cor0
----
1116
2124
612
query I rowsort
SELECT DISTINCT - - col0 - + col2 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - tab2.col0 - - col0 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT col0 + tab0.col0 * col2 FROM tab0
----
70
7387
816
query I rowsort
SELECT - col1 * - col2 - + col1 * - col2 FROM tab1
----
1140
2496
2808
query I rowsort
SELECT + col2 + + col2 + - col1 FROM tab1 WHERE NULL BETWEEN NULL AND ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 * tab1.col0 + - col1 col2 FROM tab1
----
36470
4186
99827
query I rowsort
SELECT 18 + col1 * + col0 FROM tab2 AS cor0
----
1361
235
4620
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99
query I rowsort
SELECT cor0.col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - - cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - - cor0.col0 * + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-45
4039
6304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 + col2 * - 75 col0 FROM tab1 cor0
----
-2646
-3705
-5952
query I rowsort
SELECT ALL + col0 + - col0 AS col1 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6420
SELECT DISTINCT - cor0.col0 * cor0.col0 DIV + 58 + + col0 FROM tab0 AS cor0
----
-47
14
15
skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT - cor0.col0 * cor0.col0 / + 58 + + col0 FROM tab0 AS cor0
----
-47
14
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-6421
SELECT + col1 + col1 DIV col2 AS col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6421
SELECT + col1 + col1 / col2 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT 98 + col2 FROM tab2 AS cor0
----
124
125
136
onlyif mysql # use DIV operator for integer division
query I rowsort label-6423
SELECT + + cor0.col2 + - col0 * 89 DIV + cor0.col1 AS col0 FROM tab1 AS cor0
----
-451
-512
44
skipif mysql # not compatible
query I rowsort label-6423
SELECT + + cor0.col2 + - col0 * 89 / + cor0.col1 AS col0 FROM tab1 AS cor0
----
-451
-512
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6424
SELECT DISTINCT - col1 + - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT - col1 + - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL + col1 * 19 AS col1 FROM tab2 AS cor0
----
1121
323
589
query I rowsort
SELECT ALL - cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT ( + cor0.col0 ) * col1 + - col1 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6429
SELECT - CAST( NULL AS SIGNED ) + col0 * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6429
SELECT - CAST ( NULL AS INTEGER ) + col0 * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6430
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6430
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col2 * col2 * - tab2.col2 AS col1 FROM tab2
----
17576
19683
54872
query I rowsort
SELECT DISTINCT col1 + 40 * col2 AS col2 FROM tab0
----
137
1406
3371
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to ba0381921410f59519cc658d8e65eee3
query I rowsort
SELECT - col2 * col2 * - col1 AS col1 FROM tab0
----
611884
93654
97
query I rowsort
SELECT ( - 74 ) FROM tab0
----
-74
-74
-74
query I rowsort
SELECT ALL + 64 FROM tab1
----
64
64
64
query I rowsort
SELECT ALL - 67 FROM tab1, tab1 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6438
SELECT - CAST( NULL AS SIGNED ) * + 19 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6438
SELECT - CAST ( NULL AS INTEGER ) * + 19 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + - col2 col0 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT ALL col0 + - col0 * + col0 * + col0 FROM tab0
----
-13800
-42840
-704880
query I rowsort
SELECT col1 * - col2 + col2 * - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-15015
-291
-5762
query I rowsort
SELECT ALL - col0 + + col2 * col1 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT 41 AS col0 FROM tab2 AS cor0
----
41
query I rowsort
SELECT ALL - 91 * col2 * col0 FROM tab2 AS cor0
----
-17199
-184548
-273182
query I rowsort
SELECT - ( col1 ) * cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col0 * - col0 + + col0 AS col2 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT col1 + col2 + - col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + + col1 + - col2 + + col1 FROM tab2 cor0
----
-4
35
92
query I rowsort
SELECT ALL - + col0 - col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT + - col0 * + cor0.col1 + - col0 * - cor0.col2 - + col1 FROM tab2 AS cor0
----
-2633
-59
1642
query I rowsort
SELECT ALL col2 * col1 + col1 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT - col2 + - col2 * - col1 AS col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT - col1 * 44 AS col1 FROM tab1 AS cor0
----
-1144
-440
-572
onlyif mysql # use DIV operator for integer division
query I rowsort label-6454
SELECT 33 DIV col1 AS col0 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6454
SELECT 33 / col1 AS col0 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT ( col1 ) * cor0.col1 * + col0 AS col1 FROM tab0 cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT - 66 * 39 + col0 FROM tab0
----
-2485
-2539
-2550
query I rowsort
SELECT ALL col1 + 58 * + col0 FROM tab1
----
200
3722
4653
query I rowsort
SELECT DISTINCT ( + 68 ) + - tab0.col1 FROM tab0
----
-18
-23
-29
query I rowsort
SELECT col0 + - col0 AS col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 + - 55 * + col2 FROM tab2 AS cor0
----
-1456
-1512
-2128
query I rowsort
SELECT + + col2 * cor0.col2 + col0 * col0 * col2 FROM tab1 AS cor0
----
236721
3402
623616
onlyif mysql # use DIV operator for integer division
query I rowsort label-6462
SELECT DISTINCT + - 26 DIV col2 AS col0 FROM tab0 AS cor0
----
-26
0
skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT + - 26 / col2 AS col0 FROM tab0 AS cor0
----
-26
0
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab1 cor1, tab1, tab0 cor2
----
3645 values hashing to 0cc433e09ad9e61562b7840dd1db6f57
query I rowsort
SELECT ALL 82 + - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2834
-3167
-9134
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6465
SELECT + CAST( NULL AS SIGNED ) * + cor0.col0 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6465
SELECT + CAST ( NULL AS INTEGER ) * + cor0.col0 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6466
SELECT ALL ( - col0 ) DIV col2 AS col0 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL ( - col0 ) / col2 AS col0 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL + 48 + col2 AS col2 FROM tab0 AS cor0
----
130
49
81
query I rowsort
SELECT DISTINCT - 48 * - col2 FROM tab1 AS cor0
----
2592
2736
4608
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 col1 FROM tab1 AS cor0 WHERE ( NOT ( col0 + col2 ) NOT BETWEEN - col2 AND col0 * - cor0.col1 ) AND NOT NULL NOT IN ( col1 ) OR col2 NOT BETWEEN ( cor0.col1 * - cor0.col0 ) AND - cor0.col0
----
100
169
676
query I rowsort
SELECT DISTINCT 42 * - col1 FROM tab2 cor0
----
-1302
-2478
-714
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + col1 ) * - col1 col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT 90 * + col1 + col2 FROM tab1 AS cor0
----
1266
2394
957
query I rowsort
SELECT + cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL col1 * col2 * col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT DISTINCT - - col2 + + col2 + - col1 FROM tab1 AS cor0
----
104
179
82
query I rowsort
SELECT + 99 + cor0.col0 + col2 FROM tab1 AS cor0
----
156
220
275
query I rowsort
SELECT + cor0.col0 FROM tab0, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT + ( col0 * col0 ) + + col1 * - tab0.col2 - - col2 AS col2 FROM tab0
----
-2229
1129
541
query I rowsort
SELECT tab2.col0 * col2 + + col1 + - col2 FROM tab2
----
193
2061
2981
query I rowsort
SELECT DISTINCT tab0.col1 * col0 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ( + col1 * - col0 ) AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + 64 * + 42 AS col2 FROM tab2
----
2688
2688
2688
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE cor0.col0 * + col2 <> NULL
----
query I rowsort
SELECT DISTINCT + cor0.col0 * - col2 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6485
SELECT ALL col0 - col2 DIV col0 AS col1 FROM tab0 AS cor0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL col0 - col2 / col0 AS col1 FROM tab0 AS cor0
----
23
35
89
query I rowsort
SELECT col0 + - cor0.col2 * + col2 + + col0 FROM tab1 cor0
----
-2910
-3121
-9056
query I rowsort
SELECT ALL cor0.col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab0, tab0 cor0 CROSS JOIN tab1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL + col0 - + col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2, tab2 cor0 CROSS JOIN tab1
----
-7
-78
-79
query I rowsort
SELECT + col1 * col0 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 + col1 AND NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + - col2 * - col1 NOT IN ( tab0.col0 )
----
query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT NULL <> ( col0 )
----
query I rowsort
SELECT ALL col0 * - tab2.col0 * + col2 AS col1 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT ALL - col1 * - tab2.col1 AS col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT - col0 * + col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( col0 ) AND col1 * + col0 / - col0 + + col0
----
query I rowsort
SELECT - col0 + + tab2.col1 + col1 AS col0 FROM tab2
----
-45
40
55
query I rowsort
SELECT ALL - col2 * col0 * col2 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT col2 * + tab0.col2 * + col1 FROM tab0
----
611884
93654
97
query I rowsort
SELECT col0 + col0 + col2 AS col2 FROM tab2
----
182
196
41
query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NULL <= NULL
----
query I rowsort
SELECT col0 * - col1 + + col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT ALL - col2 * tab0.col1 + + tab0.col0 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT + col1 * col2 + + col1 * col0 + col2 AS col1 FROM tab1
----
1267
1536
2384
query I rowsort
SELECT col1 * - col2 AS col0 FROM tab2 WHERE + col1 * + col1 + col1 * + col2 NOT IN ( - col1 )
----
-1534
-646
-837
query I rowsort
SELECT col2 * col1 + col0 * - col0 * col2 AS col1 FROM tab2
----
-156650
-236512
-486
query I rowsort
SELECT col1 * col2 - - col1 AS col2 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL + col2 * col0 + col0 * + col1 AS col1 FROM tab0
----
15397
2856
3430
query I rowsort
SELECT DISTINCT + col1 * + col1 + col1 AS col0 FROM tab2 AS cor0
----
306
3540
992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - col2 * col1 + + col2 AS col0 FROM tab0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col1 col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT col0 - + tab2.col0 * + col2 AS col0 FROM tab2
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-6514
SELECT tab0.col1 DIV + col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6514
SELECT tab0.col1 / + col1 FROM tab0
----
1
1
1
query I rowsort
SELECT ALL col2 + col2 * + col0 FROM tab0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 + col2 * - col0 + - col1 col2 FROM tab0
----
-133
-7471
-911
query I rowsort
SELECT ALL col1 - col2 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT ALL + col0 + col0 + - col2 AS col0 FROM tab1
----
-48
64
71
query I rowsort
SELECT ALL + col0 * col2 - col0 FROM tab0 AS cor0
----
0
7209
768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + col0 * + col0 col0 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT ALL + col2 - col1 * - col1 AS col0 FROM tab2 AS cor0
----
327
3507
988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - col2 + + cor0.col0 AS col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT ALL col1 * col2 + col0 - col1 * + cor0.col0 FROM tab0 AS cor0
----
-3263
-548
798
query I rowsort
SELECT ALL + col1 + col1 * col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT + - col2 + + col1 AS col0 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT ALL - col0 + col2 * col1 AS col1 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT col1 * tab2.col2 + - col2 FROM tab2
----
1508
608
810
onlyif mysql # use DIV operator for integer division
query I rowsort label-6529
SELECT ALL - - col1 DIV col0 + col1 * col0 AS col0 FROM tab0 AS cor0
----
2067
3397
8100
skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL - - col1 / col0 + col1 * col0 AS col0 FROM tab0 AS cor0
----
2067
3397
8100
query I rowsort
SELECT DISTINCT + col2 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT cor0.col0 * + col2 + + cor0.col0 * + col1 AS col2 FROM tab2 cor0
----
406
4345
6630
query I rowsort
SELECT - - 44 * - 63 FROM tab2 AS cor0
----
-2772
-2772
-2772
query I rowsort
SELECT col2 + + 12 AS col0 FROM tab2 AS cor0
----
38
39
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-6534
SELECT ALL tab2.col0 DIV - col0 AS col0 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL tab2.col0 / - col0 AS col0 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + col1 + - col2 * - col0 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-6536
SELECT DISTINCT + + col2 DIV + col2 + - col1 + 55 AS col2 FROM tab0 AS cor0
----
-30
-35
-41
skipif mysql # not compatible
query I rowsort label-6536
SELECT DISTINCT + + col2 / + col2 + - col1 + 55 AS col2 FROM tab0 AS cor0
----
-30
-35
-41
query I rowsort
SELECT 18 * 25 * + col2 + ( + 78 ) FROM tab2
----
11778
12228
17178
onlyif mysql # use DIV operator for integer division
query I rowsort label-6538
SELECT ALL ( tab1.col2 ) DIV + col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL ( tab1.col2 ) / + col2 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT 26 - - 16 AS col2 FROM tab0, tab1, tab2 AS cor0
----
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 66 ) col1 FROM tab0
----
-66
-66
-66
query I rowsort
SELECT ALL 77 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT - - col1 + ( - col2 ) FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + col0 * 5 + col0 FROM tab2 AS cor0
----
42
468
474
query I rowsort
SELECT + col1 + + 46 AS col2 FROM tab1 cor0
----
56
59
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6545
SELECT 71 * tab0.col2 * CAST( col0 + col0 AS SIGNED ) FROM tab0
----
1036316
112464
4970
skipif mysql # not compatible
query I rowsort label-6545
SELECT 71 * tab0.col2 * CAST ( col0 + col0 AS INTEGER ) FROM tab0
----
1036316
112464
4970
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
58
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 713ff9f9cde43214a064a8e6ada00f4e
query I rowsort
SELECT - cor0.col0 * col1 + + 53 AS col0 FROM tab2 AS cor0
----
-1290
-164
-4549
query I rowsort
SELECT DISTINCT + - col0 + 68 AS col2 FROM tab1 AS cor0
----
-12
4
65
query I rowsort
SELECT + cor0.col1 * + 60 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to ce0d6eb0f90eb4d84810c590310b44f6
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 35707ade138fec4b370f5140a4cd2963
query I rowsort
SELECT + col1 + + ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - - col2 * + ( 64 ) AS col1 FROM tab1 AS cor0
----
3456
3648
6144
query I rowsort
SELECT tab0.col1 * - 94 AS col1 FROM tab0
----
-8084
-8554
-9118
query I rowsort
SELECT DISTINCT - col1 - + col0 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT tab0.col1 * ( tab0.col2 * col2 ) + col0 * + 79 FROM tab0
----
2862
618915
95550
query I rowsort
SELECT DISTINCT - 80 * - 28 * cor0.col2 - + 64 AS col2 FROM tab0, tab2 AS cor0
----
58176
60416
85056
query I rowsort
SELECT col0 * ( 92 ) AS col2 FROM tab1 AS cor0
----
276
5888
7360
query I rowsort
SELECT - col2 * 27 FROM tab0 AS cor0
----
-2214
-27
-891
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6560
SELECT - col1 + - CAST( + col0 AS SIGNED ) - + col0 AS col0 FROM tab1
----
-138
-173
-32
skipif mysql # not compatible
query I rowsort label-6560
SELECT - col1 + - CAST ( + col0 AS INTEGER ) - + col0 AS col0 FROM tab1
----
-138
-173
-32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6561
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0
----
NULL
query I rowsort
SELECT - - col1 * + col0 + + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT - col0 * - cor0.col1 + - col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-6564
SELECT DISTINCT 23 DIV col2 + cor0.col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT 23 / col2 + cor0.col2 / + col2 AS col0 FROM tab1 AS cor0
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6565
SELECT ALL + CAST( - col0 AS SIGNED ) * + cor0.col0 - col2 FROM tab2 AS cor0
----
-6110
-6279
-76
skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL + CAST ( - col0 AS INTEGER ) * + cor0.col0 - col2 FROM tab2 AS cor0
----
-6110
-6279
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 + - col2 col2 FROM tab0 cor0
----
3
52
84
query I rowsort
SELECT DISTINCT + + 50 * + col1 - col1 AS col1 FROM tab0 AS cor0
----
4214
4459
4753
query I rowsort
SELECT DISTINCT - 69 * col2 + - col1 * col0 * + col0 AS col0 FROM tab1 AS cor0
----
-3960
-44893
-89824
query I rowsort
SELECT - + col2 * - 6 + cor0.col0 AS col1 FROM tab1 AS cor0
----
327
406
656
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) - + cor0.col0 col1 FROM tab0 AS cor0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * col1 col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6572
SELECT ( - col1 ) * CAST( - col1 AS SIGNED ) DIV - col0 FROM tab2
----
-137
-3
-44
skipif mysql # not compatible
query I rowsort label-6572
SELECT ( - col1 ) * CAST ( - col1 AS INTEGER ) / - col0 FROM tab2
----
-137
-3
-44
query I rowsort
SELECT DISTINCT tab2.col1 + col2 - tab2.col2 AS col2 FROM tab2
----
17
31
59
query I rowsort
SELECT - + 7 FROM tab2 AS cor0
----
-7
-7
-7
query I rowsort
SELECT + - ( cor0.col0 ) AS col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT col0 + - 30 * - col2 FROM tab2 AS cor0
----
1219
817
858
onlyif mysql # use DIV operator for integer division
query I rowsort label-6577
SELECT ALL - tab0.col1 DIV + 7 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f89c613a094f109aa2782ad41b04084f
skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL - tab0.col1 / + 7 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f89c613a094f109aa2782ad41b04084f
query I rowsort
SELECT - cor0.col1 + - ( 84 * - col2 ) FROM tab0 AS cor0
----
-13
2686
6797
query I rowsort
SELECT DISTINCT + tab0.col2 * - col2 AS col1 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + ( cor0.col0 ) + + col0 * + col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT col0 + + col0 + col2 FROM tab1 AS cor0
----
185
256
60
query I rowsort
SELECT ALL + 81 + col2 * + col1 FROM tab0 AS cor0
----
178
2919
7543
query I rowsort
SELECT DISTINCT col0 * col2 * col1 FROM tab1 cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT - col0 * - col0 + cor0.col1 + - col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-137
1541
4915
query I rowsort
SELECT col2 + + col2 * + col0 - + col2 * - 90 FROM tab1
----
16416
5076
8835
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6586
SELECT CAST( NULL AS DECIMAL ) / - 65 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6586
SELECT CAST ( NULL AS REAL ) / - 65 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 54 + col0 * col0 FROM tab1
----
-45
4042
6346
query I rowsort
SELECT - col1 * tab1.col1 * col2 AS col2 FROM tab1
----
-16224
-36504
-5700
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6589
SELECT DISTINCT CAST( + col0 AS SIGNED ) * - col0 + + 91 * col1 AS col0 FROM tab1
----
-3186
-5217
2357
skipif mysql # not compatible
query I rowsort label-6589
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * - col0 + + 91 * col1 AS col0 FROM tab1
----
-3186
-5217
2357
query I rowsort
SELECT DISTINCT 3 + 75 AS col0 FROM tab0
----
78
query I rowsort
SELECT - col1 - 89 AS col2 FROM tab2
----
-106
-120
-148
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( tab1.col1 ) - - ( col0 ) col0 FROM tab1
----
138
173
32
query I rowsort
SELECT - ( 42 ) - col1 FROM tab2
----
-101
-59
-73
query I rowsort
SELECT DISTINCT - ( tab2.col1 ) - col1 AS col1 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT DISTINCT + col2 - 63 FROM tab0
----
-30
-62
19
query I rowsort
SELECT DISTINCT 6 - col1 FROM tab2
----
-11
-25
-53
query I rowsort
SELECT ALL + col2 * col0 + col1 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-6598
SELECT DISTINCT - cor0.col1 + col0 + + ( 41 ) DIV col2 FROM tab1 AS cor0
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT - cor0.col1 + col0 + + ( 41 ) / col2 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6599
SELECT DISTINCT + col1 + + col0 * - CAST( NULL AS SIGNED ) / + 73 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6599
SELECT DISTINCT + col1 + + col0 * - CAST ( NULL AS INTEGER ) / + 73 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - + col2 + - col1 * col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT col0 * col2 + + 0 * col1 AS col1 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) * - col0 col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT - ( col1 ) + col1 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT col2 - - col2 AS col1 FROM tab0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-6605
SELECT DISTINCT - 92 DIV col1 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-6605
SELECT DISTINCT - 92 / col1 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT ALL col2 * 5 AS col1 FROM tab1
----
270
285
480
query I rowsort
SELECT + cor0.col1 + - 93 * col1 FROM tab1 cor0
----
-1196
-2392
-920
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6608
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
NULL
skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
NULL
query I rowsort
SELECT ALL + ( ( col1 ) ) * - ( col1 ) + + col2 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT ALL - col0 * - col2 + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL + col2 + ( + col2 ) * + 25 * cor0.col2 FROM tab1 cor0
----
230496
72954
81282
onlyif mysql # use DIV operator for integer division
query I rowsort label-6612
SELECT ALL - cor0.col0 + - cor0.col0 DIV - col0 FROM tab2 AS cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL - cor0.col0 + - cor0.col0 / - col0 FROM tab2 AS cor0
----
-6
-77
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6613
SELECT CAST( NULL AS DECIMAL ) * col0 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6613
SELECT CAST ( NULL AS REAL ) * col0 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 88 + - col1 AS col1 FROM tab0
----
-3
-9
2
query I rowsort
SELECT ALL col2 + 44 * tab1.col2 FROM tab1
----
2430
2565
4320
query I rowsort
SELECT DISTINCT + col1 * - col2 * - col2 + 26 * - col0 FROM tab0
----
-813
609570
93030
onlyif mysql # use DIV operator for integer division
query I rowsort label-6617
SELECT + col0 DIV col2 + - col0 FROM tab1
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-6617
SELECT + col0 / col2 + - col0 FROM tab1
----
-3
-63
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col1 FROM tab2
----
2
2
2
query I rowsort
SELECT - ( + 61 ) * + col1 FROM tab2 AS cor0
----
-1037
-1891
-3599
query I rowsort
SELECT DISTINCT + col2 * - col0 + - col2 * col2 + - col2 FROM tab1 AS cor0
----
-16992
-3132
-6954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6621
SELECT - CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6621
SELECT - CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - ( + col0 ) FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + col1 * + col2 * col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL + cor0.col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + 83 * 72 FROM tab1 cor0
----
5976
5976
5976
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col2 col1 FROM tab1, tab1 cor0
----
54
57
96
query I rowsort
SELECT 48 + tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d6b4013bc824e2ef46d4428d2bf69c73
query I rowsort
SELECT ALL + tab1.col1 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 * - 65 col1 FROM tab0 cor0
----
-5525
onlyif mysql # use DIV operator for integer division
query I rowsort label-6630
SELECT ALL + col2 DIV 43 AS col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL + col2 / 43 AS col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT - + ( - col0 ) * - col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + + 26 AS col2 FROM tab1 cor0
----
26
26
26
query I rowsort
SELECT ALL - 60 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
5160
5460
5820
query I rowsort
SELECT DISTINCT - 61 + col0 AS col0 FROM tab0 cor0
----
-26
-37
28
query I rowsort
SELECT DISTINCT - col0 + 30 * cor0.col1 FROM tab1 AS cor0
----
236
310
777
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * col2 col2 FROM tab0 AS cor0
----
1518
3772
46
query I rowsort
SELECT ALL + ( 14 ) * + col2 + 5 AS col1 FROM tab2 AS cor0
----
369
383
537
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col0 col2 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT + col2 - col2 * ( col0 ) FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT - 67 AS col1 FROM tab0 AS cor0
----
-67
-67
-67
query I rowsort
SELECT ALL - 97 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5
query I rowsort
SELECT col2 + - cor0.col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ( - 12 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45
query I rowsort
SELECT DISTINCT - - col2 * + col1 * col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL + ( - 15 ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2
query I rowsort
SELECT ALL + 57 + + col1 * col2 FROM tab1 AS cor0
----
1305
1461
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6647
SELECT + + CAST( + cor0.col1 AS SIGNED ) FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6647
SELECT + + CAST ( + cor0.col1 AS INTEGER ) FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6648
SELECT col2 * col1 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-6648
SELECT col2 * col1 / cor0.col1 AS col0 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6649
SELECT - col1 + + ( - col0 ) DIV 74 AS col2 FROM tab1 cor0
----
-10
-14
-26
skipif mysql # not compatible
query I rowsort label-6649
SELECT - col1 + + ( - col0 ) / 74 AS col2 FROM tab1 cor0
----
-10
-14
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 * col2 * 49 col1 FROM tab1 AS cor0
----
124362
131271
221088
query I rowsort
SELECT - - col1 * col1 + col0 * 13 + col2 AS col1 FROM tab1 AS cor0
----
1305
769
989
query I rowsort
SELECT ALL 68 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT + cor0.col1 * + ( + col2 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - tab2.col2 * - col2 AS col1 FROM tab2
----
1444
676
729
query I rowsort
SELECT - 39 * col2 FROM tab0
----
-1287
-3198
-39
query I rowsort
SELECT col1 * col1 * col1 AS col2 FROM tab2
----
205379
29791
4913
query I rowsort
SELECT ALL tab0.col1 * col2 * col1 AS col2 FROM tab0
----
244068
679042
9409
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) * + col1 + + col1 + col2 AS col2 FROM tab0 AS cor0
----
-2719
-7289
1
query I rowsort
SELECT col2 * - 59 FROM tab0 AS cor0
----
-1947
-4838
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - 0 col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6661
SELECT + + col1 DIV - 87 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6661
SELECT + + col1 / - 87 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col2 + tab1.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 35de0b553e14f89ea44b7652e1ff642c
query I rowsort
SELECT - col1 + + ( col0 + + col2 ) AS col2 FROM tab0
----
-29
-61
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 col2 FROM tab0, tab2 AS cor0
----
66
query I rowsort
SELECT + col0 + + col1 + col0 FROM tab1
----
138
173
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-6666
SELECT + 90 DIV - col1 AS col1 FROM tab2
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-6666
SELECT + 90 / - col1 AS col1 FROM tab2
----
-1
-2
-5
query I rowsort
SELECT DISTINCT + tab2.col1 + 10 AS col0 FROM tab2
----
27
41
69
query I rowsort
SELECT ( + col1 ) * col2 + - col0 + tab1.col0 * col0 AS col2 FROM tab1
----
1410
4602
7568
query I rowsort
SELECT + + cor0.col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 * 13 col1 FROM tab2 AS cor0
----
312
312
312
query I rowsort
SELECT DISTINCT - - 71 + + 0 * - col2 AS col1 FROM tab0 AS cor0
----
71
query I rowsort
SELECT 77 * - 54 + cor0.col1 FROM tab2 AS cor0
----
-4099
-4127
-4141
query I rowsort
SELECT ALL - col2 * 80 AS col1 FROM tab1 cor0
----
-4320
-4560
-7680
query I rowsort
SELECT DISTINCT + col1 + col0 * col1 * col0 AS col1 FROM tab0 AS cor0
----
118922
49622
720902
query I rowsort
SELECT ALL col1 * col0 - col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT + - ( + col0 ) * - col2 + + col1 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-6677
SELECT DISTINCT + 75 DIV - col1 + col1 DIV - 86 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT + 75 / - col1 + col1 / - 86 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT + col0 * - col1 + ( cor0.col2 + - col1 * col2 ) AS col1 FROM tab0 AS cor0
----
-15479
-3491
-4869
query I rowsort
SELECT - cor0.col1 - - col0 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - - col1 * col1 + - ( ( - col2 ) ) FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT - col0 * - col0 * + cor0.col0 + - col1 AS col1 FROM tab1 AS cor0
----
1
262134
511987
query I rowsort
SELECT 44 * col1 + col2 AS col0 FROM tab2
----
1391
2622
786
query I rowsort
SELECT col1 * + 87 * col2 AS col2 FROM tab0
----
246906
649194
8439
onlyif mysql # use DIV operator for integer division
query I rowsort label-6685
SELECT - ( - col0 ) DIV + col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6685
SELECT - ( - col0 ) / + col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + 38 * col1 FROM tab1
----
380
494
988
query I rowsort
SELECT ALL ( col0 ) + 22 * col2 AS col1 FROM tab1
----
1191
1318
2192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + tab1.col1 col1 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT - ( - col1 ) - + col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 + col2 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2130
3397
8263
query I rowsort
SELECT + cor0.col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6692
SELECT - 85 * - col0 * CAST( col1 * - col1 AS SIGNED ) + + 43 AS col1 FROM tab0 AS cor0
----
-15087797
-27991732
-62645722
skipif mysql # not compatible
query I rowsort label-6692
SELECT - 85 * - col0 * CAST ( col1 * - col1 AS INTEGER ) + + 43 AS col1 FROM tab0 AS cor0
----
-15087797
-27991732
-62645722
query I rowsort
SELECT DISTINCT + 49 FROM tab2, tab2 AS cor0, tab0, tab1 AS cor1
----
49
query I rowsort
SELECT - col2 * + 11 FROM tab0 AS cor0
----
-11
-363
-902
query I rowsort
SELECT - 58 + tab1.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to e03ba49f8d4fd9841bb851212bceebb0
query I rowsort
SELECT + col2 * + col0 * + col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ( - cor0.col2 ) FROM tab0 cor0
----
-1
-33
-82
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 61a671f1b5048e339ad9838f68ebbba4
query I rowsort
SELECT + ( - 48 ) FROM tab1 AS cor0
----
-48
-48
-48
query I rowsort
SELECT DISTINCT + 71 * + col1 AS col2 FROM tab1
----
1846
710
923
query I rowsort
SELECT + ( + col0 ) * col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + cor0.col0 * cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d2e5241c58e367013a1a203910e000c0
query I rowsort
SELECT + ( col0 ) + cor0.col2 * - ( - col0 ) AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + col0 + + col0 * col1 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - 80 FROM tab0, tab1 AS cor0
----
-80
query I rowsort
SELECT - - cor0.col0 * + col2 + + 24 - + col1 AS col0 FROM tab2 AS cor0
----
182
1993
3009
query I rowsort
SELECT cor0.col2 * ( cor0.col2 ) + + cor0.col2 FROM tab2 cor0
----
1482
702
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-6708
SELECT DISTINCT - col2 DIV ( col1 ) AS col1 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-6708
SELECT DISTINCT - col2 / ( col1 ) AS col1 FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT ALL - col2 * - ( - 34 ) FROM tab2 AS cor0
----
-1292
-884
-918
onlyif mysql # use DIV operator for integer division
query I rowsort label-6710
SELECT - col2 DIV + CAST( 60 * + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6710
SELECT - col2 / + CAST ( 60 * + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * 36 FROM tab2 AS cor0
----
252
2808
2844
query I rowsort
SELECT DISTINCT - col2 + 88 FROM tab1 AS cor0
----
-8
31
34
query I rowsort
SELECT DISTINCT col2 + 9 FROM tab2 AS cor0
----
35
36
47
query I rowsort
SELECT DISTINCT + col1 * 98 FROM tab2 AS cor0
----
1666
3038
5782
query I rowsort
SELECT + col2 * col0 * 35 + - col0 * col2 FROM tab0 AS cor0
----
1190
248132
26928
query I rowsort
SELECT - col2 * col0 + 78 AS col2 FROM tab2 cor0
----
-111
-1950
-2924
query I rowsort
SELECT ALL + + col1 + + 1 FROM tab2 AS cor0
----
18
32
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6718
SELECT - cor0.col2 * CAST( + 67 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3618
-3819
-6432
skipif mysql # not compatible
query I rowsort label-6718
SELECT - cor0.col2 * CAST ( + 67 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3618
-3819
-6432
query I rowsort
SELECT cor0.col1 + + ( + 71 ) * col0 FROM tab2 cor0
----
528
5597
5626
query I rowsort
SELECT DISTINCT col2 + - ( + 53 ) AS col2 FROM tab2 AS cor0
----
-15
-26
-27
query I rowsort
SELECT - col0 * 44 FROM tab1 AS cor0
----
-132
-2816
-3520
onlyif mysql # use DIV operator for integer division
query I rowsort label-6722
SELECT + + col0 DIV + 47 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6722
SELECT + + col0 / + 47 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT col2 * + col2 AS col0 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT ALL - - 78 + col1 FROM tab0 cor0
----
164
169
175
onlyif mysql # use DIV operator for integer division
query I rowsort label-6725
SELECT DISTINCT - tab0.col2 * col1 DIV col0 + - col2 + + col2 AS col1 FROM tab0
----
-118
-2
-83
skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT - tab0.col2 * col1 / col0 + - col2 + + col2 AS col1 FROM tab0
----
-118
-2
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6726
SELECT ALL + col2 + - col0 DIV + col0 + + tab1.col0 FROM tab1
----
120
175
56
skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL + col2 + - col0 / + col0 + + tab1.col0 FROM tab1
----
120
175
56
query I rowsort
SELECT DISTINCT 4 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
4
query I rowsort
SELECT DISTINCT - 81 + - col1 FROM tab2 AS cor0
----
-112
-140
-98
query I rowsort
SELECT DISTINCT - col0 * col1 - + 37 AS col0 FROM tab2 AS cor0
----
-1380
-254
-4639
query I rowsort
SELECT ALL - + col2 + + col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT 97 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
97
query I rowsort
SELECT + 39 + - tab2.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 4b120b03e2e1418ee918841938e226a1
query I rowsort
SELECT + ( + col1 ) + + col1 AS col1 FROM tab1
----
20
26
52
query I rowsort
SELECT ALL 65 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + tab0.col2 + col2 * 91 col0 FROM tab0
----
14924
188
5841
query I rowsort
SELECT ALL - 41 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf
query I rowsort
SELECT ALL + col0 * + col1 - + cor0.col1 * + col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6738
SELECT DISTINCT - cor0.col0 DIV col1 - - 89 DIV + col1 FROM tab1 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-6738
SELECT DISTINCT - cor0.col0 / col1 - - 89 / + col1 FROM tab1 AS cor0
----
0
2
3
query I rowsort
SELECT + 33 * 4 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 69360870b63ae94631fff59de0c8f582
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - col1 col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + cor0.col2 + col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6742
SELECT DISTINCT - 4 * col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6742
SELECT DISTINCT - 4 * col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - col0 + + 38 AS col1 FROM tab2 AS cor0
----
-40
-41
31
query I rowsort
SELECT ALL cor0.col0 + - 50 AS col1 FROM tab0 AS cor0
----
-15
-26
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6745
SELECT ALL col1 * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL col1 * CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6746
SELECT DISTINCT + col1 * + 88 + - cor0.col1 DIV + col2 FROM tab0 AS cor0
----
7566
8007
8439
skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT + col1 * + 88 + - cor0.col1 / + col2 FROM tab0 AS cor0
----
7566
8007
8439
query I rowsort
SELECT 93 + tab0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f3348d674699c644ffdfdd68a8e398d3
query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab1
----
18
query I rowsort
SELECT - - cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - col1 + col2 * col1 + col2 FROM tab1
----
1331
1432
617
query I rowsort
SELECT DISTINCT 60 + col2 FROM tab1
----
114
117
156
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * col2 col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - + 6 + col0 AS col1 FROM tab0 AS cor0
----
18
29
83
query I rowsort
SELECT DISTINCT + col0 * 33 FROM tab1 AS cor0
----
2112
2640
99
query I rowsort
SELECT ALL + + col2 + col2 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-6757
SELECT - col0 + - ( col0 ) * 74 DIV col1 FROM tab2 AS cor0
----
-175
-23
-422
skipif mysql # not compatible
query I rowsort label-6757
SELECT - col0 + - ( col0 ) * 74 / col1 FROM tab2 AS cor0
----
-175
-23
-422
query I rowsort
SELECT ALL - + cor0.col1 * + cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6759
SELECT ALL - + CAST( col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL - + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - ( 4 ) * col2 AS col0 FROM tab2 AS cor0
----
-104
-108
-152
query I rowsort
SELECT DISTINCT - 61 AS col0 FROM tab0 AS cor0
----
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-6762
SELECT DISTINCT - 40 DIV col0 + 2 + - col0 FROM tab0 AS cor0
----
-23
-34
-87
skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT - 40 / col0 + 2 + - col0 FROM tab0 AS cor0
----
-23
-34
-87
query I rowsort
SELECT ALL - 50 * + col1 - + 6 FROM tab1 cor0
----
-1306
-506
-656
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6764
SELECT - col2 * col1 + CAST( ( col2 ) + + col2 AS SIGNED ) * ( - cor0.col2 ) col2 FROM tab2 AS cor0
----
-2295
-2886
-3534
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6764
SELECT - col2 * col1 + CAST ( ( col2 ) + + col2 AS INTEGER ) * ( - cor0.col2 ) col2 FROM tab2 AS cor0
----
-2295
-2886
-3534
query I rowsort
SELECT DISTINCT - - 10 * - col1 FROM tab1 AS cor0
----
-100
-130
-260
query I rowsort
SELECT ALL + ( - col2 ) + - col1 * - col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT DISTINCT 21 FROM tab2 AS cor0
----
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6768
SELECT ALL - CAST( - tab2.col0 AS SIGNED ) + - col1 AS col2 FROM tab2
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL - CAST ( - tab2.col0 AS INTEGER ) + - col1 AS col2 FROM tab2
----
-24
19
62
query I rowsort
SELECT ( + col0 ) + col2 + - 48 AS col2 FROM tab1
----
128
73
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6770
SELECT - col2 * col2 + - col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
-1445
-677
-730
skipif mysql # not compatible
query I rowsort label-6770
SELECT - col2 * col2 + - col0 / + col0 AS col1 FROM tab2 AS cor0
----
-1445
-677
-730
query I rowsort
SELECT 77 - tab1.col1 FROM tab1
----
51
64
67
query I rowsort
SELECT - col0 * col1 * col0 + tab0.col2 FROM tab0
----
-118824
-49503
-720729
query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 NOT BETWEEN col1 AND ( col2 + + col2 )
----
query I rowsort
SELECT DISTINCT col2 * + col0 - col0 * + col1 FROM tab1
----
3008
6640
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-6775
SELECT + col0 DIV + tab1.col0 + - col0 * col0 DIV col2 FROM tab1
----
-65
-70
1
skipif mysql # not compatible
query I rowsort label-6775
SELECT + col0 / + tab1.col0 + - col0 * col0 / col2 FROM tab1
----
-65
-70
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6776
SELECT DISTINCT - col0 DIV - col1 FROM tab1
----
0
6
skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT - col0 / - col1 FROM tab1
----
0
6
query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE - col0 - - col0 IN ( col0 * + col1 * - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6778
SELECT ALL col1 DIV col1 + col0 * - col1 - tab0.col2 FROM tab0
----
-2096
-3395
-8180
skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL col1 / col1 + col0 * - col1 - tab0.col2 FROM tab0
----
-2096
-3395
-8180
query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NOT NULL IN ( col0 * + col2 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 NOT IN ( col1 )
----
query I rowsort
SELECT col2 - tab1.col0 AS col1 FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT + col1 * - col0 * 61 + col0 FROM tab1
----
-38976
-4755
-63360
onlyif mysql # use DIV operator for integer division
query I rowsort label-6783
SELECT ALL - col2 + - col0 DIV - col1 AS col0 FROM tab1 AS cor0
----
-51
-54
-90
skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL - col2 + - col0 / - col1 AS col0 FROM tab1 AS cor0
----
-51
-54
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6784
SELECT DISTINCT - col1 + col0 + - col0 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
-2
-62
skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT - col1 + col0 + - col0 / cor0.col1 AS col0 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT + col0 + + col0 * ( 59 ) * col0 FROM tab1 cor0
----
241728
377680
534
query I rowsort
SELECT - + 45 AS col1 FROM tab1 AS cor0
----
-45
-45
-45
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < col0 * + col0 + - col2
----
query I rowsort
SELECT col1 - tab0.col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col1 * col0 - + col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT NULL BETWEEN - col0 AND ( col2 * + col1 )
----
query I rowsort
SELECT col2 * + col0 * - col0 FROM tab0 cor0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
2064
3395
8099
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 IN ( col2 + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6794
SELECT - col1 * col0 DIV tab0.col0 AS col0 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-6794
SELECT - col1 * col0 / tab0.col0 AS col0 FROM tab0
----
-86
-91
-97
query III rowsort
SELECT * FROM tab1 WHERE NULL <= col0 * - col1
----
query I rowsort
SELECT tab2.col2 + + col2 + col0 FROM tab2
----
130
155
61
query I rowsort
SELECT + tab2.col0 * + col0 + col0 + col2 AS col2 FROM tab2
----
6188
6358
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 * + col1 col2 FROM tab0
----
7372
8192
9374
query I rowsort
SELECT ALL - tab2.col0 + col1 AS col0 FROM tab2
----
-19
-62
24
query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) < - col2 / col2
----
query I rowsort
SELECT DISTINCT - 78 FROM tab0 cor0
----
-78
query I rowsort
SELECT ALL - + 82 FROM tab0 cor0
----
-82
-82
-82
query I rowsort
SELECT + - ( + col0 ) * col2 + - 97 AS col0 FROM tab2 cor0
----
-2125
-286
-3099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6804
SELECT - ( cor0.col1 ) * col2 DIV 15 col2 FROM tab0 AS cor0
----
-189
-497
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6804
SELECT - ( cor0.col1 ) * col2 / 15 col2 FROM tab0 AS cor0
----
-189
-497
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-6805
SELECT ALL 84 DIV 29 FROM tab1, tab0 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to 6d1be3904d6870ba21bc766b979d1110
skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL 84 / 29 FROM tab1, tab0 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to 6d1be3904d6870ba21bc766b979d1110
query I rowsort
SELECT - cor0.col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT ALL - + ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - 9 * + col1 AS col0 FROM tab0 AS cor0
----
-774
-819
-873
query I rowsort
SELECT ALL - + col2 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT + + ( cor0.col1 ) + col0 * + col2 AS col0 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-6811
SELECT ALL 53 * col0 + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
1275
1857
4718
skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL 53 * col0 + col1 / col0 AS col0 FROM tab0 AS cor0
----
1275
1857
4718
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) col0 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6814
SELECT DISTINCT + col2 + cor0.col2 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT + col2 + cor0.col2 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + col1 + 78 FROM tab0
----
164
169
175
query I rowsort
SELECT tab2.col2 + - tab2.col1 FROM tab2
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-6818
SELECT DISTINCT - 12 DIV 5 FROM tab1
----
-2
skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT - 12 / 5 FROM tab1
----
-2
query I rowsort
SELECT ALL + cor0.col2 * - ( - col0 ) * col1 + + col2 FROM tab1 AS cor0
----
36537
4266
99936
query I rowsort
SELECT + col1 * col1 + col2 + col2 * - 13 AS col2 FROM tab2 AS cor0
----
-167
3169
637
query I rowsort
SELECT ALL col0 + col1 + ( cor0.col1 + cor0.col2 ) * - cor0.col0 * + cor0.col0 FROM tab0 AS cor0
----
-119918
-1370153
-68434
query I rowsort
SELECT + cor0.col0 * 17 FROM tab2 AS cor0
----
119
1326
1343
query I rowsort
SELECT 59 AS col0 FROM tab1
----
59
59
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 col1 FROM tab0
----
-76
query I rowsort
SELECT DISTINCT + ( - 38 ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6826
SELECT DISTINCT col1 * 78 DIV - col0 + - col0 col0 FROM tab1
----
-679
-76
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT col1 * 78 / - col0 + - col0 col0 FROM tab1
----
-679
-76
-92
query I rowsort
SELECT ALL + cor0.col1 + + ( + tab0.col1 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 6c5da2c0e2b4192a86a061d47e155396
query I rowsort
SELECT - col1 + ( - 1 ) AS col1 FROM tab2 AS cor0
----
-18
-32
-60
query I rowsort
SELECT col1 + - 22 * cor0.col2 FROM tab2 AS cor0
----
-513
-563
-819
query I rowsort
SELECT + col1 * col2 + 3 AS col0 FROM tab1 cor0
----
1251
1407
573
query I rowsort
SELECT col0 * col2 + + 98 FROM tab2 AS cor0
----
2126
287
3100
query I rowsort
SELECT col2 - ( - tab2.col0 ) FROM tab2
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6833
SELECT col1 * ( col0 ) DIV col0 col1 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6833
SELECT col1 * ( col0 ) / col0 col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - 92 AS col1 FROM tab1
----
-92
-92
-92
query I rowsort
SELECT - 43 AS col0 FROM tab0
----
-43
-43
-43
query I rowsort
SELECT ALL col0 * 29 AS col2 FROM tab1
----
1856
2320
87
query I rowsort
SELECT DISTINCT + ( + tab2.col0 + - col1 * + tab2.col0 ) AS col1 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT col1 * 37 FROM tab0
----
3182
3367
3589
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - cor0.col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + tab1.col1 col1 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT ( - col0 + + col0 ) AS col0 FROM tab2
----
0
query I rowsort
SELECT ALL - 31 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
query I rowsort
SELECT DISTINCT + - col2 + - col2 * col1 - + col1 FROM tab0 cor0
----
-195
-2957
-7635
onlyif mysql # use DIV operator for integer division
query I rowsort label-6844
SELECT ALL - 34 * cor0.col2 + col0 * col1 DIV col1 col2 FROM tab2 AS cor0
----
-1213
-806
-911
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL - 34 * cor0.col2 + col0 * col1 / col1 col2 FROM tab2 AS cor0
----
-1213
-806
-911
query I rowsort
SELECT DISTINCT cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + 36 * col2 AS col2 FROM tab1 AS cor0
----
1944
2052
3456
query I rowsort
SELECT ALL ( + col0 ) + col1 * - col1 * col1 FROM tab0 AS cor0
----
-636032
-753482
-912638
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 * col2 col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT 74 * col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
1275
2325
4425
onlyif mysql # use DIV operator for integer division
query I rowsort label-6850
SELECT DISTINCT - + cor0.col2 DIV cor0.col2 col0 FROM tab1 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT - + cor0.col2 / cor0.col2 col0 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT ALL col0 - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT DISTINCT + + cor0.col2 * col1 + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - - col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + col2 * + col0 * col1 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6855
SELECT ALL CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 22 FROM tab1, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT DISTINCT - - col2 + - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL - - 17 AS col0 FROM tab2 AS cor0
----
17
17
17
query I rowsort
SELECT + col2 * ( + col1 ) + - col1 AS col0 FROM tab0 cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT + + col2 * + col2 + col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL cor0.col0 * + col0 + + cor0.col2 + cor0.col2 * + col1 AS col2 FROM tab1 AS cor0
----
1467
4723
7744
query I rowsort
SELECT ALL col2 - + col2 * col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT - 0 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL - col1 * - 87 * ( - col2 ) AS col0 FROM tab0 AS cor0
----
-246906
-649194
-8439
query I rowsort
SELECT ALL - + col2 * 43 AS col1 FROM tab1 AS cor0
----
-2322
-2451
-4128
query I rowsort
SELECT + col1 + + 87 AS col1 FROM tab0 AS cor0
----
173
178
184
query I rowsort
SELECT DISTINCT + + col0 * - ( + col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-6868
SELECT ALL - col2 + - col1 DIV col0 AS col1 FROM tab0 AS cor0
----
-3
-36
-83
skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL - col2 + - col1 / col0 AS col1 FROM tab0 AS cor0
----
-3
-36
-83
query I rowsort
SELECT + - col2 + - 72 + + col1 FROM tab2 AS cor0
----
-39
-68
-93
query I rowsort
SELECT ALL + - col2 + - cor0.col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL cor0.col2 * - ( col0 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT cor0.col1 * - col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + col1 * 56 * cor0.col2 AS col1 FROM tab0 AS cor0
----
158928
417872
5432
query I rowsort
SELECT - 98 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
query I rowsort
SELECT ALL + + 31 * col2 FROM tab0 AS cor0
----
1023
2542
31
query I rowsort
SELECT - col0 * + cor0.col0 + + col1 + - col2 FROM tab0 AS cor0
----
-1129
-523
-7912
onlyif mysql # use DIV operator for integer division
query I rowsort label-6877
SELECT DISTINCT + 60 DIV - col1 AS col0 FROM tab2 cor0
----
-1
-3
skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT + 60 / - col1 AS col0 FROM tab2 cor0
----
-1
-3
query I rowsort
SELECT - col0 + col0 * + col1 AS col2 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT + col0 + col2 + - col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT tab0.col1 + + col0 * - col1 + col2 FROM tab0
----
-1945
-3297
-7926
query I rowsort
SELECT ALL tab1.col2 + + col0 * col0 FROM tab1
----
4153
63
6496
query I rowsort
SELECT ALL - col0 * + col0 + + col2 * col2 FROM tab2
----
-4797
-5408
680
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col0 ) BETWEEN col2 + + cor0.col2 AND - col0 OR NOT ( NULL ) BETWEEN NULL AND ( - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT + col2 * col0 + col1 * - col2 * col1 + cor0.col2 FROM tab0 AS cor0
----
-243243
-671662
-9373
query III rowsort
SELECT * FROM tab0 WHERE NOT col1 > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col2 + cor0.col0 * - cor0.col0 col2 FROM tab0 AS cor0
----
-1189
-519
-7750
query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE + col0 > NULL
----
query I rowsort
SELECT DISTINCT + 89 + col0 + col0 * - col0 AS col0 FROM tab0
----
-1101
-463
-7743
query I rowsort
SELECT - 87 + col0 + tab1.col1 AS col0 FROM tab1
----
-13
-58
6
query I rowsort
SELECT ALL col2 * + col1 * col2 FROM tab0
----
611884
93654
97
query I rowsort
SELECT ALL + + col2 * col2 AS col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT - - col0 + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL - - 44 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab2, tab1 cor1
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a
query I rowsort
SELECT col0 + + col1 + col1 FROM tab2
----
113
196
69
query I rowsort
SELECT DISTINCT tab0.col2 + 53 * - col0 - + tab0.col0 AS col0 FROM tab0
----
-1263
-1889
-4724
onlyif mysql # use DIV operator for integer division
query I rowsort label-6897
SELECT + col1 - col2 * col2 DIV col0 FROM tab2 AS cor0
----
-1
-73
51
skipif mysql # not compatible
query I rowsort label-6897
SELECT + col1 - col2 * col2 / col0 FROM tab2 AS cor0
----
-1
-73
51
query I rowsort
SELECT - 22 * col2 FROM tab0
----
-1804
-22
-726
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6899
SELECT DISTINCT + CAST( col2 AS SIGNED ) col2 FROM tab0 cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6899
SELECT DISTINCT + CAST ( col2 AS INTEGER ) col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT - col0 * 6 FROM tab0 AS cor0
----
-144
-210
-534
query I rowsort
SELECT + - col1 * col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col1 col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - 99 AS col2 FROM tab2 cor0
----
-99
-99
-99
query I rowsort
SELECT 11 AS col0 FROM tab2 cor0
----
11
11
11
query I rowsort
SELECT DISTINCT 55 AS col0 FROM tab1, tab2, tab2 cor0
----
55
query I rowsort
SELECT DISTINCT - col0 + col1 * - ( + col0 + - tab1.col2 ) AS col0 FROM tab1
----
-134
128
1323
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6907
SELECT ALL col1 * col0 + + CAST( NULL AS DECIMAL ) + col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL col1 * col0 + + CAST ( NULL AS REAL ) + col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6908
SELECT + + cor0.col1 DIV + col2 + ( 35 ) + + col0 col1 FROM tab0 AS cor0
----
125
167
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6908
SELECT + + cor0.col1 / + col2 + ( 35 ) + + col0 col1 FROM tab0 AS cor0
----
125
167
61
query I rowsort
SELECT ALL - + 96 * col0 AS col0 FROM tab2 AS cor0
----
-672
-7488
-7584
query I rowsort
SELECT DISTINCT + 46 * + col1 FROM tab0 AS cor0
----
3956
4186
4462
query I rowsort
SELECT ALL - - 5 FROM tab1 AS cor0
----
5
5
5
query I rowsort
SELECT + 36 * col1 * - col0 FROM tab0 AS cor0
----
-122220
-291564
-74304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 col2 FROM tab1, tab0 cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT - 99 * cor0.col0 * 80 FROM tab1 AS cor0
----
-23760
-506880
-633600
query I rowsort
SELECT DISTINCT + cor0.col0 * 95 AS col0 FROM tab2 AS cor0
----
665
7410
7505
query I rowsort
SELECT ALL - - col2 * - 27 - col2 FROM tab0 AS cor0
----
-2296
-28
-924
query I rowsort
SELECT ALL col0 * ( 55 ) + col1 FROM tab1 cor0
----
191
3530
4413
query I rowsort
SELECT DISTINCT + - col2 + 60 AS col1 FROM tab0 AS cor0
----
-22
27
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + cor0.col0 * col1 col1 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT ALL + - col0 * - ( + col2 ) - + cor0.col1 FROM tab0 cor0
----
-62
706
7207
query I rowsort
SELECT DISTINCT col1 * 43 FROM tab1 AS cor0
----
1118
430
559
query I rowsort
SELECT col2 * 40 * + col1 AS col2 FROM tab0 AS cor0
----
113520
298480
3880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 * - col0 col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT + col1 * + ( col0 ) FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL cor0.col0 * - 37 FROM tab0 AS cor0
----
-1295
-3293
-888
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col1 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 * col2 col1 FROM tab2
----
-1444
-676
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6928
SELECT ALL col0 * - CAST( NULL AS SIGNED ) + 55 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6928
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) + 55 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col0 * 48 - - ( - col1 ) FROM tab2 AS cor0
----
-367
-3803
-3809
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6930
SELECT - + col1 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6930
SELECT - + col1 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 - col0 AS col2 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT col1 * 94 + - col2 + - ( 35 ) * col0 AS col1 FROM tab2 cor0
----
-1205
2642
2790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 99 col1 FROM tab0 AS cor0
----
8514
9009
9603
query I rowsort
SELECT + 46 * + ( col0 ) AS col2 FROM tab2 AS cor0
----
322
3588
3634
query I rowsort
SELECT - ( 33 ) - col1 FROM tab2 cor0
----
-50
-64
-92
onlyif mysql # use DIV operator for integer division
query I rowsort label-6936
SELECT - col2 DIV + col1 - cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-6936
SELECT - col2 / + col1 - cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + 0 + col0 * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - col0 * + col2 + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-406
-4345
-6630
query I rowsort
SELECT - + cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + col0 + - 3 * col1 AS col1 FROM tab1 AS cor0
----
-75
34
41
query I rowsort
SELECT - col0 - - col1 AS col1 FROM tab2 cor0
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6942
SELECT ALL CAST( NULL AS SIGNED ) / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL CAST ( NULL AS INTEGER ) / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( - cor0.col1 ) - + col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT + - ( - col0 ) * - cor0.col1 + + 6 AS col1 FROM tab2 AS cor0
----
-1337
-211
-4596
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 8 ) col0 FROM tab2
----
8
query I rowsort
SELECT 78 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048
query I rowsort
SELECT ALL 67 FROM tab0, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT ALL col0 + 74 FROM tab2
----
152
153
81
query I rowsort
SELECT + + col0 + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL cor0.col2 + + 30 * col2 FROM tab2 AS cor0
----
1178
806
837
query I rowsort
SELECT DISTINCT col1 - - cor0.col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT 48 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6954
SELECT ALL - tab1.col1 * - CAST( + col0 AS SIGNED ) + tab1.col2 FROM tab1
----
1136
132
697
skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL - tab1.col1 * - CAST ( + col0 AS INTEGER ) + tab1.col2 FROM tab1
----
1136
132
697
query I rowsort
SELECT col1 - col1 * - 11 AS col0 FROM tab1
----
120
156
312
query I rowsort
SELECT col2 + 72 FROM tab2
----
110
98
99
query I rowsort
SELECT ALL - 72 * + 20 AS col2 FROM tab1 AS cor0
----
-1440
-1440
-1440
query I rowsort
SELECT DISTINCT + col1 + cor0.col1 AS col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT col2 * col1 + col1 * + cor0.col1 FROM tab0 AS cor0
----
10234
15743
9506
query I rowsort
SELECT DISTINCT + - 58 AS col1 FROM tab2 AS cor0
----
-58
query I rowsort
SELECT - + ( - 67 ) FROM tab2 AS cor0
----
67
67
67
query I rowsort
SELECT ALL ( 22 ) + col2 FROM tab1 AS cor0
----
118
76
79
query I rowsort
SELECT DISTINCT + ( 55 ) * col1 FROM tab0 AS cor0
----
4730
5005
5335
onlyif mysql # use DIV operator for integer division
query I rowsort label-6964
SELECT ALL + 44 + col2 * col2 + + cor0.col2 DIV col1 FROM tab1 AS cor0
----
2962
3298
9267
skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL + 44 + col2 * col2 + + cor0.col2 / col1 FROM tab1 AS cor0
----
2962
3298
9267
query I rowsort
SELECT - ( 83 ) AS col0 FROM tab2 AS cor0
----
-83
-83
-83
query I rowsort
SELECT ALL + cor0.col2 + - col1 AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL - + col1 + 98 FROM tab2 AS cor0
----
39
67
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6968
SELECT CAST( - col2 AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-6968
SELECT CAST ( - col2 AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL ( + col1 ) * + col0 * col0 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6970
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 87 * cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6970
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 87 * cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6971
SELECT DISTINCT + CAST( - col2 AS SIGNED ) + col2 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) + col2 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col2 * + col2 + + col0 AS col0 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT ( + col1 ) + + ( + col1 ) FROM tab0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-6974
SELECT 29 DIV + col1 AS col1 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6974
SELECT 29 / + col1 AS col1 FROM tab2
----
0
0
1
query I rowsort
SELECT DISTINCT - 32 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-32
onlyif mysql # use DIV operator for integer division
query I rowsort label-6976
SELECT ALL - ( col2 ) DIV 17 AS col1 FROM tab1 AS cor0
----
-3
-3
-5
skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL - ( col2 ) / 17 AS col1 FROM tab1 AS cor0
----
-3
-3
-5
query I rowsort
SELECT - - col1 * + col0 + + col1 - + col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL col0 + col0 * - ( + ( col0 ) + + 44 ) FROM tab1 AS cor0
----
-138
-6848
-9840
query I rowsort
SELECT + col2 * col2 + col0 + + col1 * col1 FROM tab0 AS cor0
----
15094
8509
9445
query I rowsort
SELECT - + col1 * col1 - col1 AS col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * - col0 col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT + ( col2 ) + - 94 FROM tab0 AS cor0
----
-12
-61
-93
query I rowsort
SELECT ALL 45 * col0 AS col1 FROM tab0 cor0
----
1080
1575
4005
query I rowsort
SELECT ALL col2 * - 3 AS col1 FROM tab1 AS cor0
----
-162
-171
-288
query I rowsort
SELECT DISTINCT + + col2 + cor0.col2 * + col1 AS col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + col0 + 61 AS col2 FROM tab1 AS cor0
----
125
141
64
query I rowsort
SELECT + + col2 + - ( + col0 + + col2 ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - col2 + + 53 FROM tab1 AS cor0
----
-1
-4
-43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6990
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6991
SELECT DISTINCT + col2 * + ( cor0.col1 ) + + col1 DIV CAST( + 23 + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1534
646
838
skipif mysql # not compatible
query I rowsort label-6991
SELECT DISTINCT + col2 * + ( cor0.col1 ) + + col1 / CAST ( + 23 + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1534
646
838
query I rowsort
SELECT ALL - + col0 - col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - col0 * + col2 * col1 + col0 AS col0 FROM tab0 AS cor0
----
-3360
-664029
-68088
query I rowsort
SELECT + - cor0.col2 + ( 18 ) - col2 AS col0 FROM tab2 AS cor0
----
-34
-36
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - cor0.col2 col1 FROM tab0 cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6996
SELECT DISTINCT - col2 + CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6996
SELECT DISTINCT - col2 + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + col1 * + 71 FROM tab2 cor0
----
1207
2201
4189
query I rowsort
SELECT + cor0.col2 * + 88 + 47 AS col2 FROM tab0 AS cor0
----
135
2951
7263
onlyif mysql # use DIV operator for integer division
query I rowsort label-6999
SELECT - + col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-6999
SELECT - + col1 / + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT - cor0.col1 * col0 + - 36 FROM tab0 AS cor0
----
-2100
-3431
-8135
onlyif mysql # use DIV operator for integer division
query I rowsort label-7001
SELECT - - col0 + + 80 DIV + col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-7001
SELECT - - col0 + + 80 / + col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + col0 * - ( + 17 ) * + col2 FROM tab0 AS cor0
----
-124066
-13464
-595
query I rowsort
SELECT + cor0.col1 + ( - 6 ) AS col1 FROM tab0 AS cor0
----
80
85
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7004
SELECT - col1 + + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7004
SELECT - col1 + + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * + col0 + + 0 * - col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + 18 + col2 AS col1 FROM tab1 AS cor0
----
114
72
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * + 98 col2 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to e05c8d6ce3f8d5e9cba680365e2cc6b9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7008
SELECT DISTINCT - col2 DIV + tab2.col0 AS col2 FROM tab2
----
-3
0
skipif mysql # not compatible
query I rowsort label-7008
SELECT DISTINCT - col2 / + tab2.col0 AS col2 FROM tab2
----
-3
0
query I rowsort
SELECT ALL - col0 + + 36 * - 91 FROM tab1
----
-3279
-3340
-3356
query I rowsort
SELECT - col2 * col1 + + col1 * col0 AS col0 FROM tab2
----
-620
3068
697
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b
query I rowsort
SELECT DISTINCT + col0 + + col2 + - ( - cor0.col0 ) * - col2 AS col0 FROM tab2 cor0
----
-155
-1924
-2885
onlyif mysql # use DIV operator for integer division
query I rowsort label-7013
SELECT DISTINCT - col0 + col2 DIV ( - col0 + col0 * - col0 ) col2 FROM tab2 AS cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT - col0 + col2 / ( - col0 + col0 * - col0 ) col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + ( - ( - col0 ) ) FROM tab1
----
3
64
80
query I rowsort
SELECT + col1 - - ( - col1 ) FROM tab2
----
0
0
0
query I rowsort
SELECT ALL tab0.col0 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT col0 + - tab0.col0 + + col1 AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL + col1 * col1 + - ( - col0 ) FROM tab1 cor0
----
164
249
679
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col0 col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
7
78
79
query I rowsort
SELECT DISTINCT + col2 * + col2 + 42 FROM tab0 AS cor0
----
1131
43
6766
query I rowsort
SELECT ALL - 42 * col1 AS col0 FROM tab1
----
-1092
-420
-546
query I rowsort
SELECT col2 * col0 * - col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-7023
SELECT - cor0.col1 DIV 82 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7023
SELECT - cor0.col1 / 82 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 55 * + col0 + + col0 * ( - col0 ) + + col2 FROM tab2 cor0
----
-1768
-1858
363
query I rowsort
SELECT + ( cor0.col1 ) * col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + 30 + - col1 + col0 FROM tab0 AS cor0
----
-32
-32
28
query I rowsort
SELECT DISTINCT + + col0 * 67 AS col1 FROM tab1 AS cor0
----
201
4288
5360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7028
SELECT - CAST( + ( + col2 ) AS SIGNED ) + 18 AS col1 FROM tab1 AS cor0
----
-36
-39
-78
skipif mysql # not compatible
query I rowsort label-7028
SELECT - CAST ( + ( + col2 ) AS INTEGER ) + 18 AS col1 FROM tab1 AS cor0
----
-36
-39
-78
query I rowsort
SELECT - 93 AS col0 FROM tab1 cor0
----
-93
-93
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-7030
SELECT col1 DIV 71 + col2 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-7030
SELECT col1 / 71 + col2 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT 2 * + col1 * col0 FROM tab1 AS cor0
----
1280
156
2080
query I rowsort
SELECT - 33 * - col0 AS col0 FROM tab1 AS cor0
----
2112
2640
99
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 6dd6930689f177711fda407b5ce0d072
query I rowsort
SELECT DISTINCT + + 30 + cor0.col2 FROM tab0, tab2 cor0
----
56
57
68
query I rowsort
SELECT ALL - 17 FROM tab1, tab1 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4
query I rowsort
SELECT tab1.col2 * - 91 + - 23 FROM tab1, tab2 AS cor0
----
9 values hashing to 3cfd1bf8b273725cd4363b0331b20520
query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
86
91
97
query I rowsort
SELECT - ( 88 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + tab1.col2 col1 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-7040
SELECT + col0 DIV + col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7040
SELECT + col0 / + col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + 21 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT col1 * - ( - col1 ) * - col1 FROM tab0
----
-636056
-753571
-912673
query I rowsort
SELECT - col2 * col1 + - 42 + col2 FROM tab1 AS cor0
----
-1194
-1392
-555
onlyif mysql # use DIV operator for integer division
query I rowsort label-7044
SELECT DISTINCT - col2 DIV 27 FROM tab2
----
-1
0
skipif mysql # not compatible
query I rowsort label-7044
SELECT DISTINCT - col2 / 27 FROM tab2
----
-1
0
query I rowsort
SELECT + col0 + col0 * cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
106176
1526
359034
query I rowsort
SELECT DISTINCT - col1 * - cor0.col2 * col2 + ( col2 ) * - col2 AS col2 FROM tab0 AS cor0
----
605160
92565
96
query I rowsort
SELECT - ( cor0.col0 ) + + col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7048
SELECT ALL - + CAST( NULL AS SIGNED ) * 58 + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL - + CAST ( NULL AS INTEGER ) * 58 + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - tab2.col1 * col1 + col1 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT ALL - 63 * + tab0.col2 FROM tab0
----
-2079
-5166
-63
query I rowsort
SELECT DISTINCT ( col2 ) * + col0 + + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7052
SELECT DISTINCT + cor0.col0 * CAST( NULL AS SIGNED ) + - 31 col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7052
SELECT DISTINCT + cor0.col0 * CAST ( NULL AS INTEGER ) + - 31 col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
NULL
query I rowsort
SELECT 20 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT 51 + ( - col2 * - col0 ) AS col0 FROM tab0 AS cor0
----
7349
843
86
query I rowsort
SELECT DISTINCT - 82 * col2 + col1 FROM tab2 AS cor0
----
-2073
-2183
-3099
query I rowsort
SELECT DISTINCT - ( - 60 ) AS col2 FROM tab1 AS cor0
----
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7057
SELECT ALL cor0.col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL cor0.col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL 58 * col0 AS col0 FROM tab2
----
406
4524
4582
query I rowsort
SELECT + col1 - col1 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT - 2 + col2 AS col0 FROM tab1 AS cor0
----
52
55
94
query I rowsort
SELECT ( + col1 + 23 ) FROM tab2
----
40
54
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7062
SELECT DISTINCT - cor0.col2 DIV col0 - + col1 * col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-964
skipif mysql # not compatible
query I rowsort label-7062
SELECT DISTINCT - cor0.col2 / col0 - + col1 * col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-964
query I rowsort
SELECT ALL col0 + - 97 * 21 FROM tab0 AS cor0
----
-1948
-2002
-2013
onlyif mysql # use DIV operator for integer division
query I rowsort label-7064
SELECT ALL cor0.col0 DIV col1 AS col0 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL cor0.col0 / col1 AS col0 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT ALL + + cor0.col1 + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - - col0 + col1 FROM tab0 cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-7067
SELECT col0 * col0 DIV col1 + - col0 AS col2 FROM tab2 AS cor0
----
-6
25
288
skipif mysql # not compatible
query I rowsort label-7067
SELECT col0 * col0 / col1 + - col0 AS col2 FROM tab2 AS cor0
----
-6
25
288
query I rowsort
SELECT DISTINCT col1 * col0 - col0 FROM tab1 AS cor0
----
576
75
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-7069
SELECT + 17 DIV - col1 col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7069
SELECT + 17 / - col1 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT - col1 * col2 * col1 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT col0 * 89 FROM tab2 cor0
----
623
6942
7031
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7072
SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL col0 * - col2 + col2 * + col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col1 + + 76 FROM tab2 cor0
----
107
135
93
query I rowsort
SELECT ALL + 78 AS col1 FROM tab1 AS cor0
----
78
78
78
query I rowsort
SELECT ALL - 79 * + col2 FROM tab1 AS cor0
----
-4266
-4503
-7584
query I rowsort
SELECT DISTINCT + col2 + col0 * + col0 AS col1 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT ALL + cor1.col1 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - - col2 * cor0.col1 * + col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT DISTINCT + - col0 + - col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7082
SELECT 91 * col1 + tab2.col0 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7082
SELECT 91 * col1 + tab2.col0 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col1 * - col2 + - col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT - + col0 * - col2 + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT col0 + + col2 * 2 + col0 AS col1 FROM tab1 AS cor0
----
114
242
352
query I rowsort
SELECT + - cor0.col1 + - cor0.col0 * col2 * col1 FROM tab1 AS cor0
----
-36490
-4238
-99853
query I rowsort
SELECT DISTINCT 60 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-7088
SELECT ALL col2 + - col0 DIV tab1.col0 AS col2 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL col2 + - col0 / tab1.col0 AS col2 FROM tab1
----
53
56
95
query I rowsort
SELECT cor0.col0 * ( cor0.col0 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 4829ede06f586935ff95a5b0dfdb9199
query I rowsort
SELECT DISTINCT - 28 FROM tab1, tab0 cor0, tab2 cor1
----
-28
onlyif mysql # use DIV operator for integer division
query I rowsort label-7091
SELECT DISTINCT - ( 80 ) * + col1 DIV - col1 + 18 FROM tab0 AS cor0
----
98
skipif mysql # not compatible
query I rowsort label-7091
SELECT DISTINCT - ( 80 ) * + col1 / - col1 + 18 FROM tab0 AS cor0
----
98
query I rowsort
SELECT ALL + col2 + + col1 * col0 FROM tab1 cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-7093
SELECT DISTINCT cor0.col0 DIV 85 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT cor0.col0 / 85 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL 40 AS col1 FROM tab2 AS cor0
----
40
40
40
query I rowsort
SELECT - 73 * + cor0.col2 + - col1 FROM tab1 AS cor0
----
-3968
-4171
-7021
query I rowsort
SELECT DISTINCT + - 4 + 42 FROM tab0 AS cor0
----
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7097
SELECT - tab0.col1 + col2 DIV - col0 AS col1 FROM tab0
----
-87
-91
-97
skipif mysql # not compatible
query I rowsort label-7097
SELECT - tab0.col1 + col2 / - col0 AS col1 FROM tab0
----
-87
-91
-97
query I rowsort
SELECT - 56 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80
query I rowsort
SELECT - col2 + - tab0.col0 * col1 * col2 AS col2 FROM tab0
----
-3396
-664200
-68145
onlyif mysql # use DIV operator for integer division
query I rowsort label-7100
SELECT ALL tab2.col2 * col0 DIV - col0 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL tab2.col2 * col0 / - col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL - col1 * 16 FROM tab0
----
-1376
-1456
-1552
query I rowsort
SELECT - 46 FROM tab2, tab0 cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
onlyif mysql # use DIV operator for integer division
query I rowsort label-7103
SELECT ALL 13 + + 73 + col0 DIV + 52 col0 FROM tab2
----
86
87
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL 13 + + 73 + col0 / + 52 col0 FROM tab2
----
86
87
87
query I rowsort
SELECT DISTINCT + 60 AS col1 FROM tab1, tab1 AS cor0
----
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7105
SELECT ALL + CAST( NULL AS SIGNED ) / + col0 + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL + CAST ( NULL AS INTEGER ) / + col0 + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col2 + col1 AS col1 FROM tab2 cor0
----
-21
33
4
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7108
SELECT ALL - 78 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL - 78 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col2 + + 57 * col2 FROM tab0 AS cor0
----
1848
4592
56
query I rowsort
SELECT ALL + cor0.col2 + col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - - ( - col1 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - col2 * + col1 - col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT ALL + + cor0.col0 AS col0 FROM tab2 cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-7114
SELECT ALL + col2 DIV - col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7114
SELECT ALL + col2 / - col2 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7115
SELECT - + col0 DIV col2 + + col1 AS col1 FROM tab1 AS cor0
----
13
26
9
skipif mysql # not compatible
query I rowsort label-7115
SELECT - + col0 / col2 + + col1 AS col1 FROM tab1 AS cor0
----
13
26
9
query I rowsort
SELECT - + 47 AS col0 FROM tab2 AS cor0
----
-47
-47
-47
query I rowsort
SELECT + cor0.col1 * - 1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
skipif mysql # not compatible
query I rowsort
SELECT CAST ( 21 AS REAL ) FROM tab2
----
21
21
21
query I rowsort
SELECT + 45 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT ALL - col2 * col1 - col2 AS col0 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT ALL 60 AS col1 FROM tab1
----
60
60
60
query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - + col1 * - col2 - col1 * 54 FROM tab0 cor0
----
-1806
-5141
2548
query I rowsort
SELECT + ( cor0.col0 ) FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT col1 + + col2 * + col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT 0 + col2 + - 43 FROM tab2 AS cor0
----
-16
-17
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-7127
SELECT + 99 DIV - col1 AS col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7127
SELECT + 99 / - col1 AS col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT 74 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7129
SELECT - col1 * cor0.col1 + + CAST( col1 + col1 AS SIGNED ) * 57 AS col1 FROM tab2 AS cor0
----
1649
2573
3245
skipif mysql # not compatible
query I rowsort label-7129
SELECT - col1 * cor0.col1 + + CAST ( col1 + col1 AS INTEGER ) * 57 AS col1 FROM tab2 AS cor0
----
1649
2573
3245
query I rowsort
SELECT - 95 - col1 FROM tab2 AS cor0
----
-112
-126
-154
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7131
SELECT + col0 * + col0 * CAST( cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
1225
19008
649522
skipif mysql # not compatible
query I rowsort label-7131
SELECT + col0 * + col0 * CAST ( cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT + col2 * - col2 - 56 AS col2 FROM tab0 cor0
----
-1145
-57
-6780
query I rowsort
SELECT ALL col0 * ( + col1 ) FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - col1 * + ( col2 ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + - col1 * col1 + - 60 + col0 AS col2 FROM tab0 cor0
----
-7432
-8252
-9434
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 33 col2 FROM tab1 cor0
----
-1782
-1881
-3168
query I rowsort
SELECT DISTINCT col2 * - 5 - col0 AS col2 FROM tab1 AS cor0
----
-273
-349
-560
query I rowsort
SELECT - col2 + + 93 AS col1 FROM tab0 AS cor0
----
11
60
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * - col0 * + col2 col0 FROM tab1 AS cor0
----
36537
4266
99936
query I rowsort
SELECT ALL - col2 * col2 + - 62 FROM tab0 AS cor0
----
-1151
-63
-6786
query I rowsort
SELECT ALL - - col0 * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - + col2 + col1 * col0 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT 19 + - 20 * - col2 AS col0 FROM tab1 AS cor0
----
1099
1159
1939
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col2 FROM tab0, tab1 cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT 39 FROM tab2, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT DISTINCT - 85 + + col0 FROM tab2
----
-6
-7
-78
query I rowsort
SELECT - 71 * + col0 + 17 FROM tab1 AS cor0
----
-196
-4527
-5663
query I rowsort
SELECT - ( - cor0.col0 ) * col0 + 24 FROM tab2 AS cor0
----
6108
6265
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT col2 + cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 * col0 + - col1 col2 FROM tab1 AS cor0
----
217
5174
6467
query I rowsort
SELECT - - col1 * 99 AS col0 FROM tab1 cor0
----
1287
2574
990
query I rowsort
SELECT - col2 * - 41 FROM tab2 cor0
----
1066
1107
1558
query I rowsort
SELECT + 37 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2
onlyif mysql # use DIV operator for integer division
query I rowsort label-7156
SELECT + - col0 DIV - cor0.col0 + + cor0.col0 * - col2 FROM tab2 AS cor0
----
-188
-2027
-3001
skipif mysql # not compatible
query I rowsort label-7156
SELECT + - col0 / - cor0.col0 + + cor0.col0 * - col2 FROM tab2 AS cor0
----
-188
-2027
-3001
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + col0 col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - tab2.col1 * - tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7159
SELECT + col1 * + CAST( NULL AS DECIMAL ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7159
SELECT + col1 * + CAST ( NULL AS REAL ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 - + col0 * col2 * col2 FROM tab0 AS cor0
----
-26112
-598347
0
query I rowsort
SELECT DISTINCT + + cor0.col2 - col0 * - 0 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + + col1 + 45 FROM tab1 AS cor0
----
55
58
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7163
SELECT + CAST( NULL AS SIGNED ) * 41 + cor0.col0 - - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7163
SELECT + CAST ( NULL AS INTEGER ) * 41 + cor0.col0 - - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * col1 + cor0.col2 - - 37 FROM tab0 AS cor0
----
7466
8400
9447
onlyif mysql # use DIV operator for integer division
query I rowsort label-7165
SELECT - cor0.col2 DIV col2 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7165
SELECT - cor0.col2 / col2 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT + - ( - col0 ) + + col1 - 90 FROM tab1 AS cor0
----
-16
-61
3
query I rowsort
SELECT - + 64 AS col0 FROM tab2 cor0
----
-64
-64
-64
query I rowsort
SELECT - 11 FROM tab2 cor0
----
-11
-11
-11
onlyif mysql # use DIV operator for integer division
query I rowsort label-7169
SELECT ALL col1 * ( col1 ) + + col2 DIV col1 + col1 AS col0 FROM tab0
----
7482
8372
9506
skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL col1 * ( col1 ) + + col2 / col1 + col1 AS col0 FROM tab0
----
7482
8372
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-7170
SELECT col0 DIV 25 col1 FROM tab0
----
0
1
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7170
SELECT col0 / 25 col1 FROM tab0
----
0
1
3
query I rowsort
SELECT + tab1.col2 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # use DIV operator for integer division
query I rowsort label-7172
SELECT + col1 - - col0 DIV - ( - col1 ) FROM tab1 AS cor0
----
16
19
26
skipif mysql # not compatible
query I rowsort label-7172
SELECT + col1 - - col0 / - ( - col1 ) FROM tab1 AS cor0
----
16
19
26
query I rowsort
SELECT - 50 * col1 + - col1 FROM tab0 AS cor0
----
-4386
-4641
-4947
onlyif mysql # use DIV operator for integer division
query I rowsort label-7174
SELECT - col2 DIV col0 + + col2 * + col0 FROM tab1 AS cor0
----
144
3648
7679
skipif mysql # not compatible
query I rowsort label-7174
SELECT - col2 / col0 + + col2 * + col0 FROM tab1 AS cor0
----
144
3648
7679
onlyif mysql # use DIV operator for integer division
query I rowsort label-7175
SELECT 63 DIV + col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7175
SELECT 63 / + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col1 * + 90 AS col2 FROM tab2
----
1530
2790
5310
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 * col0 col2 FROM tab1
----
24
512
640
query I rowsort
SELECT 2 * + tab0.col0 AS col0 FROM tab0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7179
SELECT DISTINCT + 97 + - col2 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7179
SELECT DISTINCT + 97 + - col2 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
query I rowsort
SELECT + + ( - 22 ) FROM tab0, tab2 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
query I rowsort
SELECT DISTINCT + col0 * - col0 + 5 * ( col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
2304
31684
4900
query I rowsort
SELECT DISTINCT + 17 * col2 AS col0 FROM tab2 AS cor0
----
442
459
646
query I rowsort
SELECT + col2 + + ( col1 ) AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT + 82 * col1 + - ( - col2 ) + - col0 FROM tab0
----
7061
7455
7920
query I rowsort
SELECT DISTINCT + col1 * col1 * + col1 + col1 AS col0 FROM tab0
----
636142
753662
912770
query I rowsort
SELECT DISTINCT + col2 * tab2.col1 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT - 48 * - col1 FROM tab0
----
4128
4368
4656
query I rowsort
SELECT DISTINCT col0 * + col2 - + 92 AS col2 FROM tab2
----
1936
2910
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7189
SELECT 67 + - col1 * 36 DIV - cor0.col2 col2 FROM tab0 AS cor0
----
106
160
3559
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7189
SELECT 67 + - col1 * 36 / - cor0.col2 col2 FROM tab0 AS cor0
----
106
160
3559
query I rowsort
SELECT ALL + tab0.col2 + col2 * - 48 + - 70 FROM tab0
----
-117
-1621
-3924
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * col1 col0 FROM tab1
----
1586
610
793
query I rowsort
SELECT 62 * tab0.col1 + - col0 * - col0 FROM tab0
----
13563
5908
7239
query I rowsort
SELECT ALL + 54 + 93 FROM tab0, tab2 cor0
----
9 values hashing to 7ea90b86e1b35d6116fcda7346d04909
query I rowsort
SELECT - 96 * 76 FROM tab2 AS cor0
----
-7296
-7296
-7296
query I rowsort
SELECT ALL - + 85 * - 76 - cor0.col2 AS col0 FROM tab0 AS cor0
----
6378
6427
6459
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7196
SELECT DISTINCT + + CAST( 89 AS SIGNED ) + - col0 AS col1 FROM tab1 AS cor0
----
25
86
9
skipif mysql # not compatible
query I rowsort label-7196
SELECT DISTINCT + + CAST ( 89 AS INTEGER ) + - col0 AS col1 FROM tab1 AS cor0
----
25
86
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7197
SELECT - col2 DIV + ( + 39 ) + - tab0.col2 FROM tab0
----
-1
-33
-84
skipif mysql # not compatible
query I rowsort label-7197
SELECT - col2 / + ( + 39 ) + - tab0.col2 FROM tab0
----
-1
-33
-84
query I rowsort
SELECT + 43 AS col0 FROM tab1 AS cor0
----
43
43
43
query I rowsort
SELECT ALL + 73 + - ( col0 ) FROM tab2 AS cor0
----
-5
-6
66
query I rowsort
SELECT DISTINCT + col1 * ( - col0 ) * + 24 + col1 FROM tab2 cor0
----
-110389
-32215
-5177
query I rowsort
SELECT ALL + + 59 + + col2 AS col1 FROM tab2 AS cor0
----
85
86
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 60 col0 FROM tab1 AS cor0
----
-60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7203
SELECT ALL - + col2 * 66 / + col0 + - CAST( NULL AS SIGNED ) + col2 * cor0.col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL - + col2 * 66 / + col0 + - CAST ( NULL AS INTEGER ) + col2 * cor0.col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 32 AS col0 FROM tab0 cor0
----
32
32
32
query I rowsort
SELECT DISTINCT - 70 * col0 AS col1 FROM tab1 AS cor0
----
-210
-4480
-5600
query I rowsort
SELECT - - col2 * + 9 AS col1 FROM tab1 AS cor0
----
486
513
864
query I rowsort
SELECT + col2 + 89 AS col0 FROM tab1
----
143
146
185
query I rowsort
SELECT col1 + tab2.col1 * - 68 + col0 FROM tab2
----
-1060
-2070
-3875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + ( col1 ) + + col1 col0 FROM tab1
----
106
55
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT ALL col1 + cor0.col2 * ( col2 ) FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT - ( + 84 ) * col2 + - 38 * col2 AS col2 FROM tab1 cor0
----
-11712
-6588
-6954
query I rowsort
SELECT ALL + ( - 81 ) AS col1 FROM tab1 AS cor0
----
-81
-81
-81
query I rowsort
SELECT ALL - ( - cor0.col0 ) + col0 * col1 * + 34 AS col0 FROM tab1 AS cor0
----
21824
2655
35440
query I rowsort
SELECT cor0.col1 + cor0.col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT + col2 + 90 FROM tab2
----
116
117
128
query I rowsort
SELECT DISTINCT - col0 + - tab0.col0 + - col0 AS col1 FROM tab0
----
-105
-267
-72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7218
SELECT col0 + CAST( col2 * col2 AS SIGNED ) AS col0 FROM tab0
----
1113
36
6813
skipif mysql # not compatible
query I rowsort label-7218
SELECT col0 + CAST ( col2 * col2 AS INTEGER ) AS col0 FROM tab0
----
1113
36
6813
query I rowsort
SELECT 75 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT col2 + 97 + 52 AS col2 FROM tab1
----
203
206
245
onlyif mysql # use DIV operator for integer division
query I rowsort label-7221
SELECT DISTINCT col0 DIV - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT col0 / - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7222
SELECT ALL + 22 + - col2 DIV + col0 FROM tab0 AS cor0
----
21
22
22
skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL + 22 + - col2 / + col0 FROM tab0 AS cor0
----
21
22
22
query I rowsort
SELECT ALL - - col0 * cor0.col1 + - col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT - cor0.col2 + + col0 AS col0 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT ALL col2 * col2 + - col1 AS col0 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT ALL + + 51 AS col2 FROM tab2 AS cor0
----
51
51
51
query I rowsort
SELECT DISTINCT + col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL 15 * col1 AS col2 FROM tab1 AS cor0
----
150
195
390
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 + + col2 * + col0 col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT 25 + cor0.col0 AS col1 FROM tab0 AS cor0
----
114
49
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 + col1 col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT tab1.col0 + - 96 FROM tab1
----
-16
-32
-93
query I rowsort
SELECT DISTINCT - 71 * - col1 + - col2 + 73 * col2 FROM tab1
----
4814
5734
7835
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 69 ) * col2 + - ( col2 ) col0 FROM tab0
----
-2310
-5740
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7235
SELECT DISTINCT CAST( NULL AS SIGNED ) + 44 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 44 AS col0 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 41 col0 FROM tab0 AS cor0
----
41
41
41
query I rowsort
SELECT - + col2 * - col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + + 76 * col2 * col1 AS col1 FROM tab2 AS cor0
----
116584
49096
63612
query I rowsort
SELECT ALL + cor0.col1 + col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7240
SELECT - col0 DIV col2 col2 FROM tab0 AS cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7240
SELECT - col0 / col2 col2 FROM tab0 AS cor0
----
-1
-35
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7241
SELECT ALL - 63 + - ( tab2.col0 + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL - 63 + - ( tab2.col0 + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 76 + col2 FROM tab1
----
130
133
172
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
86
query I rowsort
SELECT - - cor0.col2 * ( 14 ) FROM tab0 AS cor0
----
1148
14
462
query I rowsort
SELECT col1 + - col1 * tab1.col1 * + 67 FROM tab1
----
-11310
-45266
-6690
query I rowsort
SELECT ALL 17 + + 66 * + cor1.col0 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d13c5b4b6b4a8db0ca0890770525eff6
query I rowsort
SELECT col1 * ( col0 ) AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - col2 + 45 AS col0 FROM tab1 AS cor0
----
-12
-51
-9
query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
26
27
38
query I rowsort
SELECT DISTINCT + 96 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
96
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab2 AS cor0 WHERE NOT NULL = NULL
----
query I rowsort
SELECT ALL + tab2.col2 * cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to b336c500cf10b0a0ff50fcdda3308e9b
query I rowsort
SELECT col2 + - 1 * + 78 AS col2 FROM tab0 AS cor0
----
-45
-77
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7254
SELECT col1 DIV - ( col2 ) col1 FROM tab0 AS cor0
----
-1
-2
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7254
SELECT col1 / - ( col2 ) col1 FROM tab0 AS cor0
----
-1
-2
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7255
SELECT col1 DIV 48 FROM tab0 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-7255
SELECT col1 / 48 FROM tab0 AS cor0
----
1
1
2
query I rowsort
SELECT ALL - cor0.col1 * 28 FROM tab0 AS cor0
----
-2408
-2548
-2716
query I rowsort
SELECT - cor0.col0 + cor0.col2 * ( cor0.col2 + 95 ) * + col1 FROM tab2 AS cor0
----
102107
185536
85839
query I rowsort
SELECT ALL 92 + + col1 FROM tab0
----
178
183
189
query I rowsort
SELECT + 51 AS col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
query I rowsort
SELECT + col2 * tab1.col0 * - col0 AS col1 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT ALL ( - col0 ) - col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL + - 26 + - col1 FROM tab2 AS cor0
----
-43
-57
-85
query I rowsort
SELECT - ( cor0.col0 ) AS col0 FROM tab1 cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7264
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 + - col1 - CAST( col2 AS SIGNED ) * + col0 * col1 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7264
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 + - col1 - CAST ( col2 AS INTEGER ) * + col0 * col1 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + - col1 + 73 FROM tab2 cor0
----
14
42
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-7266
SELECT DISTINCT 88 DIV + col0 AS col0 FROM tab1 AS cor0
----
1
29
skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT 88 / + col0 AS col0 FROM tab1 AS cor0
----
1
29
query I rowsort
SELECT 20 + + 77 AS col1 FROM tab2 AS cor0
----
97
97
97
query I rowsort
SELECT DISTINCT + + col1 + col2 * + cor0.col0 - cor0.col0 FROM tab1 AS cor0
----
185
3594
7613
query I rowsort
SELECT + + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT + 92 + + col2 AS col2 FROM tab2 AS cor0
----
118
119
130
query I rowsort
SELECT + + cor0.col0 + - cor0.col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 + col2 * ( ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ALL tab1.col1 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + 52 + col1 * ( col1 * col1 ) AS col2 FROM tab2 AS cor0
----
205431
29843
4965
query I rowsort
SELECT DISTINCT + 20 * col2 * + col0 + + col1 FROM tab0 AS cor0
----
146051
15926
797
query I rowsort
SELECT DISTINCT 73 * - col2 FROM tab1 AS cor0
----
-3942
-4161
-7008
query I rowsort
SELECT DISTINCT + cor0.col1 * - col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL col1 + + col2 AS col0 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7279
SELECT DISTINCT - + 26 + col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
-27
skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT - + 26 + col2 / - col2 AS col1 FROM tab0 AS cor0
----
-27
query I rowsort
SELECT ALL 34 * + col1 FROM tab1 cor0
----
340
442
884
query I rowsort
SELECT ALL tab1.col1 * col2 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-7282
SELECT ALL - 63 DIV - 4 FROM tab0
----
15
15
15
skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL - 63 / - 4 FROM tab0
----
15
15
15
query I rowsort
SELECT ALL + 3 * - col2 FROM tab0
----
-246
-3
-99
query I rowsort
SELECT tab2.col2 + + tab2.col1 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 993162448d72b066e1ac9ba4caa8d8d7
query I rowsort
SELECT col1 * col1 - col2 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT - 50 * + col2 + - ( col2 ) * col0 + - col1 AS col1 FROM tab2 AS cor0
----
-1570
-3387
-4919
onlyif mysql # use DIV operator for integer division
query I rowsort label-7287
SELECT - col1 + - col1 DIV - col2 FROM tab0 AS cor0
----
-84
-90
0
skipif mysql # not compatible
query I rowsort label-7287
SELECT - col1 + - col1 / - col2 FROM tab0 AS cor0
----
-84
-90
0
query I rowsort
SELECT ALL + cor0.col1 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + col0 * cor0.col1 + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-1659
2574
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-7290
SELECT + cor0.col0 DIV col0 + col1 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-7290
SELECT + cor0.col0 / col0 + col1 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT ALL cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - - col1 * ( - 54 ) FROM tab2 AS cor0
----
-1674
-3186
-918
query I rowsort
SELECT ALL + 78 + - cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to e3bcb9224fffcde3d3f4bdd2bada56e0
query I rowsort
SELECT + 84 AS col1 FROM tab0 cor0
----
84
84
84
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 8a7905bab027a06731ba57659d83981d
onlyif mysql # use DIV operator for integer division
query I rowsort label-7296
SELECT col2 + 28 DIV col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7296
SELECT col2 + 28 / col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + + col2 * + ( cor0.col2 ) FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-7298
SELECT ALL col0 DIV 99 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL col0 / 99 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 36 FROM tab0 AS cor0
----
36
36
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7300
SELECT + CAST( NULL AS DECIMAL ) * - 13 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7300
SELECT + CAST ( NULL AS REAL ) * - 13 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 82 FROM tab2 AS cor0
----
-82
-82
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7302
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - col2 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7302
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - col2 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - - col1 * + 70 FROM tab1 AS cor0
----
1820
700
910
query I rowsort
SELECT + - ( col2 ) * col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL - 11 + 7 FROM tab2 AS cor0
----
-4
-4
-4
query I rowsort
SELECT DISTINCT - + col0 * - 7 FROM tab2 AS cor0
----
49
546
553
query I rowsort
SELECT ALL + cor0.col1 + + 21 AS col0 FROM tab2 AS cor0
----
38
52
80
query I rowsort
SELECT - col2 * - 32 FROM tab1 AS cor0
----
1728
1824
3072
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7310
SELECT ALL - CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( - col0 ) + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + col0 - ( col2 ) FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT col2 + cor0.col0 * + 4 FROM tab2 AS cor0
----
338
354
55
query I rowsort
SELECT DISTINCT + col1 * - col0 * 53 AS col2 FROM tab2 AS cor0
----
-11501
-243906
-71179
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col0 FROM tab0 AS cor0
----
85
85
85
query I rowsort
SELECT 8 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
onlyif mysql # use DIV operator for integer division
query I rowsort label-7317
SELECT ALL 72 DIV + col1 AS col0 FROM tab1 cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL 72 / + col1 AS col0 FROM tab1 cor0
----
2
5
7
query I rowsort
SELECT ALL + - 67 * - col2 FROM tab0 AS cor0
----
2211
5494
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-7319
SELECT - col2 - - col1 DIV - col1 AS col2 FROM tab0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-7319
SELECT - col2 - - col1 / - col1 AS col2 FROM tab0
----
-2
-34
-83
query I rowsort
SELECT DISTINCT - 11 * col1 AS col2 FROM tab0 AS cor0
----
-1001
-1067
-946
query I rowsort
SELECT ALL + - col0 + 49 FROM tab1 AS cor0
----
-15
-31
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7322
SELECT + col1 * col1 + col0 * + col0 + - CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
4132
6489
682
skipif mysql # not compatible
query I rowsort label-7322
SELECT + col1 * col1 + col0 * + col0 + - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
4132
6489
682
query I rowsort
SELECT DISTINCT - col0 * + 24 + 70 FROM tab0 AS cor0
----
-2066
-506
-770
query I rowsort
SELECT DISTINCT + - col0 * ( - cor0.col2 ) + col2 + - col2 AS col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL + col1 * - 42 AS col0 FROM tab1 AS cor0
----
-1092
-420
-546
query I rowsort
SELECT ALL col2 + + 14 * + col2 FROM tab0 AS cor0
----
1230
15
495
query I rowsort
SELECT 25 * - 30 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 14254e856186f7df20b002650f8f25b0
query I rowsort
SELECT DISTINCT + ( 73 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7329
SELECT - - col0 + - CAST( NULL AS SIGNED ) / 93 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7329
SELECT - - col0 + - CAST ( NULL AS INTEGER ) / 93 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col2 + - col1 * - col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2, tab0 cor0
----
86
91
97
query I rowsort
SELECT + col1 - + ( col1 ) FROM tab2
----
0
0
0
query I rowsort
SELECT col2 * + col2 + + col2 AS col2 FROM tab2
----
1482
702
756
query I rowsort
SELECT ALL - col0 * + 76 * - col2 AS col2 FROM tab1 AS cor0
----
12312
277248
583680
query I rowsort
SELECT 82 * 2 AS col2 FROM tab1 AS cor0
----
164
164
164
query I rowsort
SELECT ALL - - col0 * - cor0.col2 + - cor0.col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT ALL - col1 * - col0 * + col0 AS col2 FROM tab1
----
234
40960
83200
query I rowsort
SELECT ALL col1 + - 42 FROM tab1
----
-16
-29
-32
query I rowsort
SELECT DISTINCT col2 * - col2 + ( tab1.col1 ) AS col2 FROM tab1
----
-2890
-3239
-9203
query I rowsort
SELECT 23 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
onlyif mysql # use DIV operator for integer division
query I rowsort label-7341
SELECT ALL col1 DIV cor0.col2 + 39 * + col0 AS col0 FROM tab1 AS cor0
----
117
2496
3120
skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL col1 / cor0.col2 + 39 * + col0 AS col0 FROM tab1 AS cor0
----
117
2496
3120
query I rowsort
SELECT col1 * + 64 FROM tab0 AS cor0
----
5504
5824
6208
query I rowsort
SELECT ALL - col2 + + cor0.col1 + col0 FROM tab2 AS cor0
----
11
111
58
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 624c4b72c6f348b0f702418bfe39bd29
query I rowsort
SELECT + 10 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT DISTINCT + cor0.col2 + + 77 * - col2 AS col1 FROM tab0 AS cor0
----
-2508
-6232
-76
query I rowsort
SELECT - cor0.col0 * 66 FROM tab1 AS cor0
----
-198
-4224
-5280
query I rowsort
SELECT cor0.col2 - - cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 993162448d72b066e1ac9ba4caa8d8d7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7349
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - - col2 * - col2 * + cor0.col2 + - col0 AS col0 FROM tab2 AS cor0
----
-17654
-19690
-54951
query I rowsort
SELECT 82 * + col0 AS col1 FROM tab0 AS cor0
----
1968
2870
7298
query I rowsort
SELECT ALL - ( + col1 ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 * col1 + - col1 col0 FROM tab0 AS cor0
----
-3440
-3640
-3880
query I rowsort
SELECT + - 95 FROM tab2 cor0
----
-95
-95
-95
query I rowsort
SELECT ALL + + col0 - + col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - col1 * col2 - ( 56 ) FROM tab0 AS cor0
----
-153
-2894
-7518
query I rowsort
SELECT 2 * - col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT DISTINCT - - col0 - - col1 FROM tab0 cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-7359
SELECT ALL + - col2 * col1 * 73 + - col0 DIV col2 + 44 AS col2 FROM tab0 AS cor0
----
-207130
-544683
-7072
skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL + - col2 * col1 * 73 + - col0 / col2 + 44 AS col2 FROM tab0 AS cor0
----
-207130
-544683
-7072
onlyif mysql # use DIV operator for integer division
query I rowsort label-7360
SELECT - col2 * col1 + col2 * col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
-2793
-7387
-97
skipif mysql # not compatible
query I rowsort label-7360
SELECT - col2 * col1 + col2 * col2 / + col0 AS col1 FROM tab0 AS cor0
----
-2793
-7387
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7361
SELECT DISTINCT + col0 DIV col0 + - ( - cor0.col1 ) FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-7361
SELECT DISTINCT + col0 / col0 + - ( - cor0.col1 ) FROM tab2 AS cor0
----
18
32
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7362
SELECT ALL CAST( + 70 AS SIGNED ) + col0 AS col2 FROM tab0
----
105
159
94
skipif mysql # not compatible
query I rowsort label-7362
SELECT ALL CAST ( + 70 AS INTEGER ) + col0 AS col2 FROM tab0
----
105
159
94
query I rowsort
SELECT + - col2 * - cor0.col0 + col2 + + col2 * + col2 * col2 FROM tab1 AS cor0
----
157680
188898
892512
query I rowsort
SELECT DISTINCT - ( - col0 ) * ( - col2 * col1 ) AS col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT + 66 * col2 AS col0 FROM tab1
----
3564
3762
6336
query I rowsort
SELECT ALL - cor0.col1 + 12 FROM tab1, tab2 cor0
----
9 values hashing to 993777e81a929e4035e91e36d0930c1d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) + + col0 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor2.col0 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f
query I rowsort
SELECT - col1 * + col0 * ( + col1 + + col2 ) FROM tab2 AS cor0
----
-12586
-391170
-73865
query I rowsort
SELECT ALL + 20 * + 30 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a3b1123c1729c6beec3d7a6bad61fc2c
query I rowsort
SELECT + - ( + ( + cor0.col0 ) ) - + 12 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to ff3de9a6df5456c0873426ac565570d6
query I rowsort
SELECT + + col2 * col2 + + col2 AS col1 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT + col0 + - cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + col2 * ( + 96 ) FROM tab1 AS cor0
----
5184
5472
9216
query I rowsort
SELECT col2 * 63 AS col1 FROM tab2 AS cor0
----
1638
1701
2394
query I rowsort
SELECT + 6 * col1 FROM tab1
----
156
60
78
query I rowsort
SELECT ALL tab0.col2 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7378
SELECT CAST( - col1 AS SIGNED ) * + col1 - 27 AS col0 FROM tab1 AS cor0
----
-127
-196
-703
skipif mysql # not compatible
query I rowsort label-7378
SELECT CAST ( - col1 AS INTEGER ) * + col1 - 27 AS col0 FROM tab1 AS cor0
----
-127
-196
-703
query I rowsort
SELECT - - 84 + col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1164
-1320
-486
query I rowsort
SELECT - col1 - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7381
SELECT col0 + + 81 DIV col0 FROM tab2
----
18
79
80
skipif mysql # not compatible
query I rowsort label-7381
SELECT col0 + + 81 / col0 FROM tab2
----
18
79
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7382
SELECT - col0 DIV - 28 + + tab1.col1 + tab1.col0 AS col2 FROM tab1
----
29
76
95
skipif mysql # not compatible
query I rowsort label-7382
SELECT - col0 / - 28 + + tab1.col1 + tab1.col0 AS col2 FROM tab1
----
29
76
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7383
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7383
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT + col2 + tab2.col2 + tab2.col1 AS col0 FROM tab2
----
111
85
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-7385
SELECT DISTINCT - tab2.col2 + - 68 DIV col1 FROM tab2
----
-27
-29
-42
skipif mysql # not compatible
query I rowsort label-7385
SELECT DISTINCT - tab2.col2 + - 68 / col1 FROM tab2
----
-27
-29
-42
query I rowsort
SELECT - col1 * - 62 AS col0 FROM tab2
----
1054
1922
3658
onlyif mysql # use DIV operator for integer division
query I rowsort label-7387
SELECT + col2 DIV col0 + col1 FROM tab0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-7387
SELECT + col2 / col0 + col1 FROM tab0
----
87
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7388
SELECT ALL - col2 DIV ( col0 ) AS col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL - col2 / ( col0 ) AS col0 FROM tab0
----
-1
0
0
query I rowsort
SELECT - 18 * + tab1.col1 AS col1 FROM tab1
----
-180
-234
-468
query I rowsort
SELECT DISTINCT + col1 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
2
62
skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( - col0 AS REAL ) FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 + col1 col1 FROM tab1 cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 45 col0 FROM tab2 AS cor0
----
45
45
45
query I rowsort
SELECT ALL - 98 FROM tab1, tab1 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
query I rowsort
SELECT DISTINCT + col0 + - col0 * col1 AS col2 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT ALL - col0 + - col0 * col1 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7397
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) / 81 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7397
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) / 81 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + + col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-7399
SELECT + col1 DIV 5 col2 FROM tab1 AS cor0
----
2
2
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7399
SELECT + col1 / 5 col2 FROM tab1 AS cor0
----
2
2
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-7400
SELECT - col1 DIV + 87 FROM tab0 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-7400
SELECT - col1 / + 87 FROM tab0 AS cor0
----
-1
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7401
SELECT - col0 DIV + 85 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7401
SELECT - col0 / + 85 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7402
SELECT ALL - col0 DIV + col0 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL - col0 / + col0 FROM tab0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + - 48 * col0 col0 FROM tab1 AS cor0
----
-3015
-3744
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7404
SELECT DISTINCT - col0 + ( col1 ) * col2 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-22606
-24627
-39962
skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT - col0 + ( col1 ) * col2 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-22606
-24627
-39962
onlyif mysql # use DIV operator for integer division
query I rowsort label-7405
SELECT DISTINCT + tab0.col2 DIV - 14 AS col2 FROM tab0
----
-2
-5
0
skipif mysql # not compatible
query I rowsort label-7405
SELECT DISTINCT + tab0.col2 / - 14 AS col2 FROM tab0
----
-2
-5
0
query I rowsort
SELECT - col1 * + tab0.col2 AS col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + + col1 * 31 AS col0 FROM tab1 AS cor0
----
310
403
806
query I rowsort
SELECT ALL tab1.col0 * + 39 FROM tab1
----
117
2496
3120
query I rowsort
SELECT DISTINCT + 77 AS col1 FROM tab1
----
77
query I rowsort
SELECT - + col1 * col2 + + cor0.col2 AS col2 FROM tab0 cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT - 73 + cor0.col2 AS col1 FROM tab1 cor0
----
-16
-19
23
query I rowsort
SELECT ALL + col1 * cor0.col1 - col1 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT DISTINCT + cor1.col1 + 80 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
111
139
97
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to db56d052e81a1ceebb4c3aea124670be
query I rowsort
SELECT ALL + ( col0 + 71 ) AS col2 FROM tab2
----
149
150
78
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
17
31
59
query I rowsort
SELECT DISTINCT 44 + - col1 FROM tab2
----
-15
13
27
query I rowsort
SELECT DISTINCT + col0 + col1 * 26 AS col0 FROM tab0 AS cor0
----
2260
2455
2557
query I rowsort
SELECT ALL + col1 + + col2 * ( col0 ) * + col1 FROM tab1 AS cor0
----
36490
4238
99853
onlyif mysql # use DIV operator for integer division
query I rowsort label-7420
SELECT DISTINCT - 38 * + col0 - - col2 DIV col0 AS col1 FROM tab2 cor0
----
-263
-2964
-3002
skipif mysql # not compatible
query I rowsort label-7420
SELECT DISTINCT - 38 * + col0 - - col2 / col0 AS col1 FROM tab2 cor0
----
-263
-2964
-3002
query I rowsort
SELECT DISTINCT + 39 - col2 AS col1 FROM tab1 AS cor0
----
-15
-18
-57
query I rowsort
SELECT ( col0 ) * col1 + cor0.col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
2686
434
9204
query I rowsort
SELECT DISTINCT col0 + + 33 - col1 FROM tab0 AS cor0
----
-29
31
query I rowsort
SELECT ALL - - cor0.col2 - - col1 * 36 AS col2 FROM tab2 AS cor0
----
1143
2150
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-7425
SELECT DISTINCT - + col0 - col0 DIV - col2 FROM tab0 AS cor0
----
-24
-88
0
skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT - + col0 - col0 / - col2 FROM tab0 AS cor0
----
-24
-88
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7426
SELECT ALL - + col1 * cor0.col2 + col1 DIV - col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL - + col1 * cor0.col2 + col1 / - col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - + cor0.col0 + + col2 * - col2 FROM tab2 cor0
----
-1523
-736
-754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7428
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) + + cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) + + cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col0 * 82 AS col2 FROM tab0 cor0
----
-1968
-2870
-7298
query I rowsort
SELECT 99 FROM tab0 cor0
----
99
99
99
query I rowsort
SELECT DISTINCT + 8 FROM tab1, tab2 cor0
----
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7432
SELECT 21 DIV - col0 + + col2 - + col1 FROM tab2
----
-33
-7
21
skipif mysql # not compatible
query I rowsort label-7432
SELECT 21 / - col0 + + col2 - + col1 FROM tab2
----
-33
-7
21
query I rowsort
SELECT col0 * col1 * + col2 + - 7 FROM tab2 AS cor0
----
119645
51027
5852
query I rowsort
SELECT col1 * + cor0.col1 * ( 80 ) AS col1 FROM tab0 AS cor0
----
591680
662480
752720
query I rowsort
SELECT ALL - ( - col2 ) + col2 * col0 AS col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT 11 * + col1 AS col0 FROM tab1 AS cor0
----
110
143
286
query I rowsort
SELECT ALL 13 * + col1 - cor0.col2 AS col1 FROM tab2 AS cor0
----
183
376
741
query I rowsort
SELECT - ( col2 ) * + 0 + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT cor0.col2 * - col0 + ( - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-188
-3658
-7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-7440
SELECT col2 + 1 - + col0 DIV - col1 FROM tab1
----
103
55
64
skipif mysql # not compatible
query I rowsort label-7440
SELECT col2 + 1 - + col0 / - col1 FROM tab1
----
103
55
64
query I rowsort
SELECT DISTINCT - ( - col0 ) - col1 * - col0 AS col1 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col2 * 50 AS col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
-33800
-36450
-72200
query I rowsort
SELECT - - 1 * + col1 + - col1 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-43
query I rowsort
SELECT DISTINCT ( - col1 ) * + tab1.col2 AS col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + 86 FROM tab0, tab0 cor0
----
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-7447
SELECT ALL + col0 DIV ( col2 * - col1 ) col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL + col0 / ( col2 * - col1 ) col2 FROM tab0
----
0
0
0
query I rowsort
SELECT - + 29 * 3 FROM tab1 cor0
----
-87
-87
-87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7449
SELECT - 85 + + col1 + + col1 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7449
SELECT - 85 + + col1 + + col1 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col2 col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT DISTINCT 11 * + col2 FROM tab2
----
286
297
418
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7452
SELECT DISTINCT - + CAST( - 30 AS SIGNED ) + col2 FROM tab1 AS cor0
----
126
84
87
skipif mysql # not compatible
query I rowsort label-7452
SELECT DISTINCT - + CAST ( - 30 AS INTEGER ) + col2 FROM tab1 AS cor0
----
126
84
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col0 FROM tab1
----
28
28
28
query I rowsort
SELECT 59 + col2 + + col0 AS col1 FROM tab1
----
116
180
235
onlyif mysql # use DIV operator for integer division
query I rowsort label-7455
SELECT DISTINCT + 82 DIV + col0 - + ( - col1 ) col2 FROM tab1
----
11
14
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7455
SELECT DISTINCT + 82 / + col0 - + ( - col1 ) col2 FROM tab1
----
11
14
53
query I rowsort
SELECT ALL + col2 - + col1 AS col2 FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT + col1 * - col0 + 49 AS col2 FROM tab2 AS cor0
----
-1294
-168
-4553
onlyif mysql # use DIV operator for integer division
query I rowsort label-7458
SELECT DISTINCT col1 - + cor0.col0 DIV - 74 AS col0 FROM tab0 AS cor0
----
86
92
97
skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT col1 - + cor0.col0 / - 74 AS col0 FROM tab0 AS cor0
----
86
92
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 + + col2 col0 FROM tab2
----
119
120
131
query I rowsort
SELECT - 79 + - tab0.col2 * col1 AS col2 FROM tab0
----
-176
-2917
-7541
query I rowsort
SELECT ALL + col0 * col2 + - 60 + + col1 * col0 AS col0 FROM tab1 AS cor0
----
180
4228
8660
query I rowsort
SELECT ALL - col0 * + ( col2 ) + col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL - cor0.col0 + ( col1 ) AS col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT + + col2 * + col0 + - ( - col0 ) * col0 * - col0 FROM tab0 AS cor0
----
-13032
-42840
-697671
query I rowsort
SELECT ALL + - col1 + 3 AS col2 FROM tab1 AS cor0
----
-10
-23
-7
query I rowsort
SELECT - col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col0 * - col2 col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT col1 * - 50 + - 32 AS col1 FROM tab0 AS cor0
----
-4332
-4582
-4882
query I rowsort
SELECT - - col2 + + 67 AS col1 FROM tab0 AS cor0
----
100
149
68
query I rowsort
SELECT + col2 - + 49 FROM tab2 AS cor0
----
-11
-22
-23
query I rowsort
SELECT - cor0.col1 * ( col0 ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - + col1 * ( col1 ) AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + col2 + 47 FROM tab0 AS cor0
----
129
48
80
query I rowsort
SELECT ALL - col0 * 78 AS col1 FROM tab1 AS cor0
----
-234
-4992
-6240
query I rowsort
SELECT col2 * 26 AS col0 FROM tab0 AS cor0
----
2132
26
858
query I rowsort
SELECT - col1 - + 86 FROM tab0 AS cor0
----
-172
-177
-183
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT + + col0 * 94 * 96 - - col2 * - 80 FROM tab1 AS cor0
----
22752
572976
714240
query I rowsort
SELECT - - col0 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - + ( cor0.col2 ) + + col0 AS col1 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT - 48 * col2 AS col0 FROM tab2 AS cor0
----
-1248
-1296
-1824
query I rowsort
SELECT - - col1 + - col1 * col1 FROM tab0 cor0
----
-7310
-8190
-9312
query I rowsort
SELECT - cor0.col2 * + col1 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT + ( 42 ) + col0 * ( + col1 + cor0.col0 ) FROM tab2 AS cor0
----
10728
308
7626
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT ALL col1 * col2 * - col0 + - col0 * col0 AS col0 FROM tab0
----
-4620
-672039
-68688
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 * 55 + col1 col0 FROM tab2 AS cor0
----
4197
4211
4239
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7488
SELECT CAST( NULL AS SIGNED ) + - 59 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7488
SELECT CAST ( NULL AS INTEGER ) + - 59 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7489
SELECT + col0 DIV - col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7489
SELECT + col0 / - col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - - 15 + col2 * - ( + 18 + col0 ) FROM tab0 AS cor0
----
-1371
-38
-8759
query I rowsort
SELECT cor0.col1 + + col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - col1 + col2 * + 71 AS col1 FROM tab2 AS cor0
----
1787
1886
2681
onlyif mysql # use DIV operator for integer division
query I rowsort label-7493
SELECT DISTINCT - col0 + - col0 DIV - ( + cor0.col0 + - col1 ) FROM tab1 AS cor0
----
-3
-63
-79
skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT - col0 + - col0 / - ( + cor0.col0 + - col1 ) FROM tab1 AS cor0
----
-3
-63
-79
query I rowsort
SELECT + cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + - 36 * + col2 AS col1 FROM tab0 AS cor0
----
-1188
-2952
-36
query I rowsort
SELECT + 58 * + col1 * ( + 63 ) FROM tab1 cor0
----
36540
47502
95004
skipif mysql # not compatible
query I rowsort
SELECT + col0 * + CAST ( - col1 AS REAL ) + col1 * CAST ( col2 AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0
----
-80
1300
195
query I rowsort
SELECT ALL col0 * col1 * col0 AS col2 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT ALL col1 * col0 * tab0.col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT ALL + tab2.col0 * - 33 FROM tab2
----
-231
-2574
-2607
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 col1 FROM tab0
----
21
21
21
query I rowsort
SELECT - col1 * + 16 FROM tab0 AS cor0
----
-1376
-1456
-1552
query I rowsort
SELECT DISTINCT col1 + + col2 AS col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT - 48 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c
query I rowsort
SELECT ALL - cor0.col0 + col2 * - col2 + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-133
-14275
-3951
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7506
SELECT DISTINCT + 95 + - cor0.col0 - + CAST( 60 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
1511
2160
5346
skipif mysql # not compatible
query I rowsort label-7506
SELECT DISTINCT + 95 + - cor0.col0 - + CAST ( 60 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
1511
2160
5346
query I rowsort
SELECT ALL + col2 * + col2 - + ( + 77 ) FROM tab1 AS cor0
----
2839
3172
9139
query I rowsort
SELECT ALL col0 * + col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + 58 * + col1 FROM tab2 AS cor0
----
1798
3422
986
query I rowsort
SELECT DISTINCT col2 * col1 * + ( + col1 * cor0.col1 ) + + 13 * col1 FROM tab1 AS cor0
----
211081
57130
949442
query I rowsort
SELECT ALL 44 AS col2 FROM tab1 cor0
----
44
44
44
query I rowsort
SELECT DISTINCT col0 * cor0.col1 - 73 FROM tab0 AS cor0
----
1991
3322
8026
query I rowsort
SELECT - 69 + col2 FROM tab1 AS cor0
----
-12
-15
27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7514
SELECT - ( + tab1.col0 + + tab1.col0 * + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7514
SELECT - ( + tab1.col0 + + tab1.col0 * + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * + col0 * + 67 + - col2 FROM tab2 AS cor0
----
12636
135850
201096
onlyif mysql # use DIV operator for integer division
query I rowsort label-7516
SELECT + col0 DIV col1 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-7516
SELECT + col0 / col1 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - - col1 * - col1 + col0 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT - col0 * + ( - col0 * cor0.col2 ) + - col1 * ( col0 ) AS col0 FROM tab2 cor0
----
1106
153582
235815
query I rowsort
SELECT DISTINCT + + col0 * ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7520
SELECT - col1 + - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7520
SELECT - col1 + - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT cor0.col2 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL ( col0 + - 35 ) * - col2 AS col1 FROM tab0
----
-4428
0
363
query I rowsort
SELECT DISTINCT col1 + 68 AS col2 FROM tab2 cor0
----
127
85
99
query I rowsort
SELECT ALL - col1 + + ( + col0 ) AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - col0 * 55 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-412
-4316
-4383
query I rowsort
SELECT + col1 * - ( cor0.col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 * col2 - - ( - col0 * col1 + col1 ) col1 FROM tab0 AS cor0
----
-3263
24158
590428
query I rowsort
SELECT ALL - col0 + ( col1 ) * - tab0.col2 AS col0 FROM tab0
----
-132
-2862
-7551
query I rowsort
SELECT - 36 * cor0.col2 + col0 FROM tab1 AS cor0
----
-1941
-1988
-3376
query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT 60 * col2 FROM tab2 cor0
----
1560
1620
2280
query I rowsort
SELECT ALL - + ( col0 ) + col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + ( ( col0 ) ) FROM tab2 AS cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7535
SELECT DISTINCT + tab1.col0 * - CAST( + col1 AS SIGNED ) * col1 + - 28 AS col2 FROM tab1
----
-13548
-2056
-6428
skipif mysql # not compatible
query I rowsort label-7535
SELECT DISTINCT + tab1.col0 * - CAST ( + col1 AS INTEGER ) * col1 + - 28 AS col2 FROM tab1
----
-13548
-2056
-6428
query I rowsort
SELECT col1 * 69 * tab0.col2 AS col2 FROM tab0
----
195822
514878
6693
query I rowsort
SELECT col1 - - ( + col1 ) FROM tab1
----
20
26
52
query I rowsort
SELECT col1 * tab2.col1 * col0 + + tab2.col1 * + col1 FROM tab2
----
23120
274999
7688
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + ( + col2 ) col1 FROM tab0
----
119
173
98
query I rowsort
SELECT col0 + ( - col0 ) FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 - ( + col1 ) AS col2 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7542
SELECT ALL - col2 + - col0 DIV - 70 - - col0 FROM tab2
----
-20
42
53
skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL - col2 + - col0 / - 70 - - col0 FROM tab2
----
-20
42
53
query I rowsort
SELECT DISTINCT col2 + col1 + 29 AS col1 FROM tab0
----
127
148
202
query I rowsort
SELECT DISTINCT - col0 + + col0 AS col2 FROM tab0
----
0
query I rowsort
SELECT DISTINCT col0 + - tab1.col2 AS col1 FROM tab1
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7546
SELECT DISTINCT - + col0 DIV col0 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT - + col0 / col0 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT ALL - col0 * 58 FROM tab2 AS cor0
----
-406
-4524
-4582
query I rowsort
SELECT - - col2 + col0 + col0 AS col2 FROM tab2 cor0
----
182
196
41
query I rowsort
SELECT - 55 * 82 + col1 + 98 * 92 FROM tab1 AS cor0
----
4516
4519
4532
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 5 col1 FROM tab1 AS cor0
----
5
query I rowsort
SELECT - col1 * + col1 * - col1 AS col0 FROM tab2 cor0
----
205379
29791
4913
query I rowsort
SELECT col2 + 51 + - col0 * + col1 FROM tab1 AS cor0
----
-532
-893
27
query I rowsort
SELECT DISTINCT + + col2 + - cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT + ( + 74 ) * + tab1.col2 AS col0 FROM tab1
----
3996
4218
7104
query I rowsort
SELECT - col0 + - col0 AS col2 FROM tab0
----
-178
-48
-70
query I rowsort
SELECT - + cor0.col2 * 91 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1460cdb0bd371aad5dabc421276bed00
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7557
SELECT DISTINCT + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
query I rowsort
SELECT ALL col0 * + col2 + - col1 AS col2 FROM tab1
----
136
3638
7667
query I rowsort
SELECT - col1 - + ( col2 ) AS col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT col1 + ( - col1 ) * col1 FROM tab1
----
-156
-650
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7561
SELECT ALL col1 DIV - col2 + + col1 * col0 FROM tab1
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL col1 / - col2 + + col1 * col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT - col1 + - ( - 61 ) * + col0 * - 88 AS col1 FROM tab0
----
-128918
-187977
-477843
query I rowsort
SELECT + ( cor0.col2 ) + - cor0.col0 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 3b143560120db39ddcee311b43b28291
query I rowsort
SELECT ALL - col2 * - col1 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-7565
SELECT col2 + + ( + col1 ) * col2 DIV + ( 52 ) AS col2 FROM tab1 AS cor0
----
120
67
81
skipif mysql # not compatible
query I rowsort label-7565
SELECT col2 + + ( + col1 ) * col2 / + ( 52 ) AS col2 FROM tab1 AS cor0
----
120
67
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 89 col0 FROM tab1 AS cor0
----
-267
-5696
-7120
query I rowsort
SELECT DISTINCT - + cor0.col0 + col1 * - col1 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT ALL 0 * cor0.col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col2 * - col0 + - ( - 39 ) FROM tab1 AS cor0
----
201
3687
7719
onlyif mysql # use DIV operator for integer division
query I rowsort label-7570
SELECT + col2 + col1 DIV + col0 FROM tab0 AS cor0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-7570
SELECT + col2 + col1 / + col0 FROM tab0 AS cor0
----
3
36
83
query I rowsort
SELECT - 22 AS col2 FROM tab2 AS cor0
----
-22
-22
-22
query I rowsort
SELECT ALL - + 6 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * col0 - col1 col1 FROM tab0 AS cor0
----
177418
329218
736918
query I rowsort
SELECT - ( + cor0.col0 ) + - col2 * ( col0 ) * 17 FROM tab2 AS cor0
----
-3220
-34554
-51113
query I rowsort
SELECT DISTINCT - col2 + col0 * ( - 14 ) AS col1 FROM tab1 AS cor0
----
-1216
-953
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 * col1 * col1 - + col2 col1 FROM tab0 AS cor0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-7577
SELECT + cor0.col2 DIV - col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-7577
SELECT + cor0.col2 / - col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT - - cor0.col1 * - col2 + + col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-7579
SELECT - - col0 + + col0 DIV col0 col1 FROM tab2 AS cor0
----
79
8
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7579
SELECT - - col0 + + col0 / col0 col1 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT DISTINCT 8 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
8
query I rowsort
SELECT - 15 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2
query I rowsort
SELECT - col2 + tab2.col1 + - col1 * col1 AS col2 FROM tab2
----
-310
-3448
-957
onlyif mysql # use DIV operator for integer division
query I rowsort label-7583
SELECT ALL col1 DIV col0 + 64 + col0 AS col1 FROM tab0
----
101
154
91
skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL col1 / col0 + 64 + col0 AS col1 FROM tab0
----
101
154
91
query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 * - cor0.col1 * + col0 col1 FROM tab0 AS cor0
----
-194376
-49536
-81480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - + 37 AS col0 FROM tab0 cor0
----
-37
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 731e4a6549b312ba21c2e61ca9bede27
onlyif mysql # use DIV operator for integer division
query I rowsort label-7589
SELECT - + col0 * col0 DIV + cor0.col1 FROM tab1 AS cor0
----
-409
-492
0
skipif mysql # not compatible
query I rowsort label-7589
SELECT - + col0 * col0 / + cor0.col1 FROM tab1 AS cor0
----
-409
-492
0
query I rowsort
SELECT ALL + + col0 * - ( col2 ) + + 93 FROM tab1 AS cor0
----
-3555
-69
-7587
query I rowsort
SELECT ALL + - ( - cor0.col0 ) FROM tab0 cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT tab2.col1 * - col2 * - col2 + col2 AS col1 FROM tab2
----
22626
24586
39910
query I rowsort
SELECT + tab1.col1 + 43 * col1 FROM tab1
----
1144
440
572
query I rowsort
SELECT + ( + col0 ) * - col0 AS col1 FROM tab0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-7596
SELECT col2 DIV + col0 AS col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7596
SELECT col2 / + col0 AS col0 FROM tab0
----
0
0
1
query I rowsort
SELECT - 53 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7598
SELECT + CAST( NULL AS SIGNED ) / + col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7598
SELECT + CAST ( NULL AS INTEGER ) / + col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 + col2 * - col0 * col2 FROM tab0
----
-26112
-598347
0
query I rowsort
SELECT DISTINCT - + col0 * + col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - cor0.col2 col0 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7602
SELECT tab0.col2 DIV - 28 + - col2 + col2 * - col1 FROM tab0
----
-2872
-7546
-98
skipif mysql # not compatible
query I rowsort label-7602
SELECT tab0.col2 / - 28 + - col2 + col2 * - col1 FROM tab0
----
-2872
-7546
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7603
SELECT DISTINCT - 7 + + col0 + + tab2.col2 * col0 DIV col1 AS col0 FROM tab2
----
105
248
6
skipif mysql # not compatible
query I rowsort label-7603
SELECT DISTINCT - 7 + + col0 + + tab2.col2 * col0 / col1 AS col0 FROM tab2
----
105
248
6
query I rowsort
SELECT ALL - - cor0.col1 * ( - 76 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9a4cea708f93ee464d284aa0121b143a
query I rowsort
SELECT DISTINCT ( + col0 * 63 ) AS col0 FROM tab0
----
1512
2205
5607
onlyif mysql # use DIV operator for integer division
query I rowsort label-7606
SELECT - col0 DIV - col1 - col1 FROM tab2
----
-13
-31
-58
skipif mysql # not compatible
query I rowsort label-7606
SELECT - col0 / - col1 - col1 FROM tab2
----
-13
-31
-58
query I rowsort
SELECT DISTINCT tab0.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7608
SELECT ( + col0 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7608
SELECT ( + col0 ) / + col0 AS col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ( col2 ) + - 63 AS col1 FROM tab2
----
-25
-36
-37
query I rowsort
SELECT + col1 * + 84 AS col1 FROM tab1
----
1092
2184
840
query I rowsort
SELECT DISTINCT ( tab0.col2 ) AS col0 FROM tab0, tab2 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + cor0.col1 FROM tab0, tab1, tab1 cor0, tab2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
onlyif mysql # use DIV operator for integer division
query I rowsort label-7613
SELECT ALL cor0.col0 * col1 + col2 * + col0 DIV - ( + ( col0 ) ) AS col0 FROM tab0 AS cor0
----
2031
3394
8017
skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL cor0.col0 * col1 + col2 * + col0 / - ( + ( col0 ) ) AS col0 FROM tab0 AS cor0
----
2031
3394
8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - col0 col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT - tab1.col0 * + 2 AS col1 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT DISTINCT col2 * ( + col0 ) AS col2 FROM tab0
----
35
7298
792
skipif mysql # not compatible
query I rowsort
SELECT + + cor0.col1 + + CAST ( - col1 AS REAL ) AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7618
SELECT CAST( - col2 AS SIGNED ) + col0 * ( - col0 ) AS col0 FROM tab2 AS cor0
----
-6110
-6279
-76
skipif mysql # not compatible
query I rowsort label-7618
SELECT CAST ( - col2 AS INTEGER ) + col0 * ( - col0 ) AS col0 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT ALL + 42 AS col0 FROM tab2
----
42
42
42
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 29 AS REAL ) AS col1 FROM tab1 AS cor0
----
29
29
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7621
SELECT CAST( + col2 AS SIGNED ) + + col1 * + col0 FROM tab2 AS cor0
----
1381
244
4628
skipif mysql # not compatible
query I rowsort label-7621
SELECT CAST ( + col2 AS INTEGER ) + + col1 * + col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT - + col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + ( col1 ) * col2 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col0 * col0 + + col1 col0 FROM tab2
----
-11
-5947
-6145
query I rowsort
SELECT DISTINCT col1 * tab0.col2 + col1 * col2 - col1 FROM tab0
----
14833
5590
97
query I rowsort
SELECT DISTINCT + col1 * + tab1.col2 * tab1.col1 FROM tab1
----
16224
36504
5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-7627
SELECT col2 DIV + col1 + - col0 * col0 - - tab1.col2 FROM tab1
----
-4034
-6297
47
skipif mysql # not compatible
query I rowsort label-7627
SELECT col2 / + col1 + - col0 * col0 - - tab1.col2 FROM tab1
----
-4034
-6297
47
query I rowsort
SELECT tab0.col2 * + col2 + col2 FROM tab0
----
1122
2
6806
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + col0 ) AND ( NULL )
----
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1, tab1 cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7631
SELECT DISTINCT - col2 + col0 DIV - col1 + + col1 FROM tab0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT - col2 + col0 / - col1 + + col1 FROM tab0
----
53
9
96
query I rowsort
SELECT ALL + col1 + col0 + col1 FROM tab2
----
113
196
69
query I rowsort
SELECT col2 / + col2 FROM tab1 WHERE NULL NOT IN ( col0 )
----
query I rowsort
SELECT DISTINCT + col0 + col1 * col0 + col1 AS col0 FROM tab0
----
2174
3527
8279
query I rowsort
SELECT - col0 * col2 * col2 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT col0 * col0 AS col2 FROM tab1 WHERE NULL < col0
----
query I rowsort
SELECT tab2.col0 + col0 * col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT col0 * col1 - col0 AS col2 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT col1 + col1 - tab0.col2 * tab0.col1 AS col2 FROM tab0 WHERE NOT col0 <> NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + col0 AND NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 >= NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN col1 AND NULL
----
query I rowsort
SELECT ALL - col1 - col1 AS col1 FROM tab0
----
-172
-182
-194
query I rowsort
SELECT + - col0 + + col2 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT + - cor0.col1 + + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
onlyif mysql # use DIV operator for integer division
query I rowsort label-7647
SELECT + col0 * - col1 DIV - col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-7647
SELECT + col0 * - col1 / - col1 FROM tab0
----
24
35
89
query I rowsort
SELECT + cor0.col1 * + col1 + col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT - col2 * col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 * + col0 ) NOT IN ( - col2 / cor0.col0 )
----
query I rowsort
SELECT ALL col0 * col0 + + col1 AS col2 FROM tab2 AS cor0
----
6143
6258
80
query IIIIII rowsort
SELECT * FROM tab2, tab2 cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7653
SELECT col0 DIV + tab2.col1 AS col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-7653
SELECT col0 / + tab2.col1 AS col1 FROM tab2
----
0
1
4
query I rowsort
SELECT col0 + + col2 * + cor0.col2 FROM tab0 AS cor0 WHERE NULL = NULL
----
query I rowsort
SELECT ALL col1 * col1 * col1 AS col2 FROM tab2
----
205379
29791
4913
query III rowsort
SELECT * FROM tab0 WHERE NOT col2 / col2 + + col1 NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT ALL - + col2 + + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # use DIV operator for integer division
query I rowsort label-7658
SELECT col0 * col1 + + col2 DIV - col0 FROM tab2 cor0
----
1343
214
4602
skipif mysql # not compatible
query I rowsort label-7658
SELECT col0 * col1 + + col2 / - col0 FROM tab2 cor0
----
1343
214
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + ( col1 ) col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col2 + 78 * - 43 FROM tab2 AS cor0
----
-3316
-3327
-3328
query I rowsort
SELECT DISTINCT - col0 * + cor0.col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - col0 + + 11 + - col1 FROM tab0
----
-121
-169
-99
query I rowsort
SELECT + col2 * + cor0.col2 + col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT DISTINCT - - cor0.col1 * 52 FROM tab1 AS cor0
----
1352
520
676
query I rowsort
SELECT ALL - - col2 + + col0 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7666
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 * cor0.col1 * ( col2 ) AS col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT DISTINCT col1 * - 92 AS col1 FROM tab1 AS cor0
----
-1196
-2392
-920
onlyif mysql # use DIV operator for integer division
query I rowsort label-7669
SELECT DISTINCT + - col2 DIV col2 + - ( - col2 * - col2 ) + + 95 FROM tab1 cor0
----
-2822
-3155
-9122
skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT + - col2 / col2 + - ( - col2 * - col2 ) + + 95 FROM tab1 cor0
----
-2822
-3155
-9122
query I rowsort
SELECT + cor0.col1 * - 71 + col1 * + col2 - cor0.col2 FROM tab0 AS cor0
----
-3301
-6791
919
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 34 col1 FROM tab1 AS cor0
----
-102
-2176
-2720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT tab0.col2 + + 50 + - col2 FROM tab0
----
50
50
50
query I rowsort
SELECT ALL - ( - col2 ) - col0 * col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7675
SELECT ALL - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 4 + col2 FROM tab2 AS cor0
----
22
23
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7677
SELECT DISTINCT - col2 + + CAST( NULL AS SIGNED ) * + col1 + + col2 * col2 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) * + col1 + + col2 * col2 AS col0 FROM tab2
----
NULL
query I rowsort
SELECT ALL 16 + - col0 AS col2 FROM tab2 AS cor0
----
-62
-63
9
query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NULL < + col2 + - col1
----
query I rowsort
SELECT ALL 85 * - col2 FROM tab2 AS cor0
----
-2210
-2295
-3230
query I rowsort
SELECT ALL - 82 + col1 FROM tab1 cor0
----
-56
-69
-72
query I rowsort
SELECT - tab0.col0 + - col0 * col1 + - col2 FROM tab0
----
-2121
-3431
-8270
query I rowsort
SELECT ALL + tab1.col2 + + col0 * + col2 FROM tab1
----
216
3705
7776
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= ( col1 )
----
query I rowsort
SELECT col2 + + col1 + - col2 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL + col1 FROM tab0 WHERE col2 + - col2 * col2 / - col0 + - col2 NOT IN ( col1 * col1 )
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7687
SELECT DISTINCT tab0.col1 DIV col2 col2 FROM tab0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7687
SELECT DISTINCT tab0.col1 / col2 col2 FROM tab0
----
1
2
97
query I rowsort
SELECT DISTINCT + cor1.col1 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
17
31
59
query I rowsort
SELECT DISTINCT - cor0.col1 + - col2 * - col1 AS col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT - cor0.col2 * col2 * + col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ALL col0 + - 24 FROM tab1
----
-21
40
56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7692
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col2 * col2 + cor0.col2 FROM tab0 AS cor0
----
1122
2
6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-7694
SELECT ALL - col0 + - col2 DIV - 10 AS col0 FROM tab2 AS cor0
----
-5
-76
-76
skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL - col0 + - col2 / - 10 AS col0 FROM tab2 AS cor0
----
-5
-76
-76
query I rowsort
SELECT DISTINCT + col1 * col2 + - col1 * + col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-118118
-5022
-50388
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + ( + col2 ) col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL col1 + cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT - col1 * 27 FROM tab0 AS cor0
----
-2322
-2457
-2619
onlyif mysql # use DIV operator for integer division
query I rowsort label-7699
SELECT ALL - col0 + ( cor0.col2 ) DIV + col0 AS col2 FROM tab0 AS cor0
----
-23
-35
-89
skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL - col0 + ( cor0.col2 ) / + col0 AS col2 FROM tab0 AS cor0
----
-23
-35
-89
query I rowsort
SELECT ALL - + col1 + 48 AS col1 FROM tab2 AS cor0
----
-11
17
31
query I rowsort
SELECT DISTINCT - 54 * + col2 FROM tab0 cor0
----
-1782
-4428
-54
query I rowsort
SELECT - ( col1 ) * col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - + 4 + + 28 FROM tab1 cor0
----
24
24
24
query I rowsort
SELECT 73 * - col1 + col1 FROM tab0 AS cor0
----
-6192
-6552
-6984
query I rowsort
SELECT + 81 + - 69 FROM tab1, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT + col2 * col0 + 47 AS col2 FROM tab0 AS cor0
----
7345
82
839
query I rowsort
SELECT + col2 * + col1 * col0 AS col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL + ( - cor0.col2 ) + 28 AS col1 FROM tab2 AS cor0
----
-10
1
2
query I rowsort
SELECT ALL 7 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - 96 col0 FROM tab0 AS cor0
----
-2304
-3360
-8544
query I rowsort
SELECT ALL - 68 * + col2 FROM tab0
----
-2244
-5576
-68
query I rowsort
SELECT col2 + + col0 AS col2 FROM tab2 cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7713
SELECT + - cor0.col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7713
SELECT + - cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * - col2 + ( 70 ) FROM tab0
----
105
7368
862
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2, tab0, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + cor0.col1 * cor0.col2 * - col2 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT cor0.col0 AS col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT + col0 * 19 AS col1 FROM tab1
----
1216
1520
57
query I rowsort
SELECT 16 * tab2.col1 FROM tab2
----
272
496
944
query I rowsort
SELECT DISTINCT 83 + - col0 FROM tab2
----
4
5
76
query I rowsort
SELECT col2 * 11 AS col1 FROM tab2
----
286
297
418
query I rowsort
SELECT - 75 + 29 FROM tab1
----
-46
-46
-46
query I rowsort
SELECT - col2 + - col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-63
-84
-95
query I rowsort
SELECT 39 * - col0 FROM tab2 AS cor0
----
-273
-3042
-3081
query I rowsort
SELECT ALL - 67 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
query I rowsort
SELECT ALL 27 FROM tab2
----
27
27
27
query I rowsort
SELECT - tab0.col0 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL ( + col0 + - col1 ) FROM tab0
----
-2
-62
-62
query I rowsort
SELECT - 52 * - col0 + col2 FROM tab1 AS cor0
----
210
3385
4256
query I rowsort
SELECT + + cor0.col1 + + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT + col2 + col2 * col2 + - col2 AS col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT col0 * - col1 + - cor0.col1 + col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - col0 * col0 + col1 * col1 FROM tab1 AS cor0
----
-3996
-6231
667
query I rowsort
SELECT - col2 * col1 * col1 + - col2 * col1 * + ( col1 ) AS col1 FROM tab1 AS cor0
----
-11400
-32448
-73008
query I rowsort
SELECT ALL - + 28 AS col2 FROM tab0 AS cor0
----
-28
-28
-28
query I rowsort
SELECT ALL + - ( - col0 ) + - 11 AS col1 FROM tab0 AS cor0
----
13
24
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7737
SELECT ALL - 13 + cor0.col0 DIV 60 FROM tab1 AS cor0
----
-12
-12
-13
skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL - 13 + cor0.col0 / 60 FROM tab1 AS cor0
----
-12
-12
-13
onlyif mysql # use DIV operator for integer division
query I rowsort label-7738
SELECT col2 DIV 7 AS col2 FROM tab0
----
0
11
4
skipif mysql # not compatible
query I rowsort label-7738
SELECT col2 / 7 AS col2 FROM tab0
----
0
11
4
query I rowsort
SELECT DISTINCT + 69 * - col2 FROM tab1
----
-3726
-3933
-6624
query I rowsort
SELECT DISTINCT - ( col0 ) * - col0 + - 97 - col1 AS col2 FROM tab1
----
-114
3989
6290
query I rowsort
SELECT 45 * col1 + - col1 * col2 FROM tab2
----
1121
119
558
query I rowsort
SELECT ( + 22 ) AS col2 FROM tab0
----
22
22
22
query I rowsort
SELECT - tab1.col1 * - 89 FROM tab1
----
1157
2314
890
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + tab0.col1 col2 FROM tab0
----
119
173
98
query I rowsort
SELECT ( col1 * col1 ) - + col2 FROM tab1
----
43
622
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-7746
SELECT DISTINCT + col2 DIV tab0.col0 + - 84 col2 FROM tab0
----
-83
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT + col2 / tab0.col0 + - 84 col2 FROM tab0
----
-83
-84
query I rowsort
SELECT + + 62 FROM tab2 cor0
----
62
62
62
query I rowsort
SELECT cor0.col1 + col1 * - 54 AS col2 FROM tab0 AS cor0
----
-4558
-4823
-5141
onlyif mysql # use DIV operator for integer division
query I rowsort label-7749
SELECT DISTINCT - col2 DIV col0 AS col1 FROM tab0 cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT - col2 / col0 AS col1 FROM tab0 cor0
----
-1
0
query I rowsort
SELECT DISTINCT col0 + - tab2.col1 * col2 AS col0 FROM tab2
----
-1456
-567
-830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7751
SELECT ALL ( col0 ) * - CAST( NULL AS SIGNED ) + tab0.col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL ( col0 ) * - CAST ( NULL AS INTEGER ) + tab0.col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 col2 FROM tab2, tab1 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT tab1.col0 + col0 * 4 AS col2 FROM tab1
----
15
320
400
query I rowsort
SELECT DISTINCT + 60 AS col0 FROM tab2, tab2 AS cor0
----
60
query I rowsort
SELECT - 79 + col1 AS col1 FROM tab0 AS cor0
----
12
18
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 * + col0 col2 FROM tab2 AS cor0
----
-252
-2808
-2844
query I rowsort
SELECT DISTINCT + 39 + col0 AS col1 FROM tab1 AS cor0
----
103
119
42
query I rowsort
SELECT ALL - 39 * col2 AS col1 FROM tab1 AS cor0
----
-2106
-2223
-3744
query I rowsort
SELECT + 88 FROM tab2, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT DISTINCT cor1.col0 AS col0 FROM tab0, tab0 cor0, tab1 AS cor1
----
3
64
80
query I rowsort
SELECT ALL - cor0.col1 + + cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ae0eeb942db3f01544a81804e95e971a
query I rowsort
SELECT + col0 + col0 * col1 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT + col0 + ( col2 ) * col0 * col0 FROM tab2 AS cor0
----
1330
158262
237237
query I rowsort
SELECT DISTINCT + col0 * 11 FROM tab2 AS cor0
----
77
858
869
query I rowsort
SELECT DISTINCT + - 75 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
225
4800
6000
query I rowsort
SELECT ALL 68 + - 44 * - col1 * - col1 + - 19 AS col2 FROM tab1 AS cor0
----
-29695
-4351
-7387
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 + + col1 * - col0 col1 FROM tab2 cor0
----
-168
1482
4898
query I rowsort
SELECT ALL 33 * col2 FROM tab0 cor0
----
1089
2706
33
query I rowsort
SELECT + ( col2 + + col0 * tab1.col2 ) FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL - 46 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9
skipif mysql # not compatible
query I rowsort
SELECT ALL + - ( - ( + col1 ) ) + CAST ( col0 AS REAL ) AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + + 99 FROM tab1 AS cor0
----
99
99
99
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( + 35 AS REAL ) * - cor0.col0 + - col1 FROM tab1 AS cor0
----
-131
-2250
-2813
query I rowsort
SELECT 50 + cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 25bee40f0955a165730a2200108068d6
query I rowsort
SELECT col1 * + 76 FROM tab2 AS cor0
----
1292
2356
4484
query I rowsort
SELECT ALL + - col2 + + col2 * - col1 * col1 AS col0 FROM tab2 AS cor0
----
-11020
-25974
-90532
query I rowsort
SELECT + col0 + ( col1 * tab0.col0 ) FROM tab0
----
2088
3430
8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7778
SELECT ALL - CAST( NULL AS SIGNED ) - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL - CAST ( NULL AS INTEGER ) - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 * + cor0.col2 col1 FROM tab2 AS cor0
----
-520
-540
-760
query I rowsort
SELECT DISTINCT 5 + col2 FROM tab2 cor0
----
31
32
43
query I rowsort
SELECT DISTINCT + col0 * + col0 + + cor0.col1 * + col2 FROM tab1 AS cor0
----
1413
4666
7648
query I rowsort
SELECT ALL 91 * col0 + col0 AS col0 FROM tab1 AS cor0
----
276
5888
7360
query I rowsort
SELECT + + col1 * - col2 + - col2 * 2 - - cor0.col0 FROM tab2 AS cor0
----
-1508
-643
-884
query I rowsort
SELECT ALL - 39 * col0 + col1 FROM tab2 AS cor0
----
-242
-2983
-3064
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7785
SELECT ALL + 0 * col0 + - ( - ( col0 ) ) * - CAST( NULL AS SIGNED ) * col1 col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL + 0 * col0 + - ( - ( col0 ) ) * - CAST ( NULL AS INTEGER ) * col1 col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + 28 AS col2 FROM tab1 AS cor0
----
38
41
54
query I rowsort
SELECT ALL - col0 * col0 + - 19 FROM tab0 AS cor0
----
-1244
-595
-7940
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7788
SELECT ALL + - col0 * - CAST( + 43 AS SIGNED ) FROM tab1 AS cor0
----
129
2752
3440
skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL + - col0 * - CAST ( + 43 AS INTEGER ) FROM tab1 AS cor0
----
129
2752
3440
query I rowsort
SELECT cor0.col2 + - ( col0 ) FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * ( col1 ) col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + + 96 + - 11 col1 FROM tab1 AS cor0
----
-11
28
31
query I rowsort
SELECT ALL - col0 - - col1 AS col0 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7793
SELECT - - cor0.col0 * + CAST( col0 AS SIGNED ) + + col0 AS col1 FROM tab2 cor0
----
56
6162
6320
skipif mysql # not compatible
query I rowsort label-7793
SELECT - - cor0.col0 * + CAST ( col0 AS INTEGER ) + + col0 AS col1 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT DISTINCT + + col2 * + 52 AS col0 FROM tab2 AS cor0
----
1352
1404
1976
query I rowsort
SELECT ALL - col1 * + 38 + + 43 FROM tab2 AS cor0
----
-1135
-2199
-603
query I rowsort
SELECT - col0 + 74 * 3 FROM tab0 AS cor0
----
133
187
198
query I rowsort
SELECT ALL col0 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT - + col1 * ( col1 ) AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - cor0.col1 * 24 AS col1 FROM tab1 AS cor0
----
-240
-312
-624
query I rowsort
SELECT DISTINCT cor1.col1 + - 82 AS col0 FROM tab2, tab1 cor0, tab1 AS cor1
----
-56
-69
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) + col0 col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT ( col1 ) * col2 + - col1 + col0 AS col1 FROM tab2 cor0
----
1553
708
813
query I rowsort
SELECT - col2 * ( cor0.col0 ) FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT tab2.col2 + tab2.col0 * 81 FROM tab2
----
594
6344
6437
query I rowsort
SELECT + tab0.col1 * 39 + 54 FROM tab0
----
3408
3603
3837
query I rowsort
SELECT + + col2 + 15 FROM tab2 AS cor0
----
41
42
53
query I rowsort
SELECT DISTINCT + 27 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 * - col2 col0 FROM tab0
----
1476
18
594
query I rowsort
SELECT + ( col1 ) + + col1 * + 0 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT + 90 AS col0 FROM tab0
----
90
query I rowsort
SELECT ALL - tab0.col2 * - 85 * col1 FROM tab0
----
241230
634270
8245
query I rowsort
SELECT + + col2 + ( - col0 ) * + col0 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT + col2 + col1 * - 48 AS col0 FROM tab2 AS cor0
----
-1461
-2806
-778
onlyif mysql # use DIV operator for integer division
query I rowsort label-7814
SELECT - 7 * col1 + tab2.col1 DIV + 87 FROM tab2
----
-119
-217
-413
skipif mysql # not compatible
query I rowsort label-7814
SELECT - 7 * col1 + tab2.col1 / + 87 FROM tab2
----
-119
-217
-413
query I rowsort
SELECT - cor0.col1 + col1 + cor0.col1 AS col2 FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7816
SELECT DISTINCT col2 + - cor0.col0 + - cor0.col1 DIV 53 FROM tab1 AS cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT col2 + - cor0.col0 + - cor0.col1 / 53 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL + - cor0.col2 + - col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT DISTINCT - + col2 + 49 FROM tab2 cor0
----
11
22
23
query I rowsort
SELECT ALL ( + cor0.col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + - 41 * 72 + - col0 AS col1 FROM tab1 cor0
----
-2955
-3016
-3032
query I rowsort
SELECT - ( 71 ) AS col0 FROM tab2
----
-71
-71
-71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT 70 * - col1 AS col0 FROM tab1
----
-1820
-700
-910
query I rowsort
SELECT + + col2 + - col0 + - col0 AS col0 FROM tab2 AS cor0
----
-120
-130
13
query I rowsort
SELECT cor0.col1 + + col0 * col2 + + col0 FROM tab0 AS cor0
----
167
7478
902
query I rowsort
SELECT - col1 * cor0.col1 + ( - 43 ) FROM tab0 AS cor0
----
-7439
-8324
-9452
query I rowsort
SELECT col0 + col1 * + col1 AS col0 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT ALL - col0 * tab2.col2 + ( col0 ) FROM tab2
----
-182
-1950
-2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col1 FROM tab1
----
38
38
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7830
SELECT ALL - col1 - - 37 DIV + col0 FROM tab2 cor0
----
-17
-26
-59
skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL - col1 - - 37 / + col0 FROM tab2 cor0
----
-17
-26
-59
query I rowsort
SELECT 30 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT DISTINCT + col0 - + 4 * col2 FROM tab1 AS cor0
----
-164
-213
-304
query I rowsort
SELECT - col2 + - 71 FROM tab2 AS cor0
----
-109
-97
-98
query I rowsort
SELECT - col2 * col0 + - col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT - ( - col2 ) - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + + ( - ( col1 ) ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + cor0.col2 * - col1 + - col1 + col0 FROM tab1 AS cor0
----
-1181
-1427
-516
query I rowsort
SELECT DISTINCT + col0 + + col0 * - col1 AS col0 FROM tab0 cor0
----
-2040
-3360
-8010
query I rowsort
SELECT - col2 * col1 * col2 + ( col0 ) FROM tab1 AS cor0
----
-119728
-32426
-75813
query I rowsort
SELECT - + 46 * + col1 AS col2 FROM tab1 AS cor0
----
-1196
-460
-598
query I rowsort
SELECT ALL + 98 * - col0 AS col2 FROM tab1 AS cor0
----
-294
-6272
-7840
query I rowsort
SELECT - - col0 + + col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL + + cor0.col0 * - col0 + col2 * + 3 - - col2 FROM tab2 cor0
----
-5980
-6089
59
query I rowsort
SELECT 50 + col0 * + col0 FROM tab1 AS cor0
----
4146
59
6450
query I rowsort
SELECT DISTINCT + 52 AS col2 FROM tab0, tab1, tab2 AS cor0
----
52
query I rowsort
SELECT + 27 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT DISTINCT col0 * 49 FROM tab0 AS cor0
----
1176
1715
4361
query I rowsort
SELECT DISTINCT - col2 * 14 FROM tab2 AS cor0
----
-364
-378
-532
query I rowsort
SELECT ALL - - cor0.col1 + col0 FROM tab2 cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7850
SELECT ALL + - col0 DIV 4 FROM tab1 AS cor0
----
-16
-20
0
skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL + - col0 / 4 FROM tab1 AS cor0
----
-16
-20
0
query I rowsort
SELECT DISTINCT + col1 * + 83 - + col0 FROM tab0 cor0
----
7114
7464
8016
query I rowsort
SELECT ALL - cor0.col2 * col0 - - col1 FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT ( 56 ) * - col1 + col0 FROM tab2 AS cor0
----
-1729
-3226
-873
query I rowsort
SELECT - 52 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
query I rowsort
SELECT DISTINCT col2 * + cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col0 col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT ALL cor0.col2 * cor0.col2 * - col0 - - ( cor0.col1 ) AS col2 FROM tab0 cor0
----
-26050
-598345
62
query I rowsort
SELECT ALL + col1 - - col1 AS col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + + col0 + 96 FROM tab0 AS cor0
----
120
131
185
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7860
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col0 + + col0 * - col2 + + 80 FROM tab1 AS cor0
----
-3632
-7680
-85
query I rowsort
SELECT DISTINCT col2 * cor0.col2 + 74 AS col0 FROM tab0 AS cor0
----
1163
6798
75
query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - ( col0 ) * 88 FROM tab0 AS cor0
----
-2112
-3080
-7832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7865
SELECT + cor0.col2 * - cor0.col1 + - CAST( + col2 AS SIGNED ) + + col1 AS col1 FROM tab0 AS cor0
----
-1
-2785
-7453
skipif mysql # not compatible
query I rowsort label-7865
SELECT + cor0.col2 * - cor0.col1 + - CAST ( + col2 AS INTEGER ) + + col1 AS col1 FROM tab0 AS cor0
----
-1
-2785
-7453
query I rowsort
SELECT - 19 FROM tab1, tab0 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
query I rowsort
SELECT DISTINCT - col2 * col2 + col2 FROM tab2 cor0
----
-1406
-650
-702
query I rowsort
SELECT + ( col1 ) + 34 FROM tab2 AS cor0
----
51
65
93
query I rowsort
SELECT DISTINCT + - 46 AS col2 FROM tab2 AS cor0
----
-46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( col0 ) col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + cor0.col2 * + cor0.col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + 81 * + col1 * col1 FROM tab1
----
13689
54756
8100
query I rowsort
SELECT ALL ( - 73 ) FROM tab0
----
-73
-73
-73
query I rowsort
SELECT + - col0 * + col1 + col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT + - 9 + + col2 * 20 AS col0 FROM tab0 AS cor0
----
11
1631
651
query I rowsort
SELECT - col2 - - col1 AS col0 FROM tab0
----
53
9
96
query I rowsort
SELECT + 53 + - col1 AS col1 FROM tab2
----
-6
22
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-7878
SELECT DISTINCT ( - col1 ) DIV - col1 col1 FROM tab0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7878
SELECT DISTINCT ( - col1 ) / - col1 col1 FROM tab0
----
1
query I rowsort
SELECT - 27 + col2 * + ( 36 ) FROM tab2
----
1341
909
945
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 23 col0 FROM tab2 AS cor0
----
161
1794
1817
query I rowsort
SELECT + col2 - col2 * col0 FROM tab1
----
-108
-3591
-7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7882
SELECT CAST( NULL AS SIGNED ) + + 77 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7882
SELECT CAST ( NULL AS INTEGER ) + + 77 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL col2 * col0 + - col2 AS col1 FROM tab2
----
162
2002
2964
query I rowsort
SELECT DISTINCT - + col2 * ( + 68 ) + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1742
-1809
-2546
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7885
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7885
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT cor0.col2 + col2 AS col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT - col0 * - 16 AS col0 FROM tab1
----
1024
1280
48
query I rowsort
SELECT 67 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1, tab1 AS cor2
----
81 values hashing to 09fa7af42010457bb3c6ffd0dfea3bc8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7889
SELECT ALL + - col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-7889
SELECT ALL + - col2 / - col0 AS col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT + col1 * - 80 FROM tab1 AS cor0
----
-1040
-2080
-800
onlyif mysql # use DIV operator for integer division
query I rowsort label-7891
SELECT cor0.col1 + + CAST( 0 AS SIGNED ) DIV + col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-7891
SELECT cor0.col1 + + CAST ( 0 AS INTEGER ) / + col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - - col0 * 12 + + col0 FROM tab1 AS cor0
----
1040
39
832
query I rowsort
SELECT ALL cor0.col1 * col1 + + col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT + col0 + + 72 AS col0 FROM tab0 cor0
----
107
161
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - 58 * col0 + col2 col1 FROM tab0 AS cor0
----
33441
459500
71051
query I rowsort
SELECT + - col1 * 11 * + col0 FROM tab1 AS cor0
----
-11440
-7040
-858
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7897
SELECT ALL CAST( NULL AS SIGNED ) * col1 + tab1.col1 * + col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL CAST ( NULL AS INTEGER ) * col1 + tab1.col1 * + col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - ( + cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL 79 + - col1 * + col2 AS col1 FROM tab0 AS cor0
----
-18
-2759
-7383
query I rowsort
SELECT ALL - + 73 + ( + cor0.col2 ) * col1 FROM tab1 AS cor0
----
1175
1331
497
query I rowsort
SELECT DISTINCT + + col2 + ( - col1 ) FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - col2 * - ( + cor0.col1 ) * col2 - col2 * col0 AS col2 FROM tab2 AS cor0
----
21546
22410
37856
query I rowsort
SELECT + 8 * + col1 - cor0.col2 AS col2 FROM tab1 AS cor0
----
154
23
8
query I rowsort
SELECT DISTINCT col1 * - 52 + col1 * 54 + + 29 * col0 FROM tab0 AS cor0
----
1209
2763
868
query I rowsort
SELECT DISTINCT - 3 - - col2 FROM tab0 cor0
----
-2
30
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-7906
SELECT + ( col2 ) + - col0 DIV col1 FROM tab2 AS cor0
----
25
27
34
skipif mysql # not compatible
query I rowsort label-7906
SELECT + ( col2 ) + - col0 / col1 FROM tab2 AS cor0
----
25
27
34
query I rowsort
SELECT DISTINCT + - 63 + + cor0.col0 FROM tab1 AS cor0
----
-60
1
17
query I rowsort
SELECT DISTINCT - + ( col1 ) * - col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL + - col0 * cor0.col2 + - cor0.col2 * - 64 FROM tab1 AS cor0
----
-1536
0
3294
query I rowsort
SELECT ALL - 50 + + col2 FROM tab1 AS cor0
----
4
46
7
query I rowsort
SELECT - + 39 FROM tab1 cor0
----
-39
-39
-39
onlyif mysql # use DIV operator for integer division
query I rowsort label-7912
SELECT + 88 DIV col2 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-7912
SELECT + 88 / col2 FROM tab1
----
0
1
1
query I rowsort
SELECT DISTINCT - + 71 + - col1 * - 24 AS col1 FROM tab0 cor0
----
1993
2113
2257
query I rowsort
SELECT - 50 + col0 FROM tab0 AS cor0
----
-15
-26
39
query I rowsort
SELECT ALL col2 + + col0 * - 99 AS col2 FROM tab1 AS cor0
----
-243
-6279
-7824
query I rowsort
SELECT ALL col1 * col2 + 31 + 85 AS col1 FROM tab1 AS cor0
----
1364
1520
686
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + + 44 + col0 FROM tab0 AS cor0
----
133
68
79
query I rowsort
SELECT ALL + col0 + tab1.col1 * + col1 AS col1 FROM tab1
----
164
249
679
query I rowsort
SELECT + ( ( - col2 ) ) + - ( + col1 ) * + col0 + col1 AS col1 FROM tab1 AS cor0
----
-106
-1123
-687
query I rowsort
SELECT - 71 + col0 * - cor0.col0 FROM tab2 AS cor0
----
-120
-6155
-6312
query I rowsort
SELECT ALL cor1.col0 * 80 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c809d2ef29eb9eb4173c425d089265a1
query I rowsort
SELECT - col2 * 90 FROM tab0 AS cor0
----
-2970
-7380
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7924
SELECT ALL CAST( NULL AS SIGNED ) - col2 * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL CAST ( NULL AS INTEGER ) - col2 * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 97 + + col0 * col1 AS col1 FROM tab2
----
1440
314
4699
onlyif mysql # use DIV operator for integer division
query I rowsort label-7926
SELECT + col0 DIV + ( 89 + col0 ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7926
SELECT + col0 / + ( 89 + col0 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 + + col2 + col0 AS col1 FROM tab2
----
134
163
65
query I rowsort
SELECT + cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL + - 34 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb
query I rowsort
SELECT ALL col2 * - col2 * + tab1.col1 FROM tab1
----
-119808
-32490
-75816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 34 ) + tab2.col1 col2 FROM tab2, tab0 cor0
----
9 values hashing to 9f11e16e5a127401006df5d5e3f9af14
onlyif mysql # use DIV operator for integer division
query I rowsort label-7932
SELECT DISTINCT - col1 DIV 68 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7932
SELECT DISTINCT - col1 / 68 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + ( + 14 ) + col1 * 63 col1 FROM tab0 AS cor0
----
5465
5829
6126
onlyif mysql # use DIV operator for integer division
query I rowsort label-7934
SELECT cor0.col0 DIV + col0 + col0 * + col0 DIV col0 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-7934
SELECT cor0.col0 / + col0 + col0 * + col0 / col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT - + col1 * + ( 45 ) FROM tab2 AS cor0
----
-1395
-2655
-765
query I rowsort
SELECT ALL - col2 + 33 FROM tab2 cor0
----
-5
6
7
query I rowsort
SELECT - col0 + - col1 * - cor0.col0 AS col0 FROM tab0 cor0
----
2040
3360
8010
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab1, tab1 AS cor1
----
972 values hashing to 635619591835474e6aa6acdff4ab166c
onlyif mysql # use DIV operator for integer division
query I rowsort label-7939
SELECT - tab1.col0 DIV - ( col2 ) FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7939
SELECT - tab1.col0 / - ( col2 ) FROM tab1
----
0
0
1
query I rowsort
SELECT 84 + col0 * col2 FROM tab1 AS cor0
----
246
3732
7764
query I rowsort
SELECT DISTINCT - 35 * - col1 FROM tab2 AS cor0
----
1085
2065
595
query I rowsort
SELECT col1 * col2 - - col0 FROM tab2 cor0
----
1612
725
844
query I rowsort
SELECT col2 + col1 * col1 AS col2 FROM tab1 AS cor0
----
157
265
730
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 cor1, tab1 AS cor2
----
972 values hashing to ed80235f6457dada5cbb50ce9e2a8923
query I rowsort
SELECT DISTINCT col1 * + 3 * col0 AS col1 FROM tab2 AS cor0
----
13806
4029
651
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 27 col0 FROM tab2, tab1 AS cor0
----
27
query I rowsort
SELECT DISTINCT - + 93 FROM tab1 AS cor0
----
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT DISTINCT - col0 * cor0.col0 - - 4 FROM tab2 AS cor0
----
-45
-6080
-6237
query I rowsort
SELECT - 81 AS col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 63 col1 FROM tab1 AS cor0
----
63
63
63
query I rowsort
SELECT + 44 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7953
SELECT ALL col2 * + col2 * CAST( + col0 AS SIGNED ) FROM tab0
----
26136
35
598436
skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL col2 * + col2 * CAST ( + col0 AS INTEGER ) FROM tab0
----
26136
35
598436
query I rowsort
SELECT - ( + cor0.col0 ) * ( col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT - 56 AS col2 FROM tab2, tab2 cor0, tab2 cor1
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col0 col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT col2 * ( + col1 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ( col0 + - col0 * - tab1.col0 ) FROM tab1
----
12
4160
6480
query I rowsort
SELECT ALL col0 * ( 88 ) FROM tab1 AS cor0
----
264
5632
7040
query I rowsort
SELECT col2 * - col2 + col0 FROM tab2
----
-1365
-598
-722
query I rowsort
SELECT tab1.col1 * col1 - + col1 AS col1 FROM tab1
----
156
650
90
query I rowsort
SELECT - col1 * col0 + + col1 * cor0.col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 + - col2 AS col1 FROM tab1 cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7965
SELECT + col1 + cor0.col1 DIV + col2 AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7965
SELECT + col1 + cor0.col1 / + col2 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - col1 * col1 + + col1 + col2 AS col0 FROM tab2 AS cor0
----
-234
-3396
-903
query I rowsort
SELECT DISTINCT - col2 * col1 + col1 FROM tab0 AS cor0
----
-2752
-7371
0
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + col2 * tab2.col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 / col1 col1 FROM tab1 AS cor0 WHERE cor0.col2 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL + cor0.col0 + - col1 * + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-7971
SELECT col1 + col0 DIV - col2 col0 FROM tab0
----
62
86
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7971
SELECT col1 + col0 / - col2 col0 FROM tab0
----
62
86
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7972
SELECT ALL col1 DIV - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-194
-88
-92
skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL col1 / - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-194
-88
-92
onlyif mysql # use DIV operator for integer division
query I rowsort label-7973
SELECT col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7973
SELECT col1 / + col1 AS col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col1 * cor0.col2 AS col1 FROM tab2 cor0
----
22599
24548
39884
query I rowsort
SELECT DISTINCT + col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
137
38
96
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + + col2 IN ( + col2 )
----
query I rowsort
SELECT col1 + + col1 + col0 FROM tab2
----
113
196
69
query I rowsort
SELECT + col0 * tab2.col1 + col0 * col1 FROM tab2
----
2686
434
9204
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab2 AS cor0 WHERE + tab2.col2 BETWEEN ( tab1.col0 ) AND NULL
----
query I rowsort
SELECT col0 + + col0 + col1 * - col1 * - col0 FROM tab0
----
177552
329385
737187
query I rowsort
SELECT DISTINCT - col2 * - col0 + col2 * col1 AS col1 FROM tab0
----
132
14760
3630
query I rowsort
SELECT DISTINCT + col2 * - col2 + + col1 AS col1 FROM tab0
----
-1003
-6633
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7983
SELECT DISTINCT col0 + - col0 DIV - col0 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT col0 + - col0 / - col0 FROM tab1
----
4
65
81
query I rowsort
SELECT col2 + col1 * col1 AS col1 FROM tab2
----
327
3507
988
query I rowsort
SELECT + col2 + col1 * cor0.col0 * + cor0.col1 FROM tab2 cor0
----
22869
271544
6754
query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 * - col1 + col0 * cor0.col0 + - col0 * + col1 * + col1 AS col0 FROM tab0 AS cor0
----
-127392
-209265
-8277
query I rowsort
SELECT DISTINCT - - col2 * col1 + col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - col1 * + col1 + col2 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT ALL - col1 * cor0.col2 - col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT col2 * col0 + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col0 FROM tab0 AS cor0 WHERE - col2 + cor0.col1 NOT IN ( col1 * col0 * col2 + col1 ) OR NOT NULL IN ( - col1 * col0 - - col1 )
----
2064
3395
8099
query I rowsort
SELECT ALL col0 + - col0 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - cor0.col1 col2 FROM tab0 AS cor0
----
-172
-182
-194
onlyif mysql # use DIV operator for integer division
query I rowsort label-7994
SELECT ALL - + col0 DIV col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL - + col0 / col2 FROM tab1 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7995
SELECT ALL col0 * + col2 + - col0 DIV + col0 FROM tab2 AS cor0
----
188
2027
3001
skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL col0 * + col2 + - col0 / + col0 FROM tab2 AS cor0
----
188
2027
3001
query I rowsort
SELECT ALL - col0 * cor0.col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + tab2.col0 * col0 + tab2.col1 FROM tab2
----
6143
6258
80
query I rowsort
SELECT DISTINCT - tab0.col1 * col1 * - col2 AS col2 FROM tab0
----
244068
679042
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - tab0.col1 * + col0 + + col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT - col0 * - cor0.col1 + ( - ( col1 ) ) FROM tab0 cor0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT - col1 * + col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT + - col2 * col0 + cor0.col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT - 0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8005
SELECT ALL 90 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL 90 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - cor0.col0 + cor0.col0 * - col2 col2 FROM tab2 cor0
----
-140
3239
4056
query I rowsort
SELECT ALL - 39 AS col1 FROM tab1 AS cor0
----
-39
-39
-39
query I rowsort
SELECT DISTINCT col0 * + col1 * + tab1.col1 AS col2 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT ALL - col2 * col2 * + col0 AS col1 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT ALL + col0 * col0 * col0 FROM tab0
----
13824
42875
704969
query I rowsort
SELECT + 95 * col0 FROM tab1
----
285
6080
7600
query I rowsort
SELECT - - col2 + - 79 AS col1 FROM tab1 AS cor0
----
-22
-25
17
query I rowsort
SELECT col2 * ( - col1 ) + cor0.col2 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-8014
SELECT - col1 * col0 + 15 DIV - col1 FROM tab1 cor0
----
-1041
-641
-78
skipif mysql # not compatible
query I rowsort label-8014
SELECT - col1 * col0 + 15 / - col1 FROM tab1 cor0
----
-1041
-641
-78
query I rowsort
SELECT - 57 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505
query I rowsort
SELECT - + ( tab0.col0 ) + 0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT col2 * col1 * ( col1 ) + col0 AS col0 FROM tab2
----
11061
25954
90584
query I rowsort
SELECT + tab1.col1 + tab1.col2 + - col0 FROM tab1
----
29
3
77
query III rowsort
SELECT * FROM tab0 WHERE NOT - tab0.col0 * - col1 BETWEEN col0 - + col0 * col2 AND ( + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT col0 + tab2.col2 - col0 AS col0 FROM tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - tab1.col1 + - col1 col2 FROM tab1
----
2
37
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 / - col2 col1 FROM tab1 WHERE ( col0 ) = col2 * col0
----
query I rowsort
SELECT tab2.col1 + col2 * - tab2.col0 * + col2 FROM tab2
----
-114059
-5072
-52669
query I rowsort
SELECT + tab2.col0 * col1 FROM tab2 WHERE NOT col2 * + col0 <> ( NULL )
----
query I rowsort
SELECT + tab1.col1 * col1 AS col2 FROM tab1
----
100
169
676
query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT NULL IN ( tab1.col1 )
----
query I rowsort
SELECT - col0 * - col2 FROM tab2 WHERE NULL NOT IN ( col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( col2 * - col2 )
----
query I rowsort
SELECT col1 * + col0 AS col0 FROM tab0 WHERE NULL NOT IN ( - col0 - col2 )
----
query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL BETWEEN col2 AND col2
----
query I rowsort
SELECT ALL col2 * + tab2.col0 - - col1 FROM tab2
----
2087
220
3019
query I rowsort
SELECT - col1 - - col2 * col2 FROM tab1
----
2890
3239
9203
query I rowsort
SELECT - col1 * + col2 + col0 FROM tab0 WHERE NULL NOT IN ( tab0.col2 * tab0.col2 * - col2 )
----
query I rowsort
SELECT col0 * + tab2.col0 + + tab2.col2 AS col2 FROM tab2
----
6110
6279
76
query I rowsort
SELECT DISTINCT col2 - - tab2.col1 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL - col2 + - tab0.col1 AS col0 FROM tab0 WHERE + col0 + col0 NOT BETWEEN col2 + col2 AND + col0 * col1
----
-119
query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT NULL NOT IN ( + tab1.col2 * col0 )
----
query I rowsort
SELECT col1 * col0 FROM tab2 WHERE NOT col1 + col1 <= NULL
----
query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NOT - col1 * + col1 * col1 NOT IN ( + col0 - - tab2.col0 )
----
query I rowsort
SELECT tab1.col2 * col2 + + col2 AS col1 FROM tab1
----
2970
3306
9312
query I rowsort
SELECT ALL + col2 - - col2 * - col1 * col2 FROM tab2
----
-22572
-24510
-39858
onlyif mysql # use DIV operator for integer division
query I rowsort label-8042
SELECT + col0 * 19 + 14 DIV col0 FROM tab0 AS cor0
----
1691
456
665
skipif mysql # not compatible
query I rowsort label-8042
SELECT + col0 * 19 + 14 / col0 FROM tab0 AS cor0
----
1691
456
665
query I rowsort
SELECT + - cor0.col0 + 41 FROM tab2 AS cor0
----
-37
-38
34
query I rowsort
SELECT + col2 * col0 * 14 AS col1 FROM tab0
----
102172
11088
490
onlyif mysql # use DIV operator for integer division
query I rowsort label-8045
SELECT - - col2 + col1 DIV col0 FROM tab1 AS cor0
----
57
62
96
skipif mysql # not compatible
query I rowsort label-8045
SELECT - - col2 + col1 / col0 FROM tab1 AS cor0
----
57
62
96
query I rowsort
SELECT + col2 * + ( - col1 ) + - col1 * col0 FROM tab0 AS cor0
----
-15561
-3492
-4902
skipif mysql # not compatible
query I rowsort
SELECT + cor0.col0 * CAST ( + col1 AS REAL ) FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL 61 + - col0 * cor0.col1 FROM tab2 AS cor0
----
-1282
-156
-4541
onlyif mysql # use DIV operator for integer division
query I rowsort label-8049
SELECT ALL + 77 + + 13 DIV + col2 FROM tab1 AS cor0
----
77
77
77
skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL + 77 + + 13 / + col2 FROM tab1 AS cor0
----
77
77
77
query I rowsort
SELECT + col0 * 51 FROM tab1 AS cor0
----
153
3264
4080
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8051
SELECT DISTINCT CAST( NULL AS DECIMAL ) * ( - cor0.col1 ) * col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8051
SELECT DISTINCT CAST ( NULL AS REAL ) * ( - cor0.col1 ) * col2 FROM tab2 cor0
----
NULL
query I rowsort
SELECT + - 33 * col0 FROM tab0 AS cor0
----
-1155
-2937
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8053
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 + - cor0.col1 / col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 + - cor0.col1 / col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + ( - cor0.col1 ) + - col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL + cor0.col2 - 88 FROM tab1 AS cor0
----
-31
-34
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8056
SELECT ( ( - col1 ) ) * CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8056
SELECT ( ( - col1 ) ) * CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8057
SELECT + 48 DIV 99 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8057
SELECT + 48 / 99 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( + col2 ) ) col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + 18 * col0 FROM tab1 AS cor0
----
1152
1440
54
query I rowsort
SELECT ( col0 ) + col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - + ( - col1 ) + + col1 * cor0.col0 FROM tab0 cor0
----
2150
3492
8190
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0 cor1
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 col1 FROM tab0 AS cor0
----
-67
query I rowsort
SELECT + + ( cor0.col0 ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + 85 + - cor0.col1 FROM tab1 AS cor0
----
59
72
75
query I rowsort
SELECT + - col1 + + col2 * col2 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT DISTINCT col1 * 26 AS col1 FROM tab0
----
2236
2366
2522
query I rowsort
SELECT - ( 28 ) FROM tab1
----
-28
-28
-28
query I rowsort
SELECT ALL + col0 * col2 + + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT col0 * col0 * cor0.col1 FROM tab0 cor0
----
118825
49536
720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 31 col1 FROM tab2 AS cor0
----
31
query I rowsort
SELECT 76 * - col2 * col1 FROM tab1
----
-106704
-43320
-94848
onlyif mysql # use DIV operator for integer division
query I rowsort label-8074
SELECT + 9 DIV col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8074
SELECT + 9 / col2 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8075
SELECT DISTINCT col1 - - col1 DIV - col2 FROM tab0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-8075
SELECT DISTINCT col1 - - col1 / - col2 FROM tab0
----
0
84
90
query I rowsort
SELECT - col2 * cor0.col2 + col1 * col0 FROM tab2 AS cor0
----
-101
-512
3926
onlyif mysql # use DIV operator for integer division
query I rowsort label-8077
SELECT col2 * tab0.col1 DIV col0 FROM tab0
----
118
2
83
skipif mysql # not compatible
query I rowsort label-8077
SELECT col2 * tab0.col1 / col0 FROM tab0
----
118
2
83
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 - tab0.col2 col0 FROM tab0
----
-73
20
95
query I rowsort
SELECT - 60 AS col1 FROM tab1 AS cor0
----
-60
-60
-60
query I rowsort
SELECT + cor0.col0 + cor0.col2 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0a9ba7ddbb78279db2d78308414e03c9
query I rowsort
SELECT DISTINCT ( + 70 ) AS col0 FROM tab0 AS cor0
----
70
query I rowsort
SELECT + 83 + col1 AS col2 FROM tab1
----
109
93
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8084
SELECT ALL - 78 DIV + col0 AS col1 FROM tab0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL - 78 / + col0 AS col1 FROM tab0
----
-2
-3
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - ( - col2 ) col1 FROM tab0
----
-34
-7
9
query I rowsort
SELECT ALL col2 * - 72 AS col1 FROM tab0
----
-2376
-5904
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 * + col0 col2 FROM tab0
----
1992
2905
7387
query I rowsort
SELECT ( 66 ) FROM tab0
----
66
66
66
query I rowsort
SELECT cor1.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
query I rowsort
SELECT - - col0 * + cor0.col1 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT + - 78 * col2 * col2 FROM tab0 AS cor0
----
-524472
-78
-84942
query I rowsort
SELECT 37 * col1 FROM tab1 AS cor0
----
370
481
962
query I rowsort
SELECT - cor1.col1 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8094
SELECT + CAST( 25 AS SIGNED ) + col2 FROM tab0 cor0
----
107
26
58
skipif mysql # not compatible
query I rowsort label-8094
SELECT + CAST ( 25 AS INTEGER ) + col2 FROM tab0 cor0
----
107
26
58
query I rowsort
SELECT + col2 * 73 FROM tab2
----
1898
1971
2774
query I rowsort
SELECT DISTINCT + ( col2 ) * col1 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL col2 * + ( col1 ) AS col0 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8098
SELECT ALL - - col0 + - ( + col2 ) DIV - col2 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL - - col0 + - ( + col2 ) / - col2 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT + col2 * cor0.col1 + col0 + 98 AS col2 FROM tab2 AS cor0
----
1710
823
942
query I rowsort
SELECT - 58 * cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b76414b5697e5559aca3100131c43e75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col2 + 13 * col2 col0 FROM tab1
----
1344
756
798
query I rowsort
SELECT ALL col0 * ( col1 * + col2 ) FROM tab0
----
3395
664118
68112
query I rowsort
SELECT - 8 * + col2 AS col2 FROM tab0
----
-264
-656
-8
query I rowsort
SELECT DISTINCT ( - col1 ) * - col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT 12 + col1 * - col1 * - cor0.col0 FROM tab0 AS cor0
----
177516
329327
737021
query I rowsort
SELECT - 32 + cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
105
6
64
query I rowsort
SELECT - col0 * col0 + col2 * + col2 + cor0.col0 * col1 FROM tab0 AS cor0
----
2171
2577
6902
query I rowsort
SELECT DISTINCT + + col2 + 8 * col0 FROM tab1 AS cor0
----
569
736
78
query I rowsort
SELECT - 99 - col2 * 29 FROM tab1
----
-1665
-1752
-2883
query I rowsort
SELECT ALL + col2 * col2 - + col2 AS col2 FROM tab2
----
1406
650
702
query I rowsort
SELECT + col1 + - cor0.col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 + + 51 * 84 * - col2 FROM tab2 cor0
----
-111358
-115641
-162754
query I rowsort
SELECT DISTINCT + col1 * 5 + 0 AS col1 FROM tab1 AS cor0
----
130
50
65
query I rowsort
SELECT DISTINCT col1 * - col2 + 45 * col2 AS col0 FROM tab0 AS cor0
----
-1353
-3772
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8115
SELECT DISTINCT + col2 + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8115
SELECT DISTINCT + col2 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT + col1 * + ( + col0 ) + - col2 FROM tab0 cor0
----
2031
3394
8017
query I rowsort
SELECT + - cor0.col2 * 26 - 48 AS col1 FROM tab1 AS cor0
----
-1452
-1530
-2544
onlyif mysql # use DIV operator for integer division
query I rowsort label-8118
SELECT col0 DIV ( + 45 ) + cor0.col0 + cor0.col2 FROM tab0 AS cor0
----
172
36
57
skipif mysql # not compatible
query I rowsort label-8118
SELECT col0 / ( + 45 ) + cor0.col0 + cor0.col2 FROM tab0 AS cor0
----
172
36
57
query I rowsort
SELECT + col2 * 88 FROM tab2 AS cor0
----
2288
2376
3344
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8120
SELECT + col2 * - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8120
SELECT + col2 * - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 - - col2 * col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT col2 * + col0 + col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT + col1 * - col0 * 60 FROM tab1 AS cor0
----
-38400
-4680
-62400
query I rowsort
SELECT DISTINCT col0 + 53 * + 11 + + col2 AS col0 FROM tab1 cor0
----
640
704
759
query I rowsort
SELECT ALL - col2 + - 89 AS col1 FROM tab0 AS cor0
----
-122
-171
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8126
SELECT ALL - CAST( 33 AS SIGNED ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948
skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL - CAST ( 33 AS INTEGER ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT cor0.col0 * 62 + - 49 * cor0.col2 + 24 * + ( + col2 + cor0.col1 ) * ( col2 ) FROM tab2 cor0
----
36695
53196
56602
query I rowsort
SELECT DISTINCT col2 * - ( col2 ) + col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT ALL - col1 - 96 * + col0 AS col2 FROM tab0 AS cor0
----
-2390
-3457
-8635
query I rowsort
SELECT - + col2 + - 4 * col2 FROM tab2 AS cor0
----
-130
-135
-190
onlyif mysql # use DIV operator for integer division
query I rowsort label-8132
SELECT ALL col2 + cor0.col0 DIV col2 FROM tab1 AS cor0
----
54
58
96
skipif mysql # not compatible
query I rowsort label-8132
SELECT ALL col2 + cor0.col0 / col2 FROM tab1 AS cor0
----
54
58
96
query I rowsort
SELECT ALL col1 + + ( col2 ) * cor0.col2 AS col0 FROM tab2 AS cor0
----
1461
735
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-8134
SELECT DISTINCT col1 * - ( + col1 ) DIV + col1 + - col1 FROM tab2 AS cor0
----
-118
-34
-62
skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT col1 * - ( + col1 ) / + col1 + - col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT col2 + - col1 AS col0 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT - cor0.col2 * ( - 45 ) + - col0 FROM tab2 AS cor0
----
1092
1208
1631
query I rowsort
SELECT - ( 7 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
query I rowsort
SELECT + col2 * 5 * col2 FROM tab1
----
14580
16245
46080
onlyif mysql # use DIV operator for integer division
query I rowsort label-8139
SELECT DISTINCT - col1 DIV col1 - col2 FROM tab1 AS cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT - col1 / col1 - col2 FROM tab1 AS cor0
----
-55
-58
-97
query I rowsort
SELECT + cor0.col2 * 60 - 42 AS col1 FROM tab2 AS cor0
----
1518
1578
2238
query I rowsort
SELECT + col1 * + 84 - col0 AS col2 FROM tab1 AS cor0
----
1012
2181
776
onlyif mysql # use DIV operator for integer division
query I rowsort label-8142
SELECT DISTINCT + col1 + + col2 * 73 DIV col2 AS col1 FROM tab0
----
159
164
170
skipif mysql # not compatible
query I rowsort label-8142
SELECT DISTINCT + col1 + + col2 * 73 / col2 AS col1 FROM tab0
----
159
164
170
query I rowsort
SELECT + 45 FROM tab1, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT - - ( + ( - col1 ) ) - col0 * col0 * - col2 FROM tab1 cor0
----
233462
460
614387
onlyif mysql # use DIV operator for integer division
query I rowsort label-8145
SELECT DISTINCT - col1 * col0 + col2 DIV col0 AS col2 FROM tab1 AS cor0
----
-1039
-60
-640
skipif mysql # not compatible
query I rowsort label-8145
SELECT DISTINCT - col1 * col0 + col2 / col0 AS col2 FROM tab1 AS cor0
----
-1039
-60
-640
query I rowsort
SELECT DISTINCT - 11 + + 43 AS col0 FROM tab2 cor0
----
32
query I rowsort
SELECT + col1 + + col1 AS col2 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT DISTINCT + 12 * + col1 AS col2 FROM tab0 AS cor0
----
1032
1092
1164
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8149
SELECT DISTINCT col2 * col2 + ( col0 ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT col2 * col2 + ( col0 ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT - col1 * col0 * - col2 + col2 FROM tab0
----
3396
664200
68145
query I rowsort
SELECT DISTINCT - col1 * 79 + 78 AS col0 FROM tab1
----
-1976
-712
-949
onlyif mysql # use DIV operator for integer division
query I rowsort label-8152
SELECT + - col1 * col0 + - col1 * 2 DIV + col1 FROM tab2 AS cor0
----
-1345
-219
-4604
skipif mysql # not compatible
query I rowsort label-8152
SELECT + - col1 * col0 + - col1 * 2 / + col1 FROM tab2 AS cor0
----
-1345
-219
-4604
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 * + col0 + col2 * + 31 col2 FROM tab2
----
-5142
-5356
781
query I rowsort
SELECT - col0 * - col2 * + 54 AS col1 FROM tab2 AS cor0
----
10206
109512
162108
query I rowsort
SELECT ALL + col0 * col2 + + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ( + col2 ) * col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + + col0 * col2 * 80 AS col1 FROM tab0 AS cor0
----
2800
583840
63360
query I rowsort
SELECT ALL - 25 * + col2 - + col2 FROM tab1 AS cor0
----
-1404
-1482
-2496
query I rowsort
SELECT DISTINCT + + ( + col1 ) * col1 + col2 * + col2 FROM tab0 AS cor0
----
15005
8485
9410
query I rowsort
SELECT ALL - + 61 * cor0.col1 + ( cor0.col1 ) AS col2 FROM tab0 cor0
----
-5160
-5460
-5820
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8161
SELECT DISTINCT CAST( col2 * - col1 AS SIGNED ) + + ( col0 ) FROM tab2
----
-1456
-567
-830
skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT CAST ( col2 * - col1 AS INTEGER ) + + ( col0 ) FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT - 26 * 22 + + col1 FROM tab2
----
-513
-541
-555
query I rowsort
SELECT - + col2 + - cor0.col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1482
-702
-756
query I rowsort
SELECT DISTINCT - ( col2 ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - - 20 AS col0 FROM tab0 AS cor0
----
20
20
20
query I rowsort
SELECT DISTINCT 70 + + col1 FROM tab1 AS cor0
----
80
83
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 78 + col2 col2 FROM tab1 AS cor0
----
-21
-24
18
query I rowsort
SELECT DISTINCT ( - col0 * col2 ) AS col0 FROM tab2
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8169
SELECT + 48 DIV col1 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1341
-216
-4602
skipif mysql # not compatible
query I rowsort label-8169
SELECT + 48 / col1 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1341
-216
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8170
SELECT DISTINCT + col2 + col0 * col1 DIV - ( + 92 ) + + col1 AS col2 FROM tab0
----
62
85
97
skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT + col2 + col0 * col1 / - ( + 92 ) + + col1 AS col2 FROM tab0
----
62
85
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8171
SELECT DISTINCT 12 + 66 * col1 DIV col1 AS col1 FROM tab0
----
78
skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT 12 + 66 * col1 / col1 AS col1 FROM tab0
----
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8172
SELECT + - 92 + col1 DIV 24 FROM tab2 AS cor0
----
-90
-91
-92
skipif mysql # not compatible
query I rowsort label-8172
SELECT + - 92 + col1 / 24 FROM tab2 AS cor0
----
-90
-91
-92
query I rowsort
SELECT DISTINCT + ( - col0 ) * - col1 + + col1 * + col0 * - tab1.col2 + col1 FROM tab1
----
-35830
-4108
-98787
query I rowsort
SELECT + 62 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
onlyif mysql # use DIV operator for integer division
query I rowsort label-8175
SELECT + col1 DIV + col1 + 75 * col2 FROM tab0 cor0
----
2476
6151
76
skipif mysql # not compatible
query I rowsort label-8175
SELECT + col1 / + col1 + 75 * col2 FROM tab0 cor0
----
2476
6151
76
query I rowsort
SELECT + col1 + + col1 * 9 * - cor0.col2 + col1 FROM tab2 AS cor0
----
-13688
-5780
-7471
query I rowsort
SELECT 84 + + col2 AS col0 FROM tab2 AS cor0
----
110
111
122
query I rowsort
SELECT + cor0.col2 * col1 + - 28 * col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
130390
38250
6913
query I rowsort
SELECT col0 * - col2 + + 6 FROM tab0 AS cor0
----
-29
-7292
-786
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + col2 * - col1 - - col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 1260d4dbe7a8d809e8010586a3c398c5
query I rowsort
SELECT DISTINCT - - col1 + col0 + 16 * - col1 AS col1 FROM tab1 cor0
----
-115
-387
-86
query I rowsort
SELECT ALL - - col1 + - 3 AS col0 FROM tab0 AS cor0
----
83
88
94
query I rowsort
SELECT ALL + - col2 * 16 - col0 AS col0 FROM tab2 AS cor0
----
-439
-494
-687
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col2 FROM tab1 AS cor0
----
-18
-18
-18
onlyif mysql # use DIV operator for integer division
query I rowsort label-8187
SELECT - col0 DIV - 93 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8187
SELECT - col0 / - 93 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - ( 13 ) FROM tab0 AS cor0
----
-13
-13
-13
query I rowsort
SELECT cor0.col0 * 86 AS col0 FROM tab1 AS cor0
----
258
5504
6880
query I rowsort
SELECT ALL + - ( cor0.col1 ) * - col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + + ( - col1 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - + 49 * + col0 AS col0 FROM tab1 AS cor0
----
-147
-3136
-3920
query I rowsort
SELECT - 67 * + 42 FROM tab0 AS cor0
----
-2814
-2814
-2814
query I rowsort
SELECT ALL + - 53 FROM tab0 AS cor0
----
-53
-53
-53
query I rowsort
SELECT DISTINCT ( 99 ) AS col0 FROM tab2 AS cor0
----
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-8196
SELECT DISTINCT - col2 * col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8196
SELECT DISTINCT - col2 * col2 / + col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - - col0 + - col2 * col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8198
SELECT + CAST( + ( + cor1.col0 ) AS SIGNED ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
skipif mysql # not compatible
query I rowsort label-8198
SELECT + CAST ( + ( + cor1.col0 ) AS INTEGER ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-8199
SELECT col2 * col2 DIV + 98 + + col2 * col1 col1 FROM tab0 AS cor0
----
2849
7530
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8199
SELECT col2 * col2 / + 98 + + col2 * col1 col1 FROM tab0 AS cor0
----
2849
7530
97
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c
query I rowsort
SELECT - col0 + ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-8202
SELECT tab1.col2 DIV col1 AS col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-8202
SELECT tab1.col2 / col1 AS col1 FROM tab1
----
2
5
7
query I rowsort
SELECT DISTINCT + col1 * + col2 AS col2 FROM tab0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8204
SELECT + cor0.col2 * CAST( NULL AS SIGNED ) FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8204
SELECT + cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-8205
SELECT + col0 DIV - col0 AS col1 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8205
SELECT + col0 / - col0 AS col1 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT - col1 * 28 * - col2 AS col2 FROM tab2
----
18088
23436
42952
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8207
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col0 * - 84 FROM tab2
----
-588
-6552
-6636
query I rowsort
SELECT cor0.col0 * - col1 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT - col2 + 95 * - col2 FROM tab1 AS cor0
----
-5184
-5472
-9216
query I rowsort
SELECT col2 - + tab0.col0 * - tab0.col1 * - col0 AS col2 FROM tab0
----
-118824
-49503
-720729
query I rowsort
SELECT ALL + cor0.col1 - cor0.col0 * + 35 * + col2 AS col0 FROM tab2 AS cor0
----
-105053
-6584
-70921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - cor0.col0 * col2 * - col0 col1 FROM tab1 AS cor0
----
233408
483
614320
query I rowsort
SELECT ALL - col2 * col0 + ( col1 ) + col1 * cor0.col2 FROM tab1 AS cor0
----
-3068
-6419
1268
query I rowsort
SELECT ALL 52 + - col2 FROM tab2 AS cor0
----
14
25
26
query I rowsort
SELECT ALL - + 66 - col1 FROM tab2 AS cor0
----
-125
-83
-97
query I rowsort
SELECT + + col0 + - col0 * col2 FROM tab2 cor0
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-8218
SELECT + col0 DIV - col1 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-8218
SELECT + col0 / - col1 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - 33 * - col0 * - col0 - - col2 AS col2 FROM tab1 AS cor0
----
-135111
-211104
-243
query I rowsort
SELECT - + col2 * - col0 - - ( + col1 ) FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT + col2 + col1 AS col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL + col2 + + cor0.col0 * + 85 * + col1 FROM tab2 AS cor0
----
114193
18472
391196
query I rowsort
SELECT col0 - cor0.col2 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 * + 11 col0 FROM tab2 AS cor0
----
204
372
708
query I rowsort
SELECT col0 + + col0 - col2 FROM tab2 cor0
----
-13
120
130
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8226
SELECT DISTINCT + col2 / + CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT + col2 / + CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col2 + + ( col2 ) AS col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL + col0 * col1 * + 74 + + tab2.col2 FROM tab2
----
16085
340574
99420
query I rowsort
SELECT DISTINCT 40 - 21 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
19
query I rowsort
SELECT + col2 * + 6 AS col1 FROM tab2 AS cor0
----
156
162
228
query I rowsort
SELECT ALL - - col0 + col1 * col2 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT - + ( cor0.col2 ) * col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT 23 + - col0 * - col0 * + ( - col0 ) FROM tab1 AS cor0
----
-262121
-4
-511977
query I rowsort
SELECT DISTINCT + - 65 - col2 AS col0 FROM tab2 cor0
----
-103
-91
-92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8235
SELECT DISTINCT tab1.col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT tab1.col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
query I rowsort
SELECT 87 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT ALL 80 FROM tab1, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT ALL - 95 * col0 FROM tab2
----
-665
-7410
-7505
query I rowsort
SELECT - 33 * col0 - + col2 AS col2 FROM tab1
----
-153
-2169
-2736
query I rowsort
SELECT 50 * 46 * col1 + - col1 AS col0 FROM tab1
----
22990
29887
59774
query I rowsort
SELECT ALL + col1 * - 0 AS col1 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8242
SELECT ALL + CAST( 98 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
98
98
98
skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL + CAST ( 98 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
98
98
98
query I rowsort
SELECT ALL + 75 + + col0 FROM tab2 AS cor0
----
153
154
82
query I rowsort
SELECT ALL col1 * 56 FROM tab1 cor0
----
1456
560
728
query I rowsort
SELECT 11 + + 99 FROM tab0 AS cor0
----
110
110
110
query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0 CROSS JOIN tab2 cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b
query I rowsort
SELECT + + 47 * col1 FROM tab2 AS cor0
----
1457
2773
799
query I rowsort
SELECT ALL - - 18 + - col2 FROM tab1 AS cor0
----
-36
-39
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8249
SELECT - tab1.col2 DIV col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-8249
SELECT - tab1.col2 / col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT + + cor0.col2 * + col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT col2 * col2 + col2 * - col0 * col0 AS col2 FROM tab1 AS cor0
----
-230223
-605184
2430
query I rowsort
SELECT - cor0.col2 - + cor0.col2 FROM tab2, tab1 cor0
----
9 values hashing to 6d59c936869313d0b2d0f28c10bf14a9
query I rowsort
SELECT DISTINCT + col2 + col2 * 24 * + col2 AS col2 FROM tab1 AS cor0
----
221280
70038
78033
query I rowsort
SELECT - cor0.col1 + ( col2 ) AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - col1 + - 88 AS col1 FROM tab2 AS cor0
----
-105
-119
-147
query I rowsort
SELECT + col1 + + col0 + + 55 FROM tab0 cor0
----
165
187
235
query I rowsort
SELECT ALL col2 + - cor0.col0 * + col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + col2 + ( 3 ) FROM tab1 AS cor0
----
57
60
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-8259
SELECT DISTINCT - - col1 + + col0 DIV - 72 AS col0 FROM tab2 cor0
----
16
31
58
skipif mysql # not compatible
query I rowsort label-8259
SELECT DISTINCT - - col1 + + col0 / - 72 AS col0 FROM tab2 cor0
----
16
31
58
query I rowsort
SELECT ALL col2 * + col2 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
2787
5278
946
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8261
SELECT + ( + col1 ) + - col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8261
SELECT + ( + col1 ) + - col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8262
SELECT DISTINCT + col0 + col1 DIV - col2 FROM tab0 AS cor0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-8262
SELECT DISTINCT + col0 + col1 / - col2 FROM tab0 AS cor0
----
-62
22
88
query I rowsort
SELECT ALL + cor0.col0 * col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - + 39 * + col0 * cor0.col0 + + col0 * col0 FROM tab2 AS cor0
----
-1862
-231192
-237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) col1 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 47 ) * col2 col2 FROM tab2 AS cor0
----
1222
1269
1786
query I rowsort
SELECT DISTINCT + col1 + + 28 AS col1 FROM tab2
----
45
59
87
query I rowsort
SELECT tab2.col1 * + 33 AS col1 FROM tab2
----
1023
1947
561
query I rowsort
SELECT col1 * + ( col2 ) AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ( + col1 ) * - col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT cor0.col1 * + 82 FROM tab2 cor0
----
1394
2542
4838
query I rowsort
SELECT DISTINCT + col0 * 8 FROM tab1
----
24
512
640
query I rowsort
SELECT ALL + 58 + col2 FROM tab1 cor0
----
112
115
154
query I rowsort
SELECT DISTINCT 41 + - col2 FROM tab1 AS cor0
----
-13
-16
-55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + col1 ) * - cor0.col0 col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + - 19 AS col2 FROM tab1 AS cor0
----
-19
-19
-19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
92
query I rowsort
SELECT ALL - col1 * 61 * - col1 FROM tab1
----
10309
41236
6100
query I rowsort
SELECT DISTINCT ( + col1 ) * - col1 * col2 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT ALL - 39 FROM tab0, tab2 cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e
query I rowsort
SELECT ( ( + col2 ) ) AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL + tab0.col1 * col2 * - col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT 67 FROM tab2 cor0
----
67
67
67
query I rowsort
SELECT - col0 + col2 AS col2 FROM tab2 cor0
----
-41
-52
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8285
SELECT DISTINCT + 60 * - tab0.col0 + CAST( NULL AS SIGNED ) + - 45 FROM tab0, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT + 60 * - tab0.col0 + CAST ( NULL AS INTEGER ) + - 45 FROM tab0, tab0 AS cor0
----
NULL
query I rowsort
SELECT 99 + - col0 + col2 FROM tab1
----
115
150
92
query I rowsort
SELECT + ( + tab2.col1 ) * col0 * + 19 FROM tab2
----
25517
4123
87438
onlyif mysql # use DIV operator for integer division
query I rowsort label-8288
SELECT DISTINCT col2 DIV - tab0.col0 AS col0 FROM tab0
----
-1
0
skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT col2 / - tab0.col0 AS col0 FROM tab0
----
-1
0
query I rowsort
SELECT + 7 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT - 26 * col1 FROM tab2 cor0
----
-1534
-442
-806
query I rowsort
SELECT - col0 + - col2 * + col0 FROM tab1 cor0
----
-165
-3712
-7760
query I rowsort
SELECT - col0 * col0 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-14080
-171
-7744
query I rowsort
SELECT 5 + col2 FROM tab1 AS cor0
----
101
59
62
query I rowsort
SELECT cor0.col2 * col0 + + ( - col1 ) * col0 + - col2 AS col2 FROM tab1 AS cor0
----
2951
30
6544
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8295
SELECT ( col2 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8295
SELECT ( col2 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * col1 + - tab1.col1 * + 94 FROM tab1
----
-1053
-1768
-840
onlyif mysql # use DIV operator for integer division
query I rowsort label-8297
SELECT ALL tab0.col0 + - col1 DIV - ( + 80 ) FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL tab0.col0 + - col1 / - ( + 80 ) FROM tab0
----
25
36
90
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab2 AS cor0, tab1 cor1
----
972 values hashing to 980274175fafec015a83080672486a9a
query I rowsort
SELECT + col0 + - col2 AS col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT - 74 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28
query I rowsort
SELECT + col2 * cor0.col0 * - col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT + - col1 + - 53 * + 74 + col1 AS col2 FROM tab1 AS cor0
----
-3922
-3922
-3922
query I rowsort
SELECT + col1 + col0 + - col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1954
-3263
-7919
query I rowsort
SELECT ALL + col0 + 52 FROM tab1 AS cor0
----
116
132
55
query I rowsort
SELECT + - cor0.col1 * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT cor0.col0 + ( cor0.col0 ) * cor0.col1 AS col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL - col1 + + cor0.col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - + cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - col1 * cor0.col1 + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8310
SELECT - col1 + CAST( NULL AS SIGNED ) * 79 + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8310
SELECT - col1 + CAST ( NULL AS INTEGER ) * 79 + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8311
SELECT + col0 * cor0.col0 DIV + col1 col1 FROM tab0 cor0
----
12
6
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8311
SELECT + col0 * cor0.col0 / + col1 col1 FROM tab0 cor0
----
12
6
87
query I rowsort
SELECT DISTINCT + col1 * col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL + tab1.col1 - col1 FROM tab1
----
0
0
0
query I rowsort
SELECT 48 - - col0 AS col0 FROM tab2 cor0
----
126
127
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL 96 + - ( col0 ) FROM tab0 AS cor0
----
61
7
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 20 ) - cor0.col2 col1 FROM tab2 AS cor0
----
-46
-47
-58
query I rowsort
SELECT 28 + cor0.col1 AS col1 FROM tab0 AS cor0
----
114
119
125
query I rowsort
SELECT 47 FROM tab2 cor0
----
47
47
47
query I rowsort
SELECT ALL + cor0.col2 * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - - 87 * + col1 AS col0 FROM tab2 AS cor0
----
1479
2697
5133
query I rowsort
SELECT ALL + 39 + - col2 + col1 AS col1 FROM tab1 AS cor0
----
-44
-8
11
query I rowsort
SELECT DISTINCT + ( + col1 ) + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT 71 * + 7 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc9fd54156914c1a0ef119f7dc26b0c
query I rowsort
SELECT 77 * col2 AS col2 FROM tab1 AS cor0
----
4158
4389
7392
query I rowsort
SELECT + col1 + col0 * cor0.col2 + + col0 AS col2 FROM tab0 AS cor0
----
167
7478
902
onlyif mysql # use DIV operator for integer division
query I rowsort label-8327
SELECT col1 DIV col1 AS col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8327
SELECT col1 / col1 AS col0 FROM tab2
----
1
1
1
query I rowsort
SELECT DISTINCT + 74 FROM tab0
----
74
query I rowsort
SELECT DISTINCT cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
26
27
38
query I rowsort
SELECT ALL + cor0.col1 + - ( col2 ) AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT + col2 * col1 + col0 AS col2 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT + 92 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
92
query I rowsort
SELECT - 33 - - ( + cor0.col2 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to e5b2608558683cb309d1dbb00f17d91c
query I rowsort
SELECT ALL - col0 * + 21 AS col2 FROM tab1 AS cor0
----
-1344
-1680
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-8335
SELECT DISTINCT + col2 DIV col0 + - col2 FROM tab1 AS cor0
----
-36
-57
-95
skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT + col2 / col0 + - col2 FROM tab1 AS cor0
----
-36
-57
-95
query I rowsort
SELECT DISTINCT + col1 + - ( + cor0.col1 ) FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - cor0.col1 * + 66 + + cor0.col2 * - col1 + + col0 AS col2 FROM tab2 AS cor0
----
-1689
-2876
-5350
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 4 col1 FROM tab0 AS cor0
----
101
90
95
query I rowsort
SELECT ALL + cor0.col1 + col1 * cor0.col0 - - col2 AS col0 FROM tab2 AS cor0
----
1398
275
4687
query I rowsort
SELECT col1 * ( + cor0.col2 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + col0 * - col2 + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1026
-3562
-3648
query I rowsort
SELECT DISTINCT col0 + 23 AS col1 FROM tab0 cor0
----
112
47
58
query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 + ( col0 ) FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT ( col1 ) * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - ( + 29 ) * - cor0.col1 + - col1 * - col2 FROM tab1 AS cor0
----
1625
2158
860
query I rowsort
SELECT + col1 * - 88 AS col0 FROM tab0 AS cor0
----
-7568
-8008
-8536
query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL ( + cor0.col2 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT DISTINCT + ( col2 ) FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - ( ( cor0.col1 ) ) * col0 - col0 AS col0 FROM tab0 cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT - tab0.col2 * - tab0.col1 FROM tab0
----
2838
7462
97
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 cor2, tab2 AS cor3
----
3645 values hashing to 70af829b2ea63fd8a25dddddb851fcd5
query I rowsort
SELECT 2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * cor0.col1 + ( col0 ) col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT - + 51 * - col1 FROM tab1 AS cor0
----
1326
510
663
query I rowsort
SELECT col1 + col0 * + col2 + col0 AS col2 FROM tab1 AS cor0
----
191
3722
7773
query I rowsort
SELECT ALL + 4 * - col0 + col2 * - col0 + col2 AS col1 FROM tab1 AS cor0
----
-120
-3847
-7904
query I rowsort
SELECT ALL - + col0 * + cor0.col1 + col0 * col0 AS col0 FROM tab1 cor0
----
-69
3456
5360
query I rowsort
SELECT + col2 * ( + col0 + col2 ) FROM tab1
----
16896
3078
6897
query I rowsort
SELECT DISTINCT - + 27 * col2 FROM tab2 AS cor0
----
-1026
-702
-729
query I rowsort
SELECT ALL - - 88 * - cor0.col1 FROM tab2 AS cor0
----
-1496
-2728
-5192
query I rowsort
SELECT + col1 + cor0.col0 AS col1 FROM tab2 cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8363
SELECT ALL - ( col1 ) * + CAST( NULL AS SIGNED ) / 28 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL - ( col1 ) * + CAST ( NULL AS INTEGER ) / 28 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 - - col2 * tab1.col2 * - ( col1 ) AS col1 FROM tab1
----
-119821
-32500
-75842
onlyif mysql # use DIV operator for integer division
query I rowsort label-8365
SELECT + tab1.col2 DIV col2 + + 76 FROM tab1
----
77
77
77
skipif mysql # not compatible
query I rowsort label-8365
SELECT + tab1.col2 / col2 + + 76 FROM tab1
----
77
77
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-8366
SELECT col2 * + col1 - - col2 DIV ( + tab0.col1 ) FROM tab0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-8366
SELECT col2 * + col1 - - col2 / ( + tab0.col1 ) FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT cor0.col0 * + ( + col0 ) AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL - col1 * col2 * 82 + + col2 * 50 FROM tab2 AS cor0
----
-124488
-51072
-67284
query I rowsort
SELECT ALL - + cor0.col0 + 57 AS col2 FROM tab2 AS cor0
----
-21
-22
50
query I rowsort
SELECT ALL col2 * col2 * col0 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT + 49 AS col1 FROM tab2
----
49
49
49
query I rowsort
SELECT DISTINCT - 24 * + col1 AS col2 FROM tab1
----
-240
-312
-624
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 + - col2 col2 FROM tab2
----
28
39
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-8374
SELECT - + col2 DIV - col2 + + col0 + col0 AS col1 FROM tab1 AS cor0
----
129
161
7
skipif mysql # not compatible
query I rowsort label-8374
SELECT - + col2 / - col2 + + col0 + col0 AS col1 FROM tab1 AS cor0
----
129
161
7
query I rowsort
SELECT - 86 * - cor0.col0 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to cfe76ccbd8b21643445457f1fb4ed9c8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8376
SELECT DISTINCT - col0 + col0 DIV col1 FROM tab2
----
-7
-75
-77
skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT - col0 + col0 / col1 FROM tab2
----
-7
-75
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 68 col1 FROM tab1 AS cor0
----
204
4352
5440
query I rowsort
SELECT DISTINCT col1 * + ( - col2 ) - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-14924
-194
-5676
query I rowsort
SELECT DISTINCT col0 + 42 FROM tab0 AS cor0
----
131
66
77
query I rowsort
SELECT DISTINCT + col2 + + ( col1 ) AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + tab2.col0 AS col2 FROM tab2, tab1 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - col0 * + 25 AS col1 FROM tab0
----
-2225
-600
-875
onlyif mysql # use DIV operator for integer division
query I rowsort label-8383
SELECT 97 DIV col0 FROM tab2
----
1
1
13
skipif mysql # not compatible
query I rowsort label-8383
SELECT 97 / col0 FROM tab2
----
1
1
13
query I rowsort
SELECT col1 + tab0.col2 - col2 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT - col2 + + col0 * col2 AS col1 FROM tab0
----
34
7216
759
query I rowsort
SELECT DISTINCT 61 + - tab2.col2 AS col2 FROM tab2
----
23
34
35
query I rowsort
SELECT + 36 + tab0.col2 AS col2 FROM tab0
----
118
37
69
query I rowsort
SELECT + - col2 * + col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + + col0 * col0 + + 81 + - col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-59
3320
4137
query I rowsort
SELECT DISTINCT - ( - 10 ) + - col1 * - col2 + - col0 * - col1 * col1 FROM tab0
----
180352
329422
744481
query I rowsort
SELECT DISTINCT ( - 52 ) + + col1 * + 88 AS col2 FROM tab1
----
1092
2236
828
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8392
SELECT DISTINCT CAST( + col1 AS SIGNED ) * - col0 + col0 * - col0 FROM tab2
----
-10686
-266
-7584
skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * - col0 + col0 * - col0 FROM tab2
----
-10686
-266
-7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 * col0 col1 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT DISTINCT + col1 - - ( + col0 ) FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - + cor0.col1 * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + - col1 - - 21 FROM tab2 AS cor0
----
-10
-38
4
query I rowsort
SELECT 46 * col2 + col0 AS col2 FROM tab0
----
1542
3861
81
query I rowsort
SELECT col0 * col1 + + col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT col1 + + ( col0 ) AS col1 FROM tab1
----
29
74
93
query I rowsort
SELECT cor0.col2 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT DISTINCT 27 FROM tab2 AS cor0
----
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-8403
SELECT + cor0.col1 + col2 DIV col2 AS col2 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-8403
SELECT + cor0.col1 + col2 / col2 AS col2 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT DISTINCT - - col1 * - col0 + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT ( + col2 ) * - ( + col2 * - col2 ) + ( - col2 ) + col1 AS col1 FROM tab0 AS cor0
----
35990
551377
97
query I rowsort
SELECT - 28 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115
query I rowsort
SELECT 8 * + col0 * + 2 + col2 AS col2 FROM tab0 AS cor0
----
1506
417
561
query I rowsort
SELECT - - 33 + + cor0.col2 + + 38 * col1 FROM tab1 AS cor0
----
1075
470
623
query I rowsort
SELECT DISTINCT - 27 AS col2 FROM tab0 AS cor0
----
-27
query I rowsort
SELECT DISTINCT 8 + col2 FROM tab0 AS cor0
----
41
9
90
query I rowsort
SELECT 31 + + col0 * ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
2095
3426
8130
query I rowsort
SELECT ALL + + col2 * cor0.col1 + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8413
SELECT DISTINCT cor1.col1 + + CAST( NULL AS SIGNED ) FROM tab0, tab1 cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT cor1.col1 + + CAST ( NULL AS INTEGER ) FROM tab0, tab1 cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT 83 * 25 + - tab1.col1 AS col2 FROM tab1
----
2049
2062
2065
query I rowsort
SELECT ( col1 ) * col1 + - 94 * col2 AS col2 FROM tab0 AS cor0
----
4294
573
9315
query I rowsort
SELECT ALL - ( - col2 ) * 81 FROM tab2 AS cor0
----
2106
2187
3078
query I rowsort
SELECT DISTINCT - col2 * cor0.col2 + - col1 + + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-2763
-4463
-949
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8418
SELECT ALL + cor0.col1 + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL + cor0.col1 + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * + col0 AS col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT 75 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
onlyif mysql # use DIV operator for integer division
query I rowsort label-8421
SELECT + - col2 DIV col1 + 28 FROM tab2 cor0
----
26
28
28
skipif mysql # not compatible
query I rowsort label-8421
SELECT + - col2 / col1 + 28 FROM tab2 cor0
----
26
28
28
query I rowsort
SELECT + + col0 * ( col0 * col0 ) AS col1 FROM tab1 AS cor0
----
262144
27
512000
query I rowsort
SELECT + + col0 * ( col0 ) + - col2 AS col2 FROM tab1 AS cor0
----
-45
4039
6304
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8424
SELECT - col1 * + CAST( NULL AS SIGNED ) + - ( col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8424
SELECT - col1 * + CAST ( NULL AS INTEGER ) + - ( col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 + 17 col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT + col2 * tab0.col0 + col1 * + ( + col0 ) + + 46 AS col0 FROM tab0
----
15443
2902
3476
query I rowsort
SELECT - tab1.col1 + + col1 + 70 AS col2 FROM tab1
----
70
70
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8428
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT - tab0.col2 * - col2 * col0 + - 79 * tab0.col0 * + col2 AS col1 FROM tab0
----
-2730
-36432
21894
onlyif mysql # use DIV operator for integer division
query I rowsort label-8430
SELECT - col0 DIV 65 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8430
SELECT - col0 / 65 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT - col0 * - col2 * 70 FROM tab2 AS cor0
----
13230
141960
210140
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 + + col1 col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL col1 * + col2 AS col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + col2 - + col0 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT ALL - 5 AS col2 FROM tab0 AS cor0
----
-5
-5
-5
query I rowsort
SELECT DISTINCT - 27 * col1 FROM tab0 AS cor0
----
-2322
-2457
-2619
query I rowsort
SELECT DISTINCT + + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT col2 * + col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT - + col1 - col1 * col1 AS col1 FROM tab0 cor0
----
-7482
-8372
-9506
query I rowsort
SELECT DISTINCT + 15 FROM tab0 AS cor0
----
15
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8441
SELECT DISTINCT CAST( col2 AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT CAST ( col2 AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT col2 * - 58 + col2 FROM tab1 AS cor0
----
-3078
-3249
-5472
query I rowsort
SELECT ALL - col1 - + ( - col2 ) AS col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ALL 90 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
query I rowsort
SELECT + 5 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
onlyif mysql # use DIV operator for integer division
query I rowsort label-8446
SELECT ALL col0 - tab1.col2 DIV - tab1.col1 AS col0 FROM tab1
----
5
69
87
skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL col0 - tab1.col2 / - tab1.col1 AS col0 FROM tab1
----
5
69
87
query I rowsort
SELECT ALL + col1 * col2 - col1 * - col1 FROM tab1
----
1417
2080
670
onlyif mysql # use DIV operator for integer division
query I rowsort label-8448
SELECT - col2 DIV - col0 - col0 col2 FROM tab2 AS cor0
----
-4
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8448
SELECT - col2 / - col0 - col0 col2 FROM tab2 AS cor0
----
-4
-78
-79
query I rowsort
SELECT + col1 + + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT DISTINCT 91 + - col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-2825
-3158
-9125
query I rowsort
SELECT ALL + - col1 + 80 AS col2 FROM tab1 AS cor0
----
54
67
70
query I rowsort
SELECT ALL - 61 * - 86 * - col2 AS col2 FROM tab1 AS cor0
----
-283284
-299022
-503616
query I rowsort
SELECT DISTINCT + col0 * + 73 FROM tab1 cor0
----
219
4672
5840
onlyif mysql # use DIV operator for integer division
query I rowsort label-8454
SELECT - 96 DIV cor0.col0 FROM tab0 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-8454
SELECT - 96 / cor0.col0 FROM tab0 AS cor0
----
-1
-2
-4
query I rowsort
SELECT col0 * col1 + 12 FROM tab0
----
2076
3407
8111
query I rowsort
SELECT - - cor0.col1 * + col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT - col1 + - col0 AS col2 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT 26 AS col1 FROM tab2
----
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + - 30 * + col1 col0 FROM tab1 AS cor0
----
-364
-470
-783
query I rowsort
SELECT DISTINCT - + col0 + + 39 AS col1 FROM tab2 AS cor0
----
-39
-40
32
query I rowsort
SELECT - - col2 + + 10 FROM tab0 cor0
----
11
43
92
query I rowsort
SELECT DISTINCT col0 * - 82 FROM tab0 AS cor0
----
-1968
-2870
-7298
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 col2 FROM tab0
----
70
query I rowsort
SELECT 37 + col1 FROM tab2
----
54
68
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8465
SELECT - col1 * - 25 + col1 + - col0 DIV - col0 FROM tab1 AS cor0
----
261
339
677
skipif mysql # not compatible
query I rowsort label-8465
SELECT - col1 * - 25 + col1 + - col0 / - col0 FROM tab1 AS cor0
----
261
339
677
query I rowsort
SELECT ALL ( - col1 ) * col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + tab2.col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT 87 + + col2 AS col0 FROM tab2
----
113
114
125
query I rowsort
SELECT + tab1.col0 + col1 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL - tab2.col1 * - col1 AS col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT 47 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
query I rowsort
SELECT - col1 * + ( - ( - col2 ) ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT cor0.col0 + - 82 + cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to fb425db8681620f9b4be00e00eb9d197
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8474
SELECT + col2 + + ( cor0.col0 ) * + col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8474
SELECT + col2 + + ( cor0.col0 ) * + col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * 63 FROM tab2 AS cor0
----
441
4914
4977
query I rowsort
SELECT ALL col1 * - 42 * col2 + cor0.col0 + col2 AS col0 FROM tab1 AS cor0
----
-23819
-52240
-58911
query I rowsort
SELECT DISTINCT + col0 * col0 * col2 AS col2 FROM tab2 AS cor0
----
1323
158184
237158
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d
query I rowsort
SELECT - 89 AS col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc
query I rowsort
SELECT ALL - 65 + + col1 * + col1 AS col2 FROM tab1
----
104
35
611
onlyif mysql # use DIV operator for integer division
query I rowsort label-8481
SELECT ALL + col1 + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL + col1 + col1 / col1 AS col2 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT - - 20 * col2 + col1 FROM tab0 AS cor0
----
117
1731
746
query I rowsort
SELECT DISTINCT - col1 * col1 + col1 * ( col1 ) FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - + col0 * + 45 FROM tab0 AS cor0
----
-1080
-1575
-4005
query I rowsort
SELECT + - col2 - col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT ALL + - col0 - + 14 * cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
-104557
-1393
-39756
query I rowsort
SELECT DISTINCT - + 34 + col1 + - col0 FROM tab2 AS cor0
----
-10
-53
-96
query I rowsort
SELECT ALL - ( ( + col2 ) ) * - col0 + - col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT ALL 37 * - cor0.col1 AS col1 FROM tab0 cor0
----
-3182
-3367
-3589
query I rowsort
SELECT ALL - col0 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - - 96 * - col1 * - 51 AS col0 FROM tab0 cor0
----
421056
445536
474912
query I rowsort
SELECT + 57 + col1 * col1 * ( + col0 ) AS col1 FROM tab2 AS cor0
----
22888
271575
6784
query I rowsort
SELECT + 1 * cor0.col1 + ( + col0 ) * col2 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-8494
SELECT - 13 * col2 DIV - col0 + 90 + - col2 * cor0.col1 * + 2 AS col0 FROM tab0 AS cor0
----
-104
-14823
-5569
skipif mysql # not compatible
query I rowsort label-8494
SELECT - 13 * col2 / - col0 + 90 + - col2 * cor0.col1 * + 2 AS col0 FROM tab0 AS cor0
----
-104
-14823
-5569
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + col0 + - cor0.col0 * col2 + col0 col2 FROM tab1 AS cor0
----
-1200
-150
512
query I rowsort
SELECT DISTINCT col1 + col0 * col0 AS col2 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT ALL col2 * cor0.col0 + cor0.col0 * - cor0.col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 62 * col1 + ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
5299
5560
6013
query I rowsort
SELECT DISTINCT + col2 + + col1 * ( - col2 ) FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL - - col1 + cor0.col0 * + ( - 13 * col1 ) FROM tab0 cor0
----
-105196
-26746
-44038
query I rowsort
SELECT DISTINCT 4 + + col0 * col2 FROM tab0 AS cor0
----
39
7302
796
query I rowsort
SELECT ALL - + 42 + col0 FROM tab1 AS cor0
----
-39
22
38
query I rowsort
SELECT ALL - col2 * + col0 + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT + col0 * col2 + + ( 50 ) FROM tab0 AS cor0
----
7348
842
85
query I rowsort
SELECT + - col1 + - col0 AS col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT - 0 - - col1 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - 77 + col1 AS col0 FROM tab0 cor0
----
14
20
9
query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8509
SELECT - - cor0.col1 DIV col2 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8509
SELECT - - cor0.col1 / col2 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - 19 + col0 AS col0 FROM tab0
----
16
5
70
query I rowsort
SELECT DISTINCT - 44 FROM tab1, tab2 AS cor0
----
-44
query I rowsort
SELECT + 97 * + 20 FROM tab2 cor0
----
1940
1940
1940
query I rowsort
SELECT ALL 80 FROM tab2, tab0 cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 2815a2e064e1815ac3a10bcd8b0ab19c
query I rowsort
SELECT DISTINCT + col0 + + col1 AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT + col2 + tab2.col2 + + col2 AS col0 FROM tab2
----
114
78
81
query I rowsort
SELECT DISTINCT + cor1.col1 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
17
31
59
query I rowsort
SELECT - 59 * col1 * - col0 FROM tab2
----
12803
271518
79237
query I rowsort
SELECT ALL - ( 86 ) + - col1 * 51 FROM tab2
----
-1667
-3095
-953
query I rowsort
SELECT col1 * - 90 AS col0 FROM tab2
----
-1530
-2790
-5310
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8520
SELECT CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8520
SELECT CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT 57 * col0 + col0 AS col2 FROM tab0
----
1392
2030
5162
query I rowsort
SELECT col1 * - 88 AS col0 FROM tab0
----
-7568
-8008
-8536
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 62086d53b7dd9376121857c3d03027d6
query I rowsort
SELECT DISTINCT tab2.col0 * ( col0 ) FROM tab2
----
49
6084
6241
query I rowsort
SELECT col2 * + 52 AS col1 FROM tab0
----
1716
4264
52
query I rowsort
SELECT 38 * cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f9ce05faf477b6ca05ac63c2b1b0530b
query I rowsort
SELECT - col0 + + col1 * cor0.col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT + - cor0.col2 * 48 * col2 - cor0.col0 AS col0 FROM tab1 AS cor0
----
-139971
-156016
-442448
query I rowsort
SELECT + cor0.col0 * ( col0 ) + col0 FROM tab1 cor0
----
12
4160
6480
query I rowsort
SELECT - tab2.col1 - col1 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT + tab1.col1 * - 98 + + col0 * 97 FROM tab1
----
-2257
5228
6486
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 * + tab2.col2 + col1 col0 FROM tab2
----
-119593
-51017
-5828
query I rowsort
SELECT ALL - col2 * col1 + - col0 FROM tab2 cor0
----
-1612
-725
-844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8535
SELECT ALL - CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + ( - col1 ) * col2 + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT + - 75 * - col1 FROM tab1 AS cor0
----
1950
750
975
query I rowsort
SELECT - 16 * - 16 AS col1 FROM tab2 AS cor0
----
256
256
256
query I rowsort
SELECT + ( + cor0.col2 ) + 87 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 273f3cc4312ac6e0f32c1b61e378a772
query I rowsort
SELECT - + 7 FROM tab0 AS cor0
----
-7
-7
-7
query I rowsort
SELECT - 23 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5
query I rowsort
SELECT + + col1 * - col0 + 50 AS col1 FROM tab2 AS cor0
----
-1293
-167
-4552
query I rowsort
SELECT + - col1 * + 9 - + col0 AS col1 FROM tab2 AS cor0
----
-232
-286
-609
query I rowsort
SELECT + col2 + col2 + cor0.col0 * col2 FROM tab2 AS cor0
----
2080
243
3078
query I rowsort
SELECT - - col0 + col2 * + ( col1 * 1 ) FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - col1 - - cor0.col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col1 + + col1 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8548
SELECT DISTINCT - col2 DIV 46 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT - col2 / 46 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT DISTINCT 74 - - tab2.col1 AS col1 FROM tab2, tab1, tab1 AS cor0
----
105
133
91
query I rowsort
SELECT ALL + 89 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT DISTINCT + col2 * col2 + col0 FROM tab0 cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT - col2 - + col2 * col0 FROM tab2 AS cor0
----
-2054
-216
-3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 col1 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - col0 + + col1 * col2 FROM tab0 cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT col1 * + ( + cor0.col0 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab2, tab2 cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT ALL + col0 + 25 * col1 FROM tab1 AS cor0
----
314
405
653
query I rowsort
SELECT DISTINCT - cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 68 * - col2 AS col0 FROM tab1 AS cor0
----
3672
3876
6528
query I rowsort
SELECT + - col0 * cor0.col0 - + col2 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT ALL cor0.col0 + + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT + col1 - - 84 AS col1 FROM tab0
----
170
175
181
onlyif mysql # use DIV operator for integer division
query I rowsort label-8563
SELECT ALL + col2 DIV 94 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL + col2 / 94 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT 40 AS col1 FROM tab0 AS cor0
----
40
40
40
query I rowsort
SELECT ALL - ( col0 ) + col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - col1 + 60 + - col0 FROM tab0 AS cor0
----
-120
-50
-72
query I rowsort
SELECT ALL - 62 + col2 FROM tab1 AS cor0
----
-5
-8
34
query I rowsort
SELECT DISTINCT ( - col2 ) * - col2 * col0 AS col2 FROM tab0 AS cor0
----
26136
35
598436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + - col2 + + cor0.col1 col2 FROM tab1 AS cor0
----
-111
-163
-31
query I rowsort
SELECT - col2 * cor0.col1 + - cor0.col2 * col2 * col0 FROM tab0 AS cor0
----
-132
-28974
-605898
query I rowsort
SELECT ALL - 28 + col2 FROM tab2 AS cor0
----
-1
-2
10
query I rowsort
SELECT + 71 AS col0 FROM tab0 AS cor0
----
71
71
71
query I rowsort
SELECT col0 * col1 + ( + col2 ) AS col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT col0 * - col2 * col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + - col0 + col0 + - col2 * + col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL col2 * + col2 * col1 + - col0 AS col0 FROM tab2 AS cor0
----
22592
24469
39806
query I rowsort
SELECT DISTINCT - - ( - col0 ) + ( + col0 ) * - col2 - + cor0.col0 AS col1 FROM tab2 AS cor0
----
-203
-2184
-3160
query I rowsort
SELECT ALL - - col0 * col0 + - col1 + - col0 AS col1 FROM tab0 cor0
----
1093
466
7741
query I rowsort
SELECT ALL + cor0.col0 * - cor0.col0 + - ( - ( col2 ) * - col2 ) FROM tab0 AS cor0
----
-1226
-14645
-1665
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * - tab2.col0 col2 FROM tab2, tab0 cor0
----
9 values hashing to a5f8c6c96340b9a4c76c932929f29f65
query I rowsort
SELECT ALL - col1 * tab2.col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT + 59 - tab0.col0 AS col0 FROM tab0
----
-30
24
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8584
SELECT + col2 * cor0.col1 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8584
SELECT + col2 * cor0.col1 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 83 * - col2 * col1 + col0 AS col0 FROM tab0
----
-235530
-619257
-8016
query I rowsort
SELECT ALL + ( + cor0.col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8587
SELECT col2 DIV + 63 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-95
skipif mysql # not compatible
query I rowsort label-8587
SELECT col2 / + 63 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-95
query I rowsort
SELECT ALL + 42 + col1 * col2 FROM tab2 AS cor0
----
1576
688
879
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8589
SELECT - CAST( col0 AS SIGNED ) * - col2 FROM tab2 cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-8589
SELECT - CAST ( col0 AS INTEGER ) * - col2 FROM tab2 cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( cor0.col2 ) + col2 col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT + 30 - col0 AS col2 FROM tab0 AS cor0
----
-5
-59
6
query I rowsort
SELECT DISTINCT - 29 + + col0 FROM tab2 AS cor0
----
-22
49
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 * col2 col0 FROM tab1 AS cor0
----
3726
3933
6624
query I rowsort
SELECT ALL - 51 * + cor0.col0 + + col1 * 20 * + col0 AS col2 FROM tab1 cor0
----
1407
16720
9536
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 * + col1 col2 FROM tab2 AS cor0
----
-22831
-271518
-6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-8596
SELECT 1 + + col2 DIV - col0 FROM tab1 AS cor0
----
-17
0
1
skipif mysql # not compatible
query I rowsort label-8596
SELECT 1 + + col2 / - col0 FROM tab1 AS cor0
----
-17
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8597
SELECT ALL + - CAST( - col2 AS SIGNED ) + col2 DIV 73 + - col2 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8597
SELECT ALL + - CAST ( - col2 AS INTEGER ) + col2 / 73 + - col2 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * - col0 + col1 + col2 * ( col1 + + col2 * + 21 ) AS col2 FROM tab2
----
13761
15988
27985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 + 40 col0 FROM tab1
----
-122
-3608
-7640
query I rowsort
SELECT DISTINCT col1 + 3 FROM tab0
----
100
89
94
query I rowsort
SELECT DISTINCT - + cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-3
-64
-80
query I rowsort
SELECT ALL - 57 - + 54 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to d4f73a52cfca99b0df979cd0eaff8cc7
query I rowsort
SELECT DISTINCT + + cor0.col2 + col1 * + col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ( col2 ) * col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ALL ( + 18 ) FROM tab1 AS cor0
----
18
18
18
query I rowsort
SELECT ALL - 21 FROM tab2 cor0
----
-21
-21
-21
query I rowsort
SELECT + col2 * - ( col0 ) + - 59 AS col1 FROM tab1 cor0
----
-221
-3707
-7739
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + col0 col1 FROM tab1
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab2, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT + 85 + cor0.col1 FROM tab2 AS cor0
----
102
116
144
query I rowsort
SELECT + cor0.col2 + - col0 AS col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + col0 + + col1 * col1 FROM tab0
----
7420
8370
9444
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8613
SELECT CAST( 43 AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
skipif mysql # not compatible
query I rowsort label-8613
SELECT CAST ( 43 AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8614
SELECT ALL - col0 + cor0.col1 DIV col2 col2 FROM tab1 cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL - col0 + cor0.col1 / col2 col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - col0 + + col1 * - tab1.col2 AS col0 FROM tab1
----
-1328
-1407
-634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8616
SELECT - col2 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8616
SELECT - col2 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * col2 + - tab1.col1 FROM tab1
----
136
3638
7667
query I rowsort
SELECT ALL + col0 + - 14 FROM tab0 AS cor0
----
10
21
75
query I rowsort
SELECT - + cor0.col1 * ( col2 ) * col1 + col2 FROM tab2 AS cor0
----
-10944
-25920
-90480
query I rowsort
SELECT ALL - - cor0.col1 * col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8621
SELECT DISTINCT + col0 + + col1 DIV + cor0.col0 FROM tab2 AS cor0
----
11
78
79
skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT + col0 + + col1 / + cor0.col0 FROM tab2 AS cor0
----
11
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8622
SELECT col0 DIV col0 col2 FROM tab2
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8622
SELECT col0 / col0 col2 FROM tab2
----
1
1
1
query I rowsort
SELECT ALL col2 * ( col2 ) - col2 * 93 * col0 FROM tab0 cor0
----
-3254
-671990
-72567
query I rowsort
SELECT ALL + - cor0.col0 * col1 + + col1 * col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col2 * + col2 + 72 AS col2 FROM tab2 AS cor0
----
-1372
-604
-657
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8626
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8626
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT col2 * - 73 AS col1 FROM tab1 cor0
----
-3942
-4161
-7008
query I rowsort
SELECT ALL - - cor0.col1 * col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT col2 + + col2 AS col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL - col0 + - 67 FROM tab2 AS cor0
----
-145
-146
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8631
SELECT DISTINCT col2 / CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8631
SELECT DISTINCT col2 / CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + - cor0.col0 + col2 * + col2 AS col0 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT DISTINCT + tab0.col2 + 6 AS col1 FROM tab0
----
39
7
88
query I rowsort
SELECT 70 + - col1 + col0 FROM tab0 AS cor0
----
68
8
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8635
SELECT + + CAST( NULL AS SIGNED ) * col1 / col1 + + cor0.col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8635
SELECT + + CAST ( NULL AS INTEGER ) * col1 / col1 + + cor0.col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8636
SELECT DISTINCT - + 49 DIV - col0 + + ( col2 * col1 ) col1 FROM tab2 AS cor0
----
1534
646
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8636
SELECT DISTINCT - + 49 / - col0 + + ( col2 * col1 ) col1 FROM tab2 AS cor0
----
1534
646
844
query I rowsort
SELECT DISTINCT - col0 + col0 + col1 * cor0.col0 AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT 27 + + cor0.col2 + col2 FROM tab0 AS cor0
----
191
29
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 * cor0.col1 + col1 * + col2 col2 FROM tab2 AS cor0
----
2227
3720
7021
query I rowsort
SELECT 46 AS col0 FROM tab0
----
46
46
46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + col1 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 30 + col2 FROM tab2 AS cor0
----
56
57
68
query I rowsort
SELECT col1 + - col1 * + ( col1 + - col0 ) FROM tab1 AS cor0
----
-572
550
884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col2 col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL + col2 * col1 + + cor0.col1 * col1 - - col1 FROM tab0 cor0
----
10320
15834
9603
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8646
SELECT ALL + col2 * + col1 + - CAST( NULL AS SIGNED ) + + cor0.col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8646
SELECT ALL + col2 * + col1 + - CAST ( NULL AS INTEGER ) + + cor0.col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 - - cor0.col2 * + ( + col1 ) FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT col0 + + 67 AS col2 FROM tab1 AS cor0
----
131
147
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-8649
SELECT - - col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8649
SELECT - - col0 / - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + ( col2 * 39 ) AS col2 FROM tab1
----
2106
2223
3744
onlyif mysql # use DIV operator for integer division
query I rowsort label-8651
SELECT DISTINCT 51 DIV col1 col1 FROM tab2
----
0
1
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT 51 / col1 col1 FROM tab2
----
0
1
3
query I rowsort
SELECT DISTINCT - tab2.col2 AS col1 FROM tab2, tab0, tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8653
SELECT col2 * col0 * cor0.col1 + col1 DIV - col0 FROM tab2 AS cor0
----
119652
51034
5855
skipif mysql # not compatible
query I rowsort label-8653
SELECT col2 * col0 * cor0.col1 + col1 / - col0 FROM tab2 AS cor0
----
119652
51034
5855
query I rowsort
SELECT ALL + 43 - + tab1.col2 AS col2 FROM tab1
----
-11
-14
-53
query I rowsort
SELECT + col1 + col2 + - ( col0 * tab1.col0 ) FROM tab1
----
-4029
-6291
71
query I rowsort
SELECT ALL col2 - tab0.col2 FROM tab0
----
0
0
0
query I rowsort
SELECT - cor0.col2 * - 84 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 7c05fc48abaed66c3e5da28455699430
query I rowsort
SELECT ALL - 67 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8659
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-8660
SELECT ALL + col1 DIV - col0 AS col1 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL + col1 / - col0 AS col1 FROM tab1
----
-8
0
0
query I rowsort
SELECT ALL col0 * - 31 FROM tab2
----
-217
-2418
-2449
query I rowsort
SELECT DISTINCT + col2 * - ( - col0 ) + col0 AS col1 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT 23 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT ALL 25 FROM tab2, tab2 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT + ( 9 ) - + cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 015e0514e6a10988506cb5cfa6620e8d
query I rowsort
SELECT + ( col0 ) * + col0 * ( + cor0.col2 * + cor0.col0 ) FROM tab1 AS cor0
----
1458
14942208
49152000
query I rowsort
SELECT - ( - col1 ) * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - col1 + col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-35
-4106
-6413
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8669
SELECT - CAST( NULL AS DECIMAL ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8669
SELECT - CAST ( NULL AS REAL ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * 71 FROM tab2
----
1207
2201
4189
query I rowsort
SELECT + cor0.col0 + + col0 * - col1 FROM tab1 cor0
----
-576
-75
-960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8672
SELECT - CAST( cor0.col1 AS SIGNED ) + + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-8672
SELECT - CAST ( cor0.col1 AS INTEGER ) + + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8673
SELECT - CAST( + cor0.col0 AS SIGNED ) * - col1 * + 80 FROM tab0 AS cor0
----
165120
271600
647920
skipif mysql # not compatible
query I rowsort label-8673
SELECT - CAST ( + cor0.col0 AS INTEGER ) * - col1 * + 80 FROM tab0 AS cor0
----
165120
271600
647920
query I rowsort
SELECT + 34 * + col1 AS col1 FROM tab1 cor0
----
340
442
884
query I rowsort
SELECT + - 67 + 16 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8676
SELECT DISTINCT - - 24 DIV col0 - - col0 FROM tab2 AS cor0
----
10
78
79
skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT - - 24 / col0 - - col0 FROM tab2 AS cor0
----
10
78
79
query I rowsort
SELECT DISTINCT col2 * col1 * - col0 + col1 AS col1 FROM tab0 AS cor0
----
-3298
-664027
-68026
query I rowsort
SELECT DISTINCT + col0 * + col2 - col0 AS col1 FROM tab0 AS cor0
----
0
7209
768
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - col1 AS REAL ) + + col1 * + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
1978
3298
8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 * col2 col1 FROM tab1 AS cor0
----
2862
3192
9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-8681
SELECT ALL - col2 + + col2 DIV + col2 AS col1 FROM tab0 cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL - col2 + + col2 / + col2 AS col1 FROM tab0 cor0
----
-32
-81
0
query I rowsort
SELECT - - 53 + - cor0.col2 * - cor0.col0 FROM tab2 cor0
----
2081
242
3055
query I rowsort
SELECT ALL - - ( col0 ) * + ( col1 ) AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT ( col2 ) * cor0.col0 AS col0 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8685
SELECT + col1 * col1 DIV col1 FROM tab2 cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-8685
SELECT + col1 * col1 / col1 FROM tab2 cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 col0 FROM tab2 AS cor0
----
-61
-61
-61
query I rowsort
SELECT - 91 AS col1 FROM tab0
----
-91
-91
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-8688
SELECT ALL + col1 + col2 DIV + col0 FROM tab2 AS cor0
----
17
34
59
skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL + col1 + col2 / + col0 FROM tab2 AS cor0
----
17
34
59
query I rowsort
SELECT ALL - ( + col1 ) * ( - 9 ) AS col2 FROM tab1 AS cor0
----
117
234
90
query I rowsort
SELECT ALL ( col0 ) + - col1 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8691
SELECT CAST( - ( + col1 ) AS SIGNED ) FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8691
SELECT CAST ( - ( + col1 ) AS INTEGER ) FROM tab0
----
-86
-91
-97
query I rowsort
SELECT 40 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8693
SELECT col0 + + CAST( + 95 AS SIGNED ) * col2 FROM tab2 AS cor0
----
2548
2572
3689
skipif mysql # not compatible
query I rowsort label-8693
SELECT col0 + + CAST ( + 95 AS INTEGER ) * col2 FROM tab2 AS cor0
----
2548
2572
3689
query I rowsort
SELECT - - col0 + ( ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL - col2 * + 22 + + col0 * col0 FROM tab0 AS cor0
----
-150
1203
6117
query I rowsort
SELECT + cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - col1 * + 5 + col0 FROM tab0 AS cor0
----
-366
-406
-450
onlyif mysql # use DIV operator for integer division
query I rowsort label-8698
SELECT + col2 DIV + col1 + col0 FROM tab1 AS cor0
----
5
69
87
skipif mysql # not compatible
query I rowsort label-8698
SELECT + col2 / + col1 + col0 FROM tab1 AS cor0
----
5
69
87
query I rowsort
SELECT cor0.col1 + ( 43 ) AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 04fe9bb077d345422e14724cad4993b5
query I rowsort
SELECT DISTINCT - col1 + 55 * ( cor0.col0 ) FROM tab1 AS cor0
----
139
3510
4387
query I rowsort
SELECT DISTINCT col1 * ( col0 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT col0 * ( + col0 * - col2 ) FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT - ( + 32 ) * - col0 FROM tab2 AS cor0
----
224
2496
2528
query I rowsort
SELECT DISTINCT + - ( col1 ) + col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - - ( + 16 ) + col0 AS col2 FROM tab0 AS cor0
----
105
40
51
query I rowsort
SELECT + - 15 + col1 AS col1 FROM tab2 AS cor0
----
16
2
44
query I rowsort
SELECT ALL col0 + - 52 FROM tab1
----
-49
12
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-8708
SELECT + ( col2 ) DIV + CAST( + 32 AS SIGNED ) AS col2 FROM tab1
----
1
1
3
skipif mysql # not compatible
query I rowsort label-8708
SELECT + ( col2 ) / + CAST ( + 32 AS INTEGER ) AS col2 FROM tab1
----
1
1
3
query I rowsort
SELECT 11 * - col0 * col0 AS col0 FROM tab2 AS cor0
----
-539
-66924
-68651
query I rowsort
SELECT DISTINCT - 33 * + col1 + + col2 * col1 * - col2 AS col2 FROM tab0 AS cor0
----
-3298
-614887
-96492
query I rowsort
SELECT ALL - 64 * col1 AS col2 FROM tab2 AS cor0
----
-1088
-1984
-3776
onlyif mysql # use DIV operator for integer division
query I rowsort label-8712
SELECT ALL + + col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL + + col1 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 * - cor0.col2 - col2 col2 FROM tab2 AS cor0
----
-1350
-158210
-237196
query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL cor0.col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT col2 + + ( col0 ) + col0 AS col0 FROM tab1 cor0
----
185
256
60
query I rowsort
SELECT DISTINCT - col0 + ( - col0 ) FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT cor0.col2 + 26 * + col2 AS col2 FROM tab1 cor0
----
1458
1539
2592
query I rowsort
SELECT col2 * 66 * col1 FROM tab1 AS cor0
----
37620
82368
92664
query I rowsort
SELECT DISTINCT + - col0 + 76 FROM tab2 AS cor0
----
-2
-3
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-8721
SELECT + 94 DIV col0 FROM tab2
----
1
1
13
skipif mysql # not compatible
query I rowsort label-8721
SELECT + 94 / col0 FROM tab2
----
1
1
13
query I rowsort
SELECT 56 * + col2 * ( col1 + tab1.col0 ) FROM tab1
----
236208
499968
87696
query I rowsort
SELECT DISTINCT 24 * + col0 + tab0.col0 AS col2 FROM tab0
----
2225
600
875
query I rowsort
SELECT DISTINCT - 90 * 19 + col1 FROM tab1 AS cor0
----
-1684
-1697
-1700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + - 92 + col2 FROM tab0 AS cor0
----
-10
-59
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col0 ) col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + col2 + col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - 36 + 25 * col2 FROM tab1 AS cor0
----
1314
1389
2364
query I rowsort
SELECT + - 96 AS col0 FROM tab2 AS cor0
----
-96
-96
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8731
SELECT - + CAST( 72 AS SIGNED ) AS col1 FROM tab1 cor0
----
-72
-72
-72
skipif mysql # not compatible
query I rowsort label-8731
SELECT - + CAST ( 72 AS INTEGER ) AS col1 FROM tab1 cor0
----
-72
-72
-72
query I rowsort
SELECT + col0 * + col0 * 41 AS col0 FROM tab1
----
167936
262400
369
query I rowsort
SELECT ALL 24 * col0 - col2 AS col1 FROM tab0 AS cor0
----
2054
543
839
query I rowsort
SELECT ALL col2 * 18 FROM tab0 AS cor0
----
1476
18
594
query I rowsort
SELECT col2 + col2 * + cor0.col2 FROM tab0 AS cor0
----
1122
2
6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-8736
SELECT DISTINCT + - 59 DIV 47 + col1 - + 74 col1 FROM tab0 AS cor0
----
11
16
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT + - 59 / 47 + col1 - + 74 col1 FROM tab0 AS cor0
----
11
16
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-8737
SELECT DISTINCT - - ( col2 ) DIV col0 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT - - ( col2 ) / col0 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT ALL - col2 + + 35 FROM tab0 AS cor0
----
-47
2
34
query I rowsort
SELECT DISTINCT ( + ( col0 ) ) FROM tab0
----
24
35
89
query I rowsort
SELECT 75 + col2 AS col2 FROM tab1
----
129
132
171
query I rowsort
SELECT - + cor0.col0 * col1 * col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8742
SELECT ALL + CAST( NULL AS SIGNED ) * tab0.col1 col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL + CAST ( NULL AS INTEGER ) * tab0.col1 col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 2 * col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL + col0 * col2 * + ( col2 * + col2 ) - col0 * col0 * cor0.col0 FROM tab2 AS cor0
----
137438
3841849
896376
query I rowsort
SELECT ALL 35 AS col1 FROM tab1, tab0 AS cor0, tab0, tab1 cor1
----
81 values hashing to ca814400b6361c20866ff8fe01717430
query I rowsort
SELECT ALL col1 + ( 92 ) AS col0 FROM tab0 AS cor0
----
178
183
189
query I rowsort
SELECT col2 * + col2 + col0 + + col1 AS col0 FROM tab2 AS cor0
----
1540
767
813
query I rowsort
SELECT ALL col1 * - col2 * col1 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT cor0.col2 * - col2 AS col1 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + col2 + + col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL - col1 * - col2 + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + col1 * - 50 FROM tab0
----
-4300
-4550
-4850
query I rowsort
SELECT ALL cor0.col1 - - col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + ( - 96 ) * col2 * 92 FROM tab2 AS cor0
----
-229632
-238464
-335616
query I rowsort
SELECT ALL cor1.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT col2 * - tab2.col2 * col0 AS col2 FROM tab2
----
-114076
-5103
-52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 89 ) col2 FROM tab1
----
-89
-89
-89
query I rowsort
SELECT cor0.col1 - - 88 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f5738c57e72d08870485dc42351a8ce7
query I rowsort
SELECT ALL 87 AS col2 FROM tab0
----
87
87
87
query I rowsort
SELECT + ( 16 ) + - col1 + + col0 FROM tab1 AS cor0
----
-7
70
83
query I rowsort
SELECT + + col0 * - col1 + col1 + + col0 FROM tab1 cor0
----
-49
-566
-947
query I rowsort
SELECT ( - 35 ) * col0 AS col2 FROM tab2 AS cor0
----
-245
-2730
-2765
onlyif mysql # use DIV operator for integer division
query I rowsort label-8763
SELECT - col2 + - 5 DIV - 29 FROM tab1 cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8763
SELECT - col2 + - 5 / - 29 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - - col2 * - 92 + col0 + col1 AS col2 FROM tab0 AS cor0
----
-2926
-7364
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8765
SELECT DISTINCT + cor0.col0 / + CAST( NULL AS DECIMAL ) - + col2 AS col0 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8765
SELECT DISTINCT + cor0.col0 / + CAST ( NULL AS REAL ) - + col2 AS col0 FROM tab2 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8766
SELECT ALL - col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 - + cor0.col1 * + 19 FROM tab2 cor0
----
-1062
-306
-558
query I rowsort
SELECT DISTINCT + col2 - - cor0.col0 AS col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT + + col0 * + col0 + col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT ALL - col2 + 70 AS col1 FROM tab0 AS cor0
----
-12
37
69
query I rowsort
SELECT + col0 * + col1 + - col1 FROM tab1 AS cor0
----
1027
52
630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8772
SELECT DISTINCT - col2 + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT - col2 + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - ( + cor0.col1 ) col2 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 49 col1 FROM tab1 AS cor0
----
-103
-106
-145
query I rowsort
SELECT - col1 * 7 FROM tab0 cor0
----
-602
-637
-679
query I rowsort
SELECT ALL 66 + col1 FROM tab2 AS cor0
----
125
83
97
query I rowsort
SELECT DISTINCT 67 FROM tab1, tab0 cor0
----
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-8778
SELECT ALL - - col1 DIV + cor0.col2 col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL - - col1 / + cor0.col2 col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - 91 AS REAL ) FROM tab1 AS cor0
----
-91
-91
-91
query I rowsort
SELECT ALL + - 49 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae
query I rowsort
SELECT ALL - 51 AS col2 FROM tab0 AS cor0
----
-51
-51
-51
query I rowsort
SELECT ALL + + col1 * + col1 AS col2 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT DISTINCT ( - 74 ) AS col0 FROM tab1 AS cor0
----
-74
query I rowsort
SELECT - - col0 * + col0 + col1 AS col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT col0 * - cor0.col0 * cor0.col0 + cor0.col2 * + col1 AS col2 FROM tab1 AS cor0
----
-261574
-510752
1377
query I rowsort
SELECT ALL + col2 * - col0 - - 30 AS col2 FROM tab2 AS cor0
----
-159
-1998
-2972
query I rowsort
SELECT col0 + + col0 * cor0.col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + + 44 * - col1 * ( col2 ) + cor0.col2 FROM tab2 AS cor0
----
-28386
-36801
-67470
query I rowsort
SELECT + 23 * col0 FROM tab0
----
2047
552
805
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8790
SELECT ALL cor0.col1 * CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - 97 FROM tab2, tab0, tab2 AS cor0
----
-97
query I rowsort
SELECT - col0 * - col2 + 4 FROM tab1 AS cor0
----
166
3652
7684
query I rowsort
SELECT DISTINCT col2 * col2 + + ( + tab1.col1 + col0 ) AS col0 FROM tab1
----
2945
3323
9309
onlyif mysql # use DIV operator for integer division
query I rowsort label-8794
SELECT DISTINCT + col1 * - col1 + + col0 DIV 5 AS col0 FROM tab2
----
-274
-3466
-960
skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT + col1 * - col1 + + col0 / 5 AS col0 FROM tab2
----
-274
-3466
-960
query I rowsort
SELECT col1 + - col1 * + ( col0 ) AS col2 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT + - cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT cor0.col2 + - col0 * + col0 + - col1 * - col2 FROM tab2 AS cor0
----
-4524
-5557
815
onlyif mysql # use DIV operator for integer division
query I rowsort label-8798
SELECT DISTINCT - col0 DIV - ( + col0 + + col0 ) AS col0 FROM tab2 cor0
----
0
skipif mysql # not compatible
query I rowsort label-8798
SELECT DISTINCT - col0 / - ( + col0 + + col0 ) AS col0 FROM tab2 cor0
----
0
query I rowsort
SELECT + col0 + col2 * 31 * - col0 AS col0 FROM tab0 AS cor0
----
-1050
-226149
-24528
query I rowsort
SELECT ALL col1 * + ( + col0 ) - col0 * + col2 AS col2 FROM tab1 AS cor0
----
-3008
-6640
-84
query I rowsort
SELECT DISTINCT col1 + - tab1.col0 * ( + 73 ) * col0 AS col2 FROM tab1
----
-298998
-467187
-631
query I rowsort
SELECT ALL 84 FROM tab0, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT - col1 * col2 + - col1 AS col0 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT ( cor0.col0 ) FROM tab2, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8806
SELECT ALL - col2 DIV - 51 AS col1 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL - col2 / - 51 AS col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT + + col0 * col2 + + col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL - col0 * + ( 44 ) AS col0 FROM tab2 AS cor0
----
-308
-3432
-3476
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8809
SELECT DISTINCT - col2 + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT - col2 + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT col1 * + ( col0 ) + + col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT - - col0 + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-8812
SELECT ALL + - cor0.col0 DIV - cor0.col0 AS col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL + - cor0.col0 / - cor0.col0 AS col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT 90 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT ALL - col0 + 50 - tab2.col0 * 69 * col1 FROM tab2
----
-14930
-317566
-92696
query I rowsort
SELECT DISTINCT col1 * col0 - - col2 * - ( - tab1.col1 ) FROM tab1
----
1210
1482
2288
query I rowsort
SELECT + col1 - - col0 AS col2 FROM tab2
----
137
38
96
query I rowsort
SELECT cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT col0 + col1 + col0 AS col1 FROM tab2
----
175
215
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8819
SELECT - col1 + - tab1.col2 * + col1 + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8819
SELECT - col1 + - tab1.col2 * + col1 + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8820
SELECT + cor0.col2 DIV - 90 + - 45 AS col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371
skipif mysql # not compatible
query I rowsort label-8820
SELECT + cor0.col2 / - 90 + - 45 AS col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col1 ) * + 62 col1 FROM tab2 AS cor0
----
1054
1922
3658
query I rowsort
SELECT ALL + 90 * - cor0.col0 AS col1 FROM tab2 cor0
----
-630
-7020
-7110
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col1 col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + + col2 * + col2 + 45 FROM tab2 AS cor0
----
1489
721
774
query I rowsort
SELECT ALL - cor0.col0 * - col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col0 + + col1 + - col2 FROM tab1 cor0
----
-25
-3
17
query I rowsort
SELECT - - col0 - col1 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8828
SELECT + + col0 + col2 * - CAST( NULL AS SIGNED ) / col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8828
SELECT + + col0 + col2 * - CAST ( NULL AS INTEGER ) / col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8829
SELECT DISTINCT - col2 DIV - col2 + ( col2 * + col0 ) AS col1 FROM tab0 AS cor0
----
36
7299
793
skipif mysql # not compatible
query I rowsort label-8829
SELECT DISTINCT - col2 / - col2 + ( col2 * + col0 ) AS col1 FROM tab0 AS cor0
----
36
7299
793
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col0 - ( 74 + - col1 ) * - col0 col0 FROM tab2 AS cor0
----
1274
335
4620
query I rowsort
SELECT + + col1 * - col1 + col1 FROM tab1 AS cor0
----
-156
-650
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-8832
SELECT col2 * col2 DIV - col1 AS col0 FROM tab2 AS cor0
----
-11
-23
-84
skipif mysql # not compatible
query I rowsort label-8832
SELECT col2 * col2 / - col1 AS col0 FROM tab2 AS cor0
----
-11
-23
-84
query I rowsort
SELECT + + col2 * + col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL + col0 * tab0.col2 * - col1 FROM tab0
----
-3395
-664118
-68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT col0 + col0 + col0 FROM tab2 AS cor0
----
21
234
237
query I rowsort
SELECT DISTINCT + - col0 + + cor0.col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT col0 * + col2 * + col1 FROM tab0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-8839
SELECT + tab1.col1 DIV + col2 + + col1 AS col0 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8839
SELECT + tab1.col1 / + col2 + + col1 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT - + col0 + col0 FROM tab0 cor0
----
0
query I rowsort
SELECT - col2 * - col0 - + col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
3748
7849
838
onlyif mysql # use DIV operator for integer division
query I rowsort label-8842
SELECT + + col1 DIV - col0 + + col2 AS col2 FROM tab2 AS cor0
----
23
26
38
skipif mysql # not compatible
query I rowsort label-8842
SELECT + + col1 / - col0 + + col2 AS col2 FROM tab2 AS cor0
----
23
26
38
query I rowsort
SELECT DISTINCT + col2 * - col2 + + col0 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT DISTINCT cor0.col0 * + col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + col2 + col0 * col0 AS col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT ALL - cor0.col1 * col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT col1 * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8848
SELECT + + cor0.col2 DIV col0 AS col0 FROM tab1 cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-8848
SELECT + + cor0.col2 / col0 AS col0 FROM tab1 cor0
----
0
1
18
query I rowsort
SELECT ALL + col2 + col0 * + col0 AS col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT + - col0 + - col2 * col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT cor0.col2 * - col2 + col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT - col0 * cor0.col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8853
SELECT ALL - + col0 * + col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL - + col0 * + col0 / - col0 AS col1 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 + + cor0.col2 col0 FROM tab0 cor0
----
140
59
91
query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + 63 + - col2 FROM tab0 cor0
----
-19
30
62
query I rowsort
SELECT ALL - cor0.col1 + - col2 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8858
SELECT + col0 * col0 + - col0 DIV col0 col1 FROM tab2 AS cor0
----
48
6083
6240
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8858
SELECT + col0 * col0 + - col0 / col0 col1 FROM tab2 AS cor0
----
48
6083
6240
query I rowsort
SELECT ALL col2 * - col1 - - col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT - col2 * + col0 + + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL 67 * + col1 AS col1 FROM tab2 AS cor0
----
1139
2077
3953
query I rowsort
SELECT DISTINCT - 31 * + col1 * col0 - - col1 FROM tab0 cor0
----
-105148
-250978
-63898
query I rowsort
SELECT 28 * - col1 FROM tab0 AS cor0
----
-2408
-2548
-2716
query I rowsort
SELECT ALL 96 + + col0 FROM tab0 AS cor0
----
120
131
185
query I rowsort
SELECT DISTINCT - 21 * + col1 - cor0.col0 FROM tab0 AS cor0
----
-1830
-2000
-2072
onlyif mysql # use DIV operator for integer division
query I rowsort label-8866
SELECT DISTINCT - + 63 * cor0.col1 + - col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
-1639
-631
-820
skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT - + 63 * cor0.col1 + - col1 / + col1 AS col2 FROM tab1 AS cor0
----
-1639
-631
-820
query I rowsort
SELECT DISTINCT 6 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-324
-342
-576
query I rowsort
SELECT ALL - col2 - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT - col2 * - col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT + + col0 + + cor0.col1 AS col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
17
31
59
query I rowsort
SELECT ALL + tab2.col0 * - col0 FROM tab2
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-8873
SELECT + tab0.col0 DIV - col1 col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8873
SELECT + tab0.col0 / - col1 col1 FROM tab0
----
0
0
0
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 + - col0 * + col0 ) >= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8875
SELECT + col1 * + col1 + tab2.col1 DIV tab2.col1 + col1 col0 FROM tab2
----
307
3541
993
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8875
SELECT + col1 * + col1 + tab2.col1 / tab2.col1 + col1 col0 FROM tab2
----
307
3541
993
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col1 * col0 / col0 + col1 / + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8877
SELECT - col0 DIV + col0 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8877
SELECT - col0 / + col0 FROM tab2
----
-1
-1
-1
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * - col2 * col2 + col1 * tab1.col0 NOT BETWEEN + col0 AND col0 * col0 * - col2
----
query I rowsort
SELECT ALL - col2 * + col1 AS col1 FROM tab0
----
-2838
-7462
-97
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 * + col0 + - col2 col1 FROM tab2
----
1305
190
4576
query I rowsort
SELECT ALL col1 * - col2 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + tab1.col1 + - col2 AS col0 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + col1 * - col0 * tab1.col0 AS col0 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT ALL col0 + col0 AS col2 FROM tab0 WHERE NULL BETWEEN col0 * col2 AND ( - col1 / + col0 )
----
query I rowsort
SELECT DISTINCT col1 * col1 + - col1 FROM tab0
----
7310
8190
9312
query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT col0 BETWEEN NULL AND NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( col1 + tab2.col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8889
SELECT ALL + col0 DIV col2 - + col0 * + col2 AS col0 FROM tab0
----
-7297
-792
0
skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL + col0 / col2 - + col0 * + col2 AS col0 FROM tab0
----
-7297
-792
0
query I rowsort
SELECT DISTINCT + tab0.col0 - col1 AS col2 FROM tab0
----
-2
-62
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND - col2
----
query I rowsort
SELECT - tab2.col1 * tab2.col0 - + col2 FROM tab2
----
-1381
-244
-4628
query I rowsort
SELECT + col1 + col2 * col2 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT col0 * - col1 + cor0.col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT + col1 + - col2 + col1 AS col1 FROM tab1
----
-2
-37
-70
query I rowsort
SELECT DISTINCT - tab1.col2 * col2 + col1 + col1 FROM tab1
----
-2864
-3229
-9190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 + + col1 col0 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 + col2 col0 FROM tab0 AS cor0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-8899
SELECT ALL - col2 + - col1 + - col0 DIV - col1 FROM tab1
----
-103
-61
-80
skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL - col2 + - col1 + - col0 / - col1 FROM tab1
----
-103
-61
-80
query I rowsort
SELECT ALL + tab2.col1 * tab2.col1 + col2 FROM tab2
----
327
3507
988
query I rowsort
SELECT - col2 * col1 * + col2 + col0 + + col0 * col2 FROM tab0
----
-27
-604497
-92838
onlyif mysql # use DIV operator for integer division
query I rowsort label-8902
SELECT DISTINCT - tab1.col2 DIV col2 + + col0 * + tab1.col2 col1 FROM tab1
----
161
3647
7679
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT - tab1.col2 / col2 + + col0 * + tab1.col2 col1 FROM tab1
----
161
3647
7679
onlyif mysql # use DIV operator for integer division
query I rowsort label-8903
SELECT ALL + tab1.col1 DIV col1 + + col1 DIV col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL + tab1.col1 / col1 + + col1 / col2 FROM tab1
----
1
1
1
query I rowsort
SELECT col0 * - col2 + - col2 * + col2 * col2 AS col1 FROM tab2
----
-19604
-19872
-57874
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + tab0.col1 + col1 col1 FROM tab0
----
194
2924
7553
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( + col0 + - col2 + + cor0.col2 * col2 )
----
query I rowsort
SELECT + col0 * - col1 * - col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
119730
51113
5866
query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT col2 * + cor0.col1 AS col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT + col2 + col2 * col1 / col1 NOT BETWEEN NULL AND + col0 + col1
----
query I rowsort
SELECT col0 + 36 AS col0 FROM tab2
----
114
115
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-8912
SELECT - 56 DIV - col0 + cor0.col2 AS col2 FROM tab1 cor0
----
57
72
96
skipif mysql # not compatible
query I rowsort label-8912
SELECT - 56 / - col0 + cor0.col2 AS col2 FROM tab1 cor0
----
57
72
96
query I rowsort
SELECT - 53 + cor0.col2 FROM tab1 AS cor0
----
1
4
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-8914
SELECT ALL 20 + col1 DIV tab1.col1 FROM tab1
----
21
21
21
skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL 20 + col1 / tab1.col1 FROM tab1
----
21
21
21
query I rowsort
SELECT + - 63 * 57 + col0 AS col1 FROM tab2 AS cor0
----
-3512
-3513
-3584
query I rowsort
SELECT cor0.col0 + + col1 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ( + cor0.col0 ) + col2 * col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT DISTINCT + + ( + col1 ) * col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT - ( col1 ) * + ( 15 ) FROM tab2 AS cor0
----
-255
-465
-885
query I rowsort
SELECT + + col1 + - 17 AS col2 FROM tab0 cor0
----
69
74
80
query I rowsort
SELECT DISTINCT col2 + 32 + col1 FROM tab1 AS cor0
----
112
141
99
query I rowsort
SELECT ALL - 76 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + + col1 col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT + - cor0.col0 * col0 + col0 FROM tab1 cor0
----
-4032
-6
-6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8926
SELECT ALL + + 25 + + col1 * col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL + + 25 + + col1 * col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 80 * tab0.col2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 79f72d04a7ecce7d7d83e3c6954a7413
query I rowsort
SELECT tab0.col2 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL 34 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
120
125
131
query I rowsort
SELECT - + col0 + + 76 * - col1 + col1 FROM tab1 AS cor0
----
-1055
-1953
-814
query I rowsort
SELECT DISTINCT + + cor0.col1 * col0 * - col1 AS col2 FROM tab0 cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL 85 + col1 FROM tab1 AS cor0
----
111
95
98
query I rowsort
SELECT - + col2 + - cor0.col2 * col0 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL col1 * 86 AS col1 FROM tab0
----
7396
7826
8342
query I rowsort
SELECT 92 - cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b076fc80ac2522d40646dce8aa91e162
query I rowsort
SELECT ( + ( - tab1.col2 ) ) FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT + - col0 * + col2 + + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL - 80 + + 63 + col2 FROM tab0 AS cor0
----
-16
16
65
query I rowsort
SELECT - - 85 + col1 FROM tab0 AS cor0
----
171
176
182
query I rowsort
SELECT DISTINCT - - 70 + col0 AS col2 FROM tab2 AS cor0
----
148
149
77
query I rowsort
SELECT DISTINCT - - 21 * 73 + + col1 AS col2 FROM tab0 cor0
----
1619
1624
1630
query I rowsort
SELECT + + 0 * - col2 + col0 AS col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - col2 * col2 - col2 AS col2 FROM tab0
----
-1122
-2
-6806
query I rowsort
SELECT - 9 + col2 AS col0 FROM tab0
----
-8
24
73
query I rowsort
SELECT DISTINCT tab2.col2 + col2 * col1 AS col0 FROM tab2
----
1560
684
864
query I rowsort
SELECT col0 + + col1 * + col0 + - col1 * col1 FROM tab2
----
-737
1133
1199
query I rowsort
SELECT DISTINCT 22 FROM tab1, tab1 cor0
----
22
query I rowsort
SELECT - 52 + col2 FROM tab1 AS cor0
----
2
44
5
query I rowsort
SELECT DISTINCT col0 + 35 AS col0 FROM tab0
----
124
59
70
query I rowsort
SELECT ALL 61 + col2 AS col2 FROM tab1
----
115
118
157
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * - col0 * - col2 + - col2 col0 FROM tab0
----
-3396
-664200
-68145
query I rowsort
SELECT ALL - col2 * + col0 + col0 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8953
SELECT col0 + col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-8953
SELECT col0 + col1 / - col1 AS col1 FROM tab2 AS cor0
----
6
77
78
query I rowsort
SELECT + col0 * col1 + tab1.col2 - + col0 FROM tab1
----
1056
129
633
query I rowsort
SELECT + col1 * + tab1.col2 + + col1 + - col2 FROM tab1
----
1165
1376
523
query I rowsort
SELECT col1 * 99 AS col0 FROM tab0
----
8514
9009
9603
query I rowsort
SELECT ( col0 + col2 ) AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT + + col0 * 92 FROM tab2 AS cor0
----
644
7176
7268
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 74 + 6 col0 FROM tab0 AS cor0
----
-6358
-6728
-7172
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8960
SELECT DISTINCT - col0 + - CAST( col2 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
2913
3185
9136
skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT - col0 + - CAST ( col2 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT ALL - col0 * - ( - col1 * col1 ) FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT ALL - cor0.col1 * + 3 FROM tab0 AS cor0
----
-258
-273
-291
onlyif mysql # use DIV operator for integer division
query I rowsort label-8963
SELECT DISTINCT - col2 + + 6 DIV - col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT - col2 + + 6 / - col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - ( col0 ) * 66 AS col1 FROM tab1
----
-198
-4224
-5280
query I rowsort
SELECT + 44 + col0 AS col2 FROM tab2
----
122
123
51
query I rowsort
SELECT ( + col2 * - col0 ) AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + 42 + tab2.col1 FROM tab2, tab0, tab0 cor0
----
101
59
73
query I rowsort
SELECT + col2 * col1 + 96 - + col1 * col0 FROM tab0
----
-3202
-541
870
query I rowsort
SELECT DISTINCT col2 * col0 - 20 FROM tab1
----
142
3628
7660
query I rowsort
SELECT DISTINCT - col2 * 2 FROM tab2 AS cor0
----
-52
-54
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8971
SELECT - col1 * CAST( + cor0.col2 AS SIGNED ) * cor0.col0 FROM tab0 cor0
----
-3395
-664118
-68112
skipif mysql # not compatible
query I rowsort label-8971
SELECT - col1 * CAST ( + cor0.col2 AS INTEGER ) * cor0.col0 FROM tab0 cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-8972
SELECT DISTINCT - col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT - col1 / + col1 AS col0 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT col2 * ( col0 ) FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + col1 + - 11 * + cor0.col1 FROM tab0 AS cor0
----
-860
-910
-970
query I rowsort
SELECT - col2 * 11 AS col2 FROM tab1 AS cor0
----
-1056
-594
-627
query I rowsort
SELECT DISTINCT + cor1.col0 AS col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
24
35
89
query I rowsort
SELECT ALL + cor0.col0 + + 12 + col0 AS col2 FROM tab1 AS cor0
----
140
172
18
query I rowsort
SELECT ALL - col0 + ( col2 * col1 ) FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL + col2 * 15 - col2 AS col1 FROM tab0 AS cor0
----
1148
14
462
query I rowsort
SELECT + col2 + - col0 * 94 AS col1 FROM tab1 AS cor0
----
-228
-5959
-7424
query I rowsort
SELECT ALL + cor1.col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 - tab2.col0 * 49 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f01cb53ce334bd0991263060e639dc05
query I rowsort
SELECT 28 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col1 + + 8 col0 FROM tab0 AS cor0
----
2072
3403
8107
query I rowsort
SELECT ALL col1 + 70 FROM tab1
----
80
83
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8986
SELECT DISTINCT 57 * + 72 + - col1 + - col1 * col0 DIV tab0.col1 col1 FROM tab0
----
3924
3972
3994
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8986
SELECT DISTINCT 57 * + 72 + - col1 + - col1 * col0 / tab0.col1 col1 FROM tab0
----
3924
3972
3994
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8987
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 44 col0 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT CAST ( NULL AS REAL ) + 44 col0 FROM tab2
----
NULL
query I rowsort
SELECT ALL + 91 + tab2.col2 * col2 FROM tab2
----
1535
767
820
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8989
SELECT DISTINCT - + CAST( cor0.col1 AS SIGNED ) + col0 * - 67 FROM tab0 AS cor0
----
-1694
-2442
-6054
skipif mysql # not compatible
query I rowsort label-8989
SELECT DISTINCT - + CAST ( cor0.col1 AS INTEGER ) + col0 * - 67 FROM tab0 AS cor0
----
-1694
-2442
-6054
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8990
SELECT + CAST( + col0 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
49
6084
6241
skipif mysql # not compatible
query I rowsort label-8990
SELECT + CAST ( + col0 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + 18 * - col1 AS col1 FROM tab0
----
-1548
-1638
-1746
query I rowsort
SELECT + col0 + - 39 * col0 + col1 AS col2 FROM tab0
----
-1233
-3291
-826
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 + - 43 + 74 * - col1 * col0 FROM tab2 AS cor0
----
-17062
-344072
-99714
query I rowsort
SELECT DISTINCT - cor0.col2 - - col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - cor0.col1 + + col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT col2 * + col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 80 * col1 col0 FROM tab2 AS cor0
----
-1360
-2480
-4720
query I rowsort
SELECT - 2 + cor0.col1 * - 15 * 67 FROM tab0 AS cor0
----
-86432
-91457
-97487
query I rowsort
SELECT + + col0 * + col2 + 30 FROM tab0 cor0
----
65
7328
822
onlyif mysql # use DIV operator for integer division
query I rowsort label-9000
SELECT DISTINCT - 2 DIV col2 AS col2 FROM tab0 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-9000
SELECT DISTINCT - 2 / col2 AS col2 FROM tab0 AS cor0
----
-2
0
query I rowsort
SELECT 46 * + 8 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 23725dce49f6e00b5e3d563cc7cc300f
query I rowsort
SELECT 43 * col1 AS col2 FROM tab0
----
3698
3913
4171
query I rowsort
SELECT DISTINCT - tab2.col0 * col2 * col2 FROM tab2
----
-114076
-5103
-52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - col0 col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + col0 + - 88 * - col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
7625
8179
8572
query I rowsort
SELECT col1 + 57 + - col1 FROM tab2 AS cor0
----
57
57
57
query I rowsort
SELECT - col0 * + col1 * col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT + col0 * - 5 FROM tab0 AS cor0
----
-120
-175
-445
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9009
SELECT + - col2 * - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-9009
SELECT + - col2 * - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT tab1.col1 * col2 * 16 AS col2 FROM tab1
----
19968
22464
9120
query I rowsort
SELECT + tab1.col0 * + 9 FROM tab1, tab2 AS cor0
----
9 values hashing to 2b1d8d70d87ed710a3d9f7b8aa1868be
query I rowsort
SELECT + col1 * col0 * col1 AS col0 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT - col1 * + 34 + col0 FROM tab2 AS cor0
----
-1047
-1928
-499
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * ( - cor0.col2 ) col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - + 24 * col2 FROM tab1 AS cor0
----
-1296
-1368
-2304
query I rowsort
SELECT ALL + ( cor0.col1 ) * - cor0.col0 - + col0 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT - - ( ( - col2 ) ) + + col2 * 58 AS col1 FROM tab1 AS cor0
----
3078
3249
5472
query I rowsort
SELECT + ( - col1 ) FROM tab2 cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9019
SELECT CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9019
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 66 + col2 AS col2 FROM tab2 AS cor0
----
104
92
93
query I rowsort
SELECT ALL 76 + col0 FROM tab0
----
100
111
165
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 37 ) col0 FROM tab1 AS cor0
----
-37
-37
-37
onlyif mysql # use DIV operator for integer division
query I rowsort label-9023
SELECT + 51 DIV - col0 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-9023
SELECT + 51 / - col0 FROM tab0 AS cor0
----
-1
-2
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9024
SELECT ALL + CAST( + ( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL + CAST ( + ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + cor0.col0 + - col0 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9026
SELECT col1 * 82 DIV - col1 FROM tab0
----
-82
-82
-82
skipif mysql # not compatible
query I rowsort label-9026
SELECT col1 * 82 / - col1 FROM tab0
----
-82
-82
-82
query I rowsort
SELECT ALL + 99 * - cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to b2dac2ae35ea24ad8c3d936f473fa9af
query I rowsort
SELECT 27 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + cor0.col1 col1 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT ( - col2 ) * + cor0.col2 + col0 * col0 FROM tab1 AS cor0
----
-2816
-2907
847
query I rowsort
SELECT ALL - 34 * - col2 AS col1 FROM tab1 AS cor0
----
1836
1938
3264
query I rowsort
SELECT + 51 + - col1 AS col0 FROM tab0 AS cor0
----
-35
-40
-46
query I rowsort
SELECT DISTINCT - ( col2 ) * cor0.col2 AS col0 FROM tab1 cor0
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * ( + col0 ) col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + ( + 28 ) FROM tab2 AS cor0
----
28
query I rowsort
SELECT + ( - ( + col0 ) ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - 37 * - col1 FROM tab0 AS cor0
----
3182
3367
3589
query I rowsort
SELECT ALL + col0 - tab1.col1 AS col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT - 16 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34
query I rowsort
SELECT ALL col2 - - ( col2 * + col2 ) FROM tab2
----
1482
702
756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 * ( col2 * - col0 ) col0 FROM tab1
----
-13307904
-26244
-58982400
query I rowsort
SELECT DISTINCT + cor0.col0 * 46 AS col0 FROM tab1, tab2, tab2 AS cor0
----
322
3588
3634
query I rowsort
SELECT DISTINCT tab0.col2 + + col0 * - 60 - + col2 FROM tab0
----
-1440
-2100
-5340
query I rowsort
SELECT ALL - tab0.col2 - + 45 * - col0 AS col2 FROM tab0
----
1047
1574
3923
query I rowsort
SELECT ALL ( + col2 ) + + col2 * tab0.col0 FROM tab0
----
36
7380
825
query I rowsort
SELECT + + ( - col1 ) * + col0 + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT ( - col1 ) * - col0 + col2 - col1 FROM tab0 AS cor0
----
2011
3299
8090
query I rowsort
SELECT ALL + ( - col1 ) * - col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - cor0.col0 * col2 + col2 AS col0 FROM tab0 cor0
----
-34
-7216
-759
query I rowsort
SELECT - - ( - col1 ) * col0 * cor0.col0 + + col0 FROM tab1 AS cor0
----
-231
-40896
-83120
query I rowsort
SELECT - col1 * + col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + 76 * cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1824
2660
6764
query I rowsort
SELECT 56 + col2 AS col2 FROM tab2
----
82
83
94
query I rowsort
SELECT ALL col2 * col0 * + ( + col2 ) AS col1 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT ALL col2 * + 21 * tab0.col2 - + col1 FROM tab0
----
-76
141113
22783
query I rowsort
SELECT DISTINCT col2 - + ( - ( - col2 ) ) * col2 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT ALL + col0 + + col0 * - cor0.col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT - - col2 * + col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col0 * - 53 * col2 FROM tab1
----
-193344
-407040
-8586
query I rowsort
SELECT DISTINCT - + col0 * 51 FROM tab0 AS cor0
----
-1224
-1785
-4539
query I rowsort
SELECT DISTINCT + col0 * + col2 + + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT - - cor0.col0 + - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT col0 * + 84 + 70 AS col0 FROM tab2 AS cor0
----
658
6622
6706
onlyif mysql # use DIV operator for integer division
query I rowsort label-9065
SELECT ALL + col0 DIV col0 + + col2 * - col0 * - 15 FROM tab2 AS cor0
----
2836
30421
45031
skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL + col0 / col0 + + col2 * - col0 * - 15 FROM tab2 AS cor0
----
2836
30421
45031
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( 56 ) col0 FROM tab2 AS cor0
----
56
56
56
query I rowsort
SELECT ALL col1 * + 46 AS col2 FROM tab0 AS cor0
----
3956
4186
4462
query I rowsort
SELECT - col2 + 17 * col1 FROM tab0 cor0
----
1429
1465
1648
query I rowsort
SELECT ALL + col2 + + ( + cor0.col0 ) * - col0 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-9070
SELECT ALL + 5 DIV 48 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9070
SELECT ALL + 5 / 48 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - - col1 + 4 FROM tab2 AS cor0
----
21
35
63
query I rowsort
SELECT - 50 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
query I rowsort
SELECT ALL + col2 * - 26 FROM tab2
----
-676
-702
-988
query I rowsort
SELECT + 69 + + col2 * - col1 FROM tab0 AS cor0
----
-2769
-28
-7393
query I rowsort
SELECT DISTINCT + col0 + col2 * - 59 * 71 FROM tab1 AS cor0
----
-226203
-238709
-402064
query I rowsort
SELECT - + 87 FROM tab0 cor0
----
-87
-87
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - cor0.col0 col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - 44 * col2 FROM tab1 AS cor0
----
-2376
-2508
-4224
query I rowsort
SELECT ALL + ( - cor0.col2 ) + - cor0.col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT ALL - + col2 + + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9081
SELECT ALL - ( ( - cor1.col1 ) ) DIV + cor0.col2 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to bf5d701881953e16f30a31e9a0debe95
skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL - ( ( - cor1.col1 ) ) / + cor0.col2 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to bf5d701881953e16f30a31e9a0debe95
query I rowsort
SELECT - 46 * + col2 + + 84 FROM tab1 AS cor0
----
-2400
-2538
-4332
query I rowsort
SELECT ALL - col1 + col2 * 41 AS col0 FROM tab2 AS cor0
----
1007
1076
1541
query I rowsort
SELECT DISTINCT + cor0.col0 * col1 - col2 AS col1 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT - 93 - - col0 * - 26 FROM tab2
----
-2121
-2147
-275
query I rowsort
SELECT 75 * col0 + + col1 * col2 AS col0 FROM tab1
----
1629
5370
7248
query I rowsort
SELECT DISTINCT + - cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL - col0 * 64 FROM tab0 AS cor0
----
-1536
-2240
-5696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9089
SELECT DISTINCT - cor0.col0 + + CAST( 75 AS SIGNED ) FROM tab2 AS cor0
----
-3
-4
68
skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT - cor0.col0 + + CAST ( 75 AS INTEGER ) FROM tab2 AS cor0
----
-3
-4
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 21 + + col0 col2 FROM tab1 cor0
----
1408
1760
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 + - ( + col2 ) ) col0 FROM tab1
----
0
query I rowsort
SELECT - 34 + col2 AS col2 FROM tab1
----
20
23
62
query I rowsort
SELECT ( col2 ) + cor0.col0 FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) + + col0 * col0 col0 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT 11 * 33 FROM tab0 AS cor0
----
363
363
363
query I rowsort
SELECT + col0 + + 86 AS col0 FROM tab2 AS cor0
----
164
165
93
query I rowsort
SELECT DISTINCT + - 28 AS col1 FROM tab1 cor0
----
-28
query I rowsort
SELECT - 13 + - col1 FROM tab1 AS cor0
----
-23
-26
-39
onlyif mysql # use DIV operator for integer division
query I rowsort label-9099
SELECT DISTINCT + cor0.col1 + col0 DIV - col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT + cor0.col1 + col0 / - col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT col1 * + 76 AS col1 FROM tab1
----
1976
760
988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 * col1 + + col1 * 49 col2 FROM tab0 AS cor0
----
12298
13013
13871
query I rowsort
SELECT + ( - col0 ) * col0 + col0 AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT 8 + + ( col2 * col0 ) FROM tab0
----
43
7306
800
query I rowsort
SELECT col2 * + tab2.col0 + col1 AS col0 FROM tab2
----
2087
220
3019
query I rowsort
SELECT - col0 * + ( col1 ) FROM tab2
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 38 + - col2 col2 FROM tab2 cor0
----
0
11
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-9107
SELECT + + col2 DIV - col2 col0 FROM tab1 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9107
SELECT + + col2 / - col2 col0 FROM tab1 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9108
SELECT + 30 + + col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
29
29
29
skipif mysql # not compatible
query I rowsort label-9108
SELECT + 30 + + col1 / - col1 AS col1 FROM tab1 AS cor0
----
29
29
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 col1 FROM tab2
----
104
117
34
query I rowsort
SELECT + col2 + col2 * - col0 AS col1 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL + col0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT col2 * 3 + col0 FROM tab0 AS cor0
----
123
335
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9113
SELECT - cor0.col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9113
SELECT - cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 + col2 * col1 col0 FROM tab0 AS cor0
----
1749
738
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
onlyif mysql # use DIV operator for integer division
query I rowsort label-9116
SELECT ALL + col0 DIV 27 + ( + col1 + - 15 ) AS col2 FROM tab0
----
71
79
83
skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL + col0 / 27 + ( + col1 + - 15 ) AS col2 FROM tab0
----
71
79
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9117
SELECT DISTINCT col1 * + CAST( col1 + + col2 * - ( col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-10693
-24986
-87025
skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT col1 * + CAST ( col1 + + col2 * - ( col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-10693
-24986
-87025
query I rowsort
SELECT - + cor0.col1 + 18 * + 93 AS col0 FROM tab0 AS cor0
----
1577
1583
1588
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9119
SELECT + cor0.col0 - CAST( NULL AS DECIMAL ) * - 46 * + col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9119
SELECT + cor0.col0 - CAST ( NULL AS REAL ) * - 46 * + col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col0 * col0 + col2 FROM tab0 AS cor0
----
1226
609
8003
onlyif mysql # use DIV operator for integer division
query I rowsort label-9121
SELECT + col1 * - ( ( + col1 ) ) + + 40 DIV - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-9121
SELECT + col1 * - ( ( + col1 ) ) + + 40 / - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - col2 * - col1 + col0 AS col0 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + col2 - + col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col2 col0 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-9125
SELECT DISTINCT + - col2 + col0 DIV + 95 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-9125
SELECT DISTINCT + - col2 + col0 / + 95 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL col0 + - col2 * + col1 AS col0 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT ALL - col1 + - 30 AS col2 FROM tab0
----
-116
-121
-127
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT DISTINCT - 42 + 0 AS col0 FROM tab1, tab2, tab2 AS cor0, tab0
----
-42
query I rowsort
SELECT DISTINCT - 54 * 26 AS col2 FROM tab1, tab2 AS cor0
----
-1404
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9131
SELECT + CAST( NULL AS SIGNED ) + 85 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9131
SELECT + CAST ( NULL AS INTEGER ) + 85 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + tab1.col2 + + ( ( col1 ) ) + 27 FROM tab1
----
107
136
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-9133
SELECT + + col2 DIV 98 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9133
SELECT + + col2 / 98 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 48 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9135
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9136
SELECT + CAST( NULL AS SIGNED ) / col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9136
SELECT + CAST ( NULL AS INTEGER ) / col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 - 58 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-3135
-3370
-5648
query I rowsort
SELECT + 97 + + col2 - - cor0.col2 AS col1 FROM tab0 AS cor0
----
163
261
99
query I rowsort
SELECT - - 93 * - cor0.col1 - - col0 * - col0 AS col0 FROM tab1 AS cor0
----
-2427
-5026
-7609
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor1.col1 ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9141
SELECT DISTINCT - col2 * col0 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT - col2 * col0 * - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
query I rowsort
SELECT - col1 * col1 * - col2 + col2 FROM tab1 AS cor0
----
16320
36558
5757
query I rowsort
SELECT - col1 * col1 * - col0 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT ALL - 33 * - col0 + col1 AS col0 FROM tab2 AS cor0
----
262
2624
2633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 + col1 col0 FROM tab2 AS cor0
----
-12
-26
16
query I rowsort
SELECT + - col0 * 72 FROM tab2 AS cor0
----
-504
-5616
-5688
query I rowsort
SELECT - col0 * col2 + col0 FROM tab0
----
-7209
-768
0
skipif mysql # not compatible
query I rowsort
SELECT - col1 * - CAST ( + 57 AS REAL ) FROM tab2 AS cor0
----
1767
3363
969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 + col2 + + col2 * + col2 col2 FROM tab0 AS cor0
----
1146
37
6895
query I rowsort
SELECT ALL + - col2 * + col1 + - 69 * col0 FROM tab2 cor0
----
-1320
-6097
-6916
query I rowsort
SELECT DISTINCT - - col1 - cor0.col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - col2 + col2 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT - 40 FROM tab2 AS cor0
----
-40
-40
-40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col2 FROM tab0, tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ( ( + col1 ) ) FROM tab0
----
86
91
97
query I rowsort
SELECT ALL + ( - col2 ) * - col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - ( + col1 ) + + 98 FROM tab0 AS cor0
----
1
12
7
query I rowsort
SELECT DISTINCT - 30 + col0 * - ( ( - cor0.col0 ) + 12 ) * + cor0.col1 AS col2 FROM tab1 cor0
----
-732
33250
70690
query I rowsort
SELECT DISTINCT ( + 41 + - col2 ) AS col0 FROM tab2
----
14
15
3
query I rowsort
SELECT 63 * col2 AS col2 FROM tab1
----
3402
3591
6048
query I rowsort
SELECT ALL - + col2 * + cor0.col1 + cor0.col2 + col2 FROM tab1 cor0
----
-1056
-1296
-456
onlyif mysql # use DIV operator for integer division
query I rowsort label-9162
SELECT ALL - CAST( - 41 AS SIGNED ) DIV - cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccd77e2770d5a834e59c1674defa88fa
skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL - CAST ( - 41 AS INTEGER ) / - cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccd77e2770d5a834e59c1674defa88fa
query I rowsort
SELECT ALL - tab0.col2 - - col1 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9164
SELECT + tab1.col2 DIV col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9164
SELECT + tab1.col2 / col2 FROM tab1
----
1
1
1
query I rowsort
SELECT 44 AS col2 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-10
-13
-26
query I rowsort
SELECT col0 + - col2 + + col0 * + cor0.col2 * 23 FROM tab2 AS cor0
----
4327
46696
69087
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col0 FROM tab2, tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL + col1 * - col2 + + col0 AS col1 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT 2 + + 46 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT - tab1.col1 * + tab1.col0 + col2 * - 26 AS col2 FROM tab1
----
-1482
-2122
-3536
query I rowsort
SELECT - ( ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ( + 6 * + col1 ) - + col0 * + col1 AS col0 FROM tab0
----
-1548
-2813
-7553
query I rowsort
SELECT ( - col2 ) + col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * 53 AS col2 FROM tab0 AS cor0
----
4558
4823
5141
query I rowsort
SELECT ALL 85 * + col0 + col1 AS col2 FROM tab2 AS cor0
----
626
6689
6732
query I rowsort
SELECT + 15 * 59 + col2 AS col0 FROM tab1 AS cor0
----
939
942
981
onlyif mysql # use DIV operator for integer division
query I rowsort label-9178
SELECT DISTINCT - 97 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT - 97 / col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9179
SELECT ALL - + CAST( + 64 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
-5504
-5824
-6208
skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL - + CAST ( + 64 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
-5504
-5824
-6208
query I rowsort
SELECT ALL + - col2 + + 35 AS col1 FROM tab1 AS cor0
----
-19
-22
-61
query I rowsort
SELECT DISTINCT - 5 * + col1 AS col1 FROM tab0
----
-430
-455
-485
onlyif mysql # use DIV operator for integer division
query I rowsort label-9182
SELECT ALL - + col0 - col0 DIV ( 78 ) FROM tab0 AS cor0
----
-24
-35
-90
skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL - + col0 - col0 / ( 78 ) FROM tab0 AS cor0
----
-24
-35
-90
query I rowsort
SELECT DISTINCT + 95 * col0 FROM tab0 AS cor0
----
2280
3325
8455
query I rowsort
SELECT ( + 83 ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3
query I rowsort
SELECT DISTINCT + 89 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
89
query I rowsort
SELECT ALL - 1 * - col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + - 38 + + cor0.col1 * col1 FROM tab2 AS cor0
----
251
3443
923
query I rowsort
SELECT ALL - col2 * + col1 * cor0.col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT - cor0.col2 * col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + 16 FROM tab0, tab0 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT + col2 * ( col2 ) * col0 FROM tab1 cor0
----
207936
737280
8748
query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT col2 + 42 * 56 * tab0.col1 FROM tab0
----
202305
214114
228145
query I rowsort
SELECT ALL + 86 * + 22 FROM tab0, tab2 AS cor0
----
9 values hashing to e0ea1ef8f32833d8450fd451451b5601
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 * - 14 col0 FROM tab0 AS cor0
----
104468
1358
39732
onlyif mysql # use DIV operator for integer division
query I rowsort label-9196
SELECT DISTINCT col0 + + col0 DIV - col0 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT col0 + + col0 / - col0 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT ALL - col1 * col1 + col2 FROM tab2 cor0
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT + - col2 * + col0 * ( col0 ) + + col2 FROM tab1 AS cor0
----
-233415
-432
-614304
query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9200
SELECT ALL + CAST( - 30 AS SIGNED ) * + col1 FROM tab2 cor0
----
-1770
-510
-930
skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL + CAST ( - 30 AS INTEGER ) * + col1 FROM tab2 cor0
----
-1770
-510
-930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - cor0.col1 col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9202
SELECT + CAST( ( col0 ) AS SIGNED ) DIV - 87 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9202
SELECT + CAST ( ( col0 ) AS INTEGER ) / - 87 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 + col0 * col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT + + 94 * + 51 FROM tab2 AS cor0
----
4794
query I rowsort
SELECT - col2 + 13 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-3
-38
20
query I rowsort
SELECT ALL ( col2 ) * + col0 AS col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT - 63 * cor0.col0 FROM tab0 AS cor0
----
-1512
-2205
-5607
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9208
SELECT + CAST( + 72 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
72
72
72
skipif mysql # not compatible
query I rowsort label-9208
SELECT + CAST ( + 72 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
72
72
72
query I rowsort
SELECT DISTINCT + 1 * 40 FROM tab2 AS cor0
----
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-9210
SELECT ALL + col0 DIV + col0 + - col0 FROM tab2 AS cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL + col0 / + col0 + - col0 FROM tab2 AS cor0
----
-6
-77
-78
query I rowsort
SELECT ALL + ( + 59 ) AS col2 FROM tab0 AS cor0
----
59
59
59
query I rowsort
SELECT DISTINCT - cor0.col1 * 24 + - col1 * col2 FROM tab1 cor0
----
-1560
-2028
-810
query I rowsort
SELECT DISTINCT + - ( + 53 ) + + col1 * + 34 FROM tab0 AS cor0
----
2871
3041
3245
query I rowsort
SELECT ALL ( + col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - ( - col0 ) + - col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL + col0 + col2 AS col0 FROM tab1
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9217
SELECT DISTINCT col2 + - 56 DIV - 85 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-9217
SELECT DISTINCT col2 + - 56 / - 85 FROM tab2
----
26
27
38
query I rowsort
SELECT - tab0.col1 - 32 FROM tab0
----
-118
-123
-129
query I rowsort
SELECT - tab2.col0 * ( col0 + + col0 ) * - 73 FROM tab2
----
7154
888264
911186
query I rowsort
SELECT DISTINCT col1 + col0 * - tab0.col2 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT ( - 35 ) FROM tab0, tab0 cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b
query I rowsort
SELECT - 72 * col2 AS col2 FROM tab1
----
-3888
-4104
-6912
query I rowsort
SELECT ALL 44 + + tab1.col0 + col2 FROM tab1
----
101
165
220
query I rowsort
SELECT + + col1 + col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT DISTINCT - + col1 + - col2 * cor0.col0 + - col1 FROM tab0 AS cor0
----
-229
-7480
-964
onlyif mysql # use DIV operator for integer division
query I rowsort label-9226
SELECT + + 20 DIV col1 FROM tab1 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9226
SELECT + + 20 / col1 FROM tab1 AS cor0
----
0
1
2
query I rowsort
SELECT ALL + - 81 AS col0 FROM tab1 AS cor0
----
-81
-81
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-9228
SELECT DISTINCT + 72 DIV col2 AS col0 FROM tab1 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT + 72 / col2 AS col0 FROM tab1 cor0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9229
SELECT ALL - 61 DIV - col0 FROM tab0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL - 61 / - col0 FROM tab0
----
0
1
2
query I rowsort
SELECT ALL 1 * - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9231
SELECT + - cor0.col1 DIV col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-9231
SELECT + - cor0.col1 / col0 FROM tab2 AS cor0
----
-4
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9232
SELECT + + col2 * col0 DIV - col1 FROM tab2 AS cor0
----
-176
-34
-6
skipif mysql # not compatible
query I rowsort label-9232
SELECT + + col2 * col0 / - col1 FROM tab2 AS cor0
----
-176
-34
-6
query I rowsort
SELECT + col0 * col2 + + col2 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1026
3562
3648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9234
SELECT ALL + CAST( NULL AS SIGNED ) * col0 * - col0 - - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9234
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 * - col0 - - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + cor0.col0 + col0 * col0 col1 FROM tab0 AS cor0
----
1261
633
8092
query I rowsort
SELECT ALL + col0 + + col1 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + 89 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 73 col0 FROM tab1
----
-73
query I rowsort
SELECT ALL - ( + col2 ) + + col2 * + col1 * - cor0.col1 FROM tab2 AS cor0
----
-11020
-25974
-90532
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9240
SELECT + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9240
SELECT + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL 98 + + col1 FROM tab0 AS cor0
----
184
189
195
query I rowsort
SELECT 19 * + col1 AS col1 FROM tab0 cor0
----
1634
1729
1843
onlyif mysql # use DIV operator for integer division
query I rowsort label-9244
SELECT - col0 * cor0.col2 DIV - col0 AS col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-9244
SELECT - col0 * cor0.col2 / - col0 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT 29 * col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
1043
126
2469
query I rowsort
SELECT ALL ( - col1 ) * col0 AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - 39 AS col2 FROM tab2, tab0 cor0
----
-39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9248
SELECT DISTINCT + CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL ( + ( tab0.col0 ) ) * col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL col0 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + col0 * tab1.col1 FROM tab1 WHERE ( NULL ) BETWEEN col0 * + col2 + col1 AND + col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9252
SELECT - tab0.col2 - - col0 DIV col2 FROM tab0
----
-33
-81
34
skipif mysql # not compatible
query I rowsort label-9252
SELECT - tab0.col2 - - col0 / col2 FROM tab0
----
-33
-81
34
query I rowsort
SELECT col0 * - col0 FROM tab1 WHERE NOT ( NULL ) >= NULL
----
query I rowsort
SELECT - col0 - - col2 AS col1 FROM tab0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9255
SELECT DISTINCT col0 * col2 - - tab1.col2 DIV - tab1.col0 AS col1 FROM tab1
----
144
3648
7679
skipif mysql # not compatible
query I rowsort label-9255
SELECT DISTINCT col0 * col2 - - tab1.col2 / - tab1.col0 AS col1 FROM tab1
----
144
3648
7679
query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + tab2.col0 col1 FROM tab2
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-9258
SELECT + col0 + col1 * + col0 + col1 DIV + col1 AS col2 FROM tab0
----
2089
3431
8189
skipif mysql # not compatible
query I rowsort label-9258
SELECT + col0 + col1 * + col0 + col1 / + col1 AS col2 FROM tab0
----
2089
3431
8189
query I rowsort
SELECT col2 * + tab1.col1 * - col2 AS col1 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT - cor0.col1 * col2 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT + + col2 + cor0.col2 * - col1 + col2 FROM tab0 AS cor0
----
-2772
-7298
-95
query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE - col0 < + col2
----
-3
-64
-80
query I rowsort
SELECT + col2 + col2 * - cor0.col2 AS col0 FROM tab0 cor0
----
-1056
-6642
0
query I rowsort
SELECT - col1 * - col1 + - col2 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT - col2 + - cor0.col0 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT - col2 + - 18 * + ( col1 ) AS col0 FROM tab1
----
-237
-330
-522
query I rowsort
SELECT - col1 - ( - 84 ) AS col0 FROM tab0
----
-13
-2
-7
query I rowsort
SELECT tab1.col2 - 30 * 93 FROM tab1
----
-2694
-2733
-2736
query I rowsort
SELECT ALL - col0 * 84 + col0 AS col0 FROM tab2 AS cor0
----
-581
-6474
-6557
query I rowsort
SELECT col2 + 36 AS col1 FROM tab1 AS cor0
----
132
90
93
query I rowsort
SELECT - cor0.col2 * 61 FROM tab2, tab0 AS cor0
----
9 values hashing to 9a216571f7bf3ea746c3bb23fc9f4a0b
query I rowsort
SELECT DISTINCT + + col0 * + ( col1 ) + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT 75 + col1 FROM tab1 AS cor0
----
101
85
88
query I rowsort
SELECT ALL + - 60 AS col2 FROM tab1 cor0
----
-60
-60
-60
query I rowsort
SELECT DISTINCT + 57 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1368
-1995
-5073
onlyif mysql # use DIV operator for integer division
query I rowsort label-9276
SELECT ALL 70 DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL 70 / - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col0 + col2 * cor0.col2 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT + col0 * ( col2 ) AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + 31 FROM tab0 cor0
----
31
query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab2 cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 * cor0.col2 col0 FROM tab1 AS cor0
----
-119808
-32490
-75816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9282
SELECT DISTINCT + CAST( + col0 AS SIGNED ) * - col0 + + col2 * - 11 col0 FROM tab0 AS cor0
----
-1236
-8823
-939
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) * - col0 + + col2 * - 11 col0 FROM tab0 AS cor0
----
-1236
-8823
-939
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col1 col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL - col1 + - cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT ALL col2 * ( + ( col2 ) * col2 ) AS col1 FROM tab0
----
1
35937
551368
query I rowsort
SELECT - ( - col2 ) + col1 * + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-22793
-271492
-6700
query I rowsort
SELECT + ( - col0 ) + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT 11 * - col2 + cor0.col1 AS col0 FROM tab0 AS cor0
----
-277
-811
86
query I rowsort
SELECT DISTINCT col0 * col1 * col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT + + cor0.col2 + cor0.col0 * 38 AS col2 FROM tab0 AS cor0
----
1331
3464
945
query I rowsort
SELECT DISTINCT - col1 + + col0 + - col2 AS col0 FROM tab2 AS cor0
----
-51
-7
24
query I rowsort
SELECT ALL + + 38 FROM tab2 AS cor0
----
38
38
38
query I rowsort
SELECT ALL 0 * + col1 + col1 + 9 * - cor0.col1 FROM tab0 AS cor0
----
-688
-728
-776
query I rowsort
SELECT DISTINCT + 7 FROM tab1 cor0
----
7
query I rowsort
SELECT - + 70 + - col2 FROM tab0 AS cor0
----
-103
-152
-71
query I rowsort
SELECT DISTINCT - 21 + col2 AS col2 FROM tab2 AS cor0
----
17
5
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9297
SELECT DISTINCT - - ( col1 ) DIV - col0 + 19 FROM tab1 cor0
----
11
19
skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT - - ( col1 ) / - col0 + 19 FROM tab1 cor0
----
11
19
query I rowsort
SELECT - - col2 * col2 + col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT cor0.col2 * col1 - col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT - + col0 * + 30 AS col0 FROM tab0 AS cor0
----
-1050
-2670
-720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9301
SELECT + col1 + CAST( NULL AS SIGNED ) * - col1 / - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9301
SELECT + col1 + CAST ( NULL AS INTEGER ) * - col1 / - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9302
SELECT ALL 82 DIV tab2.col0 + - 77 * + 69 AS col0 FROM tab2
----
-5302
-5312
-5312
skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL 82 / tab2.col0 + - 77 * + 69 AS col0 FROM tab2
----
-5302
-5312
-5312
onlyif mysql # use DIV operator for integer division
query I rowsort label-9303
SELECT cor0.col2 DIV CAST( - 77 AS SIGNED ) col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9303
SELECT cor0.col2 / CAST ( - 77 AS INTEGER ) col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
query I rowsort
SELECT ALL 63 + - col2 FROM tab0
----
-19
30
62
query I rowsort
SELECT ALL + col0 * col2 AS col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT cor0.col0 * col0 + col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT + + col2 * ( - 82 ) FROM tab2 AS cor0
----
-2132
-2214
-3116
query I rowsort
SELECT ALL col1 - - ( - 65 ) FROM tab2 AS cor0
----
-34
-48
-6
query I rowsort
SELECT DISTINCT + col2 * 55 AS col0 FROM tab2 AS cor0
----
1430
1485
2090
onlyif mysql # use DIV operator for integer division
query I rowsort label-9310
SELECT DISTINCT col0 DIV 43 + + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1342
-217
-4601
skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT col0 / 43 + + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1342
-217
-4601
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9311
SELECT - col0 + - CAST( NULL AS SIGNED ) * ( col2 * - col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9311
SELECT - col0 + - CAST ( NULL AS INTEGER ) * ( col2 * - col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 0 + col0 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT + col1 + col0 + - 47 FROM tab1
----
-18
27
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-9314
SELECT DISTINCT - col2 + cor0.col1 * cor0.col0 DIV col1 AS col2 FROM tab2 AS cor0
----
-20
41
52
skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT - col2 + cor0.col1 * cor0.col0 / col1 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - - col2 + + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT + col2 + - ( - ( col0 ) ) FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-9317
SELECT ALL - col1 DIV cor0.col1 + 95 AS col0 FROM tab0 cor0
----
94
94
94
skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL - col1 / cor0.col1 + 95 AS col0 FROM tab0 cor0
----
94
94
94
query I rowsort
SELECT DISTINCT col0 * + cor0.col1 + - ( col2 ) * + col1 FROM tab1 AS cor0
----
-1326
-208
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-9319
SELECT DISTINCT + col0 * - col0 * + 3 + col1 DIV col0 AS col0 FROM tab2 AS cor0
----
-143
-18252
-18723
skipif mysql # not compatible
query I rowsort label-9319
SELECT DISTINCT + col0 * - col0 * + 3 + col1 / col0 AS col0 FROM tab2 AS cor0
----
-143
-18252
-18723
query I rowsort
SELECT ALL cor0.col1 * ( 22 ) - - col2 FROM tab2 AS cor0
----
1324
412
709
query I rowsort
SELECT tab1.col1 + - tab1.col1 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 * 25 - col0 FROM tab2
----
-1553
-504
-782
query I rowsort
SELECT + 13 + tab1.col2 * tab1.col1 AS col0 FROM tab1
----
1261
1417
583
query I rowsort
SELECT ALL ( - 51 ) * col2 FROM tab1
----
-2754
-2907
-4896
query I rowsort
SELECT + col1 * 59 AS col1 FROM tab0 AS cor0
----
5074
5369
5723
query I rowsort
SELECT ( + ( col0 ) * - col2 ) + col0 FROM tab2
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-9327
SELECT ALL - tab1.col1 + - col0 DIV tab1.col2 + col0 * col0 AS col2 FROM tab1
----
-17
4085
6387
skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL - tab1.col1 + - col0 / tab1.col2 + col0 * col0 AS col2 FROM tab1
----
-17
4085
6387
query I rowsort
SELECT ( - col2 ) * + col2 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT - 54 * col1 FROM tab1
----
-1404
-540
-702
query I rowsort
SELECT 51 * col0 + + ( 55 ) FROM tab1 AS cor0
----
208
3319
4135
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9331
SELECT + + cor0.col0 * col0 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9331
SELECT + + cor0.col0 * col0 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 34 + col2 * col0 FROM tab2 AS cor0
----
155
1994
2968
query I rowsort
SELECT ALL 94 * col1 + - col1 FROM tab1 AS cor0
----
1209
2418
930
query I rowsort
SELECT DISTINCT + + 24 AS col1 FROM tab1 AS cor0
----
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col0 FROM tab0, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT - 0 * + col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - ( 24 ) AS col1 FROM tab1 AS cor0
----
-24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 13 col0 FROM tab0 AS cor0
----
-13
query I rowsort
SELECT ALL - tab1.col2 + 36 FROM tab1, tab0 AS cor0
----
9 values hashing to c761383b343d4c64e68e89b73770aab7
query I rowsort
SELECT 75 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT ALL - col0 - col0 FROM tab1 cor0
----
-128
-160
-6
query I rowsort
SELECT col2 * + ( + 14 ) AS col0 FROM tab0
----
1148
14
462
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9343
SELECT ALL col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + - col0 * 17 * col1 AS col0 FROM tab0
----
-137594
-35064
-57680
query I rowsort
SELECT + + col1 * 42 * col2 FROM tab0 cor0
----
119196
313404
4074
query I rowsort
SELECT DISTINCT - cor0.col1 * 61 FROM tab2 AS cor0
----
-1037
-1891
-3599
query I rowsort
SELECT col0 + 94 + + ( cor0.col0 ) FROM tab2 cor0
----
108
250
252
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 * + col2 col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ALL + 29 AS col2 FROM tab0 cor0
----
29
29
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9350
SELECT + CAST( + 68 AS SIGNED ) + + col0 * CAST( NULL AS DECIMAL ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9350
SELECT + CAST ( + 68 AS INTEGER ) + + col0 * CAST ( NULL AS REAL ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 * col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT 7 * - 3 FROM tab0 cor0
----
-21
-21
-21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col1 + col0 col1 FROM tab0 AS cor0
----
196
229
271
query I rowsort
SELECT + 69 * + col0 FROM tab1 AS cor0
----
207
4416
5520
query I rowsort
SELECT + + 59 * 20 FROM tab0 AS cor0
----
1180
1180
1180
query I rowsort
SELECT DISTINCT tab1.col0 * 76 FROM tab1
----
228
4864
6080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 * - col1 col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + col1 * + 46 AS col2 FROM tab1 AS cor0
----
1196
460
598
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9359
SELECT CAST( + 87 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
87
87
87
skipif mysql # not compatible
query I rowsort label-9359
SELECT CAST ( + 87 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
87
87
87
query I rowsort
SELECT - 33 + - col0 FROM tab2 AS cor0
----
-111
-112
-40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor2.col0 col0 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2 cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT - col2 + + ( + col2 ) AS col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 * ( + 24 ) * + cor0.col2 col0 FROM tab0 AS cor0
----
-161285
-26050
73
query I rowsort
SELECT - 67 + col1 FROM tab2 AS cor0
----
-36
-50
-8
query I rowsort
SELECT + col2 + + col0 * - 23 FROM tab0 AS cor0
----
-1965
-519
-804
query I rowsort
SELECT - + col2 + - col1 AS col0 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT col2 * cor0.col2 + - col2 * cor0.col2 - - col2 * col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + 18 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595
onlyif mysql # use DIV operator for integer division
query I rowsort label-9369
SELECT + 87 DIV tab0.col0 FROM tab0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-9369
SELECT + 87 / tab0.col0 FROM tab0
----
0
2
3
query I rowsort
SELECT ALL + col1 + - col1 * - col1 AS col0 FROM tab2
----
306
3540
992
query I rowsort
SELECT DISTINCT ( tab0.col1 ) + - col1 FROM tab0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9372
SELECT DISTINCT - - col2 + - CAST( 79 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-41
-52
-53
skipif mysql # not compatible
query I rowsort label-9372
SELECT DISTINCT - - col2 + - CAST ( 79 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-41
-52
-53
query I rowsort
SELECT + + col0 + + ( cor0.col2 ) * col2 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT + cor0.col1 * + col2 + + 19 * + col2 * + ( + col0 ) FROM tab2 cor0
----
40066
4428
57684
onlyif mysql # use DIV operator for integer division
query I rowsort label-9375
SELECT ALL + - col2 - - ( - 44 ) DIV col2 AS col1 FROM tab0 AS cor0
----
-34
-45
-82
skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL + - col2 - - ( - 44 ) / col2 AS col1 FROM tab0 AS cor0
----
-34
-45
-82
query I rowsort
SELECT + 37 FROM tab0, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT + col1 - + col2 * ( ( col2 ) ) FROM tab2
----
-1427
-617
-698
query I rowsort
SELECT ALL + 12 + col0 AS col1 FROM tab1
----
15
76
92
query I rowsort
SELECT - col0 * col2 + + col1 AS col0 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT - 49 FROM tab1, tab2 AS cor0, tab1 cor1
----
-49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9381
SELECT - tab2.col0 * + col2 + CAST( NULL AS SIGNED ) + ( - col2 ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9381
SELECT - tab2.col0 * + col2 + CAST ( NULL AS INTEGER ) + ( - col2 ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 83 * - cor1.col2 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0cc81eafb0c727da8782adb9626b676c
query I rowsort
SELECT DISTINCT 59 * col0 + - col2 AS col2 FROM tab1
----
123
3719
4624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9384
SELECT col1 / col2 + - CAST( NULL AS SIGNED ) + - 73 * - col1 * + ( 8 * col2 ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9384
SELECT col1 / col2 + - CAST ( NULL AS INTEGER ) + - 73 * - col1 * + ( 8 * col2 ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - - col1 * ( col0 + col0 ) AS col1 FROM tab1 AS cor0
----
1280
156
2080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 col0 FROM tab1 cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9387
SELECT DISTINCT + + col2 * + 19 - - col1 * + col1 * CAST( ( + col2 ) + col0 AS SIGNED ) FROM tab1 cor0
----
13183
31568
39558
skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT + + col2 * + 19 - - col1 * + col1 * CAST ( ( + col2 ) + col0 AS INTEGER ) FROM tab1 cor0
----
13183
31568
39558
query I rowsort
SELECT - cor0.col1 * + col0 + col1 * + col0 AS col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + 8 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT ALL + - col2 + col2 * - col0 * - col0 FROM tab2 AS cor0
----
1296
158158
237120
query I rowsort
SELECT ALL col2 * + 15 * + 65 AS col0 FROM tab1 AS cor0
----
52650
55575
93600
query I rowsort
SELECT DISTINCT - col0 * - 10 AS col0 FROM tab0 AS cor0
----
240
350
890
query I rowsort
SELECT + col2 * - col0 + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-9394
SELECT ALL + - col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL + - col2 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col0 + 39 * col2 + col2 * 11 AS col1 FROM tab0 AS cor0
----
15
1626
4011
query I rowsort
SELECT DISTINCT col2 + - ( col2 ) * - col0 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL - + col2 * col1 * - col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT col2 * - ( - 20 ) + + col2 AS col1 FROM tab0 cor0
----
1722
21
693
query I rowsort
SELECT + - col1 * ( col2 ) AS col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT tab1.col1 + - col2 + tab1.col2 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL tab0.col1 FROM tab0 WHERE NOT NULL IN ( col1 )
----
query I rowsort
SELECT DISTINCT - col1 * col0 + col1 - + col2 * col1 FROM tab2
----
-1023
-1972
-6077
onlyif mysql # use DIV operator for integer division
query I rowsort label-9403
SELECT DISTINCT + tab0.col2 DIV tab0.col0 AS col0 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-9403
SELECT DISTINCT + tab0.col2 / tab0.col0 AS col0 FROM tab0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9404
SELECT DISTINCT - col2 * col1 DIV col0 AS col0 FROM tab1
----
-15
-468
-8
skipif mysql # not compatible
query I rowsort label-9404
SELECT DISTINCT - col2 * col1 / col0 AS col0 FROM tab1
----
-15
-468
-8
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9406
SELECT DISTINCT + tab0.col2 DIV col2 AS col0 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-9406
SELECT DISTINCT + tab0.col2 / col2 AS col0 FROM tab0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9407
SELECT DISTINCT col1 + + col0 - col0 DIV - col1 FROM tab2
----
100
138
38
skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT col1 + + col0 - col0 / - col1 FROM tab2
----
100
138
38
query I rowsort
SELECT - col0 + - col2 - col2 FROM tab1
----
-111
-178
-272
query I rowsort
SELECT ALL col0 + col2 + - tab0.col2 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 + col2 col1 FROM tab0
----
7429
8363
9410
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 IN ( col2 + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= ( NULL )
----
query I rowsort
SELECT col1 * + tab1.col2 + col1 AS col2 FROM tab1
----
1261
1430
580
query I rowsort
SELECT DISTINCT + col2 * tab1.col0 * col2 FROM tab1
----
207936
737280
8748
query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + + tab2.col1 + + col0 * col0 NOT IN ( - tab2.col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT - col0 * col1 + + col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT ALL + col1 * + col1 * tab0.col2 FROM tab0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-9418
SELECT + col1 + - col1 DIV + 29 AS col2 FROM tab0 AS cor0
----
84
88
94
skipif mysql # not compatible
query I rowsort label-9418
SELECT + col1 + - col1 / + 29 AS col2 FROM tab0 AS cor0
----
84
88
94
query I rowsort
SELECT DISTINCT + col2 + + col2 * ( col1 ) AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT + - col2 + col2 + - 25 AS col0 FROM tab2 AS cor0
----
-25
query I rowsort
SELECT - - 4 + col2 AS col1 FROM tab0 AS cor0
----
37
5
86
query I rowsort
SELECT DISTINCT - 23 + col1 * cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
636033
753548
912650
query I rowsort
SELECT + col2 + cor0.col0 + ( - 8 ) AS col1 FROM tab1 AS cor0
----
113
168
49
query I rowsort
SELECT DISTINCT - 73 FROM tab2, tab1 AS cor0
----
-73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9425
SELECT col2 + + col1 + + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9425
SELECT col2 + + col1 + + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col2 FROM tab0 cor0
----
36
query I rowsort
SELECT tab1.col2 - + col1 AS col0 FROM tab1
----
28
47
83
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * col0 * col0 NOT IN ( col2 + tab0.col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9429
SELECT + cor0.col2 DIV col2 - 7 DIV ( col2 ) FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9429
SELECT + cor0.col2 / col2 - 7 / ( col2 ) FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 * 68 * - col1 col1 FROM tab1 AS cor0
----
-38703
-84768
-95418
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9431
SELECT DISTINCT + col0 + - col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT + col0 + - col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - ( - col1 ) - - col2 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL 85 AS col2 FROM tab1 AS cor0
----
85
85
85
query I rowsort
SELECT ALL 38 * col0 + col2 * 8 AS col2 FROM tab0
----
1176
1338
4038
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + col1 col1 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT ALL col2 + col1 * - col2 + - 83 * col2 FROM tab1 AS cor0
----
-5244
-5832
-9120
query I rowsort
SELECT col0 + col0 * - col0 AS col2 FROM tab2 cor0
----
-42
-6006
-6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-9438
SELECT DISTINCT + 69 - - col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
68
skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT + 69 - - col1 / - col1 AS col0 FROM tab2 AS cor0
----
68
query I rowsort
SELECT DISTINCT + 68 * + col1 * col1 AS col2 FROM tab1 AS cor0
----
11492
45968
6800
query I rowsort
SELECT - col0 - col0 * 28 FROM tab1 AS cor0
----
-1856
-2320
-87
query I rowsort
SELECT - - cor0.col2 - - col2 * col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT + col1 * - col0 + col2 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT + - cor0.col2 + col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - - col1 * col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + + 84 + - cor0.col0 * + 84 FROM tab1 AS cor0
----
-168
-5292
-6636
query I rowsort
SELECT DISTINCT - + col2 + + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-9447
SELECT ALL - col2 DIV col2 + cor0.col2 * - col0 FROM tab0 AS cor0
----
-36
-7299
-793
skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL - col2 / col2 + cor0.col2 * - col0 FROM tab0 AS cor0
----
-36
-7299
-793
query I rowsort
SELECT - + col1 + - col1 * 94 * col2 FROM tab2 AS cor0
----
-144255
-60741
-78709
query I rowsort
SELECT + col2 + - col2 * - col0 AS col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT ALL 28 + col0 FROM tab1
----
108
31
92
query I rowsort
SELECT ALL - + col0 * 39 FROM tab1 cor0
----
-117
-2496
-3120
query I rowsort
SELECT DISTINCT + 94 + col2 FROM tab1 cor0
----
148
151
190
query I rowsort
SELECT DISTINCT - 86 + cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
3562
7594
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-9454
SELECT DISTINCT 43 DIV - 60 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9454
SELECT DISTINCT 43 / - 60 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9455
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-9455
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT - col0 + + col1 * - col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT ALL + 52 AS col1 FROM tab1 cor0
----
52
52
52
query I rowsort
SELECT DISTINCT - + 37 FROM tab2 AS cor0
----
-37
query I rowsort
SELECT - tab0.col0 + - col0 AS col0 FROM tab0
----
-178
-48
-70
query I rowsort
SELECT ALL + - col0 * + col0 + - col0 * cor0.col1 - - cor0.col2 * col1 * - 52 AS col0 FROM tab2 AS cor0
----
-41176
-43790
-90454
query I rowsort
SELECT ALL - + 75 - ( + col2 * col1 ) AS col2 FROM tab1 AS cor0
----
-1323
-1479
-645
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + - tab1.col1 col0 FROM tab1
----
28
47
83
query I rowsort
SELECT - + col0 + 34 AS col1 FROM tab1 AS cor0
----
-30
-46
31
query I rowsort
SELECT - col0 + 72 * col0 AS col1 FROM tab0 AS cor0
----
1704
2485
6319
query I rowsort
SELECT + 36 AS col1 FROM tab0
----
36
36
36
query I rowsort
SELECT col1 + col0 * + col2 FROM tab1
----
188
3658
7693
query I rowsort
SELECT DISTINCT 17 AS col2 FROM tab0
----
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-9468
SELECT - col0 DIV - cor0.col0 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9468
SELECT - col0 / - cor0.col0 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT col0 * col2 + col0 * col2 FROM tab2 AS cor0
----
378
4056
6004
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4
query I rowsort
SELECT DISTINCT + col0 * + ( - col0 ) * col1 AS col2 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT ALL + cor0.col1 * - 65 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 20e13998d8b6909e02b4bd514c132ae9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9473
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9474
SELECT + col2 * + col0 + 22 DIV col1 AS col0 FROM tab2 AS cor0
----
189
2028
3003
skipif mysql # not compatible
query I rowsort label-9474
SELECT + col2 * + col0 + 22 / col1 AS col0 FROM tab2 AS cor0
----
189
2028
3003
query I rowsort
SELECT DISTINCT + col1 * - col2 + tab1.col0 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT ALL - 70 FROM tab0, tab1 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9477
SELECT ( col0 ) * - CAST( + col1 AS SIGNED ) col0 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9477
SELECT ( col0 ) * - CAST ( + col1 AS INTEGER ) col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + ( tab2.col0 + col1 * + col2 ) FROM tab2
----
1612
725
844
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9480
SELECT - + 4 * col0 * 31 + + col2 * - col0 / - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9480
SELECT - + 4 * col0 * 31 + + col2 * - col0 / - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9481
SELECT - ( - col0 ) + - CAST( NULL AS SIGNED ) * + ( - col2 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9481
SELECT - ( - col0 ) + - CAST ( NULL AS INTEGER ) * + ( - col2 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 38 FROM tab2, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9483
SELECT DISTINCT + cor0.col2 DIV 28 FROM tab1, tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT + cor0.col2 / 28 FROM tab1, tab2 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 col0 FROM tab0 AS cor0
----
-67
onlyif mysql # use DIV operator for integer division
query I rowsort label-9485
SELECT col0 * - col0 DIV ( ( tab0.col0 ) ) FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9485
SELECT col0 * - col0 / ( ( tab0.col0 ) ) FROM tab0
----
-24
-35
-89
query I rowsort
SELECT col0 * ( 1 ) * - col0 + ( cor0.col0 ) * col1 AS col2 FROM tab1 AS cor0
----
-3456
-5360
69
query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT DISTINCT - 71 * col2 - - 60 * col1 FROM tab2
----
-1678
-57
1694
query I rowsort
SELECT + col0 * - col0 - col2 * cor0.col1 FROM tab2 AS cor0
----
-6887
-7618
-886
query I rowsort
SELECT col0 - col0 * 31 FROM tab1 AS cor0
----
-1920
-2400
-90
query I rowsort
SELECT - 39 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 col0 FROM tab0
----
7
query I rowsort
SELECT + + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + col1 + ( 34 ) AS col1 FROM tab1
----
44
47
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-9495
SELECT - cor0.col0 DIV - col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
21
31
60
skipif mysql # not compatible
query I rowsort label-9495
SELECT - cor0.col0 / - col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
21
31
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-9496
SELECT ALL cor0.col1 + - cor0.col2 DIV - col1 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL cor0.col1 + - cor0.col2 / - col1 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT - col1 + + ( 70 ) AS col2 FROM tab1 AS cor0
----
44
57
60
query I rowsort
SELECT col0 + col1 * col1 AS col2 FROM tab1
----
164
249
679
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col0 FROM tab0, tab1 cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT + - cor0.col1 + col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT ( - 77 ) * col2 AS col0 FROM tab0 AS cor0
----
-2541
-6314
-77
query I rowsort
SELECT col0 * col1 + - col2 * col2 - + cor0.col1 FROM tab1 AS cor0
----
-2619
-2864
-8189
onlyif mysql # use DIV operator for integer division
query I rowsort label-9503
SELECT + col1 * col2 DIV ( col2 ) AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9503
SELECT + col1 * col2 / ( col2 ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - + 31 + - col2 * - 53 FROM tab2 AS cor0
----
1347
1400
1983
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9505
SELECT + col1 * col2 + + CAST( - 48 AS SIGNED ) FROM tab1 cor0
----
1200
1356
522
skipif mysql # not compatible
query I rowsort label-9505
SELECT + col1 * col2 + + CAST ( - 48 AS INTEGER ) FROM tab1 cor0
----
1200
1356
522
query I rowsort
SELECT DISTINCT 27 + 6 + col2 AS col0 FROM tab1
----
129
87
90
query I rowsort
SELECT ALL - 16 AS col2 FROM tab1 cor0
----
-16
-16
-16
onlyif mysql # use DIV operator for integer division
query I rowsort label-9508
SELECT 57 * - col2 * cor0.col2 + col2 DIV - cor0.col0 AS col1 FROM tab0 AS cor0
----
-383268
-57
-62074
skipif mysql # not compatible
query I rowsort label-9508
SELECT 57 * - col2 * cor0.col2 + col2 / - cor0.col0 AS col1 FROM tab0 AS cor0
----
-383268
-57
-62074
query I rowsort
SELECT DISTINCT 64 AS col1 FROM tab0 AS cor0
----
64
query I rowsort
SELECT ALL - + cor0.col0 + 17 FROM tab2 AS cor0
----
-61
-62
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-9511
SELECT DISTINCT - 43 DIV + col2 + - col2 FROM tab0 AS cor0
----
-34
-44
-82
skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT - 43 / + col2 + - col2 FROM tab0 AS cor0
----
-34
-44
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9512
SELECT + CAST( col2 AS SIGNED ) + col0 FROM tab0 cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-9512
SELECT + CAST ( col2 AS INTEGER ) + col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - ( + col0 ) + - col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9514
SELECT DISTINCT + CAST( col1 AS SIGNED ) * col2 + - ( cor0.col1 ) - - col1 FROM tab2 cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * col2 + - ( cor0.col1 ) - - col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - 24 + + col0 AS col1 FROM tab0 AS cor0
----
0
11
65
query I rowsort
SELECT ALL + col2 + - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - - ( - 53 ) FROM tab1 AS cor0
----
-53
query I rowsort
SELECT ALL + 29 * col0 AS col0 FROM tab0 AS cor0
----
1015
2581
696
query I rowsort
SELECT DISTINCT col1 - + col2 * tab0.col1 AS col0 FROM tab0
----
-2752
-7371
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9520
SELECT DISTINCT - ( col2 ) + col1 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT - ( col2 ) + col1 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 58 * + col0 col2 FROM tab2
----
413
4602
4661
query I rowsort
SELECT tab2.col1 * col1 + col2 FROM tab2
----
327
3507
988
query I rowsort
SELECT + col1 - 92 AS col1 FROM tab0
----
-1
-6
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-9524
SELECT ALL + col0 + - col1 DIV + col0 FROM tab1
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL + col0 + - col1 / + col0 FROM tab1
----
-5
64
80
query I rowsort
SELECT DISTINCT ( - col1 ) * - col0 * + 89 + + 90 FROM tab1
----
57050
7032
92650
query I rowsort
SELECT + 35 + - col1 AS col0 FROM tab1
----
22
25
9
query I rowsort
SELECT DISTINCT - ( + 65 ) FROM tab2 AS cor0
----
-65
query I rowsort
SELECT DISTINCT 76 + col0 + + col0 AS col0 FROM tab2
----
232
234
90
query I rowsort
SELECT 61 FROM tab1, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT DISTINCT 68 + + col1 FROM tab1
----
78
81
94
query I rowsort
SELECT - 27 * col1 * col2 AS col2 FROM tab2
----
-17442
-22599
-41418
query I rowsort
SELECT DISTINCT + 30 AS col1 FROM tab2, tab2 cor0, tab2 cor1
----
30
query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL col2 * + 51 - - col1 AS col1 FROM tab2 AS cor0
----
1385
1408
1955
query I rowsort
SELECT col0 + col0 * col1 AS col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT + - cor0.col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 31 col1 FROM tab0
----
-31
query I rowsort
SELECT + col2 * col0 + col2 AS col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT DISTINCT col2 - + ( col1 ) AS col1 FROM tab1
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9540
SELECT DISTINCT - col0 + col2 DIV col1 + col1 * ( col2 ) FROM tab1 AS cor0
----
1175
1403
511
skipif mysql # not compatible
query I rowsort label-9540
SELECT DISTINCT - col0 + col2 / col1 + col1 * ( col2 ) FROM tab1 AS cor0
----
1175
1403
511
query I rowsort
SELECT ALL - + col2 - 62 AS col1 FROM tab2 AS cor0
----
-100
-88
-89
query I rowsort
SELECT DISTINCT + col2 * - 20 * + col1 + col0 AS col0 FROM tab2 AS cor0
----
-12841
-16733
-30602
query I rowsort
SELECT ALL col2 * + col2 - col2 FROM tab0 cor0
----
0
1056
6642
query I rowsort
SELECT DISTINCT col0 * col1 + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-9545
SELECT DISTINCT + col2 + - col0 DIV ( - col1 ) AS col2 FROM tab2 AS cor0
----
27
42
skipif mysql # not compatible
query I rowsort label-9545
SELECT DISTINCT + col2 + - col0 / ( - col1 ) AS col2 FROM tab2 AS cor0
----
27
42
query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT - col2 * + 20 + col2 FROM tab1
----
-1026
-1083
-1824
skipif mysql # not compatible
query I rowsort
SELECT tab1.col2 + - CAST ( col1 AS REAL ) FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT + col0 + + col0 * - col2 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9550
SELECT DISTINCT col0 DIV 46 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT col0 / 46 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT ALL - cor0.col2 + + 56 FROM tab0 cor0
----
-26
23
55
skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 * CAST ( col2 AS REAL ) AS col0 FROM tab2
----
1444
676
729
query I rowsort
SELECT - col1 * ( col2 ) + - col2 * + 61 FROM tab1
----
-4047
-4698
-7104
query I rowsort
SELECT DISTINCT + + col0 + + col0 AS col0 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9555
SELECT - + ( col1 ) + col1 * CAST( NULL AS SIGNED ) / + ( + col1 * 12 ) - - 91 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9555
SELECT - + ( col1 ) + col1 * CAST ( NULL AS INTEGER ) / + ( + col1 * 12 ) - - 91 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9556
SELECT DISTINCT + + col2 DIV + col1 col0 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9556
SELECT DISTINCT + + col2 / + col1 col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + ( + col0 ) * col2 + + ( col2 ) - - col1 FROM tab1 AS cor0
----
242
3715
7789
query I rowsort
SELECT ALL cor0.col2 * col2 + col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ( + col1 ) * - col1 + col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT DISTINCT 8 * col0 FROM tab0 AS cor0
----
192
280
712
query I rowsort
SELECT + + 10 * col0 AS col1 FROM tab1 AS cor0
----
30
640
800
query I rowsort
SELECT - 8 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
query I rowsort
SELECT 26 AS col1 FROM tab1 cor0
----
26
26
26
query I rowsort
SELECT DISTINCT 38 AS col2 FROM tab2 cor0
----
38
query I rowsort
SELECT - - 16 * col0 AS col1 FROM tab1 AS cor0
----
1024
1280
48
query I rowsort
SELECT DISTINCT 13 + - col2 FROM tab0 AS cor0
----
-20
-69
12
query I rowsort
SELECT ( col2 ) * cor0.col2 + cor0.col1 AS col0 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT DISTINCT 50 * col1 + col0 AS col1 FROM tab1 AS cor0
----
1303
564
730
query I rowsort
SELECT ALL 83 * + col1 AS col1 FROM tab0 cor0
----
7138
7553
8051
query I rowsort
SELECT - col2 * col0 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 * + col1 + - col1 col1 FROM tab1 AS cor0
----
36470
4186
99827
query I rowsort
SELECT 78 + - col2 + + 31 FROM tab2 AS cor0
----
71
82
83
query I rowsort
SELECT 94 * + cor0.col2 FROM tab1 AS cor0
----
5076
5358
9024
onlyif mysql # use DIV operator for integer division
query I rowsort label-9574
SELECT + + ( + col2 ) * + col2 + - 34 DIV + col0 + 84 AS col2 FROM tab0 AS cor0
----
1172
6808
85
skipif mysql # not compatible
query I rowsort label-9574
SELECT + + ( + col2 ) * + col2 + - 34 / + col0 + 84 AS col2 FROM tab0 AS cor0
----
1172
6808
85
query I rowsort
SELECT ALL - 65 AS col1 FROM tab1 AS cor0
----
-65
-65
-65
query I rowsort
SELECT ALL + 26 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2132
26
858
query I rowsort
SELECT - col2 + - ( col0 ) * - cor0.col2 FROM tab0 AS cor0
----
34
7216
759
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab0 cor1, tab0 cor2
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query I rowsort
SELECT + col2 * 35 * col1 AS col1 FROM tab0 AS cor0
----
261170
3395
99330
query I rowsort
SELECT DISTINCT tab2.col1 * - col2 AS col2 FROM tab2
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9581
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9581
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ( - col1 ) + col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - cor0.col2 + - col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL - 27 * col2 FROM tab0 AS cor0
----
-2214
-27
-891
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9586
SELECT + CAST( 25 AS SIGNED ) * + col0 + - col0 * cor0.col1 FROM tab0 cor0
----
-1464
-2520
-5874
skipif mysql # not compatible
query I rowsort label-9586
SELECT + CAST ( 25 AS INTEGER ) * + col0 + - col0 * cor0.col1 FROM tab0 cor0
----
-1464
-2520
-5874
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9587
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 cor0 CROSS JOIN tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9587
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 cor0 CROSS JOIN tab2
----
NULL
query I rowsort
SELECT + 66 + + col1 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
133
146
175
onlyif mysql # use DIV operator for integer division
query I rowsort label-9589
SELECT + - CAST( col0 AS SIGNED ) * col1 + ( - 82 ) DIV col0 + - ( ( col0 ) ) FROM tab0 AS cor0
----
-2091
-3432
-8188
skipif mysql # not compatible
query I rowsort label-9589
SELECT + - CAST ( col0 AS INTEGER ) * col1 + ( - 82 ) / col0 + - ( ( col0 ) ) FROM tab0 AS cor0
----
-2091
-3432
-8188
query I rowsort
SELECT + ( + col2 ) + col0 + 72 * + col1 AS col0 FROM tab1 AS cor0
----
1112
1929
841
query I rowsort
SELECT 10 AS col1 FROM tab1 AS cor0
----
10
10
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-9592
SELECT + col1 + cor0.col0 + - col1 DIV + 41 FROM tab2 AS cor0
----
136
38
96
skipif mysql # not compatible
query I rowsort label-9592
SELECT + col1 + cor0.col0 + - col1 / + 41 FROM tab2 AS cor0
----
136
38
96
query I rowsort
SELECT cor2.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4
query I rowsort
SELECT tab2.col0 + - col1 FROM tab2
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9595
SELECT DISTINCT col2 + - tab1.col1 DIV col0 FROM tab1
----
46
57
96
skipif mysql # not compatible
query I rowsort label-9595
SELECT DISTINCT col2 + - tab1.col1 / col0 FROM tab1
----
46
57
96
query I rowsort
SELECT - col1 - - col2 * col2 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT ALL + col0 + - col1 AS col2 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT - - cor0.col0 - + cor0.col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + + col2 + cor0.col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT col0 * - ( + col1 ) FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + tab1.col1 * 78 + - col0 FROM tab1
----
2025
716
934
query I rowsort
SELECT DISTINCT col0 * col0 + + col0 + - col1 FROM tab2
----
25
6103
6303
query I rowsort
SELECT ( - tab0.col0 ) + + cor1.col2 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8e2d2d35b0aeae8bb4f81dcc791d8691
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9604
SELECT ALL - CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( + ( + col0 ) ) * ( + col2 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - + col0 * - 82 FROM tab0 AS cor0
----
1968
2870
7298
query I rowsort
SELECT DISTINCT + - ( cor0.col2 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-26
-27
-38
query I rowsort
SELECT ALL - ( - tab1.col0 ) + + col0 - col1 AS col0 FROM tab1
----
-20
118
147
query I rowsort
SELECT col0 * + ( + tab2.col1 ) AS col2 FROM tab2
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9610
SELECT 97 * - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9610
SELECT 97 * - cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - col2 * ( col0 ) * col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT - - col2 + - 69 * - col2 FROM tab1 AS cor0
----
3780
3990
6720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 - - ( + col1 ) col1 FROM tab0
----
122
127
133
query I rowsort
SELECT ALL - 74 * tab0.col1 AS col1 FROM tab0
----
-6364
-6734
-7178
query I rowsort
SELECT + 97 * col0 FROM tab1 AS cor0
----
291
6208
7760
query I rowsort
SELECT - col1 * + ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT col1 + 59 FROM tab1 AS cor0
----
69
72
85
query I rowsort
SELECT + col0 + + ( ( + col2 ) ) * 36 AS col0 FROM tab2 cor0
----
1014
1447
979
query I rowsort
SELECT 8 * - col1 AS col0 FROM tab0 AS cor0
----
-688
-728
-776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9620
SELECT ALL cor0.col2 * col1 * CAST( 19 * - col2 AS SIGNED ) + cor0.col1 - + 4 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-429378
-466711
-758049
skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL cor0.col2 * col1 * CAST ( 19 * - col2 AS INTEGER ) + cor0.col1 - + 4 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-429378
-466711
-758049
onlyif mysql # use DIV operator for integer division
query I rowsort label-9621
SELECT DISTINCT - col0 + + col2 DIV + 26 FROM tab2 AS cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT - col0 + + col2 / + 26 FROM tab2 AS cor0
----
-6
-77
-78
query I rowsort
SELECT ALL - col1 * col2 + + ( 64 ) AS col2 FROM tab2 AS cor0
----
-1470
-582
-773
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9623
SELECT ALL cor0.col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-9624
SELECT ALL + + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL + + col2 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9625
SELECT + ( cor0.col0 ) DIV col1 FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-9625
SELECT + ( cor0.col0 ) / col1 FROM tab2 cor0
----
0
1
4
query I rowsort
SELECT ALL - col0 + col1 * 20 AS col1 FROM tab0 cor0
----
1696
1731
1905
query I rowsort
SELECT ALL - cor0.col1 + + 74 AS col1 FROM tab0 AS cor0
----
-12
-17
-23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( + cor0.col0 ) col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + - 56 AS col2 FROM tab0 AS cor0
----
30
35
41
query I rowsort
SELECT DISTINCT col1 * col1 + col0 * col1 FROM tab0 cor0
----
12804
16380
9460
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col1 col0 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9632
SELECT + col0 + - CAST( NULL AS DECIMAL ) * - col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9632
SELECT + col0 + - CAST ( NULL AS REAL ) * - col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col2 + 24 FROM tab2 AS cor0
----
-14
-2
-3
query I rowsort
SELECT DISTINCT - + col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL col1 + + col0 * tab0.col1 * col2 - - col1 * + col1 FROM tab0
----
12901
672490
75594
query I rowsort
SELECT DISTINCT ( col1 ) * - 49 * ( col1 * + 9 ) - + 98 AS col0 FROM tab1
----
-298214
-44198
-74627
query I rowsort
SELECT ALL - col1 - tab2.col2 AS col2 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT - ( + col2 ) * col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + + ( + ( - col0 ) ) + col0 * - 18 AS col1 FROM tab2 AS cor0
----
-133
-1482
-1501
query I rowsort
SELECT + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - + col1 + col2 * + col0 FROM tab1 AS cor0
----
136
3638
7667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9642
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9642
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL col2 + + tab1.col2 AS col2 FROM tab1
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9644
SELECT CAST( col0 AS SIGNED ) * - tab0.col2 + - 22 FROM tab0
----
-57
-7320
-814
skipif mysql # not compatible
query I rowsort label-9644
SELECT CAST ( col0 AS INTEGER ) * - tab0.col2 + - 22 FROM tab0
----
-57
-7320
-814
query I rowsort
SELECT + ( 67 ) + - cor0.col2 FROM tab1 AS cor0
----
-29
10
13
query I rowsort
SELECT ( + 11 ) FROM tab1 AS cor0
----
11
11
11
query I rowsort
SELECT + col1 * + col1 + col0 * 68 FROM tab2
----
1437
5661
8785
query I rowsort
SELECT DISTINCT + 57 FROM tab0, tab1 AS cor0
----
57
query I rowsort
SELECT DISTINCT - + 65 AS col0 FROM tab1, tab2, tab1 AS cor0
----
-65
query I rowsort
SELECT 99 * col2 * col1 FROM tab1
----
123552
138996
56430
onlyif mysql # use DIV operator for integer division
query I rowsort label-9651
SELECT - tab2.col1 DIV 67 + + col2 * + ( col0 ) AS col0 FROM tab2
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-9651
SELECT - tab2.col1 / 67 + + col2 * + ( col0 ) AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - col0 + - tab2.col1 * - col1 FROM tab2
----
210
3403
954
query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col0 - col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT ( + col0 ) * 8 FROM tab2 AS cor0
----
56
624
632
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9655
SELECT ALL col2 * col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL col2 * col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9656
SELECT DISTINCT + col1 DIV + col2 col2 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT + col1 / + col2 col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 + ( col2 * - col0 ) AS col1 FROM tab2 AS cor0
----
-406
-4345
-6630
query I rowsort
SELECT DISTINCT - col0 * - col1 * col2 + - col1 AS col2 FROM tab0 AS cor0
----
3298
664027
68026
query I rowsort
SELECT ALL + 8 * + col0 - - 0 FROM tab2 AS cor0
----
56
624
632
query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
17
31
59
query I rowsort
SELECT 69 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * 10 * + col1 col2 FROM tab1 AS cor0
----
12480
14040
5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - cor0.col1 + col0 * + col0 FROM tab1 AS cor0
----
-17
4086
6387
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * - col1 * - col2 - - col0 FROM tab1 AS cor0
----
-16144
-36501
-5636
query I rowsort
SELECT col0 * - ( 30 ) + - col2 AS col1 FROM tab1 AS cor0
----
-144
-1977
-2496
query I rowsort
SELECT + + col0 * ( + cor0.col2 * col2 ) FROM tab0 AS cor0
----
26136
35
598436
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9670
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9671
SELECT ALL + col0 DIV col1 AS col0 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL + col0 / col1 AS col0 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT ALL + ( - col2 ) + + col2 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col0 + + col1 col1 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-9674
SELECT DISTINCT - 94 + ( cor0.col2 ) DIV - CAST( + col0 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
-15
-16
-90
skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT - 94 + ( cor0.col2 ) / - CAST ( + col0 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
-15
-16
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9675
SELECT ALL - - CAST( - 7 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
49
546
553
skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL - - CAST ( - 7 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
49
546
553
query I rowsort
SELECT DISTINCT + 36 FROM tab1 AS cor0
----
36
query I rowsort
SELECT col2 * + col2 * - col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ALL ( 60 ) * col1 FROM tab2 cor0
----
1020
1860
3540
query I rowsort
SELECT - + col2 * 3 AS col1 FROM tab1 AS cor0
----
-162
-171
-288
query I rowsort
SELECT DISTINCT - col1 * - 63 - cor0.col0 * col2 FROM tab1 cor0
----
-3018
-6861
1476
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 74 col0 FROM tab1
----
1924
740
962
query I rowsort
SELECT + tab2.col2 + - col2 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9683
SELECT - 40 DIV + cor1.col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to d1b3390bf3c224e527bf68f43fea665f
skipif mysql # not compatible
query I rowsort label-9683
SELECT - 40 / + cor1.col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to d1b3390bf3c224e527bf68f43fea665f
query I rowsort
SELECT ALL tab0.col1 + 45 * col0 AS col2 FROM tab0
----
1166
1672
4096
onlyif mysql # use DIV operator for integer division
query I rowsort label-9685
SELECT + col2 DIV + 14 AS col1 FROM tab1
----
3
4
6
skipif mysql # not compatible
query I rowsort label-9685
SELECT + col2 / + 14 AS col1 FROM tab1
----
3
4
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * col0 col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT + col1 - tab2.col1 AS col1 FROM tab2
----
0
query I rowsort
SELECT 15 + col2 AS col1 FROM tab0 AS cor0
----
16
48
97
query I rowsort
SELECT + ( col1 ) + cor0.col2 * 61 AS col0 FROM tab0 AS cor0
----
158
2099
5093
query I rowsort
SELECT - 4 * col0 + col2 AS col1 FROM tab2 AS cor0
----
-1
-278
-286
query I rowsort
SELECT - 20 * cor0.col1 + cor0.col0 FROM tab1 AS cor0
----
-136
-180
-517
query I rowsort
SELECT 6 + 84 FROM tab1 AS cor0
----
90
90
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-9693
SELECT - col1 DIV cor0.col0 + + col2 FROM tab1 AS cor0
----
46
57
96
skipif mysql # not compatible
query I rowsort label-9693
SELECT - col1 / cor0.col0 + + col2 FROM tab1 AS cor0
----
46
57
96
query I rowsort
SELECT + cor0.col1 * - 22 + col2 FROM tab0 AS cor0
----
-1859
-1920
-2133
query I rowsort
SELECT col1 + 10 AS col1 FROM tab0 AS cor0
----
101
107
96
query I rowsort
SELECT + col1 - cor0.col0 AS col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT 21 * col1 + cor0.col2 FROM tab1 AS cor0
----
267
369
600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + cor0.col0 col0 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9699
SELECT ALL cor0.col2 DIV col2 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL cor0.col2 / col2 AS col2 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9700
SELECT ALL + + col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL + + col1 / - col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + 91 AS col0 FROM tab2 AS cor0
----
91
91
91
query I rowsort
SELECT col0 * ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT 45 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT DISTINCT - cor3.col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2, tab0 AS cor3
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9705
SELECT DISTINCT col1 DIV + 57 AS col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT col1 / + 57 AS col2 FROM tab0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 col2 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + + cor0.col2 * - 50 FROM tab1 AS cor0
----
-2700
-2850
-4800
query I rowsort
SELECT - + col1 + 18 FROM tab1 AS cor0
----
-8
5
8
query I rowsort
SELECT DISTINCT + col1 * 82 + - 49 * - col1 AS col1 FROM tab1 AS cor0
----
1310
1703
3406
query I rowsort
SELECT ALL + + col1 + 38 AS col1 FROM tab0 AS cor0
----
124
129
135
query I rowsort
SELECT - - col1 * cor0.col0 * - 32 AS col0 FROM tab2 AS cor0
----
-147264
-42976
-6944
query I rowsort
SELECT - col2 + 18 FROM tab0 AS cor0
----
-15
-64
17
query I rowsort
SELECT ALL + - col1 * + ( cor0.col1 ) FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + - 63 FROM tab1 cor0
----
-63
-63
-63
query I rowsort
SELECT ALL - 74 + col1 * + col0 FROM tab2 AS cor0
----
1269
143
4528
query I rowsort
SELECT col0 + 25 FROM tab1 cor0
----
105
28
89
query I rowsort
SELECT DISTINCT - ( 92 ) FROM tab1 AS cor0
----
-92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9718
SELECT - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9718
SELECT - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9719
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-9720
SELECT DISTINCT + - 83 * - col1 - 89 DIV 97 FROM tab1 cor0
----
1079
2158
830
skipif mysql # not compatible
query I rowsort label-9720
SELECT DISTINCT + - 83 * - col1 - 89 / 97 FROM tab1 cor0
----
1079
2158
830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( cor0.col2 ) + col1 * - col0 col1 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT ( + col2 * + col0 + col2 ) FROM tab2
----
2054
216
3040
query I rowsort
SELECT + col0 * ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + 38 AS col1 FROM tab0
----
38
38
38
query I rowsort
SELECT - 69 + col1 FROM tab1
----
-43
-56
-59
query I rowsort
SELECT - - 54 * - col0 + - 8 AS col0 FROM tab1 AS cor0
----
-170
-3464
-4328
query I rowsort
SELECT DISTINCT - tab1.col2 + col2 * - col2 AS col0 FROM tab1
----
-2970
-3306
-9312
query I rowsort
SELECT DISTINCT - 24 + - col2 * + 78 AS col1 FROM tab2
----
-2052
-2130
-2988
query I rowsort
SELECT ALL tab2.col0 - + tab2.col2 AS col2 FROM tab2
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-9730
SELECT DISTINCT - col2 DIV tab0.col2 - col0 col1 FROM tab0
----
-25
-36
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT - col2 / tab0.col2 - col0 col1 FROM tab0
----
-25
-36
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-9731
SELECT - col0 + - col0 - + col2 DIV tab2.col0 AS col1 FROM tab2
----
-156
-158
-17
skipif mysql # not compatible
query I rowsort label-9731
SELECT - col0 + - col0 - + col2 / tab2.col0 AS col1 FROM tab2
----
-156
-158
-17
onlyif mysql # use DIV operator for integer division
query I rowsort label-9732
SELECT + col2 DIV + col0 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-9732
SELECT + col2 / + col0 FROM tab2
----
0
0
3
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 * col0 ) > col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT + col2 + col0 * col1 * col0 AS col0 FROM tab1
----
288
41017
83296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * col2 col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - 36 + col2 * col1 AS col0 FROM tab0 AS cor0
----
2802
61
7426
query I rowsort
SELECT DISTINCT - + col2 + + cor0.col0 * 46 FROM tab2 AS cor0
----
295
3562
3596
query I rowsort
SELECT + + 11 + - col2 * + 17 FROM tab1 cor0
----
-1621
-907
-958
query I rowsort
SELECT DISTINCT + 63 + - col1 AS col1 FROM tab0 AS cor0
----
-23
-28
-34
query I rowsort
SELECT - col2 * - col0 * + col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT + col1 * cor0.col2 * col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT ALL + col1 * col1 - + ( col1 + col2 ) AS col2 FROM tab1 AS cor0
----
33
596
60
query I rowsort
SELECT ALL col0 * col0 * col2 AS col1 FROM tab2
----
1323
158184
237158
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( - col0 ) AND ( col1 * - tab2.col1 )
----
query I rowsort
SELECT - cor0.col1 * col2 * - col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL + col2 * - col1 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT col2 + + col2 + - col2 * col0 AS col0 FROM tab2
----
-135
-1976
-2926
query I rowsort
SELECT DISTINCT col1 * - tab1.col2 AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + col2 * col0 + col1 + + col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
1592
4228
8941
query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE col2 = + col2
----
-7
-78
-79
query I rowsort
SELECT + col0 + + col0 * col1 + col2 FROM tab1 cor0
----
1216
135
761
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= col0 + col2 - - col1 / col2
----
query I rowsort
SELECT col1 + + col0 * - col2 FROM tab1
----
-136
-3638
-7667
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN col0 AND NULL
----
query I rowsort
SELECT ALL col1 - + col1 * + col1 FROM tab1 WHERE NOT col1 IN ( - col2 * col2 )
----
-156
-650
-90
query I rowsort
SELECT tab1.col0 * col1 - - col2 * col1 AS col0 FROM tab1
----
1210
1482
2288
query I rowsort
SELECT ALL + col2 * + col2 AS col2 FROM tab2
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 - - col1 * - tab1.col2 col0 FROM tab1
----
-1056
-1296
-456
query I rowsort
SELECT col0 * col0 * + col1 FROM tab0
----
118825
49536
720811
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( tab2.col0 )
----
query I rowsort
SELECT DISTINCT + col1 * + col2 * col1 AS col0 FROM tab1 WHERE NOT col0 + col1 NOT IN ( col0 )
----
query I rowsort
SELECT ALL + - 28 + - cor0.col2 FROM tab1 AS cor0
----
-124
-82
-85
query I rowsort
SELECT + - 85 + + col2 AS col0 FROM tab0 cor0
----
-3
-52
-84
query I rowsort
SELECT + + cor0.col2 + + cor0.col2 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9765
SELECT - - CAST( - col0 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-9765
SELECT - - CAST ( - col0 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9766
SELECT + ( - col0 ) + col1 + CAST( - col2 AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
-2893
-3303
-9283
skipif mysql # not compatible
query I rowsort label-9766
SELECT + ( - col0 ) + col1 + CAST ( - col2 AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
-2893
-3303
-9283
query I rowsort
SELECT + 68 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1316
1472
638
query I rowsort
SELECT + + cor0.col2 + + col0 + col0 AS col0 FROM tab1 AS cor0
----
185
256
60
query I rowsort
SELECT ( - col1 ) * col1 + + col1 * + col2 + - col0 * + col0 FROM tab0 AS cor0
----
-10537
-5134
-8740
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9770
SELECT + CAST( + col0 AS SIGNED ) + col0 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9770
SELECT + CAST ( + col0 AS INTEGER ) + col0 * + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 16 + col1 FROM tab2
----
33
47
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-9772
SELECT 82 DIV + col0 FROM tab2 AS cor0
----
1
1
11
skipif mysql # not compatible
query I rowsort label-9772
SELECT 82 / + col0 FROM tab2 AS cor0
----
1
1
11
query I rowsort
SELECT ( + 56 ) * col0 * tab1.col1 AS col0 FROM tab1
----
35840
4368
58240
onlyif mysql # use DIV operator for integer division
query I rowsort label-9774
SELECT ALL ( col2 ) DIV - tab1.col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL ( col2 ) / - tab1.col1 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT col0 * + 47 FROM tab1
----
141
3008
3760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + 32 col2 FROM tab2 AS cor0
----
49
63
91
query I rowsort
SELECT + cor0.col1 * cor0.col2 - + 85 AS col0 FROM tab0 cor0
----
12
2753
7377
query I rowsort
SELECT ALL col0 * ( col1 ) + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT - - col1 - - 91 AS col1 FROM tab0 AS cor0
----
177
182
188
query I rowsort
SELECT ALL + col2 + 84 * col2 * col1 FROM tab0 AS cor0
----
238425
626890
8149
query I rowsort
SELECT col1 - col2 FROM tab0 cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) + + col1 col1 FROM tab0
----
172
182
194
query I rowsort
SELECT col1 + ( col1 * col2 ) FROM tab1
----
1261
1430
580
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to bb6428239bf7f3ea361f6a10500a581d
query I rowsort
SELECT ALL cor0.col1 + cor0.col0 * - col0 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT - + col2 * ( - col1 ) + + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT - col2 + + col0 * + 34 FROM tab1 AS cor0
----
2119
2624
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9788
SELECT col1 * - CAST( NULL AS SIGNED ) + col2 * col2 * + ( - col2 ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9788
SELECT col1 * - CAST ( NULL AS INTEGER ) + col2 * col2 * + ( - col2 ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9789
SELECT DISTINCT - col2 DIV cor0.col1 + + 95 + - col0 AS col2 FROM tab0 AS cor0
----
6
60
71
skipif mysql # not compatible
query I rowsort label-9789
SELECT DISTINCT - col2 / cor0.col1 + + 95 + - col0 AS col2 FROM tab0 AS cor0
----
6
60
71
query I rowsort
SELECT DISTINCT + col0 + + ( 1 ) FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT ALL col0 + col1 * - 3 AS col1 FROM tab0 AS cor0
----
-184
-234
-256
query I rowsort
SELECT cor0.col2 * + col1 * 45 AS col0 FROM tab0 AS cor0
----
127710
335790
4365
query I rowsort
SELECT 26 + col2 AS col2 FROM tab1
----
122
80
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 col0 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab2, tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9796
SELECT DISTINCT - tab0.col2 DIV - col1 AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT - tab0.col2 / - col1 AS col2 FROM tab0
----
0
query I rowsort
SELECT DISTINCT - col0 * - 62 AS col2 FROM tab1 AS cor0
----
186
3968
4960
onlyif mysql # use DIV operator for integer division
query I rowsort label-9798
SELECT ALL col1 DIV - ( col0 ) AS col2 FROM tab0 cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL col1 / - ( col0 ) AS col2 FROM tab0 cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT + + col2 + - 92 FROM tab2 AS cor0
----
-54
-65
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-9800
SELECT col0 DIV - ( col1 ) + col1 FROM tab1 cor0
----
26
4
7
skipif mysql # not compatible
query I rowsort label-9800
SELECT col0 / - ( col1 ) + col1 FROM tab1 cor0
----
26
4
7
query I rowsort
SELECT DISTINCT 5 AS col2 FROM tab1, tab1 AS cor0
----
5
query I rowsort
SELECT DISTINCT - + ( + col1 ) FROM tab2 cor0
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9803
SELECT cor1.col2 + - ( cor0.col0 ) DIV cor0.col0 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 65b80b2f439eddd73bf16797ae36daa3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9803
SELECT cor1.col2 + - ( cor0.col0 ) / cor0.col0 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 65b80b2f439eddd73bf16797ae36daa3
query I rowsort
SELECT ALL col2 * + ( col0 ) AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL ( - 62 ) FROM tab0
----
-62
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9806
SELECT - col1 * - col2 + - col0 DIV - col1 FROM tab2 AS cor0
----
1535
650
837
skipif mysql # not compatible
query I rowsort label-9806
SELECT - col1 * - col2 + - col0 / - col1 FROM tab2 AS cor0
----
1535
650
837
query I rowsort
SELECT 7 * cor0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c04b2beae9324a163a4bd04f20c3bb97
query I rowsort
SELECT col1 * 40 * - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-295873
-331322
-376361
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 * 36 col2 FROM tab2 AS cor0
----
-1764
-1764
-1764
query I rowsort
SELECT ALL + ( 74 ) + tab2.col2 * - ( col0 ) + - col0 AS col1 FROM tab2
----
-122
-2032
-3007
query I rowsort
SELECT + 32 + - cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b6ba64c61c7f186ddb684b88d1ab8c21
query I rowsort
SELECT - ( + cor0.col2 ) * + col2 + + col0 * 59 FROM tab1 AS cor0
----
-2739
-4496
527
query I rowsort
SELECT col2 + + 30 FROM tab2 AS cor0
----
56
57
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9814
SELECT CAST( NULL AS SIGNED ) / col2 + col0 * col1 + - col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9814
SELECT CAST ( NULL AS INTEGER ) / col2 + col0 * col1 + - col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col2 - + col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT ALL - + col2 + - cor0.col1 * - col1 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT + + col1 * ( col0 ) + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT - col2 * - ( - col1 ) + col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT + cor0.col2 + ( - ( col1 ) + col0 ) AS col2 FROM tab2 AS cor0
----
100
3
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-9820
SELECT DISTINCT + col0 * col1 DIV 3 FROM tab0 AS cor0
----
1131
2699
688
skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT + col0 * col1 / 3 FROM tab0 AS cor0
----
1131
2699
688
query I rowsort
SELECT DISTINCT 8 * - 2 AS col2 FROM tab2, tab0 AS cor0
----
-16
query I rowsort
SELECT ALL col1 * + 57 + - col1 FROM tab0 cor0
----
4816
5096
5432
query I rowsort
SELECT col1 * + col1 * tab1.col1 FROM tab1
----
1000
17576
2197
query I rowsort
SELECT + col1 + col2 + - col0 * col0 AS col1 FROM tab2 AS cor0
----
-5999
-6186
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9825
SELECT - - col2 DIV col1 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-160
-3643
-7673
skipif mysql # not compatible
query I rowsort label-9825
SELECT - - col2 / col1 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-160
-3643
-7673
query I rowsort
SELECT - col2 * + 99 FROM tab0
----
-3267
-8118
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-9827
SELECT - col2 + col2 DIV - col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-9827
SELECT - col2 + col2 / - col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + + ( + 9 ) * col1 FROM tab0 AS cor0
----
774
819
873
query I rowsort
SELECT DISTINCT 83 * + col1 FROM tab0 cor0
----
7138
7553
8051
query I rowsort
SELECT ALL 57 AS col0 FROM tab0 AS cor0
----
57
57
57
query I rowsort
SELECT 8 + - col1 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
-54
-54
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + - ( col2 ) * - cor0.col0 * - cor0.col1 col0 FROM tab1 AS cor0
----
-36423
-4158
-99744
query I rowsort
SELECT DISTINCT - 60 + + col2 FROM tab2 AS cor0
----
-22
-33
-34
query I rowsort
SELECT ALL col1 * - ( col1 ) FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT - col2 * ( col1 ) * col1 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT ALL + col2 * col2 - - ( col0 ) FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT - col0 * - ( 96 ) + + col0 FROM tab0 AS cor0
----
2328
3395
8633
query I rowsort
SELECT DISTINCT + ( cor1.col0 ) * - cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d6e251a4a6d3e8483c15062bde9b3abb
query I rowsort
SELECT ALL + 38 + col2 AS col0 FROM tab2
----
64
65
76
query I rowsort
SELECT - 21 FROM tab2, tab1 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9841
SELECT + col2 * CAST( col1 * + col2 AS SIGNED ) AS col1 FROM tab1
----
119808
32490
75816
skipif mysql # not compatible
query I rowsort label-9841
SELECT + col2 * CAST ( col1 * + col2 AS INTEGER ) AS col1 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT col1 + - 74 FROM tab0
----
12
17
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-9843
SELECT tab1.col0 * - 62 + col2 DIV col1 AS col0 FROM tab1
----
-184
-3963
-4953
skipif mysql # not compatible
query I rowsort label-9843
SELECT tab1.col0 * - 62 + col2 / col1 AS col0 FROM tab1
----
-184
-3963
-4953
query I rowsort
SELECT col2 + ( + col2 ) AS col0 FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT + col1 + 97 FROM tab2 AS cor0
----
114
128
156
onlyif mysql # use DIV operator for integer division
query I rowsort label-9846
SELECT DISTINCT - + col0 DIV 79 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8098
skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT - + col0 / 79 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8098
query I rowsort
SELECT DISTINCT + + col2 * + 67 + cor0.col0 AS col1 FROM tab0 AS cor0
----
102
2235
5583
query I rowsort
SELECT ALL col2 * col2 + - cor0.col1 FROM tab0 AS cor0
----
-96
1003
6633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 66 col2 FROM tab2 AS cor0
----
28
39
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 col0 FROM tab0, tab0 cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 + + tab0.col0 - col0 col2 FROM tab0
----
23
23
23
query I rowsort
SELECT ALL + tab0.col2 + + col1 - + col0 * col1 FROM tab0
----
-1945
-3297
-7926
query I rowsort
SELECT ALL - col1 * + tab1.col1 - + col2 * col1 FROM tab1
----
-1417
-2080
-670
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * tab0.col0 col1 FROM tab0
----
1152
1680
4272
query I rowsort
SELECT DISTINCT - tab0.col1 AS col2 FROM tab0, tab2, tab0 cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 * col2 col2 FROM tab1 cor0
----
2919
3313
9296
query I rowsort
SELECT ALL - ( col2 ) * col0 * col2 AS col1 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT ALL + col0 - + ( col2 ) AS col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT ALL + col0 + col2 * - 50 FROM tab1 AS cor0
----
-2697
-2786
-4720
query I rowsort
SELECT ALL - - 30 * col0 AS col2 FROM tab0 AS cor0
----
1050
2670
720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 0 col2 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9862
SELECT ALL - 70 * col1 DIV 4 col2 FROM tab2 AS cor0
----
-1032
-297
-542
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL - 70 * col1 / 4 col2 FROM tab2 AS cor0
----
-1032
-297
-542
query I rowsort
SELECT - + 38 + + col2 AS col2 FROM tab1 AS cor0
----
16
19
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-9864
SELECT DISTINCT cor0.col1 * col1 DIV + 47 AS col0 FROM tab0 AS cor0
----
157
176
200
skipif mysql # not compatible
query I rowsort label-9864
SELECT DISTINCT cor0.col1 * col1 / + 47 AS col0 FROM tab0 AS cor0
----
157
176
200
query I rowsort
SELECT ALL + - col2 * col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + + 42 + + col1 AS col2 FROM tab2 AS cor0
----
101
59
73
query I rowsort
SELECT DISTINCT - + 3 - + col1 FROM tab2 AS cor0
----
-20
-34
-62
query I rowsort
SELECT DISTINCT - 62 * col2 AS col1 FROM tab0 AS cor0
----
-2046
-5084
-62
query I rowsort
SELECT DISTINCT - 62 * + col2 AS col2 FROM tab1 AS cor0
----
-3348
-3534
-5952
query I rowsort
SELECT - + 11 - col2 FROM tab2 AS cor0
----
-37
-38
-49
query I rowsort
SELECT - 66 * col0 - col2 FROM tab0 AS cor0
----
-1617
-2311
-5956
query I rowsort
SELECT ALL col2 + + col1 * + ( ( col2 ) ) AS col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT - + col0 * col1 + - col2 AS col0 FROM tab2 cor0
----
-1381
-244
-4628
query I rowsort
SELECT ALL col1 * col2 - 86 AS col1 FROM tab0 AS cor0
----
11
2752
7376
onlyif mysql # use DIV operator for integer division
query I rowsort label-9875
SELECT + col1 DIV + tab2.col0 AS col2 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-9875
SELECT + col1 / + tab2.col0 AS col2 FROM tab2
----
0
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9876
SELECT col1 DIV - tab0.col0 AS col1 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-9876
SELECT col1 / - tab0.col0 AS col1 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT col2 + tab2.col0 + col0 FROM tab2
----
182
196
41
query I rowsort
SELECT ALL - col1 * - col0 + col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT DISTINCT + ( + col0 ) * ( - col2 * tab0.col1 ) AS col1 FROM tab0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-9880
SELECT + - col2 * col2 DIV col1 FROM tab0 AS cor0
----
-12
-73
0
skipif mysql # not compatible
query I rowsort label-9880
SELECT + - col2 * col2 / col1 FROM tab0 AS cor0
----
-12
-73
0
query I rowsort
SELECT ALL - + 90 FROM tab0 cor0
----
-90
-90
-90
query I rowsort
SELECT DISTINCT + 27 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1593
-459
-837
query I rowsort
SELECT + cor0.col1 * + 0 * 71 + + col0 + + ( col2 + - col1 ) FROM tab1 AS cor0
----
111
163
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9884
SELECT + - col1 * - CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-9884
SELECT + - col1 * - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-9885
SELECT + + col0 * cor0.col1 DIV - 94 FROM tab1 AS cor0
----
-11
-6
0
skipif mysql # not compatible
query I rowsort label-9885
SELECT + + col0 * cor0.col1 / - 94 FROM tab1 AS cor0
----
-11
-6
0
query I rowsort
SELECT - col1 * + col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT cor0.col1 * - ( + col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-9889
SELECT DISTINCT col2 DIV + col1 AS col2 FROM tab2 cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT col2 / + col1 AS col2 FROM tab2 cor0
----
0
2
query I rowsort
SELECT col2 + col1 * + col1 + + col0 FROM tab1 AS cor0
----
221
345
733
query I rowsort
SELECT - - col1 * cor0.col0 + + ( - col2 ) FROM tab2 AS cor0
----
1305
190
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 * col2 + + 55 col1 FROM tab2
----
1329
1378
1917
query I rowsort
SELECT DISTINCT col2 * + col2 + - col2 + - 96 FROM tab0
----
-96
6546
960
query I rowsort
SELECT ALL col2 * col0 + + ( col0 ) + tab2.col0 FROM tab2
----
203
2184
3160
query I rowsort
SELECT DISTINCT + col0 * col1 + + col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT - cor0.col1 * + 15 FROM tab1 AS cor0
----
-150
-195
-390
query I rowsort
SELECT DISTINCT - 71 FROM tab0, tab1, tab1 AS cor0
----
-71
query I rowsort
SELECT ALL - 53 * cor0.col0 + - col0 FROM tab1 AS cor0
----
-162
-3456
-4320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + - col1 - col2 * - col1 col0 FROM tab0 AS cor0
----
-97
2666
7280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL 50 + + ( + col0 ) + col2 AS col0 FROM tab1 AS cor0
----
107
171
226
query I rowsort
SELECT ALL col2 + col1 * col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT + - col1 * + col0 + - col2 * col1 FROM tab1 AS cor0
----
-1210
-1482
-2288
query I rowsort
SELECT ALL cor0.col1 * col1 + + col1 FROM tab2 cor0
----
306
3540
992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * + col0 * col1 + col1 * + col1 col2 FROM tab0 AS cor0
----
128234
56932
729092
query I rowsort
SELECT ALL - 27 * - 90 AS col2 FROM tab1 AS cor0
----
2430
2430
2430
query I rowsort
SELECT DISTINCT - - col2 * - col2 + - col0 AS col2 FROM tab2 cor0
----
-1523
-736
-754
query I rowsort
SELECT ALL col1 + col0 * + col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT 55 + col0 * + cor0.col0 FROM tab0 AS cor0
----
1280
631
7976
query I rowsort
SELECT - 41 AS col1 FROM tab1 AS cor0
----
-41
-41
-41
query I rowsort
SELECT ALL + ( col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + col2 + - tab1.col1 AS col0 FROM tab1
----
28
47
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9913
SELECT ALL + ( + 49 ) * + col1 + CAST( NULL AS SIGNED ) * - col2 + + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL + ( + 49 ) * + col1 + CAST ( NULL AS INTEGER ) * - col2 + + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + col2 * col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9915
SELECT - CAST( - col0 AS SIGNED ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-9915
SELECT - CAST ( - col0 AS INTEGER ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + 5 * + cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to e4de40046bb830b4728dcdf4e36fee20
query I rowsort
SELECT - ( - cor0.col0 ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT 55 * + col0 * + tab0.col1 FROM tab0
----
113520
186725
445445
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( cor0.col0 ) * col0 + + cor0.col2 col1 FROM tab1 AS cor0
----
-4039
-6304
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + tab2.col1 * CAST ( 52 AS REAL ) + tab2.col2 col2 FROM tab2
----
1639
3094
922
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9921
SELECT + cor0.col1 * - col0 + cor0.col0 + col0 * - CAST( col0 + - cor0.col0 AS SIGNED ) FROM tab1 AS cor0
----
-576
-75
-960
skipif mysql # not compatible
query I rowsort label-9921
SELECT + cor0.col1 * - col0 + cor0.col0 + col0 * - CAST ( col0 + - cor0.col0 AS INTEGER ) FROM tab1 AS cor0
----
-576
-75
-960
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2, tab2 cor2
----
3645 values hashing to 7e572cf6967c395d92dce41dcb35c4db
query I rowsort
SELECT col0 * - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT col2 * ( + 53 ) + - col2 * 85 + col2 AS col0 FROM tab0
----
-1023
-2542
-31
query I rowsort
SELECT DISTINCT + col2 * + 18 + col1 + + col1 * - 38 FROM tab1
----
10
1247
656
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT - + cor0.col2 * col1 + col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL - 79 AS col0 FROM tab0 AS cor0
----
-79
-79
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-9929
SELECT ALL - col2 + col0 * col2 DIV + ( col0 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL - col2 + col0 * col2 / + ( col0 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 84 AS col1 FROM tab2 AS cor0
----
84
query I rowsort
SELECT ALL - 90 + - col0 * col2 FROM tab2 AS cor0
----
-2118
-279
-3092
query I rowsort
SELECT ALL + - cor0.col1 AS col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT - + 93 * col0 FROM tab0 AS cor0
----
-2232
-3255
-8277
query I rowsort
SELECT ALL - col0 * + 72 FROM tab1
----
-216
-4608
-5760
query I rowsort
SELECT ALL + tab1.col2 * - col2 AS col0 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT - + col2 + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + 69 * col0 + + col1 FROM tab2 cor0
----
514
5441
5468
query I rowsort
SELECT - ( col1 ) + 41 FROM tab1 AS cor0
----
15
28
31
query I rowsort
SELECT col1 - - col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT 11 + col0 + col2 AS col0 FROM tab0
----
182
47
68
query I rowsort
SELECT ALL + ( col0 * col0 ) AS col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT - + 51 FROM tab2 cor0
----
-51
-51
-51
query I rowsort
SELECT ALL 67 * tab1.col2 + col2 AS col1 FROM tab1
----
3672
3876
6528
query I rowsort
SELECT - - tab0.col2 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL col1 + col1 + - col1 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL + 78 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT col1 * + col0 + + cor0.col1 + + cor0.col2 * col0 FROM tab1 AS cor0
----
266
4298
8733
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9948
SELECT - + col2 * + col1 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9948
SELECT - + col2 * + col1 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * + 50 + col0 FROM tab0 cor0
----
1674
4189
85
query I rowsort
SELECT ALL - + col2 * - 67 + cor0.col2 AS col2 FROM tab1 AS cor0
----
3672
3876
6528
query I rowsort
SELECT DISTINCT - col1 - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT - 35 AS col1 FROM tab1
----
-35
-35
-35
query I rowsort
SELECT DISTINCT - cor0.col0 + ( col1 ) FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - col2 * + 45 * + col1 + + col0 AS col2 FROM tab0 AS cor0
----
-127686
-335701
-4330
query I rowsort
SELECT ALL - + col0 * + ( cor0.col0 ) + cor0.col1 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT + col1 * ( + col0 ) - - col2 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - - cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - col0 * ( - col2 ) AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL cor0.col2 + - ( - cor0.col2 ) AS col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL - col0 + + col1 * - cor0.col2 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL 23 - tab0.col1 FROM tab0
----
-63
-68
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-9962
SELECT ALL - col1 - tab1.col1 DIV + col1 FROM tab1
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL - col1 - tab1.col1 / + col1 FROM tab1
----
-11
-14
-27
query I rowsort
SELECT 47 * col0 FROM tab1
----
141
3008
3760
query I rowsort
SELECT col0 + 14 * col2 FROM tab2
----
385
442
611
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9965
SELECT DISTINCT col1 + CAST( - col0 + col0 AS SIGNED ) * + 56 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9965
SELECT DISTINCT col1 + CAST ( - col0 + col0 AS INTEGER ) * + 56 FROM tab0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9966
SELECT DISTINCT + + col1 * - CAST( NULL AS DECIMAL ) + - ( - col2 ) / col1 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9966
SELECT DISTINCT + + col1 * - CAST ( NULL AS REAL ) + - ( - col2 ) / col1 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort
SELECT + col2 + + CAST ( + col0 + cor0.col1 AS REAL ) * - 88 AS col0 FROM tab0 cor0
----
-11615
-15758
-9647
query I rowsort
SELECT + col1 + - 9 AS col2 FROM tab2 AS cor0
----
22
50
8
query I rowsort
SELECT ALL cor0.col0 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + + col0 + ( - col0 ) + col0 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - col0 + - col0 * - col2 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT - cor0.col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT ALL - col2 - col0 * + 41 AS col1 FROM tab1
----
-177
-2681
-3376
query I rowsort
SELECT ALL 64 - + col0 FROM tab1
----
-16
0
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-9975
SELECT ALL col1 DIV col1 - col1 col2 FROM tab0
----
-85
-90
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL col1 / col1 - col1 col2 FROM tab0
----
-85
-90
-96
query I rowsort
SELECT DISTINCT - col1 + + col1 * col1 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT + 85 AS col2 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + col0 * col0 + + CAST ( col1 AS REAL ) + + col0 * + col2 FROM tab1 AS cor0
----
-438
1293
179
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + 52 * - col1 * col1 col2 FROM tab0 AS cor0
----
-382528
-422513
-485873
query I rowsort
SELECT ALL - - 55 FROM tab2 cor0
----
55
55
55
query I rowsort
SELECT DISTINCT + col1 + - col1 * - cor0.col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL - col2 * + col1 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT - ( col0 ) + col0 * + col1 AS col0 FROM tab1 AS cor0
----
576
75
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-9984
SELECT DISTINCT - - cor0.col2 DIV 97 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT - - cor0.col2 / 97 AS col2 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9985
SELECT - col0 DIV + 37 + - cor0.col1 * col1 * + cor0.col1 FROM tab1 AS cor0
----
-1001
-17576
-2199
skipif mysql # not compatible
query I rowsort label-9985
SELECT - col0 / + 37 + - cor0.col1 * col1 * + cor0.col1 FROM tab1 AS cor0
----
-1001
-17576
-2199
query I rowsort
SELECT + 97 * - col0 + + col0 FROM tab1 AS cor0
----
-288
-6144
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9987
SELECT CAST( col0 AS SIGNED ) + col0 + - col0 AS col1 FROM tab2 cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-9987
SELECT CAST ( col0 AS INTEGER ) + col0 + - col0 AS col1 FROM tab2 cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-9988
SELECT col0 + col2 DIV col1 col0 FROM tab0 cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9988
SELECT col0 + col2 / col1 col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT col1 - col2 * + 28 FROM tab1
----
-1486
-1586
-2675
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9990
SELECT DISTINCT + tab2.col1 * + CAST( col1 AS SIGNED ) + col0 - CAST( NULL AS SIGNED ) * + tab2.col1 AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT + tab2.col1 * + CAST ( col1 AS INTEGER ) + col0 - CAST ( NULL AS INTEGER ) * + tab2.col1 AS col1 FROM tab2
----
NULL
query I rowsort
SELECT ALL 13 * - col0 + col1 FROM tab1 AS cor0
----
-1027
-13
-822
query I rowsort
SELECT DISTINCT cor0.col2 * col1 + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-9993
SELECT ALL - cor0.col2 + + col1 DIV col0 AS col0 FROM tab2 AS cor0
----
-23
-26
-38
skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL - cor0.col2 + + col1 / col0 AS col0 FROM tab2 AS cor0
----
-23
-26
-38
query I rowsort
SELECT ALL + - 79 + col2 AS col0 FROM tab2 AS cor0
----
-41
-52
-53
query I rowsort
SELECT 31 * 2 + + cor0.col2 + + col1 AS col1 FROM tab0 cor0
----
160
181
235
onlyif mysql # use DIV operator for integer division
query I rowsort label-9996
SELECT DISTINCT - + col0 DIV - 99 col0 FROM tab2 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT - + col0 / - 99 col0 FROM tab2 cor0
----
0
query I rowsort
SELECT ALL + 47 AS col2 FROM tab2 cor0
----
47
47
47
query I rowsort
SELECT + col2 * col0 + 7 + col0 * - col2 AS col0 FROM tab1 AS cor0
----
7
7
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9999
SELECT - - 14 + col2 / - CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9999
SELECT - - 14 + col2 / - CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL