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)
query I rowsort
SELECT cor0.col0 * - ( + col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - - col2 + - col0 * col2 + - col0 AS col1 FROM tab1 AS cor0
----
-111
-3655
-7664
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 38 col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3
onlyif mysql # use DIV operator for integer division
query I rowsort label-3
SELECT DISTINCT + col0 DIV col2 AS col0 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-3
SELECT DISTINCT + col0 / col2 AS col0 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT + cor0.col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5
SELECT + CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5
SELECT + CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6
SELECT col1 + + col0 * - col2 + col0 * ( - col2 + CAST( NULL AS SIGNED ) ) / col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6
SELECT col1 + + col0 * - col2 + col0 * ( - col2 + CAST ( NULL AS INTEGER ) ) / col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + ( + col2 * 10 ) FROM tab2
----
286
297
418
query I rowsort
SELECT 60 * + col1 AS col1 FROM tab1
----
1560
600
780
query I rowsort
SELECT + ( col1 ) + - col1 * - col2 + - tab1.col1 AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT col0 * + 87 AS col1 FROM tab2
----
609
6786
6873
query I rowsort
SELECT col0 * col0 - col2 FROM tab1 AS cor0
----
-45
4039
6304
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-12
SELECT ALL - CAST( NULL AS SIGNED ) + 19 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-12
SELECT ALL - CAST ( NULL AS INTEGER ) + 19 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-13
SELECT CAST( NULL AS SIGNED ) + 41 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-13
SELECT CAST ( NULL AS INTEGER ) + 41 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 55 * col2 * + col0 + + col2 FROM tab1 AS cor0
----
-200583
-422304
-8856
query I rowsort
SELECT ALL cor0.col1 * + col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - 40 * col1 AS col0 FROM tab2 AS cor0
----
-1240
-2360
-680
query I rowsort
SELECT - col0 - + cor0.col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL + ( - col0 ) * col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - 34 + + cor0.col1 FROM tab0 AS cor0
----
52
57
63
query I rowsort
SELECT 35 + col1 + + col0 AS col1 FROM tab1 AS cor0
----
109
128
64
query I rowsort
SELECT ALL - 96 FROM tab2, tab0 cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539
query I rowsort
SELECT ALL ( + col0 ) * + tab1.col0 + col0 FROM tab1
----
12
4160
6480
query I rowsort
SELECT ALL + tab2.col1 + col1 + + col1 FROM tab2
----
177
51
93
query I rowsort
SELECT ALL + cor0.col0 + ( col1 ) * - col0 + 44 FROM tab1 AS cor0
----
-31
-532
-916
onlyif mysql # use DIV operator for integer division
query I rowsort label-25
SELECT ALL - col0 * ( col1 ) + col0 DIV col0 FROM tab0 AS cor0
----
-2063
-3394
-8098
skipif mysql # not compatible
query I rowsort label-25
SELECT ALL - col0 * ( col1 ) + col0 / col0 FROM tab0 AS cor0
----
-2063
-3394
-8098
query I rowsort
SELECT + col1 * 67 FROM tab1 AS cor0
----
1742
670
871
query I rowsort
SELECT ALL + col2 * - col2 + 34 * - col1 * - col0 FROM tab0 AS cor0
----
115429
268642
69087
query I rowsort
SELECT col0 + - col1 * ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-29
SELECT DISTINCT - - col0 * col0 DIV ( - col2 ) + ( + col0 ) + col1 FROM tab0 AS cor0
----
-1093
84
93
skipif mysql # not compatible
query I rowsort label-29
SELECT DISTINCT - - col0 * col0 / ( - col2 ) + ( + col0 ) + col1 FROM tab0 AS cor0
----
-1093
84
93
query I rowsort
SELECT ALL cor0.col2 * 42 AS col0 FROM tab2 AS cor0
----
1092
1134
1596
query I rowsort
SELECT + col2 * - ( 26 ) + - tab0.col0 AS col0 FROM tab0
----
-2221
-61
-882
query I rowsort
SELECT - + 27 * col2 - - col0 AS col2 FROM tab2 AS cor0
----
-624
-722
-947
query I rowsort
SELECT 39 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT - ( - col0 ) * col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-35
SELECT - CAST( NULL AS SIGNED ) + cor0.col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-35
SELECT - CAST ( NULL AS INTEGER ) + cor0.col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + 21 * - col2 FROM tab1 AS cor0
----
-1080
-1140
-1920
query I rowsort
SELECT + + col0 + 46 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
1542
3861
81
query I rowsort
SELECT ALL + col1 * 36 FROM tab2
----
1116
2124
612
query I rowsort
SELECT ALL + 85 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT + - col2 + 95 FROM tab0 cor0
----
13
62
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-41
SELECT ALL CAST( col2 AS SIGNED ) * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-41
SELECT ALL CAST ( col2 AS INTEGER ) * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + + 12 AS col2 FROM tab0 AS cor0
----
12
query I rowsort
SELECT + 58 * cor0.col0 FROM tab0 AS cor0
----
1392
2030
5162
onlyif mysql # use DIV operator for integer division
query I rowsort label-44
SELECT ALL - col0 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-44
SELECT ALL - col0 / cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT cor0.col2 + 47 FROM tab0 AS cor0
----
129
48
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-46
SELECT ALL + col2 * - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-46
SELECT ALL + col2 * - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + 47 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
query I rowsort
SELECT + 3 + - col2 + - 98 AS col0 FROM tab1 AS cor0
----
-149
-152
-191
onlyif mysql # use DIV operator for integer division
query I rowsort label-49
SELECT ALL col1 DIV col1 + 56 AS col2 FROM tab2 AS cor0
----
57
57
57
skipif mysql # not compatible
query I rowsort label-49
SELECT ALL col1 / col1 + 56 AS col2 FROM tab2 AS cor0
----
57
57
57
query I rowsort
SELECT - - col0 * col2 * - col2 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT 18 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
468
486
684
onlyif mysql # use DIV operator for integer division
query I rowsort label-52
SELECT ALL - col1 DIV + col2 + - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-52
SELECT ALL - col1 / + col2 + - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT col2 + tab1.col1 * 80 * 4 AS col2 FROM tab1
----
3257
4256
8374
query I rowsort
SELECT 12 * + col2 * 48 AS col0 FROM tab1
----
31104
32832
55296
query I rowsort
SELECT col2 * 76 AS col2 FROM tab0 AS cor0
----
2508
6232
76
query I rowsort
SELECT ALL - col1 + - 51 FROM tab0 AS cor0
----
-137
-142
-148
query I rowsort
SELECT - cor0.col1 * 21 AS col1 FROM tab0 AS cor0
----
-1806
-1911
-2037
query I rowsort
SELECT ALL + col0 + - 89 AS col1 FROM tab0 AS cor0
----
-54
-65
0
query I rowsort
SELECT + - 82 FROM tab2 AS cor0
----
-82
-82
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-60
SELECT - - col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-60
SELECT - - col1 / - col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT cor0.col2 - + col2 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - + ( - col1 ) * col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT col2 * - 70 AS col0 FROM tab1 AS cor0
----
-3780
-3990
-6720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + 75 * col1 col1 FROM tab2 AS cor0
----
1292
2356
4484
onlyif mysql # use DIV operator for integer division
query I rowsort label-65
SELECT + cor0.col2 DIV cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 1cd643253f19b663914c5dbb8be19829
skipif mysql # not compatible
query I rowsort label-65
SELECT + cor0.col2 / cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 1cd643253f19b663914c5dbb8be19829
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-66
SELECT - col2 * - ( col2 * + CAST( + col0 AS SIGNED ) ) + col1 AS col2 FROM tab0 AS cor0
----
132
26222
598527
skipif mysql # not compatible
query I rowsort label-66
SELECT - col2 * - ( col2 * + CAST ( + col0 AS INTEGER ) ) + col1 AS col2 FROM tab0 AS cor0
----
132
26222
598527
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT 4 AS col1 FROM tab2, tab0, tab2 cor0, tab1
----
81 values hashing to 3347a3237b37ed63205e9440d8818a46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-69
SELECT CAST( - ( col1 ) AS SIGNED ) AS col1 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-69
SELECT CAST ( - ( col1 ) AS INTEGER ) AS col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT - ( - col1 ) AS col0 FROM tab0 cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-71
SELECT DISTINCT - 27 DIV col1 - + col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-80
skipif mysql # not compatible
query I rowsort label-71
SELECT DISTINCT - 27 / col1 - + col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-72
SELECT - + col2 + - col2 DIV col0 AS col0 FROM tab1 AS cor0
----
-57
-72
-97
skipif mysql # not compatible
query I rowsort label-72
SELECT - + col2 + - col2 / col0 AS col0 FROM tab1 AS cor0
----
-57
-72
-97
query I rowsort
SELECT ALL - col2 * + col1 * col2 FROM tab1 cor0
----
-119808
-32490
-75816
query I rowsort
SELECT 0 + tab0.col2 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL + col0 + - col0 AS col2 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 6dd6930689f177711fda407b5ce0d072
query I rowsort
SELECT ALL - 59 + - tab1.col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 380947c57a59ea268258ec577b3dd10b
query I rowsort
SELECT + 6 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT DISTINCT - col1 * 70 FROM tab0
----
-6020
-6370
-6790
query I rowsort
SELECT + 84 * + col1 + - cor0.col0 * col2 FROM tab0 cor0
----
346
6432
8113
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + 76 col2 FROM tab1 AS cor0
----
-228
-4864
-6080
query I rowsort
SELECT + - 52 * - cor0.col2 + col0 FROM tab1 AS cor0
----
2811
3028
5072
onlyif mysql # use DIV operator for integer division
query I rowsort label-84
SELECT - - ( col2 ) DIV - cor0.col0 + - ( + col2 ) col0 FROM tab2 AS cor0
----
-26
-30
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-84
SELECT - - ( col2 ) / - cor0.col0 + - ( + col2 ) col0 FROM tab2 AS cor0
----
-26
-30
-38
query I rowsort
SELECT ALL + 15 AS col1 FROM tab1 AS cor0
----
15
15
15
query I rowsort
SELECT DISTINCT + - 68 FROM tab1 cor0
----
-68
query I rowsort
SELECT DISTINCT - col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - col0 * 22 AS col2 FROM tab0
----
-1958
-528
-770
query I rowsort
SELECT + 60 + col2 * cor0.col1 FROM tab2 AS cor0
----
1594
706
897
query I rowsort
SELECT + 73 + + col0 AS col0 FROM tab2 AS cor0
----
151
152
80
query I rowsort
SELECT ALL 58 * 56 FROM tab2 AS cor0
----
3248
3248
3248
query I rowsort
SELECT + ( 39 ) AS col1 FROM tab0 AS cor0
----
39
39
39
query I rowsort
SELECT DISTINCT col0 * ( col1 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col2 + - 82 AS col1 FROM tab0
----
-49
-81
0
query I rowsort
SELECT DISTINCT + 55 AS col2 FROM tab2, tab2 AS cor0
----
55
query I rowsort
SELECT ALL 59 + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f28c3a819d0a67f3bbbf21d5c770f467
onlyif mysql # use DIV operator for integer division
query I rowsort label-97
SELECT + col1 DIV ( - col2 ) FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-97
SELECT + col1 / ( - col2 ) FROM tab0
----
-1
-2
-97
query I rowsort
SELECT ALL + col1 * ( col2 ) + cor0.col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT tab1.col0 * - col2 * + tab1.col1 AS col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT - 87 * - 15 AS col2 FROM tab2 AS cor0
----
1305
1305
1305
query I rowsort
SELECT ALL 74 * - cor0.col1 * col1 + ( 37 ) AS col1 FROM tab1 cor0
----
-12469
-49987
-7363
query I rowsort
SELECT DISTINCT - - col2 * + col1 - - col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - - 29 * col2 * cor0.col2 FROM tab0 AS cor0
----
194996
29
31581
query I rowsort
SELECT ALL + cor0.col2 * 53 + col2 FROM tab1 cor0
----
2916
3078
5184
query I rowsort
SELECT DISTINCT 2 + col0 FROM tab0 AS cor0
----
26
37
91
query I rowsort
SELECT col1 * col2 + col1 AS col2 FROM tab0
----
194
2924
7553
query I rowsort
SELECT + col1 * - col1 + tab0.col2 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT DISTINCT + cor0.col1 * - col2 AS col2 FROM tab0 cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + - col1 col1 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT + cor0.col0 * + cor0.col2 + + ( - cor0.col2 ) AS col0 FROM tab2 cor0
----
162
2002
2964
query I rowsort
SELECT + cor0.col2 + + col1 + + 44 AS col1 FROM tab0 AS cor0
----
142
163
217
onlyif mysql # use DIV operator for integer division
query I rowsort label-112
SELECT ALL - col1 DIV + col0 - col0 FROM tab0 AS cor0
----
-27
-37
-90
skipif mysql # not compatible
query I rowsort label-112
SELECT ALL - col1 / + col0 - col0 FROM tab0 AS cor0
----
-27
-37
-90
query I rowsort
SELECT DISTINCT - col1 * - cor0.col2 * col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT + + col1 * + col1 + + col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT ALL col1 + cor0.col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698
onlyif mysql # use DIV operator for integer division
query I rowsort label-116
SELECT ALL + + col2 + ( col1 ) DIV + col1 - ( - col1 + + col1 ) * col1 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-116
SELECT ALL + + col2 + ( col1 ) / + col1 - ( - col1 + + col1 ) * col1 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT ALL - - col0 + - col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL - - col0 + 89 FROM tab0 cor0
----
113
124
178
query I rowsort
SELECT + col1 + ( col2 ) * cor0.col1 * ( + 33 ) FROM tab0 AS cor0
----
246337
3298
93740
query I rowsort
SELECT ALL + + col0 * + 49 FROM tab0 cor0
----
1176
1715
4361
query I rowsort
SELECT 24 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT - col0 * + cor0.col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT + + col1 * + 2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + - col1 * - 43 AS col0 FROM tab0 AS cor0
----
3698
3913
4171
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-125
SELECT + col1 * CAST( + 21 AS SIGNED ) FROM tab2 AS cor0
----
1239
357
651
skipif mysql # not compatible
query I rowsort label-125
SELECT + col1 * CAST ( + 21 AS INTEGER ) FROM tab2 AS cor0
----
1239
357
651
query I rowsort
SELECT col2 * ( col1 ) FROM tab1
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-127
SELECT ALL col2 + CAST( - 52 AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
-1326
-1377
-1938
skipif mysql # not compatible
query I rowsort label-127
SELECT ALL col2 + CAST ( - 52 AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
-1326
-1377
-1938
query I rowsort
SELECT - col2 * 22 AS col2 FROM tab2
----
-572
-594
-836
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-129
SELECT + col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-129
SELECT + col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - ( col0 ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT 47 * - 81 FROM tab1 AS cor0
----
-3807
-3807
-3807
query I rowsort
SELECT + 24 + 99 FROM tab2 AS cor0
----
123
123
123
query I rowsort
SELECT - col1 * - cor0.col1 + col0 FROM tab1 cor0
----
164
249
679
query I rowsort
SELECT col1 + - 51 * - col1 AS col2 FROM tab2
----
1612
3068
884
query I rowsort
SELECT DISTINCT ( 85 ) AS col1 FROM tab1, tab2 cor0
----
85
query I rowsort
SELECT ALL + col1 * - col2 AS col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT - - col1 * col1 - col0 AS col1 FROM tab2 AS cor0
----
210
3403
954
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col1 + - ( col1 ) + + col1 col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + 77 + - col0 AS col0 FROM tab1 AS cor0
----
-3
13
74
query I rowsort
SELECT DISTINCT - + 77 + col1 AS col2 FROM tab2 cor0
----
-18
-46
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 * + col2 + ( + col0 ) + col2 * + col1 col0 FROM tab1 AS cor0
----
-3399
-4439
-7216
query I rowsort
SELECT DISTINCT - cor0.col1 + + cor0.col1 * + cor0.col2 FROM tab1 AS cor0
----
1235
1378
560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - tab1.col2 col2 FROM tab1
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-144
SELECT DISTINCT ( ( - col2 ) ) * CAST( NULL AS SIGNED ) + 29 * + tab0.col2 * col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-144
SELECT DISTINCT ( ( - col2 ) ) * CAST ( NULL AS INTEGER ) + 29 * + tab0.col2 * col1 FROM tab0
----
NULL
query I rowsort
SELECT - col1 * - 29 AS col2 FROM tab1
----
290
377
754
query I rowsort
SELECT - - col2 + - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT DISTINCT 11 + col1 + + col1 * - 42 AS col1 FROM tab1 AS cor0
----
-1055
-399
-522
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-148
SELECT ALL cor0.col2 + + col0 - CAST( NULL AS DECIMAL ) / 33 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-148
SELECT ALL cor0.col2 + + col0 - CAST ( NULL AS REAL ) / 33 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 90 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-107
-121
-149
query I rowsort
SELECT ALL - 61 * col1 - - col2 FROM tab2 AS cor0
----
-1864
-3573
-999
query I rowsort
SELECT DISTINCT - + col0 + + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + - 72 + + 6 AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a
query I rowsort
SELECT DISTINCT - col1 * + col1 * - col2 AS col2 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT + col1 * col1 + col0 FROM tab0
----
7420
8370
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-155
SELECT DISTINCT - tab1.col1 DIV col1 + + col0 * - col1 col2 FROM tab1
----
-1041
-641
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-155
SELECT DISTINCT - tab1.col1 / col1 + + col0 * - col1 col2 FROM tab1
----
-1041
-641
-79
query I rowsort
SELECT + - col1 * + cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL col0 * col2 * - col1 AS col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT + - cor0.col2 * + cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL cor0.col0 * + col1 * + col0 AS col1 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT DISTINCT col0 * col0 + + col2 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT - col0 * - col2 - + col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT + tab1.col2 * + tab1.col1 AS col1 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-163
SELECT + - cor0.col1 + - col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-163
SELECT + - cor0.col1 + - col1 / + col1 AS col0 FROM tab0 AS cor0
----
-87
-92
-98
query I rowsort
SELECT + col0 * col2 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - 15 + + col0 * col0 AS col1 FROM tab2 AS cor0
----
34
6069
6226
query I rowsort
SELECT + col2 + col0 * col1 * col1 AS col0 FROM tab2 cor0
----
22869
271544
6754
query I rowsort
SELECT + - 18 + col1 FROM tab0 AS cor0
----
68
73
79
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-169
SELECT + cor0.col1 DIV col2 + - col1 AS col0 FROM tab1 cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-169
SELECT + cor0.col1 / col2 + - col1 AS col0 FROM tab1 cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-170
SELECT + - col0 DIV col1 + + col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-170
SELECT + - col0 / col1 + + col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col0 + - tab0.col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT col1 * col2 FROM tab0 WHERE NULL <= ( col2 )
----
query I rowsort
SELECT ALL col1 * - col2 * col1 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT col0 * - col1 + - col0 FROM tab0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL - tab1.col0 * + col1 + tab1.col2 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT + col1 + col2 - + col0 * col2 AS col1 FROM tab0
----
-673
-7125
63
query I rowsort
SELECT col1 * + tab2.col0 + col0 AS col2 FROM tab2
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-178
SELECT col1 DIV col1 - - col0 * col1 FROM tab0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-178
SELECT col1 / col1 - - col0 * col1 FROM tab0
----
2065
3396
8100
onlyif mysql # use DIV operator for integer division
query I rowsort label-179
SELECT ALL col2 DIV + col0 - col1 AS col0 FROM tab2
----
-17
-28
-59
skipif mysql # not compatible
query I rowsort label-179
SELECT ALL col2 / + col0 - col1 AS col0 FROM tab2
----
-17
-28
-59
query I rowsort
SELECT col2 * tab0.col1 + - col1 AS col2 FROM tab0
----
0
2752
7371
query I rowsort
SELECT DISTINCT - col0 * - col0 + - col1 AS col0 FROM tab1
----
-17
4086
6387
onlyif mysql # use DIV operator for integer division
query I rowsort label-182
SELECT + col2 DIV - col2 + + col0 * col2 AS col0 FROM tab0
----
34
7297
791
skipif mysql # not compatible
query I rowsort label-182
SELECT + col2 / - col2 + + col0 * col2 AS col0 FROM tab0
----
34
7297
791
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 * col2 - col1 col0 FROM tab1 WHERE NOT col0 <= NULL
----
query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT - col2 IN ( col1 + tab2.col1 * col0 )
----
26
27
38
query I rowsort
SELECT DISTINCT + col0 * col2 + - col2 * col2 AS col0 FROM tab1
----
-1536
-2754
399
query I rowsort
SELECT col0 * + col0 FROM tab2 WHERE ( - col1 ) = col0 * + col1
----
query I rowsort
SELECT DISTINCT col0 + - col2 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + col1 + col2 * col0 / - col1 FROM tab1 WHERE NOT ( NULL ) <> ( NULL )
----
query I rowsort
SELECT ALL col1 + tab2.col2 * col0 + - col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT col1 * - col2 + - col2 * + col2 FROM tab0
----
-14186
-3927
-98
query I rowsort
SELECT DISTINCT + col1 - col1 * col1 AS col1 FROM tab1
----
-156
-650
-90
query I rowsort
SELECT - col1 * col0 * + tab2.col1 FROM tab2
----
-22831
-271518
-6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-193
SELECT col1 + - col2 DIV - col2 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-193
SELECT col1 + - col2 / - col2 FROM tab0
----
87
92
98
query I rowsort
SELECT DISTINCT + col2 * + col2 * col2 AS col1 FROM tab1
----
157464
185193
884736
onlyif mysql # use DIV operator for integer division
query I rowsort label-195
SELECT DISTINCT - col2 DIV + col1 + col0 + col0 AS col1 FROM tab0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-195
SELECT DISTINCT - col2 / + col1 + col0 + col0 AS col1 FROM tab0
----
178
48
70
query I rowsort
SELECT DISTINCT tab2.col1 + - col0 + + col1 FROM tab2
----
-45
40
55
query I rowsort
SELECT ALL - col2 * col1 * col1 AS col1 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT col0 + + col1 * - col2 * + col1 AS col1 FROM tab1
----
-16144
-36501
-5636
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > NULL
----
query I rowsort
SELECT ALL col1 * col0 + + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL col0 * cor0.col0 + + cor0.col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----
query I rowsort
SELECT ALL tab1.col2 * + tab1.col2 * - col0 AS col2 FROM tab1
----
-207936
-737280
-8748
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * col1 - - col0 / tab1.col0 <> ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT tab1.col1 * col0 + col2 * + col2 * col2 + col2 FROM tab1
----
157596
185890
885872
query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + col1 )
----
query I rowsort
SELECT col1 * - col1 * col2 + - col1 FROM tab0
----
-244154
-679133
-9506
query I rowsort
SELECT ALL + col2 * col1 + + tab1.col1 + col1 FROM tab1
----
1274
1456
590
query I rowsort
SELECT col0 + + col1 + - col1 * + col2 AS col1 FROM tab1
----
-1155
-1375
-496
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 IN ( + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT DISTINCT col1 * col0 * - col0 + + cor0.col2 FROM tab2 AS cor0
----
-106059
-1492
-358930
query I rowsort
SELECT ALL + col0 * - col0 + - col0 AS col0 FROM tab2
----
-56
-6162
-6320
query I rowsort
SELECT + col2 + col2 * col1 * col2 FROM tab0
----
611966
93687
98
query I rowsort
SELECT DISTINCT col1 + col1 FROM tab1 AS cor0 WHERE col0 >= NULL
----
query I rowsort
SELECT ALL + + col1 + col1 * 77 AS col2 FROM tab0 AS cor0
----
6708
7098
7566
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 col1 FROM tab0 AS cor0
----
43
43
43
query I rowsort
SELECT ALL - - 95 AS col1 FROM tab0 AS cor0
----
95
95
95
query I rowsort
SELECT ALL - 82 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0
query I rowsort
SELECT DISTINCT + + col1 + + col1 * col0 AS col2 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL - 14 * col2 - ( ( cor0.col2 ) ) * - ( - ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
-1368
-2160
-2592
onlyif mysql # use DIV operator for integer division
query I rowsort label-221
SELECT DISTINCT col2 DIV - col2 + + 11 FROM tab1
----
10
skipif mysql # not compatible
query I rowsort label-221
SELECT DISTINCT col2 / - col2 + + 11 FROM tab1
----
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - col2 col1 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-223
SELECT - CAST( NULL AS SIGNED ) + 10 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-223
SELECT - CAST ( NULL AS INTEGER ) + 10 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-224
SELECT DISTINCT col0 DIV + col2 + col0 col1 FROM tab0
----
24
70
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT col0 / + col2 + col0 col1 FROM tab0
----
24
70
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + tab0.col2 * col1 col0 FROM tab0
----
2871
7544
98
query I rowsort
SELECT DISTINCT - 9 * + col0 AS col2 FROM tab1 AS cor0
----
-27
-576
-720
query I rowsort
SELECT - - col0 + + col0 * col0 FROM tab0 AS cor0
----
1260
600
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-228
SELECT ALL ( + col2 ) DIV col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-228
SELECT ALL ( + col2 ) / col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT + 13 + - col0 AS col2 FROM tab0 AS cor0
----
-11
-22
-76
query I rowsort
SELECT - ( col1 ) * + col2 + + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL - - col1 * col2 - col0 FROM tab1 cor0
----
1168
1401
506
onlyif mysql # use DIV operator for integer division
query I rowsort label-232
SELECT col1 + - ( - col1 ) DIV ( + col2 ) AS col2 FROM tab0 AS cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-232
SELECT col1 + - ( - col1 ) / ( + col2 ) AS col2 FROM tab0 AS cor0
----
194
88
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-233
SELECT ALL + CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-233
SELECT ALL + CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT 1 * 89 AS col2 FROM tab0 AS cor0
----
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-236
SELECT ALL - 29 DIV col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-236
SELECT ALL - 29 / col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT + + 78 * col2 AS col2 FROM tab0 AS cor0
----
2574
6396
78
query I rowsort
SELECT DISTINCT + - ( col1 ) + col1 * - 49 AS col1 FROM tab1 AS cor0
----
-1300
-500
-650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-239
SELECT + CAST( col1 AS SIGNED ) * - col2 + + col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
skipif mysql # not compatible
query I rowsort label-239
SELECT + CAST ( col1 AS INTEGER ) * - col2 + + col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-240
SELECT + + CAST( - col0 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-240
SELECT + + CAST ( - col0 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - cor0.col0 * - ( col1 ) + ( - col2 ) FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT ALL - col0 + + col0 * col0 AS col2 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT + 5 + + col1 * + col0 FROM tab1 AS cor0
----
1045
645
83
query I rowsort
SELECT DISTINCT - - 97 * 25 + col2 * - ( - ( col1 ) ) FROM tab2 AS cor0
----
3071
3262
3959
query I rowsort
SELECT - col0 * + 92 * cor0.col1 FROM tab0 AS cor0
----
-189888
-312340
-745108
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-246
SELECT ALL + cor0.col2 / - col1 - col0 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-246
SELECT ALL + cor0.col2 / - col1 - col0 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-247
SELECT ALL + CAST( col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-247
SELECT ALL + CAST ( col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + 24 * col0 FROM tab2
----
168
1872
1896
query I rowsort
SELECT DISTINCT + col1 * - col1 AS col2 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT DISTINCT + 1 * + 72 * + col1 AS col1 FROM tab2
----
1224
2232
4248
query I rowsort
SELECT - col2 * 71 FROM tab2
----
-1846
-1917
-2698
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * + col1 col1 FROM tab0
----
1892
2002
2134
query I rowsort
SELECT + ( col0 ) * tab0.col1 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + 43 + + col0 FROM tab1 AS cor0
----
107
123
46
query I rowsort
SELECT ALL - 91 * col0 FROM tab2
----
-637
-7098
-7189
onlyif mysql # use DIV operator for integer division
query I rowsort label-256
SELECT col0 * cor0.col0 + + col0 DIV + cor0.col1 col0 FROM tab2 AS cor0
----
49
6085
6245
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-256
SELECT col0 * cor0.col0 + + col0 / + cor0.col1 col0 FROM tab2 AS cor0
----
49
6085
6245
query I rowsort
SELECT DISTINCT + ( col1 ) + - col1 * col1 AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT + ( col1 ) + - ( col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * col2 * - col2 + col2 * col1 col1 FROM tab2 cor0
----
-122094
-55926
-61128
onlyif mysql # use DIV operator for integer division
query I rowsort label-261
SELECT + ( col1 ) + col1 * cor0.col2 DIV col1 + - col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-261
SELECT + ( col1 ) + col1 * cor0.col2 / col1 + - col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - ( - 14 ) AS col0 FROM tab0
----
14
14
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-263
SELECT + col2 DIV col0 + col2 + ( ( + tab1.col0 ) ) AS col2 FROM tab1
----
121
177
75
skipif mysql # not compatible
query I rowsort label-263
SELECT + col2 / col0 + col2 + ( ( + tab1.col0 ) ) AS col2 FROM tab1
----
121
177
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-264
SELECT col1 + col2 DIV col1 + col0 FROM tab1 AS cor0
----
100
31
79
skipif mysql # not compatible
query I rowsort label-264
SELECT col1 + col2 / col1 + col0 FROM tab1 AS cor0
----
100
31
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-265
SELECT cor0.col0 DIV ( - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-265
SELECT cor0.col0 / ( - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - col0 * 81 * col0 AS col1 FROM tab1 cor0
----
-331776
-518400
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-267
SELECT ALL - cor0.col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-267
SELECT ALL - cor0.col2 / - col2 AS col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT - col0 + - 18 * - col1 AS col2 FROM tab0 cor0
----
1524
1549
1711
query I rowsort
SELECT ALL - cor0.col2 FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT DISTINCT + + cor0.col0 + - 94 FROM tab1 AS cor0
----
-14
-30
-91
query I rowsort
SELECT + col0 + - 3 FROM tab0 AS cor0
----
21
32
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col2 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
query I rowsort
SELECT DISTINCT col0 + - 94 * + col2 AS col1 FROM tab2 AS cor0
----
-2366
-2531
-3493
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-274
SELECT - col1 * CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-274
SELECT - col1 * CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - + col1 + - col2 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT - col0 - - col2 * - col0 * + 32 AS col0 FROM tab2 AS cor0
----
-6055
-64974
-96143
query I rowsort
SELECT - ( col0 ) * + col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 - + col0 col0 FROM tab0 AS cor0
----
1190
552
7832
onlyif mysql # use DIV operator for integer division
query I rowsort label-279
SELECT + tab2.col0 * col1 DIV col1 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-279
SELECT + tab2.col0 * col1 / col1 FROM tab2
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-280
SELECT - - CAST( col2 AS SIGNED ) - + col1 FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-280
SELECT - - CAST ( col2 AS INTEGER ) - + col1 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-281
SELECT ALL - col0 DIV - tab1.col0 + col2 * col0 FROM tab1
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-281
SELECT ALL - col0 / - tab1.col0 + col2 * col0 FROM tab1
----
163
3649
7681
query I rowsort
SELECT - + cor0.col2 * 62 + - 6 AS col0 FROM tab0 AS cor0
----
-2052
-5090
-68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col2 col1 FROM tab0 AS cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col0 col2 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT + col2 * ( + col0 ) + + cor0.col0 * - 2 * - col0 FROM tab1 AS cor0
----
11840
180
20480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + 9 col0 FROM tab1 AS cor0
----
486
513
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-287
SELECT DISTINCT - - cor0.col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-287
SELECT DISTINCT - - cor0.col0 / - col2 AS col2 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT DISTINCT ( + col0 ) AS col1 FROM tab2
----
7
78
79
query I rowsort
SELECT + 70 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
query I rowsort
SELECT - col0 + col0 * col0 FROM tab2
----
42
6006
6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-291
SELECT + cor0.col0 DIV + 23 + + 56 * + col2 col1 FROM tab0 AS cor0
----
1849
4595
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-291
SELECT + cor0.col0 / + 23 + + 56 * + col2 col1 FROM tab0 AS cor0
----
1849
4595
57
query I rowsort
SELECT + col1 + + col2 * col0 FROM tab0 cor0
----
132
7389
878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-293
SELECT - col2 * + cor0.col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-293
SELECT - col2 * + cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 67 - + tab2.col1 FROM tab2
----
36
50
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + col2 + col1 * - 70 col0 FROM tab0 AS cor0
----
-5228
-6755
928
query I rowsort
SELECT ( cor0.col0 ) * - 80 AS col0 FROM tab2 cor0
----
-560
-6240
-6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 + col1 col2 FROM tab2
----
-15
-43
-57
query I rowsort
SELECT 6 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT DISTINCT + 84 * col2 FROM tab0 cor0
----
2772
6888
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + 13 + - col2 + + 1 AS col1 FROM tab1 cor0
----
-40
-43
-82
query I rowsort
SELECT DISTINCT + 91 + - col0 FROM tab1 cor0
----
11
27
88
query I rowsort
SELECT DISTINCT - ( col1 ) * cor0.col0 + cor0.col2 * col2 FROM tab0 cor0
----
-1375
-3394
-975
query I rowsort
SELECT - col2 * col2 * - ( + col0 ) FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT - + col1 + 51 FROM tab1 AS cor0
----
25
38
41
query I rowsort
SELECT DISTINCT cor0.col0 - col1 AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + cor0.col2 * col0 - cor0.col0 AS col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT DISTINCT + col0 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - col0 + ( - col1 ) + - cor0.col2 FROM tab2 AS cor0
----
-134
-163
-65
query I rowsort
SELECT DISTINCT + col2 + 40 FROM tab1 AS cor0
----
136
94
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-311
SELECT cor0.col0 DIV - 36 + - col2 FROM tab0 AS cor0
----
-1
-33
-84
skipif mysql # not compatible
query I rowsort label-311
SELECT cor0.col0 / - 36 + - col2 FROM tab0 AS cor0
----
-1
-33
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-312
SELECT ALL + 98 * col2 DIV - col0 FROM tab0
----
-134
-2
-90
skipif mysql # not compatible
query I rowsort label-312
SELECT ALL + 98 * col2 / - col0 FROM tab0
----
-134
-2
-90
query I rowsort
SELECT + + 29 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT cor1.col2 FROM tab0, tab1 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT ALL + col1 * - ( + col0 ) + col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-316
SELECT - + col0 DIV - col1 + col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-316
SELECT - + col0 / - col1 + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT 88 FROM tab2, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT 39 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT DISTINCT ( - 62 ) + + col1 * - col0 FROM tab1 AS cor0
----
-1102
-140
-702
query I rowsort
SELECT DISTINCT 17 AS col1 FROM tab0 AS cor0
----
17
query I rowsort
SELECT DISTINCT - + col2 * col2 * col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT 20 * col1 + - col1 * - col0 * 39 FROM tab2
----
180658
52717
9083
query I rowsort
SELECT DISTINCT + cor1.col0 * + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 54522441dbf7fb56e19a888572d1f6e3
query I rowsort
SELECT + col1 * - ( tab2.col1 ) FROM tab2
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-325
SELECT col2 * ( - col2 ) + + col0 DIV CAST( 15 AS SIGNED ) FROM tab0 AS cor0
----
-1088
-6719
1
skipif mysql # not compatible
query I rowsort label-325
SELECT col2 * ( - col2 ) + + col0 / CAST ( 15 AS INTEGER ) FROM tab0 AS cor0
----
-1088
-6719
1
query I rowsort
SELECT - col0 * + col1 + - col1 + - col0 FROM tab0 AS cor0
----
-2174
-3527
-8279
query I rowsort
SELECT + col2 * 82 AS col2 FROM tab0 AS cor0
----
2706
6724
82
query I rowsort
SELECT ALL + + col1 * + col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col0 + col2 * 82 + + col0 * - 10 AS col1 FROM tab0 AS cor0
----
-233
2490
5923
query I rowsort
SELECT col0 + cor0.col1 * col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT col1 * 77 + + col2 * col0 FROM tab1 AS cor0
----
2164
4418
8681
query I rowsort
SELECT + cor1.col2 AS col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT cor0.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-334
SELECT CAST( NULL AS SIGNED ) + - ( + col0 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-334
SELECT CAST ( NULL AS INTEGER ) + - ( + col0 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-335
SELECT DISTINCT + cor0.col2 * + cor0.col1 - + 99 DIV + col1 AS col2 FROM tab2 AS cor0
----
1533
641
834
skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT + cor0.col2 * + cor0.col1 - + 99 / + col1 AS col2 FROM tab2 AS cor0
----
1533
641
834
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-336
SELECT - col2 * col1 + CAST( NULL AS SIGNED ) * 19 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-336
SELECT - col2 * col1 + CAST ( NULL AS INTEGER ) * 19 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-337
SELECT + col1 + + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-337
SELECT + col1 + + col1 / col1 AS col2 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT - col0 - col2 * 86 AS col1 FROM tab2 cor0
----
-2314
-2329
-3347
query I rowsort
SELECT DISTINCT + col1 + col2 * + col2 FROM tab0 cor0
----
1175
6815
98
query I rowsort
SELECT ALL + - cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT cor0.col2 + col1 - col1 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + - ( col2 ) * col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL col1 + + col2 * ( ( - tab0.col0 ) ) + ( - col0 ) * + col0 FROM tab0
----
-1163
-1282
-15128
onlyif mysql # use DIV operator for integer division
query I rowsort label-344
SELECT DISTINCT 21 DIV - col2 + - col2 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT 21 / - col2 + - col2 FROM tab1
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-345
SELECT - col1 * 44 + - col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
-1364
-2596
-750
skipif mysql # not compatible
query I rowsort label-345
SELECT - col1 * 44 + - col2 / + col1 AS col1 FROM tab2 AS cor0
----
-1364
-2596
-750
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 cor0.col2 * tab1.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to ede9f33694b1d188a31631cf33240c69
query I rowsort
SELECT col2 * col1 + 60 AS col2 FROM tab0 AS cor0
----
157
2898
7522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col1 FROM tab2 cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
54
57
96
query I rowsort
SELECT - tab1.col1 * col2 * + col1 AS col2 FROM tab1
----
-16224
-36504
-5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-352
SELECT DISTINCT col1 DIV + col0 + col0 * col1 FROM tab0
----
2067
3397
8100
skipif mysql # not compatible
query I rowsort label-352
SELECT DISTINCT col1 / + col0 + col0 * col1 FROM tab0
----
2067
3397
8100
onlyif mysql # use DIV operator for integer division
query I rowsort label-353
SELECT ALL col1 DIV + col1 + col0 + - col2 FROM tab0
----
-8
35
8
skipif mysql # not compatible
query I rowsort label-353
SELECT ALL col1 / + col1 + col0 + - col2 FROM tab0
----
-8
35
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * col0 - - col0 col0 FROM tab2 AS cor0
----
106176
1526
359034
query I rowsort
SELECT 65 FROM tab2, tab2 cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT ( + col2 + - col1 ) FROM tab2
----
-33
-4
21
query I rowsort
SELECT DISTINCT - 79 AS col1 FROM tab1
----
-79
query I rowsort
SELECT tab2.col1 + - col2 * tab2.col0 + + col1 FROM tab2
----
-127
-1910
-2968
query I rowsort
SELECT col1 * 77 AS col1 FROM tab2
----
1309
2387
4543
query I rowsort
SELECT - tab0.col0 * - col2 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT + cor0.col0 + ( 57 ) FROM tab1 AS cor0
----
121
137
60
query I rowsort
SELECT col2 + - 20 * col2 FROM tab1 AS cor0
----
-1026
-1083
-1824
query I rowsort
SELECT ALL + 18 * col1 AS col2 FROM tab1
----
180
234
468
query I rowsort
SELECT ALL - 85 * col2 AS col2 FROM tab1
----
-4590
-4845
-8160
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-365
SELECT DISTINCT CAST( + cor0.col1 AS SIGNED ) FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-365
SELECT DISTINCT CAST ( + cor0.col1 AS INTEGER ) FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL + tab1.col0 * - tab1.col1 AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + - 84 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-25
-53
-67
query I rowsort
SELECT - 4 AS col0 FROM tab1 cor0
----
-4
-4
-4
query I rowsort
SELECT ALL col1 + + cor0.col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT 11 + + col2 AS col0 FROM tab1 cor0
----
107
65
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 + col0 col0 FROM tab0 AS cor0
----
121
56
67
query I rowsort
SELECT ALL col2 - 23 FROM tab0
----
-22
10
59
query I rowsort
SELECT ALL + 46 * col1 FROM tab2 AS cor0
----
1426
2714
782
query I rowsort
SELECT ALL col0 + 22 * col0 FROM tab0 AS cor0
----
2047
552
805
query I rowsort
SELECT DISTINCT + - 70 * - col1 + col0 * + col2 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
16270
2144
7996
query I rowsort
SELECT 36 + - col2 FROM tab0 cor0
----
-46
3
35
query I rowsort
SELECT DISTINCT + ( - 50 ) AS col2 FROM tab2 AS cor0
----
-50
query I rowsort
SELECT + cor0.col0 + 52 * col0 FROM tab1 AS cor0
----
159
3392
4240
query I rowsort
SELECT - - 42 + col1 AS col2 FROM tab2 AS cor0
----
101
59
73
query I rowsort
SELECT ALL + cor0.col0 + - col2 * 11 * + col1 AS col1 FROM tab0 AS cor0
----
-1032
-31194
-81993
onlyif mysql # use DIV operator for integer division
query I rowsort label-381
SELECT ALL - 95 + + col2 DIV 37 AS col2 FROM tab1 cor0
----
-93
-94
-94
skipif mysql # not compatible
query I rowsort label-381
SELECT ALL - 95 + + col2 / 37 AS col2 FROM tab1 cor0
----
-93
-94
-94
query I rowsort
SELECT - col0 * col1 + + 4 AS col0 FROM tab0 AS cor0
----
-2060
-3391
-8095
onlyif mysql # use DIV operator for integer division
query I rowsort label-383
SELECT ALL - 96 DIV - col0 FROM tab2 AS cor0
----
1
1
13
skipif mysql # not compatible
query I rowsort label-383
SELECT ALL - 96 / - col0 FROM tab2 AS cor0
----
1
1
13
query I rowsort
SELECT ALL - col0 + col2 * 71 AS col2 FROM tab2 cor0
----
1768
1910
2619
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * + col1 col0 FROM tab1 cor0
----
1168
1401
506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT - ( + 42 ) FROM tab0
----
-42
-42
-42
query I rowsort
SELECT DISTINCT ( 67 ) FROM tab0
----
67
query I rowsort
SELECT ALL - cor0.col2 * col2 - col1 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT DISTINCT col0 + ( col0 ) FROM tab0 AS cor0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT ALL + col2 * 23 AS col1 FROM tab2 AS cor0
----
598
621
874
query I rowsort
SELECT - cor0.col1 * ( col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT col0 + - ( - col2 ) FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-395
SELECT - col0 + - col2 DIV col0 AS col1 FROM tab1
----
-21
-64
-81
skipif mysql # not compatible
query I rowsort label-395
SELECT - col0 + - col2 / col0 AS col1 FROM tab1
----
-21
-64
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-396
SELECT ALL col2 DIV col0 + - col1 + ( cor0.col0 ) * + col1 col1 FROM tab2 AS cor0
----
1326
189
4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-396
SELECT ALL col2 / col0 + - col1 + ( cor0.col0 ) * + col1 col1 FROM tab2 AS cor0
----
1326
189
4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-397
SELECT DISTINCT + CAST( NULL AS SIGNED ) * cor0.col1 AS col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * cor0.col1 AS col2 FROM tab2 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-398
SELECT - + CAST( - col1 AS SIGNED ) + - col0 * col1 AS col0 FROM tab1 cor0
----
-1027
-52
-630
skipif mysql # not compatible
query I rowsort label-398
SELECT - + CAST ( - col1 AS INTEGER ) + - col0 * col1 AS col0 FROM tab1 cor0
----
-1027
-52
-630
query I rowsort
SELECT col2 * ( col0 ) * col0 + col2 FROM tab0
----
1226
19041
649604
onlyif mysql # use DIV operator for integer division
query I rowsort label-400
SELECT + col2 DIV - col1 + - 72 * col2 AS col2 FROM tab1
----
-3890
-4109
-6919
skipif mysql # not compatible
query I rowsort label-400
SELECT + col2 / - col1 + - 72 * col2 AS col2 FROM tab1
----
-3890
-4109
-6919
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-401
SELECT DISTINCT - CAST( col0 AS SIGNED ) FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-401
SELECT DISTINCT - CAST ( col0 AS INTEGER ) FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + - col1 * + col0 + col0 + + col0 AS col2 FROM tab1 AS cor0
----
-512
-72
-880
query I rowsort
SELECT DISTINCT - 32 AS col1 FROM tab2 cor0
----
-32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-404
SELECT + + CAST( col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-404
SELECT + + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT - 59 + - 28 * col2 FROM tab1 AS cor0
----
-1571
-1655
-2747
onlyif mysql # use DIV operator for integer division
query I rowsort label-406
SELECT ALL col0 DIV 55 + col0 col2 FROM tab1 AS cor0
----
3
65
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-406
SELECT ALL col0 / 55 + col0 col2 FROM tab1 AS cor0
----
3
65
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + - col1 - + col2 col2 FROM tab1 AS cor0
----
-124
-134
-205
query I rowsort
SELECT DISTINCT + col1 * col2 + - col2 * - cor0.col0 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT DISTINCT col0 * + col2 + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT + - col0 * 25 + + col1 * - 18 AS col2 FROM tab1 AS cor0
----
-1780
-2234
-543
query I rowsort
SELECT ALL 20 AS col1 FROM tab0 cor0
----
20
20
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-412
SELECT DISTINCT - col1 DIV col0 + col2 * 81 * + col2 AS col2 FROM tab2 AS cor0
----
116964
54756
59045
skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT - col1 / col0 + col2 * 81 * + col2 AS col2 FROM tab2 AS cor0
----
116964
54756
59045
onlyif mysql # use DIV operator for integer division
query I rowsort label-413
SELECT ALL + col2 + col0 + col1 DIV ( - col1 ) AS col1 FROM tab2 AS cor0
----
103
116
33
skipif mysql # not compatible
query I rowsort label-413
SELECT ALL + col2 + col0 + col1 / ( - col1 ) AS col1 FROM tab2 AS cor0
----
103
116
33
query I rowsort
SELECT ALL - 14 * - col0 FROM tab2 cor0
----
1092
1106
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 + col1 * + 19 col2 FROM tab0
----
1610
1640
1808
query I rowsort
SELECT + + 26 * + col2 FROM tab2 AS cor0
----
676
702
988
query I rowsort
SELECT 29 * - col0 * + col2 AS col0 FROM tab1 AS cor0
----
-105792
-222720
-4698
query I rowsort
SELECT + ( col0 ) - - 53 AS col2 FROM tab2 AS cor0
----
131
132
60
query I rowsort
SELECT - - col1 * 9 + + col1 AS col0 FROM tab2 AS cor0
----
170
310
590
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-420
SELECT ALL cor0.col0 * + CAST( cor0.col2 AS SIGNED ) * col1 FROM tab1 AS cor0
----
36480
4212
99840
skipif mysql # not compatible
query I rowsort label-420
SELECT ALL cor0.col0 * + CAST ( cor0.col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT cor0.col2 - + ( ( col2 ) ) * col1 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - + cor0.col0 + + 54 + - col0 AS col2 FROM tab0 AS cor0
----
-124
-16
6
query I rowsort
SELECT + col2 * + col0 * col0 FROM tab0 AS cor0
----
1225
19008
649522
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-424
SELECT ALL + CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-424
SELECT ALL + CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 + col1 col0 FROM tab0
----
179
184
190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-426
SELECT - + 63 + - col0 * col1 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-426
SELECT - + 63 + - col0 * col1 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( - col2 ) * col2 * - col2 AS col1 FROM tab0 cor0
----
1
35937
551368
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col0 AS REAL ) / cor0.col0 AS col0 FROM tab0 AS cor0
----
1
query I rowsort
SELECT DISTINCT - 91 AS col2 FROM tab2 AS cor0
----
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col1 col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - - col2 * + col1 + col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT - 29 AS col2 FROM tab1
----
-29
-29
-29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 * - col1 col0 FROM tab1 AS cor0
----
270
351
702
query I rowsort
SELECT - + cor0.col1 + col0 * col1 AS col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT + col1 * col2 - - 76 FROM tab0 AS cor0
----
173
2914
7538
query I rowsort
SELECT + col2 + 26 FROM tab2 AS cor0
----
52
53
64
query I rowsort
SELECT DISTINCT - + cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - col2 * ( col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col0 * - 14 AS col2 FROM tab0 AS cor0
----
1246
336
490
query I rowsort
SELECT + 84 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT - col0 + - 11 * col1 AS col0 FROM tab2 AS cor0
----
-266
-348
-727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - ( + cor0.col1 ) col1 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-443
SELECT DISTINCT + col0 DIV ( ( col1 ) ) AS col1 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT + col0 / ( ( col1 ) ) AS col1 FROM tab0 cor0
----
0
query I rowsort
SELECT - ( cor0.col2 ) * - col2 + + 46 AS col1 FROM tab0 AS cor0
----
1135
47
6770
query I rowsort
SELECT + ( + col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - + 84 FROM tab1 AS cor0
----
-84
-84
-84
query I rowsort
SELECT ALL + - tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT cor0.col2 * - cor0.col0 + col2 - col2 * 42 AS col1 FROM tab0 AS cor0
----
-10660
-2145
-76
query I rowsort
SELECT DISTINCT + ( + col0 ) * col1 * 0 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col2 + + col0 + col1 AS col0 FROM tab2 AS cor0
----
11
111
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 * col2 col0 FROM tab2 AS cor0
----
130
135
190
query I rowsort
SELECT DISTINCT + cor0.col1 * col1 + + col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-453
SELECT tab0.col2 + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-453
SELECT tab0.col2 + + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 col1 FROM tab2, tab0 AS cor0
----
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 col0 FROM tab0, tab0 AS cor0
----
91
query I rowsort
SELECT DISTINCT - ( + 18 ) + col2 FROM tab1
----
36
39
78
query I rowsort
SELECT ALL + 63 * ( + col0 * col0 ) FROM tab2
----
3087
383292
393183
query I rowsort
SELECT ALL ( col2 ) * col1 + col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT DISTINCT 32 AS col1 FROM tab1
----
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-461
SELECT DISTINCT + tab1.col2 DIV col2 AS col1 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT + tab1.col2 / col2 AS col1 FROM tab1
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + 77 AS col1 FROM tab0
----
77
query I rowsort
SELECT + col2 * - col2 * col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT - col2 + cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT - 30 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142
query I rowsort
SELECT 22 + + col2 * ( + 57 + col1 ) AS col0 FROM tab1
----
3841
4504
6742
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a
query I rowsort
SELECT + - cor0.col0 + 15 FROM tab1 AS cor0
----
-49
-65
12
query I rowsort
SELECT ALL - col0 * + cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-471
SELECT DISTINCT + + col1 DIV col0 + 72 + cor0.col1 * col0 FROM tab1 AS cor0
----
1112
158
712
skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT + + col1 / col0 + 72 + cor0.col1 * col0 FROM tab1 AS cor0
----
1112
158
712
query I rowsort
SELECT ALL + + col1 + cor0.col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT 20 * - col2 FROM tab0
----
-1640
-20
-660
query I rowsort
SELECT - col0 - col2 AS col1 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT - col0 * - col1 * - col0 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT - + 84 FROM tab1 cor0
----
-84
-84
-84
query I rowsort
SELECT + 92 * col2 FROM tab2 cor0
----
2392
2484
3496
query I rowsort
SELECT - + col2 * ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-479
SELECT DISTINCT - col1 + col1 DIV - col2 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-479
SELECT DISTINCT - col1 + col1 / - col2 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - + col1 * 75 AS col2 FROM tab2 AS cor0
----
-1275
-2325
-4425
query I rowsort
SELECT DISTINCT + - col2 + + 31 FROM tab0 cor0
----
-2
-51
30
query I rowsort
SELECT - - col0 + 54 AS col1 FROM tab1 AS cor0
----
118
134
57
query I rowsort
SELECT + col2 * 10 AS col2 FROM tab2 AS cor0
----
260
270
380
query I rowsort
SELECT - col1 + - col0 * col2 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT ALL - - col2 * ( - ( + cor0.col1 ) ) FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + col0 * + CAST ( - col0 AS REAL ) + col1 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT ALL col1 * ( - col0 ) FROM tab0 cor0
----
-2064
-3395
-8099
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 - - col2 * + col2 + + col0 AS col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT + cor0.col0 + + col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT - 70 + 91 AS col0 FROM tab0 AS cor0
----
21
21
21
query I rowsort
SELECT DISTINCT 34 * col1 * col0 + col0 * - 3 + + col2 FROM tab2 AS cor0
----
156260
45463
7384
query I rowsort
SELECT DISTINCT + - 78 * - col1 + cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
2635
2669
9204
query I rowsort
SELECT col1 * col0 + + col1 * + col2 FROM tab2 AS cor0
----
1054
1989
6136
query I rowsort
SELECT - tab2.col2 * + 47 FROM tab2
----
-1222
-1269
-1786
query I rowsort
SELECT ALL 93 FROM tab2 cor0
----
93
93
93
query I rowsort
SELECT + ( - 24 ) * + col2 * col0 AS col2 FROM tab0
----
-175152
-19008
-840
query I rowsort
SELECT cor0.col0 * 28 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4214f62d23d35a931e32781b39b6311
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col0 AS REAL ) * col0 FROM tab0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col1 col2 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT ALL + 63 - - col1 FROM tab2 AS cor0
----
122
80
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + col1 * - ( + col1 * + col0 ) col1 FROM tab2 AS cor0
----
-22869
-271544
-6754
query I rowsort
SELECT + + col2 + - col1 * col1 AS col1 FROM tab1 AS cor0
----
-43
-622
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-504
SELECT ALL col1 DIV col1 + - 43 FROM tab0 AS cor0
----
-42
-42
-42
skipif mysql # not compatible
query I rowsort label-504
SELECT ALL col1 / col1 + - 43 FROM tab0 AS cor0
----
-42
-42
-42
query I rowsort
SELECT + + 47 AS col0 FROM tab2 AS cor0
----
47
47
47
query I rowsort
SELECT ALL - + col2 * + cor0.col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL - ( col0 ) * 38 AS col0 FROM tab1 AS cor0
----
-114
-2432
-3040
query I rowsort
SELECT DISTINCT - col0 + - col1 * col1 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT DISTINCT ( col2 ) + col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + 62 * + col1 * - col0 + + col2 * col2 AS col1 FROM tab2 cor0
----
-12725
-284648
-81822
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) col1 FROM tab1 cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col2 * + 41 col1 FROM tab1 AS cor0
----
-2240
-2347
-3949
query I rowsort
SELECT DISTINCT + 7 * - col2 * - 90 + col0 AS col1 FROM tab0 AS cor0
----
20814
51749
665
query I rowsort
SELECT ALL - 59 - - col1 FROM tab1 AS cor0
----
-33
-46
-49
query I rowsort
SELECT ALL - 30 + - 84 FROM tab1
----
-114
-114
-114
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 70 * col1 + + ( + ( col2 ) ) col2 FROM tab2 AS cor0
----
-1152
-2143
-4104
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT DISTINCT + - col0 * + col1 + col0 AS col2 FROM tab0 cor0
----
-2040
-3360
-8010
query I rowsort
SELECT - - col0 * - col1 + 69 * + col0 FROM tab1 AS cor0
----
129
3776
4480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-520
SELECT col2 * - col2 + + CAST( NULL AS SIGNED ) * 88 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-520
SELECT col2 * - col2 + + CAST ( NULL AS INTEGER ) * 88 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * tab2.col2 + + col0 FROM tab2
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-522
SELECT DISTINCT col1 - col0 DIV col2 FROM tab1
----
13
26
9
skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT col1 - col0 / col2 FROM tab1
----
13
26
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-523
SELECT ALL - CAST( NULL AS DECIMAL ) / col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-523
SELECT ALL - CAST ( NULL AS REAL ) / col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-524
SELECT CAST( ( + col1 ) AS SIGNED ) + 70 FROM tab2
----
101
129
87
skipif mysql # not compatible
query I rowsort label-524
SELECT CAST ( ( + col1 ) AS INTEGER ) + 70 FROM tab2
----
101
129
87
query I rowsort
SELECT - + 54 * - 69 + col0 AS col1 FROM tab2 AS cor0
----
3733
3804
3805
query I rowsort
SELECT DISTINCT 17 * + tab2.col2 + - col2 * + col1 FROM tab2
----
-1092
-378
0
query I rowsort
SELECT DISTINCT + ( + col0 ) * + tab0.col0 * col2 + + col1 FROM tab0
----
1322
19094
649613
query I rowsort
SELECT DISTINCT ( col2 ) + col1 * + col0 AS col1 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT ALL + col2 + col0 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-530
SELECT DISTINCT + col2 DIV col0 + col1 - cor0.col0 DIV - col2 FROM tab1 AS cor0
----
11
14
44
skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT + col2 / col0 + col1 - cor0.col0 / - col2 FROM tab1 AS cor0
----
11
14
44
query I rowsort
SELECT DISTINCT ( + 83 ) + + col1 FROM tab2 AS cor0
----
100
114
142
query I rowsort
SELECT col1 * col2 + + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-533
SELECT ALL + col0 + 91 * + col2 + 6 DIV + col0 FROM tab0 AS cor0
----
126
3027
7551
skipif mysql # not compatible
query I rowsort label-533
SELECT ALL + col0 + 91 * + col2 + 6 / + col0 FROM tab0 AS cor0
----
126
3027
7551
query I rowsort
SELECT + ( - col2 ) + col2 * - cor0.col2 FROM tab2 AS cor0
----
-1482
-702
-756
query I rowsort
SELECT DISTINCT + 97 * col1 + tab2.col1 AS col1 FROM tab2
----
1666
3038
5782
query I rowsort
SELECT + 33 AS col1 FROM tab0
----
33
33
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-537
SELECT DISTINCT + col2 * 46 DIV col0 FROM tab2 AS cor0
----
15
177
22
skipif mysql # not compatible
query I rowsort label-537
SELECT DISTINCT + col2 * 46 / col0 FROM tab2 AS cor0
----
15
177
22
query I rowsort
SELECT + col0 + + col1 * - 24 FROM tab2
----
-1338
-329
-737
query I rowsort
SELECT DISTINCT + 65 * col2 FROM tab2
----
1690
1755
2470
query I rowsort
SELECT ALL col1 * - col1 + - col0 AS col1 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT ALL + + ( + cor0.col1 ) * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - + 22 - + col2 FROM tab2 cor0
----
-48
-49
-60
query I rowsort
SELECT 50 AS col1 FROM tab2 AS cor0
----
50
50
50
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9
query I rowsort
SELECT DISTINCT + - cor0.col1 + + ( + cor0.col0 ) * col2 AS col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL + cor0.col2 + - 23 FROM tab0 AS cor0
----
-22
10
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-547
SELECT ALL col0 DIV ( + 92 ) FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-547
SELECT ALL col0 / ( + 92 ) FROM tab1
----
0
0
0
query I rowsort
SELECT - col0 * - col1 * - col0 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT col1 * col1 + - col2 AS col1 FROM tab2 AS cor0
----
251
3455
934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + ( - col2 ) * col2 col1 FROM tab1 cor0
----
-207936
-737280
-8748
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-551
SELECT + + col2 * - CAST( - 93 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
4968
5244
8832
skipif mysql # not compatible
query I rowsort label-551
SELECT + + col2 * - CAST ( - 93 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
4968
5244
8832
query I rowsort
SELECT + + 21 * col1 * - col2 FROM tab2 AS cor0
----
-13566
-17577
-32214
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 * + col0 col2 FROM tab2 AS cor0
----
511
5694
5767
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
query I rowsort
SELECT DISTINCT + tab1.col0 * 33 AS col2 FROM tab1
----
2112
2640
99
query I rowsort
SELECT DISTINCT + + ( - cor0.col0 ) + + cor0.col2 AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT cor0.col0 * - 10 + col1 FROM tab2 AS cor0
----
-39
-721
-773
query I rowsort
SELECT - col2 * col0 + 87 AS col2 FROM tab1 AS cor0
----
-3561
-75
-7593
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-559
SELECT + ( + cor0.col1 ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-559
SELECT + ( + cor0.col1 ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-560
SELECT + col2 * cor0.col0 DIV - ( col0 ) - col2 * + ( col2 + col2 ) col2 FROM tab1 AS cor0
----
-18528
-5886
-6555
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-560
SELECT + col2 * cor0.col0 / - ( col0 ) - col2 * + ( col2 + col2 ) col2 FROM tab1 AS cor0
----
-18528
-5886
-6555
query I rowsort
SELECT col2 + - col1 * 23 FROM tab0 AS cor0
----
-1945
-2011
-2230
onlyif mysql # use DIV operator for integer division
query I rowsort label-562
SELECT - 2 - col2 DIV - cor0.col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-562
SELECT - 2 - col2 / - cor0.col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - - col0 + col1 * + col1 * + cor0.col0 + - 89 FROM tab2 AS cor0
----
22821
271507
6645
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + cor0.col1 col2 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT + + col0 + col1 * cor0.col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT 43 * col1 AS col0 FROM tab0
----
3698
3913
4171
query I rowsort
SELECT 55 * tab1.col0 AS col2 FROM tab1
----
165
3520
4400
query I rowsort
SELECT + + 45 + - 19 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 col2 FROM tab1
----
80
query I rowsort
SELECT - col2 - - col0 * + 41 FROM tab2
----
260
3172
3201
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-571
SELECT + 13 * - col1 + - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-571
SELECT + 13 * - col1 + - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 + col2 * - ( col1 ) AS col0 FROM tab2 cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL col0 - - 33 * - 26 FROM tab2
----
-779
-780
-851
query I rowsort
SELECT tab2.col1 * - col2 * 25 + + col2 + col0 * col2 FROM tab2
----
-13110
-20709
-36296
query I rowsort
SELECT ALL - col2 * 28 FROM tab2
----
-1064
-728
-756
onlyif mysql # use DIV operator for integer division
query I rowsort label-576
SELECT - col1 DIV - 13 AS col0 FROM tab2
----
1
2
4
skipif mysql # not compatible
query I rowsort label-576
SELECT - col1 / - 13 AS col0 FROM tab2
----
1
2
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-577
SELECT CAST( NULL AS DECIMAL ) / tab0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-577
SELECT CAST ( NULL AS REAL ) / tab0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col1 * ( + 84 ) - col1 AS col0 FROM tab1 AS cor0
----
-1105
-2210
-850
query I rowsort
SELECT cor0.col1 + col1 * + col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT - - col2 * 83 + + col1 AS col0 FROM tab0 AS cor0
----
180
2825
6897
query I rowsort
SELECT col1 + - 93 AS col0 FROM tab0 AS cor0
----
-2
-7
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-582
SELECT + CAST( 5 AS SIGNED ) FROM tab2 AS cor0
----
5
5
5
skipif mysql # not compatible
query I rowsort label-582
SELECT + CAST ( 5 AS INTEGER ) FROM tab2 AS cor0
----
5
5
5
query I rowsort
SELECT + col0 * + ( - 64 ) * col2 AS col2 FROM tab2
----
-12096
-129792
-192128
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-584
SELECT DISTINCT - CAST( NULL AS SIGNED ) col0 FROM tab2, tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0 FROM tab2, tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 * col2 + col1 col1 FROM tab1 AS cor0
----
1106
1150
1933
query I rowsort
SELECT ALL - ( + cor0.col0 ) * col0 + + 67 FROM tab0 AS cor0
----
-1158
-509
-7854
query I rowsort
SELECT DISTINCT cor0.col0 + + ( col0 ) AS col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL col0 * + col1 + - col0 AS col0 FROM tab2 cor0
----
1264
210
4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-589
SELECT ALL + CAST( NULL AS DECIMAL ) * col1 + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-589
SELECT ALL + CAST ( NULL AS REAL ) * col1 + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( + col1 ) * col2 * - col1 + col1 + + col2 * col2 * 23 AS col0 FROM tab0
----
269201
833785
9529
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-591
SELECT DISTINCT + ( col2 * - col1 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-591
SELECT DISTINCT + ( col2 * - col1 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
query I rowsort
SELECT ALL + col1 + 61 FROM tab1 AS cor0
----
71
74
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-593
SELECT ALL + col2 DIV col1 + + col2 * + 88 FROM tab1
----
4754
5021
8455
skipif mysql # not compatible
query I rowsort label-593
SELECT ALL + col2 / col1 + + col2 * + 88 FROM tab1
----
4754
5021
8455
query I rowsort
SELECT ALL - 19 AS col1 FROM tab2, tab1, tab2 AS cor0, tab1 cor1
----
81 values hashing to 99bbabf7eff84050cf6c6974a01eb714
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * 26 + + col2 col1 FROM tab0
----
2214
27
891
query I rowsort
SELECT - col2 + col1 + col1 * + col2 * 43 AS col0 FROM tab1
----
24463
53581
60344
query I rowsort
SELECT ALL 32 AS col2 FROM tab0 AS cor0
----
32
32
32
query I rowsort
SELECT 4 + + 99 - col1 FROM tab0 AS cor0
----
12
17
6
query I rowsort
SELECT ALL + - 59 AS col2 FROM tab1 cor0
----
-59
-59
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-600
SELECT DISTINCT - - ( cor0.col0 ) DIV col0 AS col1 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-600
SELECT DISTINCT - - ( cor0.col0 ) / col0 AS col1 FROM tab1 AS cor0
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-601
SELECT CAST( NULL AS DECIMAL ) + col0 * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-601
SELECT CAST ( NULL AS REAL ) + col0 * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * + col1 + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL + ( - col0 ) + col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 44 * col2 FROM tab1 AS cor0
----
2376
2508
4224
query I rowsort
SELECT - 19 * - col0 + col2 FROM tab2 AS cor0
----
1508
1539
160
onlyif mysql # use DIV operator for integer division
query I rowsort label-606
SELECT ALL - 85 DIV cor0.col1 FROM tab1 AS cor0
----
-3
-6
-8
skipif mysql # not compatible
query I rowsort label-606
SELECT ALL - 85 / cor0.col1 FROM tab1 AS cor0
----
-3
-6
-8
query I rowsort
SELECT - cor0.col2 * col1 + col0 * col2 AS col2 FROM tab1 AS cor0
----
-1242
3078
6432
query I rowsort
SELECT DISTINCT ( col1 ) * - col2 + - col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT ALL + 35 * col2 + - col2 AS col2 FROM tab2 AS cor0
----
1292
884
918
query I rowsort
SELECT ALL + cor0.col0 * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL - + ( cor0.col1 ) * + 56 FROM tab1 AS cor0
----
-1456
-560
-728
query I rowsort
SELECT ( - ( + col1 ) ) * tab0.col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT + 59 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-614
SELECT ALL col2 * col0 + col0 * + CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-614
SELECT ALL col2 * col0 + col0 * + CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col1 + - 58 + col1 AS col1 FROM tab0 AS cor0
----
114
124
136
query I rowsort
SELECT ALL - - cor0.col2 + + 45 AS col1 FROM tab2 AS cor0
----
71
72
83
query I rowsort
SELECT ALL - col1 - - ( + cor0.col0 + + col0 ) AS col0 FROM tab1 AS cor0
----
-20
118
147
onlyif mysql # use DIV operator for integer division
query I rowsort label-618
SELECT DISTINCT col1 + + ( - cor0.col0 ) DIV + col2 FROM tab1 AS cor0
----
13
26
9
skipif mysql # not compatible
query I rowsort label-618
SELECT DISTINCT col1 + + ( - cor0.col0 ) / + col2 FROM tab1 AS cor0
----
13
26
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-619
SELECT + cor0.col1 DIV - ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-619
SELECT + cor0.col1 / - ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT - 26 + col0 FROM tab0
----
-2
63
9
query I rowsort
SELECT col1 * 88 AS col1 FROM tab2 AS cor0
----
1496
2728
5192
query I rowsort
SELECT ALL + col1 + - col1 * 20 FROM tab2 AS cor0
----
-1121
-323
-589
query I rowsort
SELECT cor0.col0 * 51 + + col2 - 75 FROM tab1 AS cor0
----
132
3246
4101
query I rowsort
SELECT DISTINCT - col0 + col0 * + col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT ALL + col1 + ( - col2 ) - col2 AS col0 FROM tab1
----
-104
-179
-82
query I rowsort
SELECT - col1 + 98 * + 51 AS col2 FROM tab0
----
4901
4907
4912
query I rowsort
SELECT DISTINCT + - col0 + - ( cor0.col2 ) * - col2 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT DISTINCT - + 91 * + col0 - ( - col0 * col1 ) FROM tab2 cor0
----
-2496
-420
-5846
query I rowsort
SELECT ALL ( col0 ) + - 7 FROM tab1 AS cor0
----
-4
57
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-630
SELECT ALL - cor0.col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-630
SELECT ALL - cor0.col1 / - col1 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + 83 AS col0 FROM tab1 AS cor0
----
83
83
83
query I rowsort
SELECT + + 71 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
497
5538
5609
query I rowsort
SELECT ALL - - 13 + col2 * + cor0.col2 FROM tab0 AS cor0
----
1102
14
6737
query I rowsort
SELECT ALL + cor0.col2 + - col2 * col0 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * - col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-636
SELECT DISTINCT CAST( + 85 AS SIGNED ) AS col1 FROM tab2
----
85
skipif mysql # not compatible
query I rowsort label-636
SELECT DISTINCT CAST ( + 85 AS INTEGER ) AS col1 FROM tab2
----
85
query I rowsort
SELECT col0 * - ( - col0 * + col1 ) FROM tab2
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-638
SELECT + col2 + - col2 DIV + 59 col2 FROM tab1 cor0
----
54
57
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-638
SELECT + col2 + - col2 / + 59 col2 FROM tab1 cor0
----
54
57
95
query I rowsort
SELECT + 53 * - col0 * cor0.col2 FROM tab2 AS cor0
----
-10017
-107484
-159106
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-640
SELECT + 31 + - cor0.col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-640
SELECT + 31 + - cor0.col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 7 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT + 49 * 72 - - col2 FROM tab2 AS cor0
----
3554
3555
3566
query I rowsort
SELECT + + 59 * col2 + col2 FROM tab2 AS cor0
----
1560
1620
2280
onlyif mysql # use DIV operator for integer division
query I rowsort label-644
SELECT DISTINCT col1 + CAST( col0 AS SIGNED ) DIV - col2 AS col1 FROM tab1
----
13
26
9
skipif mysql # not compatible
query I rowsort label-644
SELECT DISTINCT col1 + CAST ( col0 AS INTEGER ) / - col2 AS col1 FROM tab1
----
13
26
9
query I rowsort
SELECT - col2 + - ( + 92 ) AS col1 FROM tab1
----
-146
-149
-188
onlyif mysql # use DIV operator for integer division
query I rowsort label-646
SELECT ALL + + col0 - col1 DIV - col0 FROM tab2 cor0
----
11
78
79
skipif mysql # not compatible
query I rowsort label-646
SELECT ALL + + col0 - col1 / - col0 FROM tab2 cor0
----
11
78
79
query I rowsort
SELECT DISTINCT col0 * - 87 + - tab2.col0 * col0 FROM tab2
----
-12870
-13114
-658
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-648
SELECT col0 * CAST( - 18 AS SIGNED ) FROM tab2
----
-126
-1404
-1422
skipif mysql # not compatible
query I rowsort label-648
SELECT col0 * CAST ( - 18 AS INTEGER ) FROM tab2
----
-126
-1404
-1422
query I rowsort
SELECT DISTINCT - ( + 64 ) * + col1 FROM tab2
----
-1088
-1984
-3776
onlyif mysql # use DIV operator for integer division
query I rowsort label-650
SELECT - ( - col2 ) DIV col1 + col2 AS col2 FROM tab2
----
26
27
40
skipif mysql # not compatible
query I rowsort label-650
SELECT - ( - col2 ) / col1 + col2 AS col2 FROM tab2
----
26
27
40
query I rowsort
SELECT DISTINCT - 19 + col0 FROM tab1 AS cor0
----
-16
45
61
query I rowsort
SELECT ALL 49 * cor0.col2 * + col1 AS col2 FROM tab2 cor0
----
31654
41013
75166
query I rowsort
SELECT + ( - ( - col0 ) ) * 42 + - col0 FROM tab0 AS cor0
----
1435
3649
984
onlyif mysql # use DIV operator for integer division
query I rowsort label-654
SELECT DISTINCT + - col2 DIV col0 + col1 FROM tab1 AS cor0
----
10
12
8
skipif mysql # not compatible
query I rowsort label-654
SELECT DISTINCT + - col2 / col0 + col1 FROM tab1 AS cor0
----
10
12
8
query I rowsort
SELECT DISTINCT + col0 + 2 * - col2 + - 5 * 30 FROM tab0 AS cor0
----
-117
-192
-225
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-656
SELECT DISTINCT - col0 + 84 * cor0.col0 * + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-656
SELECT DISTINCT - col0 + 84 * cor0.col0 * + CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT 89 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
onlyif mysql # use DIV operator for integer division
query I rowsort label-659
SELECT ALL - - col0 * col2 DIV ( - col1 + - col1 ) AS col1 FROM tab0 AS cor0
----
-4
-40
0
skipif mysql # not compatible
query I rowsort label-659
SELECT ALL - - col0 * col2 / ( - col1 + - col1 ) AS col1 FROM tab0 AS cor0
----
-4
-40
0
query I rowsort
SELECT + 40 * col0 AS col1 FROM tab1
----
120
2560
3200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-661
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 * col0 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-661
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 * col0 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + - col2 + col2 * col1 * ( ( - col2 ) ) FROM tab1 AS cor0
----
-119904
-32547
-75870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + col2 col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-664
SELECT ( cor0.col0 ) + CAST( NULL AS DECIMAL ) * + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-664
SELECT ( cor0.col0 ) + CAST ( NULL AS REAL ) * + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab1 AS cor0 WHERE NOT NULL < NULL
----
query I rowsort
SELECT DISTINCT - 10 * tab0.col0 + + 10 AS col1 FROM tab0
----
-230
-340
-880
query I rowsort
SELECT - col1 * - cor0.col0 + 81 AS col0 FROM tab2 AS cor0
----
1424
298
4683
onlyif mysql # use DIV operator for integer division
query I rowsort label-668
SELECT DISTINCT col1 DIV 59 AS col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT col1 / 59 AS col2 FROM tab0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-669
SELECT - - 97 DIV cor0.col0 AS col0 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to b5af6099b76367c451eb09eaeb33b684
skipif mysql # not compatible
query I rowsort label-669
SELECT - - 97 / cor0.col0 AS col0 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to b5af6099b76367c451eb09eaeb33b684
query I rowsort
SELECT DISTINCT 45 FROM tab0, tab1 cor0
----
45
query I rowsort
SELECT col1 + - ( - col2 ) * col0 AS col1 FROM tab0 AS cor0
----
132
7389
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 87 col2 FROM tab0 AS cor0
----
-2088
-3045
-7743
query I rowsort
SELECT - col1 + - col2 AS col1 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT + - ( col0 ) + col2 - 63 * - col2 AS col2 FROM tab0 AS cor0
----
2088
29
5159
query I rowsort
SELECT + col2 + col0 - - col2 AS col1 FROM tab2 AS cor0
----
130
155
61
query I rowsort
SELECT + ( 66 ) * + col1 + cor0.col0 * 91 AS col0 FROM tab1 cor0
----
1989
6484
8138
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-677
SELECT + CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-677
SELECT + CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-678
SELECT ALL - col1 DIV + 74 + - ( col1 ) FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-678
SELECT ALL - col1 / + 74 + - ( col1 ) FROM tab2
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-679
SELECT DISTINCT + 96 DIV 81 AS col2 FROM tab2, tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT + 96 / 81 AS col2 FROM tab2, tab0 cor0
----
1
query I rowsort
SELECT DISTINCT + col1 * col2 + ( col1 ) FROM tab2
----
1593
663
868
query I rowsort
SELECT - + 81 AS col2 FROM tab1 cor0
----
-81
-81
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-682
SELECT + col2 + - 81 DIV - cor0.col0 AS col0 FROM tab1 AS cor0
----
58
81
97
skipif mysql # not compatible
query I rowsort label-682
SELECT + col2 + - 81 / - cor0.col0 AS col0 FROM tab1 AS cor0
----
58
81
97
query I rowsort
SELECT ALL + col0 - + 50 FROM tab2 AS cor0
----
-43
28
29
query I rowsort
SELECT + + col0 - 6 FROM tab0 cor0
----
18
29
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-685
SELECT + + cor0.col2 - col1 DIV 40 AS col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-685
SELECT + + cor0.col2 - col1 / 40 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + col1 * - col1 + 75 * col1 * col2 + - col0 * - col1 FROM tab0 AS cor0
----
1261
207518
559468
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-687
SELECT - col1 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-687
SELECT - col1 * - CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + 28 AS col2 FROM tab2 AS cor0
----
54
55
66
query I rowsort
SELECT DISTINCT - - col2 * + col1 + + 81 FROM tab0 AS cor0
----
178
2919
7543
query I rowsort
SELECT ALL - col1 + + tab0.col0 AS col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT ALL + ( - 33 ) FROM tab0 AS cor0
----
-33
-33
-33
query I rowsort
SELECT DISTINCT + col1 * + ( col1 ) + - col0 + + 74 * col1 FROM tab1
----
1051
2597
776
query I rowsort
SELECT DISTINCT col0 + 39 * + ( + col0 ) * 25 AS col0 FROM tab2
----
6832
76128
77104
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 * - 18 + col2 col0 FROM tab0 cor0
----
-131282
-14223
-629
query I rowsort
SELECT col0 * 72 AS col1 FROM tab0
----
1728
2520
6408
query I rowsort
SELECT ALL - col1 + + 78 * 70 AS col1 FROM tab0
----
5363
5369
5374
query I rowsort
SELECT DISTINCT + col2 * 21 AS col1 FROM tab0
----
1722
21
693
query I rowsort
SELECT DISTINCT + - ( - col2 ) * 86 + 37 FROM tab2 AS cor0
----
2273
2359
3305
query I rowsort
SELECT ALL + col0 + cor0.col0 * col2 AS col2 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT tab2.col1 * col0 + tab2.col0 * - tab2.col0 FROM tab2
----
-1482
-4898
168
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 41 ) * - col2 + col1 col1 FROM tab0
----
138
1439
3453
query I rowsort
SELECT DISTINCT - ( col2 + col1 ) * - 51 AS col1 FROM tab0
----
4998
6069
8823
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 + col2 ) col0 FROM tab2
----
104
117
34
query I rowsort
SELECT + 91 * - col1 FROM tab0
----
-7826
-8281
-8827
query I rowsort
SELECT DISTINCT 4 * col1 AS col1 FROM tab1 AS cor0
----
104
40
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-706
SELECT DISTINCT + col2 DIV + col0 + ( - col2 + + cor0.col0 ) * 46 FROM tab0 AS cor0
----
-413
1564
322
skipif mysql # not compatible
query I rowsort label-706
SELECT DISTINCT + col2 / + col0 + ( - col2 + + cor0.col0 ) * 46 FROM tab0 AS cor0
----
-413
1564
322
query I rowsort
SELECT ALL + 9 - - col0 AS col2 FROM tab0 AS cor0
----
33
44
98
query I rowsort
SELECT ALL + - col1 * + col1 * + ( + col0 * col2 ) + - cor0.col0 FROM tab2 AS cor0
----
-181636
-7059546
-867657
query I rowsort
SELECT DISTINCT - 12 * col1 FROM tab2 cor0
----
-204
-372
-708
onlyif mysql # use DIV operator for integer division
query I rowsort label-710
SELECT + - col2 * - col2 - + CAST( col1 AS SIGNED ) DIV - col2 AS col1 FROM tab0 cor0
----
1091
6725
98
skipif mysql # not compatible
query I rowsort label-710
SELECT + - col2 * - col2 - + CAST ( col1 AS INTEGER ) / - col2 AS col1 FROM tab0 cor0
----
1091
6725
98
query I rowsort
SELECT + col1 * col2 - 86 FROM tab2 AS cor0
----
1448
560
751
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 * tab2.col1 col0 FROM tab2
----
1003
1829
3481
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-713
SELECT 29 + + col0 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-713
SELECT 29 + + col0 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 col1 FROM tab1 AS cor0
----
-68
query I rowsort
SELECT - cor0.col2 - - ( + col2 ) * col2 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT ALL + col1 * - 10 FROM tab2 AS cor0
----
-170
-310
-590
query I rowsort
SELECT ALL + cor0.col2 + - 70 AS col2 FROM tab2 cor0
----
-32
-43
-44
query I rowsort
SELECT ALL col1 * ( 21 ) + + col1 AS col2 FROM tab2 AS cor0
----
1298
374
682
query I rowsort
SELECT DISTINCT - cor0.col0 + col2 * col2 + cor0.col1 AS col1 FROM tab2 cor0
----
1382
657
753
query I rowsort
SELECT - - col2 + cor0.col2 * + col2 AS col0 FROM tab0 cor0
----
1122
2
6806
query I rowsort
SELECT - col2 - + 98 FROM tab1 AS cor0
----
-152
-155
-194
query I rowsort
SELECT + - col1 * + ( col2 ) - col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT tab0.col1 - 97 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to b8c604edd81d0182eea2d6dd3fe0108c
query I rowsort
SELECT ALL + col2 * col0 + - col0 * + col2 + ( ( col1 ) ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + cor0.col2 + - col0 * + 50 * col1 + - col0 FROM tab2 AS cor0
----
-10830
-230152
-67191
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-726
SELECT + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-726
SELECT + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * cor0.col2 + + col2 * col2 FROM tab2 cor0
----
1352
1458
2888
onlyif mysql # use DIV operator for integer division
query I rowsort label-728
SELECT - col2 DIV col1 - col1 AS col1 FROM tab2 AS cor0
----
-19
-31
-59
skipif mysql # not compatible
query I rowsort label-728
SELECT - col2 / col1 - col1 AS col1 FROM tab2 AS cor0
----
-19
-31
-59
query I rowsort
SELECT ALL - col2 * - col1 + 17 FROM tab1 AS cor0
----
1265
1421
587
query I rowsort
SELECT DISTINCT - col1 - + cor0.col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT + tab0.col0 AS col1 FROM tab0, tab0 cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-732
SELECT - - col2 DIV col2 + - cor0.col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-732
SELECT - - col2 / col2 + - cor0.col2 / - col2 AS col0 FROM tab1 AS cor0
----
2
2
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col0 col1 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT + 22 + - cor0.col1 * + col1 AS col1 FROM tab1 cor0
----
-147
-654
-78
query I rowsort
SELECT DISTINCT - - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
86
91
97
query I rowsort
SELECT - col2 * + 14 AS col2 FROM tab1 AS cor0
----
-1344
-756
-798
onlyif mysql # use DIV operator for integer division
query I rowsort label-737
SELECT + + ( - col2 ) + col2 * col0 + - col0 DIV col2 FROM tab1 cor0
----
108
3590
7584
skipif mysql # not compatible
query I rowsort label-737
SELECT + + ( - col2 ) + col2 * col0 + - col0 / col2 FROM tab1 cor0
----
108
3590
7584
query I rowsort
SELECT DISTINCT - ( + 34 ) FROM tab0 AS cor0
----
-34
query I rowsort
SELECT DISTINCT - cor0.col0 + col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2814
62
7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 39 ) * col2 * ( + 65 ) col2 FROM tab1 AS cor0
----
136890
144495
243360
query I rowsort
SELECT ALL - col1 + + col1 + col0 AS col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ( - 46 ) * + col0 FROM tab0 cor0
----
-1104
-1610
-4094
query I rowsort
SELECT DISTINCT + col2 * + 3 AS col2 FROM tab1 AS cor0
----
162
171
288
onlyif mysql # use DIV operator for integer division
query I rowsort label-744
SELECT DISTINCT 17 DIV col2 FROM tab0 cor0
----
0
17
skipif mysql # not compatible
query I rowsort label-744
SELECT DISTINCT 17 / col2 FROM tab0 cor0
----
0
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 + + 15 + col0 col1 FROM tab1 cor0
----
-56
21
5
query I rowsort
SELECT ALL - - col0 * - col2 * col0 AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-747
SELECT - col1 * col2 DIV + col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-747
SELECT - col1 * col2 / + col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - ( col1 ) + + ( + col0 ) * - col0 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT + col0 * col0 AS col2 FROM tab2 cor0
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 54 col2 FROM tab0
----
-1782
-4428
-54
query I rowsort
SELECT + col1 + tab1.col0 * col0 FROM tab1
----
35
4106
6413
query I rowsort
SELECT DISTINCT col2 * + 99 FROM tab1
----
5346
5643
9504
query I rowsort
SELECT + col2 + 17 * - col1 * col2 FROM tab2 AS cor0
----
-10944
-14202
-26052
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-754
SELECT + + col0 + ( + col1 ) * col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-754
SELECT + + col0 + ( + col1 ) * col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 45 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT ALL + col0 * - 53 + col1 * - col1 FROM tab2 AS cor0
----
-1332
-4476
-7615
query I rowsort
SELECT DISTINCT - col1 + col0 * col1 * + col0 FROM tab0 AS cor0
----
118728
49450
720720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + cor0.col1 + + col2 col0 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT + + ( + col1 ) + col1 * + 4 AS col2 FROM tab2 AS cor0
----
155
295
85
query I rowsort
SELECT + 41 * - col0 FROM tab0 AS cor0
----
-1435
-3649
-984
query I rowsort
SELECT + - 69 AS col2 FROM tab1 cor0
----
-69
-69
-69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 51 ) col1 FROM tab2 cor0
----
-51
-51
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-763
SELECT - 18 DIV 30 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-763
SELECT - 18 / 30 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - col2 + + 46 FROM tab2
----
19
20
8
query I rowsort
SELECT + + ( col2 ) AS col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT + - 13 + - col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-767
SELECT + - col1 + + col0 DIV 22 + col2 * - col1 FROM tab1 AS cor0
----
-1258
-1430
-578
skipif mysql # not compatible
query I rowsort label-767
SELECT + - col1 + + col0 / 22 + col2 * - col1 FROM tab1 AS cor0
----
-1258
-1430
-578
query I rowsort
SELECT - col0 * col1 + ( - col1 ) FROM tab2 cor0
----
-1360
-248
-4661
query I rowsort
SELECT ALL + col0 * col2 + - ( - col0 ) FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT 52 * col2 + + col0 FROM tab1 AS cor0
----
2811
3028
5072
query I rowsort
SELECT ALL - - col0 * col1 + col0 + col1 FROM tab2 AS cor0
----
1439
255
4739
query I rowsort
SELECT DISTINCT + 53 * - col0 AS col1 FROM tab1 cor0
----
-159
-3392
-4240
onlyif mysql # use DIV operator for integer division
query I rowsort label-773
SELECT - cor0.col2 DIV col1 AS col2 FROM tab2 cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-773
SELECT - cor0.col2 / col1 AS col2 FROM tab2 cor0
----
-2
0
0
query I rowsort
SELECT ALL 23 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT cor0.col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT 93 + - tab1.col0 AS col0 FROM tab1
----
13
29
90
query I rowsort
SELECT DISTINCT col2 + tab0.col0 * col1 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT + + cor0.col0 * cor0.col2 - col2 * col2 AS col0 FROM tab2 cor0
----
-540
1352
1558
query I rowsort
SELECT - + ( - 62 ) * cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d8c0f02de1722cd24bfd0311399d94be
query I rowsort
SELECT + col0 + - tab0.col2 * ( col0 + - col1 ) FROM tab0
----
2070
253
97
query I rowsort
SELECT - + col2 * + col0 + - 47 FROM tab1 AS cor0
----
-209
-3695
-7727
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-782
SELECT - cor0.col0 - - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-782
SELECT - cor0.col0 - - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 + 20 - cor0.col0 FROM tab1 AS cor0
----
-108
-140
14
query I rowsort
SELECT col0 * ( 45 ) - col1 * col0 FROM tab2 cor0
----
-1092
2212
98
query I rowsort
SELECT col2 + ( ( col2 ) + + col2 ) * col0 FROM tab0 AS cor0
----
14678
1617
71
query I rowsort
SELECT ALL 45 * col2 AS col2 FROM tab1
----
2430
2565
4320
query I rowsort
SELECT DISTINCT - 80 FROM tab2
----
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + col2 col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT col1 * + 99 FROM tab1 AS cor0
----
1287
2574
990
query I rowsort
SELECT col2 * + 54 + col0 FROM tab0 cor0
----
1806
4517
89
query I rowsort
SELECT 33 - col2 FROM tab2 AS cor0
----
-5
6
7
query I rowsort
SELECT DISTINCT + - 20 FROM tab1 AS cor0
----
-20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-793
SELECT ALL + CAST( NULL AS SIGNED ) * + 70 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-793
SELECT ALL + CAST ( NULL AS INTEGER ) * + 70 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-794
SELECT - col1 * col1 DIV + 92 AS col2 FROM tab1 AS cor0
----
-1
-1
-7
skipif mysql # not compatible
query I rowsort label-794
SELECT - col1 * col1 / + 92 AS col2 FROM tab1 AS cor0
----
-1
-1
-7
query I rowsort
SELECT col2 * + 4 FROM tab1
----
216
228
384
query I rowsort
SELECT DISTINCT - col0 - 17 AS col0 FROM tab0
----
-106
-41
-52
query I rowsort
SELECT 99 - - tab2.col0 FROM tab2
----
106
177
178
query I rowsort
SELECT DISTINCT + ( - col1 * col2 + 16 * col0 ) AS col1 FROM tab2
----
-286
-725
618
query I rowsort
SELECT ALL + 14 FROM tab2
----
14
14
14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 col1 FROM tab1
----
-70
query I rowsort
SELECT ( - cor0.col2 ) * - col1 FROM tab0 AS cor0
----
2838
7462
97
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to d6a6e32c6adcc8525ed3eb7827781237
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab1.col2 ) * col1 col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + col2 + 16 * col0 FROM tab2
----
1274
1302
139
query I rowsort
SELECT + 75 + - cor0.col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-3
-565
-965
query I rowsort
SELECT DISTINCT - 29 AS col0 FROM tab2 AS cor0
----
-29
query I rowsort
SELECT ALL + 41 * + col1 FROM tab0 AS cor0
----
3526
3731
3977
query I rowsort
SELECT DISTINCT ( col0 ) + col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-809
SELECT - CAST( NULL AS SIGNED ) + - cor0.col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-809
SELECT - CAST ( NULL AS INTEGER ) + - cor0.col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-810
SELECT - - ( col2 ) DIV - col0 AS col1 FROM tab2 cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-810
SELECT - - ( col2 ) / - col0 AS col1 FROM tab2 cor0
----
-3
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-811
SELECT DISTINCT + col2 - col0 DIV col2 FROM tab0 AS cor0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-811
SELECT DISTINCT + col2 - col0 / col2 FROM tab0 AS cor0
----
-34
33
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-812
SELECT DISTINCT + CAST( 51 AS SIGNED ) FROM tab0 AS cor0
----
51
skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT + CAST ( 51 AS INTEGER ) FROM tab0 AS cor0
----
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col0 * col1 + col1 col2 FROM tab1 cor0
----
13533
2054
6410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 col0 FROM tab0 AS cor0
----
-84
query I rowsort
SELECT ALL - cor0.col1 * - col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - col0 * col2 + 53 - col0 AS col1 FROM tab1 AS cor0
----
-112
-3659
-7707
query I rowsort
SELECT + + col1 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT + 78 * cor0.col1 + + cor0.col0 FROM tab1 AS cor0
----
1094
2031
844
query I rowsort
SELECT - cor0.col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ALL + ( - col2 ) - - col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col1 * col0 + col1 FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT - 47 * col0 * + 17 FROM tab1 AS cor0
----
-2397
-51136
-63920
query I rowsort
SELECT - col0 * + col1 * col1 - 36 AS col1 FROM tab0 AS cor0
----
-177540
-329351
-737045
query I rowsort
SELECT + - cor0.col2 + col2 + 66 * + col1 AS col2 FROM tab1 AS cor0
----
1716
660
858
query I rowsort
SELECT ALL + cor0.col1 + cor0.col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-826
SELECT + - col0 DIV + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-826
SELECT + - col0 / + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + + cor0.col1 * 40 AS col0 FROM tab2 AS cor0
----
1240
2360
680
onlyif mysql # use DIV operator for integer division
query I rowsort label-828
SELECT - col0 * 23 DIV + col1 FROM tab2 AS cor0
----
-106
-30
-5
skipif mysql # not compatible
query I rowsort label-828
SELECT - col0 * 23 / + col1 FROM tab2 AS cor0
----
-106
-30
-5
query I rowsort
SELECT - 57 FROM tab2, tab0 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b
query I rowsort
SELECT ALL - col2 * - 7 FROM tab1
----
378
399
672
query I rowsort
SELECT - col0 * + ( col0 ) AS col2 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL ( - col1 ) * col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT + col0 + col2 * cor0.col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL - + 9 * - cor0.col1 FROM tab2 AS cor0
----
153
279
531
query I rowsort
SELECT ALL - ( 45 ) + - col0 AS col0 FROM tab1 AS cor0
----
-109
-125
-48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-836
SELECT CAST( col0 AS SIGNED ) * + col1 FROM tab2 cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-836
SELECT CAST ( col0 AS INTEGER ) * + col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - col2 * - tab1.col2 AS col0 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT col1 + 28 FROM tab1
----
38
41
54
query I rowsort
SELECT ALL + col2 + 33 * col0 FROM tab1 AS cor0
----
153
2169
2736
query I rowsort
SELECT DISTINCT + col0 * - col2 * col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-841
SELECT + - CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-841
SELECT + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL 69 * col0 FROM tab2 AS cor0
----
483
5382
5451
query I rowsort
SELECT + col1 + + col0 * + 63 FROM tab1
----
215
4042
5053
query I rowsort
SELECT + 67 FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 09fa7af42010457bb3c6ffd0dfea3bc8
query I rowsort
SELECT ALL tab1.col1 * - ( - tab1.col1 ) FROM tab1
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 col0 FROM tab1
----
-40
-40
-40
onlyif mysql # use DIV operator for integer division
query I rowsort label-847
SELECT DISTINCT tab2.col2 DIV - ( - col0 * - col0 ) FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-847
SELECT DISTINCT tab2.col2 / - ( - col0 * - col0 ) FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 col1 FROM tab0
----
-50
-50
-50
query I rowsort
SELECT DISTINCT ( col1 ) + - col1 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col1 FROM tab2 AS cor0
----
-8
-8
-8
query I rowsort
SELECT ALL 74 * - 40 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to fd8175634062ee59dc0bc767792a807d
query I rowsort
SELECT DISTINCT - - col2 * - 5 AS col0 FROM tab0 AS cor0
----
-165
-410
-5
query I rowsort
SELECT ALL + col1 * col0 + col2 FROM tab1
----
1136
132
697
query I rowsort
SELECT ALL + 40 + col2 FROM tab1
----
136
94
97
query I rowsort
SELECT col0 * ( + 81 ) + col1 FROM tab0 cor0
----
2030
2932
7300
query I rowsort
SELECT 51 - col1 AS col0 FROM tab0
----
-35
-40
-46
query I rowsort
SELECT ALL col1 + - col1 * - ( + col1 ) AS col2 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT DISTINCT tab0.col0 + col2 * 65 FROM tab0
----
100
2169
5419
query I rowsort
SELECT ALL col2 - - col0 AS col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT col2 + col2 * 83 FROM tab0 AS cor0
----
2772
6888
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-861
SELECT DISTINCT - col1 DIV + ( col1 ) - + col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
-2
skipif mysql # not compatible
query I rowsort label-861
SELECT DISTINCT - col1 / + ( col1 ) - + col1 / + col1 AS col1 FROM tab2 AS cor0
----
-2
query I rowsort
SELECT ALL col2 + + ( + col0 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - + col0 + 50 FROM tab1 AS cor0
----
-14
-30
47
query I rowsort
SELECT DISTINCT col1 * + 70 * - col1 FROM tab2 AS cor0
----
-20230
-243670
-67270
query I rowsort
SELECT DISTINCT - col0 + ( 15 ) FROM tab0 AS cor0
----
-20
-74
-9
query I rowsort
SELECT cor0.col0 + - col0 * 29 FROM tab2 cor0
----
-196
-2184
-2212
query I rowsort
SELECT ALL col1 + 67 FROM tab0 AS cor0
----
153
158
164
skipif mysql # not compatible
query I rowsort
SELECT ALL col2 + + CAST ( - col0 AS REAL ) FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT ALL - - col0 + 29 * - cor0.col0 FROM tab0 AS cor0
----
-2492
-672
-980
onlyif mysql # use DIV operator for integer division
query I rowsort label-870
SELECT DISTINCT - + col1 + - 47 DIV - col1 FROM tab2 cor0
----
-15
-30
-59
skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT - + col1 + - 47 / - col1 FROM tab2 cor0
----
-15
-30
-59
query I rowsort
SELECT col0 + 55 * cor0.col1 FROM tab0 AS cor0
----
4754
5094
5370
query I rowsort
SELECT ALL - col1 * + col2 + + col0 + tab0.col2 AS col1 FROM tab0
----
-2781
-61
-7291
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + 92 col2 FROM tab1 AS cor0
----
12
28
89
query I rowsort
SELECT col1 * - col2 * ( - col0 + + col1 * col0 ) FROM tab0
----
-325920
-5789520
-59770620
query I rowsort
SELECT DISTINCT + - col2 * + col1 + col0 + + 69 FROM tab0 AS cor0
----
-2745
-7304
7
query I rowsort
SELECT DISTINCT - 57 + tab1.col1 * - 61 AS col1 FROM tab1
----
-1643
-667
-850
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 col1 FROM tab1
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-878
SELECT 48 DIV col1 FROM tab2
----
0
1
2
skipif mysql # not compatible
query I rowsort label-878
SELECT 48 / col1 FROM tab2
----
0
1
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-879
SELECT DISTINCT + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-879
SELECT DISTINCT + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-880
SELECT DISTINCT - + col2 - col0 DIV col0 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-880
SELECT DISTINCT - + col2 - col0 / col0 FROM tab0 AS cor0
----
-2
-34
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-882
SELECT + col0 + 82 DIV ( - col1 ) FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-882
SELECT + col0 + 82 / ( - col1 ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col1 - + cor0.col1 * + 9 * col0 FROM tab2 AS cor0
----
-12070
-1922
-41359
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 * - col2 * col1 col2 FROM tab1
----
36416
4209
99760
query I rowsort
SELECT col1 * - col1 + - col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN + col2 AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + tab0.col2 col2 FROM tab0
----
171
36
57
query III rowsort
SELECT * FROM tab0 WHERE ( - col1 ) BETWEEN NULL AND - col2
----
query I rowsort
SELECT col1 + - col2 + - col0 / + col0 AS col2 FROM tab1 WHERE NOT - col1 > NULL
----
query I rowsort
SELECT ALL tab0.col1 - + col0 AS col0 FROM tab0
----
2
62
62
query I rowsort
SELECT col1 + col0 * + col1 * col0 FROM tab1
----
260
40970
83213
query I rowsort
SELECT DISTINCT + tab2.col2 * - col1 + + col2 FROM tab2
----
-1508
-608
-810
query III rowsort
SELECT * FROM tab0 WHERE col0 < + col1 * col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT + 92 * col1 + - ( - col2 ) FROM tab2 AS cor0
----
1602
2879
5454
query I rowsort
SELECT DISTINCT 47 * col2 * col1 AS col2 FROM tab0 AS cor0
----
133386
350714
4559
query III rowsort
SELECT * FROM tab2 WHERE col2 NOT IN ( col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-896
SELECT col0 + - col0 * col2 DIV col1 AS col2 FROM tab0
----
15
35
9
skipif mysql # not compatible
query I rowsort label-896
SELECT col0 + - col0 * col2 / col1 AS col2 FROM tab0
----
15
35
9
query I rowsort
SELECT DISTINCT col0 + col0 * + col0 FROM tab0
----
1260
600
8010
query I rowsort
SELECT col2 + + col0 * - col2 - col1 FROM tab1
----
-134
-3601
-7597
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - tab0.col0 + + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-900
SELECT DISTINCT col1 DIV - col1 + - tab0.col2 AS col1 FROM tab0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT col1 / - col1 + - tab0.col2 AS col1 FROM tab0
----
-2
-34
-83
query I rowsort
SELECT + ( - col0 ) AS col1 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + col0 + + col0 * + 69 AS col2 FROM tab2 AS cor0
----
490
5460
5530
query I rowsort
SELECT ( - col2 ) + ( + col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + ( + col2 ) * + ( - 59 ) * col0 AS col0 FROM tab0 cor0
----
-2065
-430582
-46728
query I rowsort
SELECT ALL - cor0.col1 * - col1 AS col0 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - cor0.col0 * - col0 + + 20 AS col0 FROM tab1 AS cor0
----
29
4116
6420
onlyif mysql # use DIV operator for integer division
query I rowsort label-907
SELECT - col0 DIV - col2 + - 25 + col1 AS col1 FROM tab1 AS cor0
----
-12
-14
1
skipif mysql # not compatible
query I rowsort label-907
SELECT - col0 / - col2 + - 25 + col1 AS col1 FROM tab1 AS cor0
----
-12
-14
1
query I rowsort
SELECT + col0 * + 12 FROM tab1 AS cor0
----
36
768
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT - + cor0.col0 + + col1 * col2 FROM tab1 AS cor0
----
1168
1401
506
onlyif mysql # use DIV operator for integer division
query I rowsort label-911
SELECT ALL ( col0 ) DIV col2 AS col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-911
SELECT ALL ( col0 ) / col2 AS col2 FROM tab1
----
0
0
1
query I rowsort
SELECT - - cor0.col1 * col0 + + col1 + + cor0.col1 AS col1 FROM tab0 cor0
----
2236
3589
8281
query I rowsort
SELECT + col0 * 85 AS col0 FROM tab0
----
2040
2975
7565
query I rowsort
SELECT 5 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
query I rowsort
SELECT - ( ( + tab0.col0 ) ) FROM tab0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT 63 * + col2 FROM tab0
----
2079
5166
63
query I rowsort
SELECT ALL - col2 * - col1 * - col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-22592
-24469
-39806
query I rowsort
SELECT DISTINCT - ( col1 ) * + col2 + + tab0.col0 * col1 FROM tab0
----
-774
3298
637
query I rowsort
SELECT ALL 58 FROM tab1, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT - ( ( - col0 ) ) - col0 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT ( tab2.col1 ) * + col2 * col1 + tab2.col2 * col1 AS col2 FROM tab2
----
11628
26784
92040
query I rowsort
SELECT + 74 * col0 - col0 FROM tab1
----
219
4672
5840
query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
3
64
80
query I rowsort
SELECT ALL col1 + + ( tab2.col1 ) * - col1 + + col2 * + col1 FROM tab2
----
-1888
-93
374
query I rowsort
SELECT DISTINCT ( col1 ) + col1 FROM tab0
----
172
182
194
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col1 AS REAL ) + + col0 + col1 AS col0 FROM tab2
----
113
196
69
query I rowsort
SELECT ALL col2 * col2 AS col0 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT + - 28 * col2 FROM tab1 AS cor0
----
-1512
-1596
-2688
query I rowsort
SELECT 73 * - col2 AS col1 FROM tab2 cor0
----
-1898
-1971
-2774
query I rowsort
SELECT ALL col1 * cor0.col1 * - col0 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT - - col1 * - col1 * col1 AS col2 FROM tab0 AS cor0
----
-636056
-753571
-912673
query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - - 95 + + col2 FROM tab0 cor0
----
128
177
96
query I rowsort
SELECT DISTINCT - 22 * + col0 * col2 AS col0 FROM tab2 AS cor0
----
-4158
-44616
-66044
query I rowsort
SELECT DISTINCT - 77 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
2541
6314
77
query I rowsort
SELECT - col1 * - cor0.col2 * + cor0.col0 AS col1 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT ALL + 77 * + col2 AS col2 FROM tab0 AS cor0
----
2541
6314
77
query I rowsort
SELECT col1 * col2 + col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
195
2957
7635
query I rowsort
SELECT ALL + col0 + col1 * col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT - col1 - 56 AS col2 FROM tab1
----
-66
-69
-82
query I rowsort
SELECT DISTINCT - col1 * ( - col1 + - col2 ) FROM tab0
----
10234
15743
9506
query I rowsort
SELECT col2 * col0 + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * - col2 col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT + tab2.col2 * - tab2.col0 AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT col0 + col0 + + cor0.col0 AS col2 FROM tab1 cor0
----
192
240
9
query I rowsort
SELECT col2 * col0 + + col1 AS col1 FROM tab1
----
188
3658
7693
query I rowsort
SELECT ALL col1 * col1 * col1 - + col2 FROM tab2
----
205353
29764
4875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 col2 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL tab0.col0 FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col1 )
----
query I rowsort
SELECT DISTINCT - tab1.col2 * + col0 + + col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT - col2 - tab2.col0 * + col1 AS col0 FROM tab2
----
-1381
-244
-4628
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( - col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * col1 / + col1 BETWEEN NULL AND + col2
----
64
10
57
query I rowsort
SELECT ALL tab1.col2 FROM tab1 WHERE ( NULL ) IN ( col0 )
----
query I rowsort
SELECT ALL - tab2.col2 + col2 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE col0 NOT BETWEEN col2 AND NULL
----
54
96
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col2 )
----
query I rowsort
SELECT DISTINCT col2 * col2 AS col2 FROM tab1 WHERE ( NULL ) >= NULL
----
query I rowsort
SELECT + col1 * col1 + + tab2.col2 AS col2 FROM tab2
----
327
3507
988
query I rowsort
SELECT ALL + col1 * - col1 + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT - col2 * col1 - - col0 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-962
SELECT + col2 DIV col1 + - col2 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-962
SELECT + col2 / col1 + - col2 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - col1 * col2 - + col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT - cor0.col1 + + col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - tab0.col1 * col0 * - col1 AS col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT + - col1 * + col2 + + col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT col1 + + col2 + + col0 * col1 AS col0 FROM tab1
----
1149
158
707
query I rowsort
SELECT DISTINCT - col0 - col2 * + col0 * - tab2.col2 AS col0 FROM tab2
----
113997
5096
52650
query I rowsort
SELECT col0 * + col1 - + col0 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-970
SELECT ALL col2 DIV + cor0.col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-970
SELECT ALL col2 / + cor0.col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT col2 + col1 * cor0.col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT + - cor0.col0 * + col0 + col2 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT + cor0.col1 * + col0 * - col2 - + col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-118118
-5022
-50388
query I rowsort
SELECT DISTINCT + tab1.col2 - col1 AS col0 FROM tab1
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-975
SELECT DISTINCT + tab0.col0 + + col2 - + col2 DIV - col0 FROM tab0
----
171
36
58
skipif mysql # not compatible
query I rowsort label-975
SELECT DISTINCT + tab0.col0 + + col2 - + col2 / - col0 FROM tab0
----
171
36
58
query I rowsort
SELECT + tab1.col1 * + col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT col2 * col2 + - col2 - col1 AS col0 FROM tab2
----
1389
591
671
query I rowsort
SELECT ALL + col2 * col1 + - col1 AS col1 FROM tab0
----
0
2752
7371
query I rowsort
SELECT DISTINCT tab2.col0 * col0 + col2 AS col2 FROM tab2
----
6110
6279
76
query I rowsort
SELECT col1 * col1 + - col0 AS col0 FROM tab0
----
7372
8192
9374
query I rowsort
SELECT DISTINCT col2 * tab0.col2 + + col1 AS col1 FROM tab0
----
1175
6815
98
query I rowsort
SELECT + col2 * tab1.col0 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT tab0.col0 + - col2 * + col1 FROM tab0
----
-2814
-62
-7373
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN col1 * col2 / - col1 AND ( NULL ) OR NULL IN ( col1 )
----
query I rowsort
SELECT ALL - + col1 + + col1 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL col1 + + col1 + + col1 AS col1 FROM tab0
----
258
273
291
query I rowsort
SELECT DISTINCT - + col0 * + col0 * col1 + - col1 FROM tab2 AS cor0
----
-106114
-1550
-359015
query I rowsort
SELECT - - col2 + + col1 * + cor0.col1 + col0 * + col1 AS col1 FROM tab1 AS cor0
----
1305
797
808
query I rowsort
SELECT - 51 * 97 * col2 AS col1 FROM tab2 AS cor0
----
-128622
-133569
-187986
query I rowsort
SELECT + - 72 AS col1 FROM tab2 cor0
----
-72
-72
-72
query I rowsort
SELECT - 0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT + col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - 47 + + col2 AS col2 FROM tab2 AS cor0
----
-20
-21
-9
query I rowsort
SELECT col2 - - col2 * + 3 FROM tab2 AS cor0
----
104
108
152
query I rowsort
SELECT DISTINCT + 28 * col1 AS col0 FROM tab1
----
280
364
728
query I rowsort
SELECT DISTINCT 8 FROM tab1, tab1 cor0
----
8
query I rowsort
SELECT DISTINCT 51 * col0 AS col1 FROM tab1
----
153
3264
4080
query I rowsort
SELECT + + col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 * + col1 col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ( - col1 + 19 ) FROM tab2
----
-12
-40
2
query I rowsort
SELECT + ( + col1 ) * + 41 AS col0 FROM tab2
----
1271
2419
697
query I rowsort
SELECT + ( + col2 * tab0.col0 ) FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1
33
82
query I rowsort
SELECT ALL + 54 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT - col2 + - 99 * 30 AS col1 FROM tab0 AS cor0
----
-2971
-3003
-3052
query I rowsort
SELECT - col0 * ( col2 ) + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT col1 - 63 FROM tab1 AS cor0
----
-37
-50
-53
query I rowsort
SELECT + col0 * ( + col0 ) AS col1 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1009
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 * col2 / + col1 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1009
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 * col2 / + col1 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + 77 * col2 AS col1 FROM tab1 AS cor0
----
4158
4389
7392
query I rowsort
SELECT 86 + 3 AS col0 FROM tab0 AS cor0
----
89
89
89
query I rowsort
SELECT ALL - + ( col2 ) + col1 + col1 * - 97 FROM tab1 AS cor0
----
-1017
-1344
-2550
query I rowsort
SELECT DISTINCT 61 FROM tab2, tab0 AS cor0
----
61
query I rowsort
SELECT col0 * - 28 FROM tab2
----
-196
-2184
-2212
query I rowsort
SELECT + col2 * 69 + col0 FROM tab0 AS cor0
----
104
2301
5747
query I rowsort
SELECT DISTINCT cor0.col2 - 57 * tab2.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ffac3be6f0dbfe63f4d93073c9abed73
query I rowsort
SELECT ALL col2 * 48 + - col0 AS col2 FROM tab1
----
2589
2672
4528
query I rowsort
SELECT ALL col0 * col1 + + col2 AS col2 FROM tab1
----
1136
132
697
query I rowsort
SELECT 36 AS col1 FROM tab1 cor0
----
36
36
36
query I rowsort
SELECT DISTINCT 6 AS col1 FROM tab1
----
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-1021
SELECT DISTINCT + 46 + col0 DIV col0 AS col1 FROM tab0 AS cor0
----
47
skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT + 46 + col0 / col0 AS col1 FROM tab0 AS cor0
----
47
query I rowsort
SELECT ALL + 68 + - col0 FROM tab0 AS cor0
----
-21
33
44
query I rowsort
SELECT ALL - cor0.col1 * col0 + - col2 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT col1 * 69 + col0 AS col1 FROM tab1 AS cor0
----
1797
754
977
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 + col1 col2 FROM tab0 cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT - ( 52 ) FROM tab2 AS cor0
----
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1027
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1027
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 24 * - col1 + + col2 AS col1 FROM tab1 AS cor0
----
297
408
678
onlyif mysql # use DIV operator for integer division
query I rowsort label-1029
SELECT 69 DIV - 76 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1029
SELECT 69 / - 76 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + col1 col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + 69 * col0 FROM tab1 AS cor0
----
207
4416
5520
query I rowsort
SELECT col1 + + col0 + - 87 FROM tab2
----
-49
50
9
query I rowsort
SELECT DISTINCT + 90 + + col2 - 60 FROM tab1
----
126
84
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-1034
SELECT + - col1 + col2 - 61 DIV - 24 FROM tab0 AS cor0
----
-51
-7
-94
skipif mysql # not compatible
query I rowsort label-1034
SELECT + - col1 + col2 - 61 / - 24 FROM tab0 AS cor0
----
-51
-7
-94
query I rowsort
SELECT - + col1 * - col2 - - ( col0 ) AS col1 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-1036
SELECT + cor0.col0 * col0 DIV col1 FROM tab2 AS cor0
----
1
103
367
skipif mysql # not compatible
query I rowsort label-1036
SELECT + cor0.col0 * col0 / col1 FROM tab2 AS cor0
----
1
103
367
query I rowsort
SELECT - col1 * col2 + cor0.col2 - - 70 * - col1 AS col2 FROM tab0 AS cor0
----
-13750
-6886
-8825
query I rowsort
SELECT - col2 * - 78 FROM tab2 cor0
----
2028
2106
2964
query I rowsort
SELECT DISTINCT - + cor0.col2 * col1 AS col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col2 + - 42 FROM tab0 AS cor0
----
-124
-43
-75
query I rowsort
SELECT ALL + 30 * 77 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 0312f7af28bd6d3bce051c21253f12f9
query I rowsort
SELECT col0 + - 34 * + 44 AS col0 FROM tab0 AS cor0
----
-1407
-1461
-1472
onlyif mysql # use DIV operator for integer division
query I rowsort label-1043
SELECT DISTINCT col1 * col0 DIV + ( + cor0.col0 ) + cor0.col0 FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT col1 * col0 / + ( + cor0.col0 ) + cor0.col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + col1 + - col2 * + 82 AS col1 FROM tab2 cor0
----
-2073
-2183
-3099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1045
SELECT DISTINCT col1 + cor0.col2 * 85 + + col2 DIV cor0.col1 FROM tab2 AS cor0
----
2269
2326
3249
skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT col1 + cor0.col2 * 85 + + col2 / cor0.col1 FROM tab2 AS cor0
----
2269
2326
3249
query I rowsort
SELECT - col0 * - col2 + 67 FROM tab2 AS cor0
----
2095
256
3069
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1047
SELECT DISTINCT + + cor0.col0 + col2 * - CAST( 90 + - cor0.col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1817
-1941
656
skipif mysql # not compatible
query I rowsort label-1047
SELECT DISTINCT + + cor0.col0 + col2 * - CAST ( 90 + - cor0.col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1817
-1941
656
query I rowsort
SELECT ALL col0 * - col1 + - col2 + + col1 * col2 AS col0 FROM tab1 AS cor0
----
-127
112
1272
onlyif mysql # use DIV operator for integer division
query I rowsort label-1049
SELECT + + ( col2 ) DIV col2 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1049
SELECT + + ( col2 ) / col2 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT + 43 * col2 + col2 * + col1 FROM tab1 cor0
----
3021
3726
5376
query I rowsort
SELECT col0 * ( + tab2.col1 ) * + 44 AS col0 FROM tab2
----
202488
59092
9548
query I rowsort
SELECT - ( col0 ) * tab0.col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + 0 * cor0.col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - - 50 + + col0 * col1 * ( cor0.col1 ) FROM tab2 AS cor0
----
22881
271568
6777
query I rowsort
SELECT ALL - col2 * col2 - + col0 FROM tab2
----
-1523
-736
-754
query I rowsort
SELECT ALL col2 - ( col1 ) FROM tab1
----
28
47
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1057
SELECT ALL CAST( 79 AS SIGNED ) * col2 + col1 * col1 * col1 AS col1 FROM tab1 AS cor0
----
21842
5503
9781
skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL CAST ( 79 AS INTEGER ) * col2 + col1 * col1 * col1 AS col1 FROM tab1 AS cor0
----
21842
5503
9781
query I rowsort
SELECT ALL + - ( + cor0.col0 ) + + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( 28 ) + + tab0.col1 + 28 col1 FROM tab0
----
-2373
-558
-855
query I rowsort
SELECT + col1 + ( - col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + ( - tab0.col1 * + tab0.col2 ) + 50 AS col1 FROM tab0
----
-2788
-47
-7412
query I rowsort
SELECT - 94 * - col1 + - col1 AS col2 FROM tab1 AS cor0
----
1209
2418
930
query I rowsort
SELECT 86 * 7 FROM tab2
----
602
602
602
query I rowsort
SELECT ALL - + 96 + col0 AS col2 FROM tab1 AS cor0
----
-16
-32
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1065
SELECT DISTINCT CAST( NULL AS SIGNED ) + 53 * + col1 + 4 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1065
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 53 * + col1 + 4 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - 75 * + 68 AS col2 FROM tab0 AS cor0
----
-5100
-5100
-5100
query I rowsort
SELECT 73 + - col2 FROM tab2 AS cor0
----
35
46
47
query I rowsort
SELECT DISTINCT - + ( + 77 ) * - col0 + ( col0 ) + - col0 * col0 FROM tab1 AS cor0
----
-160
225
896
query I rowsort
SELECT 21 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1070
SELECT ALL - CAST( NULL AS SIGNED ) - + ( + col0 ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL - CAST ( NULL AS INTEGER ) - + ( + col0 ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col1 * + col1 + - col1 FROM tab2 AS cor0
----
272
3422
930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col0 ) - col0 col2 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT ALL + col2 * col2 + cor0.col1 + ( + ( col2 ) ) FROM tab1 AS cor0
----
2996
3316
9325
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 65 + col2 * - cor0.col2 col1 FROM tab2 AS cor0
----
-1379
-611
-664
query I rowsort
SELECT + ( col2 ) * - col1 - col0 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT ALL + + 14 + col2 AS col2 FROM tab1 AS cor0
----
110
68
71
query I rowsort
SELECT DISTINCT 38 * + col1 + - col1 * ( + col2 ) * col1 + + col1 * - 12 AS col2 FROM tab2 AS cor0
----
-10540
-25141
-88972
query I rowsort
SELECT DISTINCT 41 FROM tab0, tab1 AS cor0
----
41
query I rowsort
SELECT ( ( - col2 ) ) + + 93 + - col0 FROM tab0 AS cor0
----
-78
36
57
query I rowsort
SELECT DISTINCT ( + col2 ) * col2 AS col1 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT ALL + col0 + col0 * col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT DISTINCT + cor0.col0 + col1 * - cor0.col0 - 24 AS col1 FROM tab1 AS cor0
----
-600
-984
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1083
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT col1 + + col1 * + col2 FROM tab1 cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - cor0.col2 * + cor0.col2 col1 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT ALL + + ( cor0.col0 ) * 94 + + 71 AS col2 FROM tab1 AS cor0
----
353
6087
7591
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1087
SELECT - ( + 24 + + col0 * - CAST( ( col2 ) AS SIGNED ) ) FROM tab1
----
138
3624
7656
skipif mysql # not compatible
query I rowsort label-1087
SELECT - ( + 24 + + col0 * - CAST ( ( col2 ) AS INTEGER ) ) FROM tab1
----
138
3624
7656
query I rowsort
SELECT + col2 * + col2 + 26 AS col2 FROM tab0 AS cor0
----
1115
27
6750
query I rowsort
SELECT + + 79 FROM tab2, tab2 cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT + col2 * col0 - cor0.col2 * - col1 AS col0 FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT col2 * - 29 FROM tab0 AS cor0
----
-2378
-29
-957
query I rowsort
SELECT ALL + col2 + ( col0 ) AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + col0 * + 40 FROM tab2 AS cor0
----
280
3120
3160
query I rowsort
SELECT + + col2 * + ( + col2 ) AS col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT ALL - - col1 * - ( + col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1096
SELECT col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1096
SELECT col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + 43 FROM tab2 AS cor0
----
-35
-36
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-1098
SELECT - col1 DIV + 30 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-1098
SELECT - col1 / + 30 FROM tab2 AS cor0
----
-1
-1
0
query I rowsort
SELECT DISTINCT col2 + + cor0.col0 * ( cor0.col1 + - col2 ) AS col2 FROM tab0 AS cor0
----
1305
3361
883
query I rowsort
SELECT - ( cor0.col1 ) + col1 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1101
SELECT ALL ( 76 ) DIV - col2 - - col0 col1 FROM tab0 cor0
----
-41
22
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL ( 76 ) / - col2 - - col0 col1 FROM tab0 cor0
----
-41
22
89
query I rowsort
SELECT - 88 - col0 AS col0 FROM tab1 cor0
----
-152
-168
-91
query I rowsort
SELECT DISTINCT - 41 * col2 + col0 + + col0 * col1 * col0 AS col2 FROM tab0 AS cor0
----
118819
48207
717538
query I rowsort
SELECT col0 * + col1 * - col2 + - col2 FROM tab0 AS cor0
----
-3396
-664200
-68145
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + col2 - + col0 AS col1 FROM tab1 AS cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col2 AS REAL ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1108
SELECT + tab0.col1 DIV ( + cor0.col1 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 2a96778151b3f10d316f2f957915629d
skipif mysql # not compatible
query I rowsort label-1108
SELECT + tab0.col1 / ( + cor0.col1 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 2a96778151b3f10d316f2f957915629d
query I rowsort
SELECT col2 * col0 + 71 FROM tab1
----
233
3719
7751
query I rowsort
SELECT DISTINCT col1 * - 1 FROM tab2
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + col0 col2 FROM tab0
----
7420
8370
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-1112
SELECT col2 + + ( + col1 ) DIV col1 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-1112
SELECT col2 + + ( + col1 ) / col1 FROM tab1
----
55
58
97
query I rowsort
SELECT DISTINCT col0 * - col2 * - col1 AS col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT col1 + - col0 * 87 FROM tab2 AS cor0
----
-578
-6727
-6856
query I rowsort
SELECT - 55 * - cor0.col2 FROM tab2 cor0
----
1430
1485
2090
query I rowsort
SELECT DISTINCT - 20 AS col2 FROM tab0, tab2 cor0, tab0 AS cor1
----
-20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 96 * 76 col1 FROM tab0 AS cor0
----
-240768
-598272
-7296
query I rowsort
SELECT ( + 12 ) + col2 AS col1 FROM tab2 cor0
----
38
39
50
query I rowsort
SELECT col2 * + col0 + + col1 AS col2 FROM tab1 cor0
----
188
3658
7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1120
SELECT + CAST( + 31 AS SIGNED ) * cor0.col2 AS col1 FROM tab1 AS cor0
----
1674
1767
2976
skipif mysql # not compatible
query I rowsort label-1120
SELECT + CAST ( + 31 AS INTEGER ) * cor0.col2 AS col1 FROM tab1 AS cor0
----
1674
1767
2976
query I rowsort
SELECT + cor0.col2 + + col0 * cor0.col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL 19 + + 27 AS col0 FROM tab0 AS cor0
----
46
46
46
query I rowsort
SELECT - - col1 + 27 * col1 AS col1 FROM tab2 cor0
----
1652
476
868
query I rowsort
SELECT ( - col1 ) * + col0 * - ( + col2 ) FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT - cor0.col0 + + cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT ALL tab1.col2 + col2 + + col1 FROM tab1
----
124
134
205
query I rowsort
SELECT ALL + col0 + ( - col0 ) * + col2 + col2 AS col0 FROM tab2
----
-155
-1924
-2885
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col1 * col2 col0 FROM tab0
----
2814
62
7373
query I rowsort
SELECT 88 + + cor0.col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1622
734
925
query I rowsort
SELECT ALL col2 + 9 + col0 * col1 FROM tab1
----
1145
141
706
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1131
SELECT - CAST( NULL AS SIGNED ) * col0 col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1131
SELECT - CAST ( NULL AS INTEGER ) * col0 col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1132
SELECT ALL - CAST( NULL AS SIGNED ) * + tab2.col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL - CAST ( NULL AS INTEGER ) * + tab2.col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 + col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1134
SELECT + 70 + - col1 * col2 + CAST( cor0.col2 AS SIGNED ) FROM tab2 AS cor0
----
-1438
-538
-740
skipif mysql # not compatible
query I rowsort label-1134
SELECT + 70 + - col1 * col2 + CAST ( cor0.col2 AS INTEGER ) FROM tab2 AS cor0
----
-1438
-538
-740
query I rowsort
SELECT DISTINCT - + ( - 30 ) FROM tab1 cor0
----
30
query I rowsort
SELECT - col0 * - col1 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL 83 AS col1 FROM tab1, tab1 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 5ced3720d5aeff0dd77d5059a38001b6
query I rowsort
SELECT ALL + - 78 FROM tab1 AS cor0
----
-78
-78
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1139
SELECT ALL + 16 + + col0 * - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-1209
-560
-7905
skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL + 16 + + col0 * - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-1209
-560
-7905
query I rowsort
SELECT - 45 * col0 * col0 FROM tab0
----
-25920
-356445
-55125
onlyif mysql # use DIV operator for integer division
query I rowsort label-1141
SELECT ALL - - col1 + + col0 + - 20 DIV - col2 AS col2 FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL - - col1 + + col0 + - 20 / - col2 AS col2 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1142
SELECT + 64 * - cor0.col0 + CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-166
-4086
-5107
skipif mysql # not compatible
query I rowsort label-1142
SELECT + 64 * - cor0.col0 + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-166
-4086
-5107
query I rowsort
SELECT ALL col1 * col2 + - ( col2 ) * + col0 + + col0 * col0 FROM tab0 AS cor0
----
1287
2622
8085
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 5 ) col0 FROM tab2
----
-5
-5
-5
query I rowsort
SELECT - 88 * - tab0.col2 - - col2 AS col0 FROM tab0
----
2937
7298
89
query I rowsort
SELECT + ( - col1 ) * tab1.col0 * - col1 AS col0 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT + 17 * - col1 + - col2 AS col0 FROM tab1
----
-227
-317
-496
query I rowsort
SELECT DISTINCT + 15 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-1149
SELECT + 22 * col1 + col1 * - col2 + - col0 DIV + 54 FROM tab1 AS cor0
----
-351
-832
-963
skipif mysql # not compatible
query I rowsort label-1149
SELECT + 22 * col1 + col1 * - col2 + - col0 / + 54 FROM tab1 AS cor0
----
-351
-832
-963
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col1 + col1 col2 FROM tab1 AS cor0
----
30
39
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1151
SELECT - col2 DIV col0 col0 FROM tab1 AS cor0
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1151
SELECT - col2 / col0 col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT - 75 * + col2 + 10 + col1 AS col0 FROM tab2 cor0
----
-1881
-1984
-2823
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT 12 FROM tab0, tab0 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to c60b9398e29d6382e0d15363f9325811
query I rowsort
SELECT - col1 * + ( + col2 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - 71 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062
query I rowsort
SELECT col1 - col1 AS col0 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1158
SELECT DISTINCT - tab0.col0 - - col0 DIV - col0 col1 FROM tab0
----
-25
-36
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1158
SELECT DISTINCT - tab0.col0 - - col0 / - col0 col1 FROM tab0
----
-25
-36
-90
query I rowsort
SELECT + col2 + - 12 AS col2 FROM tab2 AS cor0
----
14
15
26
query I rowsort
SELECT col0 - ( col2 ) * col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-10903
-25940
-90428
query I rowsort
SELECT DISTINCT + - col1 + - cor0.col2 * col2 FROM tab1 AS cor0
----
-2942
-3259
-9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT 85 + col0 * col0 AS col0 FROM tab0 AS cor0
----
1310
661
8006
onlyif mysql # use DIV operator for integer division
query I rowsort label-1164
SELECT + - col0 DIV - col1 + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1164
SELECT + - col0 / - col1 + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - + col1 + ( + col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * 89 AS col1 FROM tab2 AS cor0
----
-623
-6942
-7031
onlyif mysql # use DIV operator for integer division
query I rowsort label-1167
SELECT col2 DIV - ( + col2 ) FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1167
SELECT col2 / - ( + col2 ) FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL col0 + + col1 * col0 * col0 FROM tab2 AS cor0
----
106176
1526
359034
query I rowsort
SELECT DISTINCT - + cor0.col0 + 0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + cor0.col1 * ( col1 ) + - cor0.col2 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT ALL + col1 + col1 * col0 AS col2 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT - - cor0.col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT cor0.col2 * - 1 * 87 AS col1 FROM tab2 AS cor0
----
-2262
-2349
-3306
query I rowsort
SELECT ALL + col0 * ( - 69 ) + col0 AS col2 FROM tab2 AS cor0
----
-476
-5304
-5372
onlyif mysql # use DIV operator for integer division
query I rowsort label-1175
SELECT + + col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1175
SELECT + + col0 / - col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - col2 + col0 * cor0.col1 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT - + col1 + + 25 AS col2 FROM tab2 AS cor0
----
-34
-6
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1178
SELECT DISTINCT - - col2 + CAST( - col0 * - col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
6110
6279
76
skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT - - col2 + CAST ( - col0 * - col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
6110
6279
76
query I rowsort
SELECT - col2 + 54 * col0 * col1 FROM tab1 AS cor0
----
34503
4158
56064
query I rowsort
SELECT - 98 * 38 FROM tab0 AS cor0
----
-3724
-3724
-3724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) * + col1 col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL col0 * col0 * col0 AS col1 FROM tab2 AS cor0
----
343
474552
493039
query I rowsort
SELECT col2 + ( - 2 ) * - col0 AS col1 FROM tab2
----
182
196
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 + - col1 * col0 col0 FROM tab0 cor0
----
-2011
-3342
-8046
query I rowsort
SELECT - 27 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
query I rowsort
SELECT + 71 FROM tab2 cor0
----
71
71
71
query I rowsort
SELECT ALL + col1 + col2 * 95 * col1 + col1 AS col0 FROM tab2 AS cor0
----
145848
61404
79577
query I rowsort
SELECT ALL - col1 * - cor0.col1 * + 73 + 32 + col0 FROM tab1 cor0
----
12449
49383
7396
query I rowsort
SELECT ALL 71 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1190
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
NULL
skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
NULL
query I rowsort
SELECT + ( col2 ) * 92 AS col0 FROM tab2 AS cor0
----
2392
2484
3496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col0 * col0 col0 FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT + - 0 AS col2 FROM tab0, tab2, tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - col1 * 32 col2 FROM tab2
----
1023
1947
561
query I rowsort
SELECT - 82 * + col1 AS col2 FROM tab1
----
-1066
-2132
-820
onlyif mysql # use DIV operator for integer division
query I rowsort label-1196
SELECT 22 DIV + col0 + 75 + + ( - col0 ) * - ( 7 ) * - tab2.col1 FROM tab2
----
-1441
-32139
-9326
skipif mysql # not compatible
query I rowsort label-1196
SELECT 22 / + col0 + 75 + + ( - col0 ) * - ( 7 ) * - tab2.col1 FROM tab2
----
-1441
-32139
-9326
query I rowsort
SELECT + - col1 * + col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + tab0.col0 * tab0.col0 + ( col2 * + col0 ) AS col2 FROM tab0
----
1260
1368
15219
query I rowsort
SELECT + + cor0.col0 + + 0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col1 * 44 FROM tab1
----
1144
440
572
query I rowsort
SELECT DISTINCT col1 * ( - col1 ) + - col2 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT + - col2 * col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-1203
SELECT 53 DIV 42 FROM tab2, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif mysql # not compatible
query I rowsort label-1203
SELECT 53 / 42 FROM tab2, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT DISTINCT + col2 + col1 * + cor0.col1 + + col0 AS col1 FROM tab0 cor0
----
7453
8452
9445
query I rowsort
SELECT ALL + col0 * + cor0.col2 + - col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT - - col2 + ( cor0.col1 ) FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT cor0.col0 * - ( - col1 ) + - col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT ALL col1 * + cor0.col0 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - ( + ( tab0.col0 ) * - col1 ) + 57 AS col1 FROM tab0
----
2121
3452
8156
onlyif mysql # use DIV operator for integer division
query I rowsort label-1211
SELECT ALL cor0.col1 DIV - col0 - col1 AS col1 FROM tab2 AS cor0
----
-17
-35
-59
skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL cor0.col1 / - col0 - col1 AS col1 FROM tab2 AS cor0
----
-17
-35
-59
query I rowsort
SELECT + 7 + cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
1232
583
7928
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1213
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * - col2 FROM tab1
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-1213
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * - col2 FROM tab1
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 col2 FROM tab1 AS cor0
----
54
query I rowsort
SELECT ALL - + 51 + col1 FROM tab0 AS cor0
----
35
40
46
query I rowsort
SELECT + + 35 * col1 FROM tab1 AS cor0
----
350
455
910
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 + col0 * ( 31 ) col1 FROM tab0 cor0
----
1171
2845
830
query I rowsort
SELECT col1 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1219
SELECT ALL + 91 DIV - col1 FROM tab0 cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL + 91 / - col1 FROM tab0 cor0
----
-1
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) * col2 * - ( + col2 * + col1 ) col0 FROM tab2 AS cor0
----
-1036984
-610173
-932824
query I rowsort
SELECT ALL 24 * + col1 + + 68 FROM tab1 AS cor0
----
308
380
692
query I rowsort
SELECT ALL + + col1 + - cor0.col1 * col1 * col2 FROM tab0 cor0
----
-243982
-678951
-9312
query I rowsort
SELECT DISTINCT 51 + cor0.col2 - col1 AS col1 FROM tab0 AS cor0
----
-2
-45
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + col1 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + + 78 * cor0.col0 + - col1 + col1 FROM tab2 AS cor0
----
546
6084
6162
query I rowsort
SELECT 75 - + col0 * col0 AS col0 FROM tab0
----
-1150
-501
-7846
query I rowsort
SELECT 36 - - col1 FROM tab0
----
122
127
133
query I rowsort
SELECT tab1.col0 * + col0 - + col0 AS col0 FROM tab1
----
4032
6
6320
query I rowsort
SELECT + 92 + + col2 FROM tab0 AS cor0
----
125
174
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col2 col1 FROM tab0
----
53
9
96
query I rowsort
SELECT + col2 + col2 + col0 AS col2 FROM tab0
----
253
37
90
query I rowsort
SELECT - tab0.col2 FROM tab0 WHERE ( NULL ) IN ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1233
SELECT ALL tab1.col0 DIV + col1 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL tab1.col0 / + col1 FROM tab1
----
0
6
6
query I rowsort
SELECT ALL col1 + col2 * col0 AS col0 FROM tab1
----
188
3658
7693
query I rowsort
SELECT col0 * - cor0.col1 + 67 * - col2 FROM tab1 AS cor0
----
-3696
-4459
-7472
query I rowsort
SELECT ALL 26 * + col0 + col1 FROM tab2
----
2071
2087
213
query I rowsort
SELECT col2 + tab1.col2 AS col0 FROM tab1
----
108
114
192
query I rowsort
SELECT - 15 * - col1 + col2 AS col2 FROM tab2 AS cor0
----
293
492
911
query I rowsort
SELECT tab0.col0 - + col2 AS col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT + tab0.col0 FROM tab0 WHERE ( + col2 ) IN ( col2 )
----
24
35
89
query I rowsort
SELECT col2 * - col0 * - col0 AS col0 FROM tab1 cor0
----
233472
486
614400
query I rowsort
SELECT col2 - - tab2.col1 FROM tab2
----
55
58
85
query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 NOT IN ( col1 + col2 - - tab2.col1 * col2 )
----
query I rowsort
SELECT ALL - col0 + col2 * col2 AS col0 FROM tab0
----
-34
1065
6635
query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 NOT IN ( col1 * + col0 * tab0.col2 )
----
query I rowsort
SELECT - cor0.col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL col1 + col0 + - col0 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT + col2 * - col2 * - col1 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT DISTINCT - col1 + - col1 * - col2 + + col2 * tab2.col1 AS col1 FROM tab2
----
1275
1643
3009
query I rowsort
SELECT col2 * + tab2.col0 * + col0 + + col1 FROM tab2
----
1354
158243
237175
query I rowsort
SELECT + col2 * col0 FROM tab0 WHERE NULL IN ( + col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - tab1.col2 col2 FROM tab1
----
-109
-67
-80
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( col2 - col0 * tab1.col1 )
----
query I rowsort
SELECT DISTINCT tab1.col2 + - col1 + col2 AS col1 FROM tab1
----
104
179
82
query I rowsort
SELECT ALL - col2 * - col0 + + col0 + col2 FROM tab2
----
2132
223
3119
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col0 col2 FROM tab0
----
-35
-7298
-792
query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + + col0 BETWEEN NULL AND NULL
----
query I rowsort
SELECT + tab0.col1 * col0 * col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT tab1.col0 * tab1.col0 * col1 FROM tab1 WHERE NOT col2 >= NULL
----
query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL - col0 - tab1.col0 FROM tab1
----
-128
-160
-6
query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( col0 * - col0 + + tab0.col0 )
----
query I rowsort
SELECT - col1 + col2 * - col1 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT DISTINCT + col1 + col2 * col0 AS col1 FROM tab0
----
132
7389
878
query I rowsort
SELECT + col0 * col1 + - col1 AS col0 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT ALL col0 + + ( + col1 + - col2 ) FROM tab0
----
131
77
98
query I rowsort
SELECT DISTINCT + - 54 FROM tab2 cor0
----
-54
onlyif mysql # use DIV operator for integer division
query I rowsort label-1268
SELECT + - ( col1 ) + col0 * col1 DIV col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1268
SELECT + - ( col1 ) + col0 * col1 / col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - ( - col2 ) + - col2 * - 61 AS col1 FROM tab2 AS cor0
----
1560
1620
2280
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1270
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 3 AS col0 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1270
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 3 AS col0 FROM tab2 cor0
----
NULL
query I rowsort
SELECT DISTINCT ( cor0.col1 ) AS col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT - cor0.col2 + + col1 * ( 49 ) FROM tab0 AS cor0
----
4181
4377
4752
query I rowsort
SELECT + - col0 + - cor0.col2 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1274
SELECT DISTINCT CAST( - col0 AS SIGNED ) * + col2 AS col0 FROM tab0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * + col2 AS col0 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1275
SELECT - ( col0 ) DIV + ( col1 * + col0 ) + col1 * col2 * + col1 AS col0 FROM tab1 cor0
----
16224
36504
5700
skipif mysql # not compatible
query I rowsort label-1275
SELECT - ( col0 ) / + ( col1 * + col0 ) + col1 * col2 * + col1 AS col0 FROM tab1 cor0
----
16224
36504
5700
query I rowsort
SELECT ALL - + cor0.col1 * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col1 * col0 + - ( + col2 ) * cor0.col0 * + col2 FROM tab1 cor0
----
-208576
-738320
-8826
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1278
SELECT DISTINCT 45 * col2 + CAST( + col0 AS SIGNED ) FROM tab0 cor0
----
1509
3779
80
skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT 45 * col2 + CAST ( + col0 AS INTEGER ) FROM tab0 cor0
----
1509
3779
80
query I rowsort
SELECT ALL 72 * col1 * - col1 AS col1 FROM tab1 AS cor0
----
-12168
-48672
-7200
query I rowsort
SELECT DISTINCT tab2.col0 - - col0 AS col2 FROM tab2
----
14
156
158
query I rowsort
SELECT ALL - col2 - + tab0.col2 FROM tab0
----
-164
-2
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 - tab0.col2 * + tab0.col0 col2 FROM tab0
----
-49
-7312
-806
query I rowsort
SELECT DISTINCT - 47 * tab2.col0 FROM tab2
----
-329
-3666
-3713
query I rowsort
SELECT - ( col2 * tab0.col2 + + 70 ) AS col2 FROM tab0
----
-1159
-6794
-71
query I rowsort
SELECT DISTINCT - col0 * ( + 77 ) * + col2 FROM tab2 AS cor0
----
-14553
-156156
-231154
onlyif mysql # use DIV operator for integer division
query I rowsort label-1286
SELECT + - col0 DIV 64 AS col0 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-1286
SELECT + - col0 / 64 AS col0 FROM tab2 AS cor0
----
-1
-1
0
query I rowsort
SELECT DISTINCT - - col1 + col1 * + 74 AS col0 FROM tab0 AS cor0
----
6450
6825
7275
query I rowsort
SELECT + - cor0.col2 + 7 * cor0.col0 FROM tab2 AS cor0
----
22
515
520
query I rowsort
SELECT ALL - col1 * + 92 AS col1 FROM tab2 cor0
----
-1564
-2852
-5428
query I rowsort
SELECT ALL col0 + cor0.col0 * col2 AS col2 FROM tab2 cor0
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-1291
SELECT cor0.col0 DIV 92 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1291
SELECT cor0.col0 / 92 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1292
SELECT DISTINCT - tab2.col2 DIV + 71 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT - tab2.col2 / + 71 FROM tab2
----
0
query I rowsort
SELECT DISTINCT - ( - ( col1 ) ) AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT - 90 * - col0 + - col1 AS col0 FROM tab2
----
599
6961
7093
query I rowsort
SELECT DISTINCT + 63 FROM tab2, tab1 AS cor0
----
63
query I rowsort
SELECT 87 + ( - col2 ) + col0 FROM tab0
----
121
78
94
query I rowsort
SELECT DISTINCT + col2 - tab1.col0 AS col1 FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT 64 FROM tab0, tab1 AS cor0
----
64
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) * + tab2.col2 + - col0 AS col2 FROM tab2
----
1456
567
830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * 15 col0 FROM tab1 AS cor0
----
-150
-195
-390
query I rowsort
SELECT ALL + col0 * 53 FROM tab1 AS cor0
----
159
3392
4240
query I rowsort
SELECT DISTINCT + col0 * - col1 + + col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - ( + 8 ) * + col2 AS col0 FROM tab0 AS cor0
----
-264
-656
-8
query I rowsort
SELECT ALL + 21 * - 54 AS col2 FROM tab1
----
-1134
-1134
-1134
query I rowsort
SELECT ALL + ( 44 ) FROM tab1
----
44
44
44
query I rowsort
SELECT DISTINCT ( + col0 ) * cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
262144
27
512000
query I rowsort
SELECT ALL + 2 * col0 + col1 + + col0 * + col0 AS col0 FROM tab2 cor0
----
6299
6416
94
query I rowsort
SELECT + + 28 - col0 AS col1 FROM tab2 AS cor0
----
-50
-51
21
query I rowsort
SELECT + col1 - cor0.col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT + 91 * col2 + + col1 AS col2 FROM tab2 AS cor0
----
2425
2488
3475
query I rowsort
SELECT + + ( col1 ) + - col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - ( col0 ) + + col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL + 74 + + col0 FROM tab2 AS cor0
----
152
153
81
query I rowsort
SELECT DISTINCT + 94 + col2 AS col0 FROM tab0 AS cor0
----
127
176
95
query I rowsort
SELECT - ( col1 ) * cor0.col1 + col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT - col0 * cor0.col2 + + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 col0 FROM tab1 AS cor0
----
74
query I rowsort
SELECT DISTINCT + 81 + col1 + col0 AS col0 FROM tab0 AS cor0
----
191
213
261
query I rowsort
SELECT ALL + + col1 * col1 - col2 AS col1 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT ALL - cor0.col0 - col0 * col0 FROM tab2 cor0
----
-56
-6162
-6320
query I rowsort
SELECT DISTINCT - col0 * 1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - - col2 * - col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * tab1.col1 col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT 49 FROM tab2, tab0 cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT + col0 * col2 + col0 + - col1 AS col0 FROM tab1 AS cor0
----
139
3702
7747
query I rowsort
SELECT ALL col2 - - ( col2 + col2 ) FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT DISTINCT - - col0 * cor0.col0 + col0 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1328
SELECT + col2 * + CAST( col1 + + col1 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
1358084
18818
488136
skipif mysql # not compatible
query I rowsort label-1328
SELECT + col2 * + CAST ( col1 + + col1 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
1358084
18818
488136
query I rowsort
SELECT ALL + cor0.col1 * + col2 * - 11 AS col0 FROM tab0 AS cor0
----
-1067
-31218
-82082
query I rowsort
SELECT ALL col0 + + col2 * - col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT col2 * - 55 FROM tab1 cor0
----
-2970
-3135
-5280
query I rowsort
SELECT + col2 + ( + col0 ) * col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL 26 * col1 + - col2 FROM tab0 AS cor0
----
2203
2284
2521
query I rowsort
SELECT DISTINCT + ( + col0 ) * col2 * col1 + col1 FROM tab1 AS cor0
----
36490
4238
99853
query I rowsort
SELECT + 42 + 25 AS col1 FROM tab1 AS cor0
----
67
67
67
query I rowsort
SELECT - 88 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2
onlyif mysql # use DIV operator for integer division
query I rowsort label-1337
SELECT DISTINCT + 4 DIV - col2 + + cor0.col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1337
SELECT DISTINCT + 4 / - col2 + + cor0.col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - 50 * - ( col1 ) + - col1 FROM tab0 AS cor0
----
4214
4459
4753
query I rowsort
SELECT + - col2 + - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT ALL - - cor0.col2 * col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col1 * col1 * - col1 FROM tab0 AS cor0
----
-636056
-753571
-912673
onlyif mysql # use DIV operator for integer division
query I rowsort label-1342
SELECT + + col2 DIV cor0.col0 FROM tab2 cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-1342
SELECT + + col2 / cor0.col0 FROM tab2 cor0
----
0
0
3
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <> NULL
----
query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab1, tab1 cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col0 col0 FROM tab2 WHERE NOT + col2 = + col2
----
query III rowsort
SELECT * FROM tab0 WHERE col1 * col0 <> + col2 + - col0 * col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
86
91
97
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col2 * - col0 + - col1 * + col2 FROM tab1
----
-1566
-4218
-8928
query I rowsort
SELECT DISTINCT - 33 + col2 * - col0 + - col0 FROM tab1
----
-198
-3745
-7793
query I rowsort
SELECT tab0.col1 * + tab0.col2 AS col2 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1352
SELECT DISTINCT + ( + tab1.col1 * + col0 ) + col1 DIV col2 AS col0 FROM tab1
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-1352
SELECT DISTINCT + ( + tab1.col1 * + col0 ) + col1 / col2 AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT col0 * - col2 + + col2 AS col1 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT tab0.col1 AS col1 FROM tab0, tab2, tab1 AS cor0
----
86
91
97
query I rowsort
SELECT - tab0.col2 + + col0 * col0 * col1 FROM tab0
----
118824
49503
720729
query I rowsort
SELECT DISTINCT tab1.col0 AS col0 FROM tab1, tab0, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + - cor0.col1 * - col1 + + col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT col1 - cor0.col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT - + col2 - - 47 AS col0 FROM tab2 AS cor0
----
20
21
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1360
SELECT ALL - tab1.col1 DIV cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 8c80a9c804772d606016450ef5f601e6
skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL - tab1.col1 / cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 8c80a9c804772d606016450ef5f601e6
query I rowsort
SELECT - col1 + col2 + ( + col1 ) * + 67 FROM tab1 AS cor0
----
1770
717
954
query I rowsort
SELECT + col1 * col2 + col2 AS col2 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-1363
SELECT ALL col0 DIV + 3 - tab2.col2 FROM tab2
----
-12
-25
0
skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL col0 / + 3 - tab2.col2 FROM tab2
----
-12
-25
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1364
SELECT col1 DIV + 60 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1364
SELECT col1 / + 60 AS col2 FROM tab0
----
1
1
1
query I rowsort
SELECT ( - col0 ) AS col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT - ( + 88 + - col0 ) AS col2 FROM tab2
----
-10
-81
-9
query I rowsort
SELECT ALL + col2 - - col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ( 22 ) + col0 AS col2 FROM tab2 AS cor0
----
100
101
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1369
SELECT ALL - CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 42 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 37 * + col1 col0 FROM tab2 AS cor0
----
-1147
-2183
-629
query I rowsort
SELECT + ( col0 ) * 13 FROM tab2 AS cor0
----
1014
1027
91
query I rowsort
SELECT + 11 + + col2 FROM tab2 AS cor0
----
37
38
49
query I rowsort
SELECT DISTINCT + 74 * tab2.col0 FROM tab2
----
518
5772
5846
query I rowsort
SELECT + 87 + + col1 AS col1 FROM tab1
----
100
113
97
query I rowsort
SELECT + + 50 FROM tab0 AS cor0
----
50
50
50
query I rowsort
SELECT ALL - 35 + - col1 AS col2 FROM tab0 AS cor0
----
-121
-126
-132
onlyif mysql # use DIV operator for integer division
query I rowsort label-1378
SELECT - col0 + col0 DIV 56 FROM tab0 AS cor0
----
-24
-35
-88
skipif mysql # not compatible
query I rowsort label-1378
SELECT - col0 + col0 / 56 FROM tab0 AS cor0
----
-24
-35
-88
query I rowsort
SELECT ALL - cor0.col0 * ( + ( - cor0.col2 ) * - 27 + + col1 ) FROM tab0 AS cor0
----
-205145
-23448
-4340
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1380
SELECT ALL col2 + CAST( 47 * col0 AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
3751
3768
387
skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL col2 + CAST ( 47 * col0 AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
3751
3768
387
query I rowsort
SELECT DISTINCT col0 - - cor0.col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT col0 + + ( 77 * + cor0.col1 ) AS col2 FROM tab1 cor0
----
1081
2005
834
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col0 FROM tab2 cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 - - col0 * + 69 col0 FROM tab0 AS cor0
----
1632
2380
6052
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col0 FROM tab0
----
42
42
42
query I rowsort
SELECT DISTINCT + col2 * + 89 AS col0 FROM tab2 AS cor0
----
2314
2403
3382
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + + col1 col2 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT - col2 * 20 AS col1 FROM tab2 AS cor0
----
-520
-540
-760
query I rowsort
SELECT + col1 * col2 + + col2 + + 66 AS col0 FROM tab2 AS cor0
----
1626
750
930
onlyif mysql # use DIV operator for integer division
query I rowsort label-1390
SELECT + + 62 DIV + col0 + col2 + + col1 AS col2 FROM tab2 AS cor0
----
55
66
85
skipif mysql # not compatible
query I rowsort label-1390
SELECT + + 62 / + col0 + col2 + + col1 AS col2 FROM tab2 AS cor0
----
55
66
85
query I rowsort
SELECT col0 + - cor0.col2 + - col0 AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + 77 * - col1 FROM tab2 AS cor0
----
-1309
-2387
-4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1393
SELECT - - ( col2 ) + + col0 * CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1393
SELECT - - ( col2 ) + + col0 * CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1394
SELECT DISTINCT + - CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT + - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT cor0.col0 * - 51 AS col2 FROM tab1 AS cor0
----
-153
-3264
-4080
query I rowsort
SELECT - col0 * ( col1 ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL - cor0.col0 * + 36 AS col0 FROM tab1 cor0
----
-108
-2304
-2880
query I rowsort
SELECT cor0.col0 * - tab1.col1 + 80 FROM tab1, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 3e95e4e8fecf4e1d02269907aae6f0e8
query I rowsort
SELECT ALL + col1 + + col2 * col2 AS col2 FROM tab2
----
1461
735
760
query I rowsort
SELECT - 29 FROM tab0, tab1 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
query I rowsort
SELECT - col1 * ( + col1 ) + - col1 * - ( col1 ) FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1402
SELECT DISTINCT - ( col2 ) DIV - col1 + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
7
78
81
skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT - ( col2 ) / - col1 + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
7
78
81
query I rowsort
SELECT DISTINCT 57 + - 39 FROM tab1, tab0 AS cor0
----
18
query I rowsort
SELECT - tab2.col0 + + col0 * - 26 * + col1 FROM tab2
----
-119730
-34997
-5649
query I rowsort
SELECT DISTINCT - 77 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
-77
query I rowsort
SELECT DISTINCT 19 AS col2 FROM tab0
----
19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col2 FROM tab1, tab1 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT - col1 + - 67 * col0 FROM tab1
----
-227
-4298
-5373
query I rowsort
SELECT ALL + ( 35 ) * + col0 FROM tab1 AS cor0
----
105
2240
2800
query I rowsort
SELECT DISTINCT + 75 * - cor0.col0 FROM tab2 AS cor0
----
-525
-5850
-5925
query I rowsort
SELECT ALL col2 * + col0 + col0 * - col2 + 23 AS col0 FROM tab0 AS cor0
----
23
23
23
query I rowsort
SELECT DISTINCT - + col1 + ( - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT ALL + col0 + - col0 * - col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT - col1 * - ( col1 * - col0 ) - 31 AS col2 FROM tab0 AS cor0
----
-177535
-329346
-737040
query I rowsort
SELECT ALL - col1 * ( - col1 ) + col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT 88 - - tab1.col1 FROM tab1
----
101
114
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1417
SELECT + col0 - col0 DIV - ( + tab1.col1 ) col1 FROM tab1
----
3
70
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1417
SELECT + col0 - col0 / - ( + tab1.col1 ) col1 FROM tab1
----
3
70
86
query I rowsort
SELECT DISTINCT 89 + col0 AS col0 FROM tab2
----
167
168
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 22 col1 FROM tab1 AS cor0
----
-22
-22
-22
query I rowsort
SELECT ALL + - col2 * col2 + 67 * ( col1 ) FROM tab1 AS cor0
----
-1174
-2579
-8345
query I rowsort
SELECT - col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + + col1 - - col0 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + col2 + - col1 - col2 FROM tab0 cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * 60 col1 FROM tab1 cor0
----
1614
657
876
query I rowsort
SELECT - 89 - col2 * - 53 FROM tab1 cor0
----
2773
2932
4999
query I rowsort
SELECT + col1 * - col0 + ( 28 + col1 ) * 48 FROM tab1 AS cor0
----
1184
2514
928
query I rowsort
SELECT DISTINCT col0 * 3 AS col0 FROM tab2 AS cor0
----
21
234
237
query I rowsort
SELECT ALL col2 * + 20 FROM tab1 AS cor0
----
1080
1140
1920
query I rowsort
SELECT col1 * - col0 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL - col1 * - ( col1 ) AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + - col1 * 11 FROM tab1 AS cor0
----
-110
-143
-286
query I rowsort
SELECT DISTINCT + 64 AS col1 FROM tab2
----
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1433
SELECT - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1433
SELECT - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL cor0.col0 + ( col1 + cor0.col0 ) AS col0 FROM tab2 cor0
----
175
215
45
query I rowsort
SELECT DISTINCT col1 + col0 * 68 FROM tab1 AS cor0
----
230
4362
5453
query I rowsort
SELECT DISTINCT - - col1 * - 65 AS col1 FROM tab0 AS cor0
----
-5590
-5915
-6305
query I rowsort
SELECT - col0 * + ( - cor0.col2 * - col2 + + ( + 32 ) * - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-187456
-6252
-704000
query I rowsort
SELECT + + col2 + - 49 * + col0 AS col1 FROM tab1 cor0
----
-3079
-3824
-93
query I rowsort
SELECT col1 * 33 FROM tab0 AS cor0
----
2838
3003
3201
query I rowsort
SELECT - col1 * 64 * cor0.col1 FROM tab1 cor0
----
-10816
-43264
-6400
skipif mysql # not compatible
query I rowsort
SELECT - - col1 * CAST ( 49 AS REAL ) AS col1 FROM tab2 cor0
----
1519
2891
833
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-1443
SELECT + col1 DIV col1 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-1443
SELECT + col1 / col1 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT - + col1 * + col1 * col2 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL - + col0 + ( 40 ) * col1 * + 46 FROM tab0 cor0
----
158216
167351
178445
query I rowsort
SELECT col0 * - ( + 65 * - col0 + - 90 ) AS col0 FROM tab1 AS cor0
----
272000
423200
855
query I rowsort
SELECT + col1 * - 87 * 72 + col2 FROM tab0 AS cor0
----
-538671
-569942
-607607
query I rowsort
SELECT DISTINCT + 65 FROM tab0, tab1 AS cor0
----
65
query I rowsort
SELECT - ( ( + cor0.col1 ) ) + col2 * - col0 * - col2 FROM tab2 AS cor0
----
114059
5072
52669
query I rowsort
SELECT DISTINCT + 29 FROM tab2, tab2 AS cor0
----
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 44 ) * col2 col1 FROM tab1 AS cor0
----
2376
2508
4224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1452
SELECT + 21 * col1 + 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-1452
SELECT + 21 * col1 + CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 8 + col2 AS col2 FROM tab2 AS cor0
----
18
19
30
query I rowsort
SELECT - - 33 * col1 + col0 * + 18 FROM tab2 cor0
----
1149
1983
3351
onlyif mysql # use DIV operator for integer division
query I rowsort label-1455
SELECT + - col1 DIV + col2 - cor0.col0 DIV + 81 AS col1 FROM tab0 AS cor0
----
-2
-2
-97
skipif mysql # not compatible
query I rowsort label-1455
SELECT + - col1 / + col2 - cor0.col0 / + 81 AS col1 FROM tab0 AS cor0
----
-2
-2
-97
query I rowsort
SELECT DISTINCT col1 + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL - col1 + + col2 * col1 AS col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT + cor0.col0 + cor0.col0 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT - ( col2 ) * - ( - cor0.col0 ) - + col1 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT + - col1 * + col0 - + col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT 51 + - tab0.col1 FROM tab0, tab2, tab1 AS cor0
----
-35
-40
-46
onlyif mysql # use DIV operator for integer division
query I rowsort label-1463
SELECT ALL 20 DIV col2 + 3 * - col1 + tab1.col0 FROM tab1
----
-75
34
41
skipif mysql # not compatible
query I rowsort label-1463
SELECT ALL 20 / col2 + 3 * - col1 + tab1.col0 FROM tab1
----
-75
34
41
query I rowsort
SELECT ALL + col2 * col2 + 57 AS col0 FROM tab2
----
1501
733
786
query I rowsort
SELECT 1 + col0 * 31 AS col1 FROM tab1
----
1985
2481
94
query I rowsort
SELECT cor0.col2 - - col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL col1 * + col2 * col0 + col2 FROM tab0
----
3396
664200
68145
query I rowsort
SELECT ALL tab0.col0 + + col2 * ( col1 + col2 ) AS col2 FROM tab0
----
133
14275
3951
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc
query I rowsort
SELECT DISTINCT 22 * + col0 AS col1 FROM tab1
----
1408
1760
66
query I rowsort
SELECT DISTINCT 83 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1472
SELECT ( + 31 ) * col2 DIV 27 AS col0 FROM tab1 AS cor0
----
110
62
65
skipif mysql # not compatible
query I rowsort label-1472
SELECT ( + 31 ) * col2 / 27 AS col0 FROM tab1 AS cor0
----
110
62
65
query I rowsort
SELECT ALL - 95 - col2 AS col0 FROM tab1 AS cor0
----
-149
-152
-191
query I rowsort
SELECT - + 45 + 19 FROM tab0 AS cor0
----
-26
-26
-26
query I rowsort
SELECT ALL - + col0 * + 35 + + col2 * cor0.col0 FROM tab1 AS cor0
----
1408
4880
57
query I rowsort
SELECT DISTINCT - 16 * 25 + + cor0.col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1046
-1237
-1934
query I rowsort
SELECT col1 * + col0 - col0 * col2 FROM tab1 AS cor0
----
-3008
-6640
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-1478
SELECT ALL + col1 DIV col0 + cor0.col0 * col1 * col0 FROM tab2 AS cor0
----
106097
1523
358956
skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL + col1 / col0 + cor0.col0 * col1 * col0 FROM tab2 AS cor0
----
106097
1523
358956
query I rowsort
SELECT DISTINCT 86 + - col2 FROM tab1 cor0
----
-10
29
32
query I rowsort
SELECT - + col0 - col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT cor0.col0 * col0 - col0 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT - 60 + - cor0.col0 FROM tab2 AS cor0
----
-138
-139
-67
query I rowsort
SELECT - 10 FROM tab1, tab1 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e
query I rowsort
SELECT col1 + col0 + cor0.col1 FROM tab2 AS cor0
----
113
196
69
query I rowsort
SELECT - col1 * 23 FROM tab0 AS cor0
----
-1978
-2093
-2231
query I rowsort
SELECT ALL col0 * ( col0 + - col1 ) AS col2 FROM tab0
----
-1488
-178
-2170
query I rowsort
SELECT + 77 * 36 FROM tab1 AS cor0
----
2772
2772
2772
onlyif mysql # use DIV operator for integer division
query I rowsort label-1488
SELECT ALL 42 - col0 DIV - cor0.col2 FROM tab0 cor0
----
42
43
77
skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL 42 - col0 / - cor0.col2 FROM tab0 cor0
----
42
43
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( tab1.col1 * + col1 ) col0 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT ALL col2 * 66 * + 98 AS col1 FROM tab1
----
349272
368676
620928
query I rowsort
SELECT ALL 60 FROM tab0, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
onlyif mysql # use DIV operator for integer division
query I rowsort label-1492
SELECT DISTINCT + ( + ( col1 ) ) + + 22 DIV + col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT + ( + ( col1 ) ) + + 22 / + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT col0 * + ( col1 ) + + col2 FROM tab1
----
1136
132
697
query I rowsort
SELECT + col2 * tab0.col0 * col0 + - col2 * + col0 FROM tab0
----
1190
18216
642224
query I rowsort
SELECT DISTINCT col1 * 59 FROM tab1
----
1534
590
767
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1496
SELECT CAST( NULL AS SIGNED ) * col2 * col2 + col1 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1496
SELECT CAST ( NULL AS INTEGER ) * col2 * col2 + col1 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col0 * + 39 FROM tab2 AS cor0
----
273
3042
3081
query I rowsort
SELECT ALL + + 24 FROM tab0 AS cor0
----
24
24
24
query I rowsort
SELECT DISTINCT col0 * + 91 * col1 AS col2 FROM tab0 cor0
----
187824
308945
737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-1500
SELECT - 76 DIV col0 AS col1 FROM tab2
----
-10
0
0
skipif mysql # not compatible
query I rowsort label-1500
SELECT - 76 / col0 AS col1 FROM tab2
----
-10
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 + + col1 col2 FROM tab0 AS cor0
----
124
129
135
query I rowsort
SELECT + - 73 + col0 AS col2 FROM tab1 cor0
----
-70
-9
7
query I rowsort
SELECT ALL + 77 * + col2 - - col2 * + col0 AS col1 FROM tab1
----
15072
4320
8037
query I rowsort
SELECT - - col2 + - col1 * - ( + col0 ) AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT - col0 + + 75 FROM tab2 AS cor0
----
-3
-4
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col2 col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + + col2 * 86 + - col0 * + col0 AS col2 FROM tab2 AS cor0
----
-2973
-3848
2273
onlyif mysql # use DIV operator for integer division
query I rowsort label-1508
SELECT DISTINCT + + col0 DIV - col1 + cor0.col0 FROM tab2 AS cor0
----
7
75
77
skipif mysql # not compatible
query I rowsort label-1508
SELECT DISTINCT + + col0 / - col1 + cor0.col0 FROM tab2 AS cor0
----
7
75
77
query I rowsort
SELECT DISTINCT + col2 * ( - 37 ) * col0 + - cor0.col1 FROM tab1 AS cor0
----
-134986
-284173
-6020
query I rowsort
SELECT ALL col1 * - 13 - + 58 AS col2 FROM tab0 AS cor0
----
-1176
-1241
-1319
query I rowsort
SELECT - cor0.col1 * - ( col0 ) - col2 AS col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT + - col0 + - col0 + + col2 AS col2 FROM tab2 AS cor0
----
-120
-130
13
query I rowsort
SELECT + cor0.col1 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT + col1 * col0 + + cor0.col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + col1 + ( + col2 + + col0 ) AS col0 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT DISTINCT col2 + col1 + 29 AS col1 FROM tab1 AS cor0
----
109
138
96
query I rowsort
SELECT DISTINCT + col1 + - 87 * + 47 FROM tab2 AS cor0
----
-4030
-4058
-4072
query I rowsort
SELECT 58 * + col0 + col0 * 96 * col2 AS col0 FROM tab2 AS cor0
----
18550
199212
292774
query I rowsort
SELECT DISTINCT + tab2.col2 * - col2 AS col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT ALL - col0 * + col2 - col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT tab2.col0 AS col2 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + 9 + cor0.col0 AS col2 FROM tab1 AS cor0
----
12
73
89
query I rowsort
SELECT DISTINCT + col0 + col1 * - ( col1 ) FROM tab0 AS cor0
----
-7372
-8192
-9374
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
26
27
38
query I rowsort
SELECT DISTINCT - + 35 FROM tab2 AS cor0
----
-35
query I rowsort
SELECT + + cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - - 58 * + col1 * col0 FROM tab0 AS cor0
----
119712
196910
469742
query I rowsort
SELECT - 78 + - col1 AS col0 FROM tab0
----
-164
-169
-175
query I rowsort
SELECT 71 AS col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
query I rowsort
SELECT DISTINCT col0 * tab2.col2 * - 5 AS col0 FROM tab2
----
-10140
-15010
-945
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1531
SELECT + + col0 * CAST( col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1531
SELECT + + col0 * CAST ( col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - 36 * col0 AS col2 FROM tab2
----
-252
-2808
-2844
query I rowsort
SELECT + col1 * - tab1.col2 * - ( + 2 ) FROM tab1
----
1140
2496
2808
query I rowsort
SELECT DISTINCT - + cor0.col2 FROM tab0, tab1, tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT - 22 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe
query I rowsort
SELECT ( + col2 ) * 92 + - 27 * - col1 FROM tab2
----
3321
3955
3985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1537
SELECT ( col0 * CAST( + col0 AS SIGNED ) ) + + col1 FROM tab1
----
35
4106
6413
skipif mysql # not compatible
query I rowsort label-1537
SELECT ( col0 * CAST ( + col0 AS INTEGER ) ) + + col1 FROM tab1
----
35
4106
6413
query I rowsort
SELECT ALL + ( - cor0.col0 ) * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-1539
SELECT - - ( - col1 ) DIV + col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-1539
SELECT - - ( - col1 ) / + col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT ALL + col2 * + cor0.col0 + col2 * - 0 + ( + col1 ) AS col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT - - ( + col2 ) + - col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 + + 18 + - col1 AS col2 FROM tab0
----
-35
-78
9
query I rowsort
SELECT + 6 - 36 AS col0 FROM tab1 AS cor0
----
-30
-30
-30
query I rowsort
SELECT col0 * col2 - - col0 AS col1 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT ALL col1 - + 98 AS col1 FROM tab0
----
-1
-12
-7
query I rowsort
SELECT DISTINCT tab2.col1 - - 88 AS col0 FROM tab2
----
105
119
147
query I rowsort
SELECT DISTINCT - col0 - tab1.col0 * col0 FROM tab1
----
-12
-4160
-6480
query I rowsort
SELECT DISTINCT - col0 * 65 * ( + col1 ) - 85 AS col0 FROM tab2
----
-14190
-299215
-87380
query I rowsort
SELECT DISTINCT - cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 * + 91 col0 FROM tab2
----
-5642
-5642
-5642
query I rowsort
SELECT col1 * + col1 - - col0 * col2 * - 89 FROM tab0 AS cor0
----
-63092
-641241
6294
query I rowsort
SELECT + + 64 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-32
10
7
query I rowsort
SELECT DISTINCT - ( + col2 ) + + col0 * 86 + - col1 * col2 FROM tab0
----
-807
110
2912
query I rowsort
SELECT 82 * + col2 FROM tab1 AS cor0
----
4428
4674
7872
query I rowsort
SELECT ALL + ( + col1 ) + col0 AS col1 FROM tab2
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1556
SELECT ALL col2 DIV col0 + + tab0.col0 FROM tab0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL col2 / col0 + + tab0.col0 FROM tab0
----
25
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1557
SELECT - col0 DIV col1 AS col0 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-1557
SELECT - col0 / col1 AS col0 FROM tab2
----
-1
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1558
SELECT 30 DIV 63 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1558
SELECT 30 / 63 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1559
SELECT DISTINCT 76 * ( col1 + - CAST( NULL AS SIGNED ) ) col1 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT 76 * ( col1 + - CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT + 31 FROM tab0
----
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 8 ) * col0 * + col1 col2 FROM tab0
----
16512
27160
64792
query I rowsort
SELECT DISTINCT 30 AS col2 FROM tab1
----
30
query I rowsort
SELECT ALL + ( col1 + col0 ) AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT + tab2.col0 * col2 * col0 FROM tab2
----
1323
158184
237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-1565
SELECT + col1 DIV - col2 - - 40 * col1 AS col1 FROM tab0 cor0
----
3438
3639
3783
skipif mysql # not compatible
query I rowsort label-1565
SELECT + col1 / - col2 - - 40 * col1 AS col1 FROM tab0 cor0
----
3438
3639
3783
query I rowsort
SELECT + ( col0 ) + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 * 99 col1 FROM tab0
----
121275
57024
784179
onlyif mysql # use DIV operator for integer division
query I rowsort label-1568
SELECT + col0 DIV col1 + ( 79 ) FROM tab2 AS cor0
----
79
80
83
skipif mysql # not compatible
query I rowsort label-1568
SELECT + col0 / col1 + ( 79 ) FROM tab2 AS cor0
----
79
80
83
query I rowsort
SELECT col0 * - col1 * + col2 + + col0 AS col2 FROM tab1
----
-36416
-4209
-99760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1570
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col0 FROM tab1, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1570
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col0 FROM tab1, tab1 AS cor0
----
NULL
query I rowsort
SELECT + col1 * - 64 FROM tab1 AS cor0
----
-1664
-640
-832
query I rowsort
SELECT ALL + col0 * 36 + col2 * cor0.col2 FROM tab2 AS cor0
----
3484
4288
981
query I rowsort
SELECT DISTINCT - - cor0.col1 * - 56 FROM tab2 AS cor0
----
-1736
-3304
-952
onlyif mysql # use DIV operator for integer division
query I rowsort label-1574
SELECT DISTINCT col0 DIV cor0.col0 FROM tab1 cor0
----
1
skipif mysql # not compatible
query I rowsort label-1574
SELECT DISTINCT col0 / cor0.col0 FROM tab1 cor0
----
1
query I rowsort
SELECT DISTINCT col2 * - ( - col0 ) * col2 + col1 FROM tab1 AS cor0
----
207946
737293
8774
onlyif mysql # use DIV operator for integer division
query I rowsort label-1576
SELECT ALL col2 DIV 32 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL col2 / 32 FROM tab2 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - col2 * ( + col2 ) AS col2 FROM tab1 cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-1579
SELECT DISTINCT + col1 + - col2 DIV col0 FROM tab2 AS cor0
----
17
28
59
skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT + col1 + - col2 / col0 FROM tab2 AS cor0
----
17
28
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1580
SELECT - + CAST( NULL AS SIGNED ) * - col0 - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1580
SELECT - + CAST ( NULL AS INTEGER ) * - col0 - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 77 + tab2.col0 AS col1 FROM tab2
----
155
156
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 12 * col0 col0 FROM tab1 AS cor0
----
36
768
960
query I rowsort
SELECT - col1 * - col1 + ( - col2 ) * col1 * col2 AS col0 FROM tab2 AS cor0
----
-21638
-24259
-36403
query I rowsort
SELECT + col1 + 3 AS col0 FROM tab1
----
13
16
29
query I rowsort
SELECT + 53 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
query I rowsort
SELECT DISTINCT + cor0.col0 + - col0 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT ( tab0.col1 ) AS col0 FROM tab0
----
86
91
97
query I rowsort
SELECT + 87 * cor0.col0 + col0 FROM tab0 AS cor0
----
2112
3080
7832
query I rowsort
SELECT col2 + + col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT + + 93 + 56 * col0 * ( - col1 ) - col2 FROM tab2 AS cor0
----
-12086
-257645
-75153
query I rowsort
SELECT ( 83 ) * + col0 AS col0 FROM tab1 AS cor0
----
249
5312
6640
query I rowsort
SELECT + col2 - cor0.col0 * col2 FROM tab0 cor0
----
-34
-7216
-759
query I rowsort
SELECT - 56 * 39 * - col1 AS col0 FROM tab2 AS cor0
----
128856
37128
67704
query I rowsort
SELECT + + ( - col1 ) * - col1 + + col2 FROM tab0 AS cor0
----
7429
8363
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-1596
SELECT 25 DIV col1 AS col1 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1596
SELECT 25 / col1 AS col1 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT - + 87 * cor0.col0 FROM tab2 AS cor0
----
-609
-6786
-6873
query I rowsort
SELECT col2 + + col2 * col1 FROM tab1
----
1344
1458
627
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 col2 * + col2 + + 98 AS col1 FROM tab0 AS cor0
----
1187
6822
99
query I rowsort
SELECT DISTINCT - ( ( col2 ) ) * + tab2.col1 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + 41 * tab1.col0 AS col0 FROM tab1
----
123
2624
3280
query I rowsort
SELECT DISTINCT - 6 * col0 AS col2 FROM tab2 AS cor0
----
-42
-468
-474
query I rowsort
SELECT ALL - 5 * col2 FROM tab1 AS cor0
----
-270
-285
-480
query I rowsort
SELECT - + 55 + cor0.col2 FROM tab0 AS cor0
----
-22
-54
27
query I rowsort
SELECT ALL - col2 + col1 * + col0 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT - - 93 * cor0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 79bdc4bc0043e88c9582a9e486fc1834
skipif mysql # not compatible
query I rowsort
SELECT col1 + - col0 * CAST ( col1 * col2 AS REAL ) FROM tab0 AS cor0
----
-3298
-664027
-68026
skipif mysql # not compatible
query I rowsort
SELECT - + 88 * col0 + - CAST ( col1 AS REAL ) FROM tab1 AS cor0
----
-290
-5642
-7053
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + col2 col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ( tab2.col1 + - tab2.col2 ) FROM tab2
----
-21
33
4
query I rowsort
SELECT DISTINCT + - col1 + col1 AS col0 FROM tab1 cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1613
SELECT DISTINCT + col0 * - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1613
SELECT DISTINCT + col0 * - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL - col0 * 30 AS col0 FROM tab0 AS cor0
----
-1050
-2670
-720
query I rowsort
SELECT DISTINCT 23 * col2 FROM tab2
----
598
621
874
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col2 FROM tab1
----
66
66
66
query I rowsort
SELECT ALL col1 + col2 + - 88 AS col1 FROM tab1
----
-21
-8
21
query I rowsort
SELECT DISTINCT - col2 * col1 * ( col2 ) + col2 FROM tab1
----
-119712
-32433
-75762
query I rowsort
SELECT ALL + tab0.col1 + col0 + - col1 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT + tab0.col2 * - col2 AS col0 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col1 FROM tab1, tab2, tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT 31 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT ( + col0 ) + - ( + 35 ) FROM tab2
----
-28
43
44
query I rowsort
SELECT + cor0.col0 FROM tab2, tab1, tab0 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1625
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - col0 + + col2 AS col1 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-1627
SELECT + + col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1627
SELECT + + col2 / + col2 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - 54 AS col2 FROM tab2 cor0
----
-54
-54
-54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1629
SELECT CAST( ( col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1629
SELECT CAST ( ( col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1630
SELECT + col2 / + CAST( NULL AS SIGNED ) - + 69 * tab2.col0 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1630
SELECT + col2 / + CAST ( NULL AS INTEGER ) - + 69 * tab2.col0 AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1631
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1631
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT tab2.col1 * - ( + 23 * + col2 ) - col2 FROM tab2
----
-14896
-19278
-35308
query I rowsort
SELECT DISTINCT - 45 FROM tab0, tab2 AS cor0
----
-45
onlyif mysql # use DIV operator for integer division
query I rowsort label-1634
SELECT col2 - - ( + col1 ) DIV col0 FROM tab1
----
57
62
96
skipif mysql # not compatible
query I rowsort label-1634
SELECT col2 - - ( + col1 ) / col0 FROM tab1
----
57
62
96
query I rowsort
SELECT DISTINCT col0 - - col2 * - col2 AS col2 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT + col2 * col0 + col1 - + col2 AS col0 FROM tab2
----
193
2061
2981
query I rowsort
SELECT + ( - ( + cor0.col2 ) ) * + ( cor0.col0 ) - col1 * + col1 FROM tab0 AS cor0
----
-15579
-8188
-9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-1638
SELECT - col0 DIV 90 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1638
SELECT - col0 / 90 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 62 * 5 FROM tab2 AS cor0
----
-310
-310
-310
query I rowsort
SELECT - col0 * ( + cor0.col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 + + col0 * col0 col0 FROM tab0 AS cor0
----
1140
491
7836
query I rowsort
SELECT DISTINCT + col0 * 49 FROM tab1 AS cor0
----
147
3136
3920
skipif mysql # not compatible
query I rowsort
SELECT CAST ( 62 AS REAL ) FROM tab2 AS cor0
----
62
62
62
query I rowsort
SELECT + col0 - col2 * - col0 AS col2 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT + + ( + col0 ) + - col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL - col0 + - 65 AS col2 FROM tab1
----
-129
-145
-68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
query I rowsort
SELECT ALL - col2 + cor0.col1 * col0 * col0 AS col0 FROM tab0 AS cor0
----
118824
49503
720729
onlyif mysql # use DIV operator for integer division
query I rowsort label-1649
SELECT + col2 + + col0 - - 20 DIV col1 FROM tab1 AS cor0
----
123
177
57
skipif mysql # not compatible
query I rowsort label-1649
SELECT + col2 + + col0 - - 20 / col1 FROM tab1 AS cor0
----
123
177
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 - - col2 col2 FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT ALL - col1 + 94 AS col2 FROM tab1 AS cor0
----
68
81
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1652
SELECT - col2 * CAST( NULL AS SIGNED ) - + col1 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-1652
SELECT - col2 * CAST ( NULL AS INTEGER ) - + col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 79 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT - + cor0.col2 * + 7 + cor0.col0 - col0 AS col0 FROM tab1 AS cor0
----
-378
-399
-672
query I rowsort
SELECT + cor0.col1 * - ( + col1 ) + cor0.col2 AS col0 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT + 50 + + cor0.col0 FROM tab2 AS cor0
----
128
129
57
query I rowsort
SELECT ALL + + cor0.col0 * + 56 + - col2 AS col2 FROM tab2 AS cor0
----
365
4342
4386
query I rowsort
SELECT - 39 AS col1 FROM tab1 AS cor0
----
-39
-39
-39
skipif mysql # not compatible
query I rowsort
SELECT 6 * + col0 + col2 * CAST ( col2 + + col1 AS REAL ) FROM tab1 AS cor0
----
10944
4203
4338
query I rowsort
SELECT DISTINCT + - ( - 97 ) * col2 + 76 FROM tab1 AS cor0
----
5314
5605
9388
query I rowsort
SELECT ALL ( 61 ) * - col0 FROM tab1 AS cor0
----
-183
-3904
-4880
query I rowsort
SELECT ( col0 ) * col2 + 60 * + col1 AS col2 FROM tab0 AS cor0
----
12758
5855
5952
query I rowsort
SELECT ALL + ( + col1 ) + col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1664
SELECT ALL + ( - col2 ) DIV - col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL + ( - col2 ) / - col0 FROM tab0 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1665
SELECT DISTINCT ( - col0 ) DIV - col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT ( - col0 ) / - col1 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1666
SELECT DISTINCT ( - cor0.col2 ) * - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1666
SELECT DISTINCT ( - cor0.col2 ) * - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1667
SELECT ALL - col2 * col2 + - col1 DIV - col1 AS col2 FROM tab1
----
-2915
-3248
-9215
skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL - col2 * col2 + - col1 / - col1 AS col2 FROM tab1
----
-2915
-3248
-9215
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1668
SELECT + + CAST( NULL AS SIGNED ) + - cor0.col2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1668
SELECT + + CAST ( NULL AS INTEGER ) + - cor0.col2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * col1 * - col0 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT + 7 * col0 FROM tab1 cor0
----
21
448
560
query I rowsort
SELECT - col1 * cor0.col2 * ( + 86 * col0 ) FROM tab1 AS cor0
----
-3137280
-362232
-8586240
query I rowsort
SELECT ALL - cor0.col1 + col1 * ( + cor0.col0 ) FROM tab2 AS cor0
----
1326
186
4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 col2 FROM tab0 AS cor0
----
-17
query I rowsort
SELECT ALL - ( col0 ) + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT col1 * + col2 * ( col0 ) AS col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT + 8 * - col2 FROM tab1 cor0
----
-432
-456
-768
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1677
SELECT DISTINCT + col0 + + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1677
SELECT DISTINCT + col0 + + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL 64 * col2 AS col1 FROM tab0 AS cor0
----
2112
5248
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-1679
SELECT ALL col0 - + col2 DIV col0 AS col1 FROM tab2
----
4
78
79
skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL col0 - + col2 / col0 AS col1 FROM tab2
----
4
78
79
query I rowsort
SELECT DISTINCT + col0 + col1 - 20 * + col0 AS col0 FROM tab2 cor0
----
-102
-1423
-1484
query I rowsort
SELECT col1 - + 52 * - col0 FROM tab1 cor0
----
182
3338
4173
query I rowsort
SELECT 55 * col1 * 39 + - col1 FROM tab1
----
21440
27872
55744
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) col2 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1684
SELECT col1 DIV - 57 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1684
SELECT col1 / - 57 AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1685
SELECT - - col1 * + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-1685
SELECT - - col1 * + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1686
SELECT DISTINCT CAST( NULL AS SIGNED ) + - cor0.col0 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-1686
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - cor0.col0 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT - col1 * 70 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1823
-764
-990
query I rowsort
SELECT + col1 + 92 * col0 FROM tab0 AS cor0
----
2294
3317
8279
query I rowsort
SELECT ALL - 11 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1690
SELECT DISTINCT + col1 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT + col1 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT ( col2 * + col2 ) AS col1 FROM tab2
----
1444
676
729
query I rowsort
SELECT ALL - ( 13 ) FROM tab1
----
-13
-13
-13
query I rowsort
SELECT DISTINCT - - col1 + + 91 * col1 FROM tab1 AS cor0
----
1196
2392
920
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1694
SELECT CAST( col2 AS SIGNED ) + col1 * 52 AS col0 FROM tab1 AS cor0
----
1406
577
772
skipif mysql # not compatible
query I rowsort label-1694
SELECT CAST ( col2 AS INTEGER ) + col1 * 52 AS col0 FROM tab1 AS cor0
----
1406
577
772
query I rowsort
SELECT DISTINCT 86 + cor0.col1 AS col2 FROM tab2 cor0
----
103
117
145
query I rowsort
SELECT 65 - + cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to b0606354b0cd9c2a4a114229be913b75
query I rowsort
SELECT - + 70 FROM tab1 cor0
----
-70
-70
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1698
SELECT DISTINCT - 69 * - col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT - 69 * - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col2 * + col1 + - col0 AS col1 FROM tab0 AS cor0
----
2814
62
7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col2 FROM tab2, tab0, tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1701
SELECT ALL - CAST( cor1.col2 AS SIGNED ) FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL - CAST ( cor1.col2 AS INTEGER ) FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT - 57 FROM tab1 cor0
----
-57
-57
-57
query I rowsort
SELECT DISTINCT 44 * col2 * - col0 FROM tab0 AS cor0
----
-1540
-321112
-34848
query I rowsort
SELECT - col1 * col2 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - col1 * 25 AS col0 FROM tab1
----
-250
-325
-650
query I rowsort
SELECT ALL - - 61 AS col2 FROM tab0 AS cor0
----
61
61
61
query I rowsort
SELECT - col2 * col1 * - col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT + col1 * col1 + - col1 FROM tab0 cor0
----
7310
8190
9312
query I rowsort
SELECT DISTINCT - - 31 AS col0 FROM tab2 AS cor0
----
31
query I rowsort
SELECT - col0 * col1 + + 56 + 61 AS col2 FROM tab1 AS cor0
----
-523
-923
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 col2 FROM tab0 AS cor0
----
48
48
48
query I rowsort
SELECT - - col1 + cor0.col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-1713
SELECT DISTINCT 49 DIV col1 AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT 49 / col1 AS col0 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col1 FROM tab1
----
18
18
18
query I rowsort
SELECT DISTINCT - ( col2 + col1 ) FROM tab2
----
-55
-58
-85
query I rowsort
SELECT col0 * col1 * - col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT - 55 + + tab2.col2 FROM tab2
----
-17
-28
-29
query I rowsort
SELECT col2 * col1 * - col2 AS col0 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT col0 * - col1 * col1 AS col2 FROM tab0
----
-177504
-329315
-737009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1720
SELECT 68 + + col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1720
SELECT 68 + + col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 71 AS col1 FROM tab2 AS cor0
----
71
71
71
query I rowsort
SELECT col1 + + cor0.col2 * + ( + col1 ) AS col0 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT tab2.col2 * + 65 FROM tab2, tab0 AS cor0
----
1690
1755
2470
query I rowsort
SELECT DISTINCT + 28 FROM tab0, tab0 AS cor0
----
28
query I rowsort
SELECT - col2 * 81 FROM tab0 AS cor0
----
-2673
-6642
-81
query I rowsort
SELECT - col2 * cor0.col1 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT col0 - + 5 FROM tab0 AS cor0
----
19
30
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-1728
SELECT col1 DIV - tab1.col1 - + col1 AS col0 FROM tab1
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-1728
SELECT col1 / - tab1.col1 - + col1 AS col0 FROM tab1
----
-11
-14
-27
onlyif mysql # use DIV operator for integer division
query I rowsort label-1729
SELECT ALL tab0.col1 * + 87 - tab0.col0 DIV + col0 AS col1 FROM tab0
----
7481
7916
8438
skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL tab0.col1 * + 87 - tab0.col0 / + col0 AS col1 FROM tab0
----
7481
7916
8438
query I rowsort
SELECT DISTINCT - col2 + 43 * cor0.col2 FROM tab1 AS cor0
----
2268
2394
4032
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1731
SELECT - + CAST( NULL AS SIGNED ) - + 75 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1731
SELECT - + CAST ( NULL AS INTEGER ) - + 75 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 * + col1 - - col2 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1733
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - + col2 AS col2 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - + col2 AS col2 FROM tab0 cor0
----
NULL
query I rowsort
SELECT - 56 + col1 FROM tab1 AS cor0
----
-30
-43
-46
query I rowsort
SELECT - tab2.col0 * col2 * col2 - col2 * col0 FROM tab2
----
-117078
-5292
-54756
query I rowsort
SELECT ALL col2 * + 12 - col0 FROM tab2
----
234
317
377
query I rowsort
SELECT ALL + ( col1 ) * col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL + + 92 + 14 AS col0 FROM tab2 AS cor0
----
106
106
106
query I rowsort
SELECT DISTINCT ( 38 ) FROM tab2 AS cor0
----
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1740
SELECT DISTINCT - - col0 DIV col0 col2 FROM tab2 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT - - col0 / col0 col2 FROM tab2 AS cor0
----
1
query I rowsort
SELECT col2 * - 10 AS col0 FROM tab0 AS cor0
----
-10
-330
-820
query I rowsort
SELECT ALL + - col1 * - col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + cor0.col0 * + cor0.col1 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 42 col0 FROM tab2 AS cor0
----
-1092
-1134
-1596
query I rowsort
SELECT ALL + col2 * + col1 - col1 AS col2 FROM tab1 cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT + + cor0.col0 * col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - 78 * cor0.col0 + + col1 FROM tab0 AS cor0
----
-1786
-2633
-6851
query I rowsort
SELECT - 94 * + 95 AS col2 FROM tab1 AS cor0
----
-8930
-8930
-8930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1749
SELECT DISTINCT + col2 + col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT + col2 + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - cor0.col1 - col2 * - col0 * - 88 AS col1 FROM tab0 AS cor0
----
-3177
-642315
-69782
query I rowsort
SELECT ALL ( - 19 ) * cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 934d1dd9454bfc140d1959bcd7db01c4
query I rowsort
SELECT DISTINCT 69 + col2 AS col2 FROM tab2 AS cor0
----
107
95
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 + col2 + cor0.col0 col0 FROM tab2 AS cor0
----
113
183
196
query I rowsort
SELECT ALL 28 * col2 FROM tab0 AS cor0
----
2296
28
924
query I rowsort
SELECT 80 * - col2 * col1 - col0 AS col2 FROM tab0 AS cor0
----
-227064
-597049
-7795
query I rowsort
SELECT ALL - 43 * - cor0.col1 + ( - 69 ) AS col1 FROM tab2 cor0
----
1264
2468
662
query I rowsort
SELECT cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT + cor1.col1 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT + + 97 - col0 FROM tab2 AS cor0
----
18
19
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-1760
SELECT ALL + 48 - col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-49
46
47
skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL + 48 - col1 / col2 AS col0 FROM tab0 AS cor0
----
-49
46
47
query I rowsort
SELECT ALL col2 + - col1 * + ( - col1 ) AS col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT - col2 + + 38 * - col0 FROM tab0 AS cor0
----
-1331
-3464
-945
query I rowsort
SELECT + col0 * 43 FROM tab0 AS cor0
----
1032
1505
3827
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 + - cor0.col2 col2 FROM tab1, tab2 AS cor0
----
-104
-92
-93
query I rowsort
SELECT DISTINCT + + col0 + 53 AS col0 FROM tab0 AS cor0
----
142
77
88
query I rowsort
SELECT ALL + col1 + + cor0.col2 * + col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT + col1 + + ( cor0.col0 ) * - 16 FROM tab1 cor0
----
-1014
-1267
-22
query I rowsort
SELECT ALL - col0 * col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT ALL - + col1 - - col2 * + col0 AS col2 FROM tab2 AS cor0
----
158
1969
2985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1770
SELECT ALL + col2 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1770
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * 17 * 65 + + col0 FROM tab2
----
28808
29842
42069
query I rowsort
SELECT - col2 - + 98 FROM tab2
----
-124
-125
-136
query I rowsort
SELECT - col2 - + 6 FROM tab0 AS cor0
----
-39
-7
-88
query I rowsort
SELECT + col1 * + ( col2 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col0 + col2 * - ( - col0 ) FROM tab1 cor0
----
159
3584
7600
query I rowsort
SELECT ALL - 92 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
query I rowsort
SELECT DISTINCT + col1 * 37 FROM tab0
----
3182
3367
3589
query I rowsort
SELECT col1 + col2 * col2 AS col0 FROM tab1 cor0
----
2942
3259
9229
query I rowsort
SELECT + col2 * + col2 - col2 AS col2 FROM tab0 AS cor0
----
0
1056
6642
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1780
SELECT + - col2 - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1780
SELECT + - col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT ALL + + col0 * ( + col0 ) + + col1 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT ALL tab1.col0 * cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 819103d3cf87b5ea7ab7d6e1018478a0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1784
SELECT tab0.col2 * + col1 + + col0 DIV + col2 FROM tab0
----
132
2838
7463
skipif mysql # not compatible
query I rowsort label-1784
SELECT tab0.col2 * + col1 + + col0 / + col2 FROM tab0
----
132
2838
7463
onlyif mysql # use DIV operator for integer division
query I rowsort label-1785
SELECT + 73 DIV - cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 175191f61952e3d585ae3ee0d24378d6
skipif mysql # not compatible
query I rowsort label-1785
SELECT + 73 / - cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 175191f61952e3d585ae3ee0d24378d6
query I rowsort
SELECT DISTINCT - - col1 * cor0.col0 - col2 * col2 FROM tab0 cor0
----
1375
3394
975
query I rowsort
SELECT ALL - - ( + col2 ) * col1 + - 7 * + cor0.col1 FROM tab2 AS cor0
----
1121
527
620
query I rowsort
SELECT + + col0 * col1 * - col0 FROM tab2 cor0
----
-106097
-1519
-358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col1 col1 FROM tab0 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1790
SELECT ALL - - col2 * + col2 + 12 DIV col2 + + cor0.col1 FROM tab0 AS cor0
----
110
1175
6815
skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL - - col2 * + col2 + 12 / col2 + + cor0.col1 FROM tab0 AS cor0
----
110
1175
6815
query I rowsort
SELECT ALL 98 AS col1 FROM tab0 AS cor0
----
98
98
98
query I rowsort
SELECT ALL col2 * - col0 + col2 * col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1793
SELECT + - 83 DIV col2 FROM tab0 cor0
----
-1
-2
-83
skipif mysql # not compatible
query I rowsort label-1793
SELECT + - 83 / col2 FROM tab0 cor0
----
-1
-2
-83
query I rowsort
SELECT ALL - - col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col2 * + col2 + + 70 FROM tab0 AS cor0
----
1159
6794
71
query I rowsort
SELECT 22 * + cor0.col2 FROM tab1 AS cor0
----
1188
1254
2112
query I rowsort
SELECT ALL 9 * cor0.col1 FROM tab1 AS cor0
----
117
234
90
query I rowsort
SELECT ALL - 86 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af
query I rowsort
SELECT - col0 + - cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT ALL + 13 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + 84 col0 FROM tab2 AS cor0
----
162
163
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1802
SELECT - col0 * col1 + ( col1 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1802
SELECT - col0 * col1 + ( col1 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 13 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT col2 * cor0.col1 + - col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT - col1 * - col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + 28 + 80 + + cor0.col1 * + cor0.col1 FROM tab1 AS cor0
----
208
277
784
onlyif mysql # use DIV operator for integer division
query I rowsort label-1807
SELECT ALL cor0.col0 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL cor0.col0 / col2 AS col1 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1808
SELECT - + 15 DIV 46 + - col1 * cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-1808
SELECT - + 15 / 46 + - col1 * cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1809
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 - + col1 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1809
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 - + col1 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL tab0.col0 * - col2 * col0 + + tab0.col2 * + 51 FROM tab0
----
-1174
-17325
-645340
query I rowsort
SELECT - col0 * - 84 FROM tab2 AS cor0
----
588
6552
6636
query I rowsort
SELECT - ( - 82 ) * col0 FROM tab1 AS cor0
----
246
5248
6560
query I rowsort
SELECT 38 * col2 + 30 * col0 FROM tab2 AS cor0
----
1236
3328
3814
query I rowsort
SELECT - cor0.col1 + 42 AS col1 FROM tab2 AS cor0
----
-17
11
25
query I rowsort
SELECT DISTINCT 68 AS col1 FROM tab1 cor0
----
68
query I rowsort
SELECT DISTINCT + 20 + col0 AS col1 FROM tab1 AS cor0
----
100
23
84
query I rowsort
SELECT - - 82 * - 88 + + col1 AS col2 FROM tab0 AS cor0
----
-7119
-7125
-7130
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col1 + col1 + 98 col1 FROM tab0 AS cor0
----
-2654
-7273
98
query I rowsort
SELECT 40 * tab1.col2 AS col0 FROM tab1
----
2160
2280
3840
onlyif mysql # use DIV operator for integer division
query I rowsort label-1820
SELECT - cor0.col1 DIV - 13 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 36d00a2b29852f88ac26d257535464fb
skipif mysql # not compatible
query I rowsort label-1820
SELECT - cor0.col1 / - 13 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 36d00a2b29852f88ac26d257535464fb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * ( - 19 ) + - col2 * cor0.col0 col0 FROM tab1 AS cor0
----
-3458
-7433
332
query I rowsort
SELECT + - col1 * 77 + col0 AS col1 FROM tab2 AS cor0
----
-1230
-2380
-4465
query I rowsort
SELECT DISTINCT - col1 * - 48 * + col0 AS col1 FROM tab2 AS cor0
----
10416
220896
64464
query I rowsort
SELECT - col0 * + cor0.col1 * + col2 - + col0 AS col0 FROM tab2 AS cor0
----
-119730
-51113
-5866
query I rowsort
SELECT + - cor0.col1 * cor0.col2 - col0 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 col0 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT ALL + + 59 * tab1.col0 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 132572ccde876ec0a7760cbb6b642cf8
query I rowsort
SELECT - + col2 + col1 - + col1 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + - col2 - + ( + col2 * - 32 + col1 * + col1 ) FROM tab0 AS cor0
----
-5739
-6373
-9378
onlyif mysql # use DIV operator for integer division
query I rowsort label-1830
SELECT ALL - col1 * col2 + col2 DIV ( + col0 ) FROM tab1 AS cor0
----
-1247
-1386
-570
skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL - col1 * col2 + col2 / ( + col0 ) FROM tab1 AS cor0
----
-1247
-1386
-570
query I rowsort
SELECT - col0 - + col2 AS col2 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT col1 * - ( + 64 ) FROM tab1 AS cor0
----
-1664
-640
-832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT - + 9 * - col2 FROM tab2 AS cor0
----
234
243
342
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col1 FROM tab2
----
28
28
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * + 68 col1 FROM tab1
----
258
4409
5536
onlyif mysql # use DIV operator for integer division
query I rowsort label-1837
SELECT ( col0 ) DIV - 31 + + col0 FROM tab1
----
3
62
78
skipif mysql # not compatible
query I rowsort label-1837
SELECT ( col0 ) / - 31 + + col0 FROM tab1
----
3
62
78
query I rowsort
SELECT - col1 + col2 * + col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT + 46 * col0 AS col2 FROM tab2 cor0
----
322
3588
3634
query I rowsort
SELECT - + 53 AS col0 FROM tab2 AS cor0
----
-53
-53
-53
query I rowsort
SELECT + 28 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT ALL + col1 + 70 AS col1 FROM tab0 AS cor0
----
156
161
167
query I rowsort
SELECT DISTINCT - col0 * - col0 + - cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
45
6051
6262
query I rowsort
SELECT ALL - 93 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba
query I rowsort
SELECT + - col2 * - ( + cor0.col1 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + - col2 * + col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1847
SELECT ALL ( + col0 ) + col2 * col0 DIV - 62 AS col0 FROM tab2
----
31
4
46
skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL ( + col0 ) + col2 * col0 / - 62 AS col0 FROM tab2
----
31
4
46
query I rowsort
SELECT DISTINCT - col2 + + ( col0 ) * - col2 AS col0 FROM tab0
----
-36
-7380
-825
onlyif mysql # use DIV operator for integer division
query I rowsort label-1849
SELECT + ( 55 ) * col1 DIV col1 + 37 AS col0 FROM tab1
----
92
92
92
skipif mysql # not compatible
query I rowsort label-1849
SELECT + ( 55 ) * col1 / col1 + 37 AS col0 FROM tab1
----
92
92
92
query I rowsort
SELECT + - 5 AS col0 FROM tab2 AS cor0
----
-5
-5
-5
query I rowsort
SELECT ALL ( - col0 ) + + col1 * - col1 FROM tab1
----
-164
-249
-679
query I rowsort
SELECT ALL tab2.col0 + + 29 FROM tab2
----
107
108
36
query I rowsort
SELECT + + ( - col0 ) * col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab1, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL - ( col2 ) + col2 * - 75 * - col2 AS col0 FROM tab1 cor0
----
218646
243618
691104
query I rowsort
SELECT ALL - 46 * col0 AS col0 FROM tab2 AS cor0
----
-322
-3588
-3634
onlyif mysql # use DIV operator for integer division
query I rowsort label-1857
SELECT - 12 + + 66 DIV - cor0.col1 FROM tab2 AS cor0
----
-13
-14
-15
skipif mysql # not compatible
query I rowsort label-1857
SELECT - 12 + + 66 / - cor0.col1 FROM tab2 AS cor0
----
-13
-14
-15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * cor0.col2 col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT ALL 22 AS col0 FROM tab2 AS cor0
----
22
22
22
query I rowsort
SELECT DISTINCT - - col0 + cor0.col0 * 36 FROM tab1 AS cor0
----
111
2368
2960
query I rowsort
SELECT DISTINCT 27 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
116
51
62
query I rowsort
SELECT ALL + col1 * col1 - - col0 AS col2 FROM tab2 cor0
----
3559
368
968
query I rowsort
SELECT DISTINCT + col1 * col0 + - 46 + - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-666
3022
651
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1864
SELECT ALL + - col1 + - col1 * CAST( 36 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1147
-2183
-629
skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL + - col1 + - col1 * CAST ( 36 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1147
-2183
-629
query I rowsort
SELECT ALL 27 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2403
648
945
query I rowsort
SELECT DISTINCT col0 + + col2 + - col1 * - col2 AS col1 FROM tab1 AS cor0
----
1424
1461
691
query I rowsort
SELECT ALL - - col0 * - col2 - col0 * - ( col2 ) AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL 70 * + col1 + - col2 AS col1 FROM tab2
----
1152
2143
4104
query I rowsort
SELECT + ( - col0 ) * + 73 + col2 FROM tab2 cor0
----
-484
-5668
-5729
query I rowsort
SELECT ALL 99 * col2 * + col0 - col0 FROM tab0 AS cor0
----
3430
722413
78384
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1871
SELECT CAST( 24 AS SIGNED ) FROM tab0
----
24
24
24
skipif mysql # not compatible
query I rowsort label-1871
SELECT CAST ( 24 AS INTEGER ) FROM tab0
----
24
24
24
query I rowsort
SELECT ALL + 25 * - 35 * col2 FROM tab1 AS cor0
----
-47250
-49875
-84000
query I rowsort
SELECT - ( 46 ) * + col0 AS col2 FROM tab1 AS cor0
----
-138
-2944
-3680
query I rowsort
SELECT + + 32 * + col0 * col0 FROM tab2 AS cor0
----
1568
194688
199712
query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab1 cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 * - ( - cor0.col2 ) col0 FROM tab2 AS cor0
----
1026
1444
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-1877
SELECT DISTINCT col2 DIV - ( col0 ) AS col1 FROM tab2
----
-3
0
skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT col2 / - ( col0 ) AS col1 FROM tab2
----
-3
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 col1 FROM tab0, tab0 AS cor0
----
54
query I rowsort
SELECT DISTINCT + ( col1 ) * + col0 * col1 AS col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT DISTINCT - - 24 + - col0 * col1 AS col1 FROM tab0 AS cor0
----
-2040
-3371
-8075
query I rowsort
SELECT ALL + + col0 + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT - + 68 * + 44 FROM tab2 AS cor0
----
-2992
-2992
-2992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1883
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 67 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1883
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 67 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 col2 FROM tab1, tab0 cor0
----
-37
query I rowsort
SELECT - 90 + + col0 AS col1 FROM tab1
----
-10
-26
-87
query I rowsort
SELECT cor0.col0 + + 25 * - col1 FROM tab2 AS cor0
----
-1397
-346
-768
query I rowsort
SELECT DISTINCT - col2 + - col1 * col2 AS col2 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT col0 + - col1 * + ( 85 ) FROM tab1
----
-1025
-2207
-786
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * tab2.col0 * - col1 col1 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT ALL + - cor0.col1 + col1 * + col2 AS col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL col0 * col2 + col2 * col2 FROM tab1
----
16896
3078
6897
query I rowsort
SELECT DISTINCT + 36 AS col0 FROM tab0 AS cor0
----
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 + col0 col2 FROM tab0
----
-63
-74
-9
query I rowsort
SELECT ALL + + col1 * - cor0.col0 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL - - cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + + cor0.col2 * col2 + - cor0.col0 * - col1 * 95 AS col2 FROM tab0 cor0
----
197169
322526
776129
query I rowsort
SELECT ALL cor0.col2 + + col1 * + col1 AS col1 FROM tab2 AS cor0
----
327
3507
988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - cor0.col0 col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + col2 + - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL - col0 * col0 + col0 AS col2 FROM tab0 cor0
----
-1190
-552
-7832
query I rowsort
SELECT DISTINCT - + col1 + - 40 * - 34 FROM tab2 AS cor0
----
1301
1329
1343
query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 + - col1 AS col0 FROM tab0 cor0
----
-1175
-6815
-98
query I rowsort
SELECT cor0.col0 + col1 * + 15 AS col2 FROM tab1 AS cor0
----
214
275
393
query I rowsort
SELECT - col1 * col0 + - 95 FROM tab0 AS cor0
----
-2159
-3490
-8194
query I rowsort
SELECT ALL col1 + - 39 + col2 * - col0 FROM tab0 AS cor0
----
-7246
-745
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-1906
SELECT DISTINCT col0 DIV ( col0 ) + + col1 col2 FROM tab2 AS cor0
----
18
32
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT col0 / ( col0 ) + + col1 col2 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT + col0 * 78 * col1 FROM tab0 AS cor0
----
160992
264810
631722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1908
SELECT col1 + CAST( + 28 AS SIGNED ) FROM tab2 AS cor0
----
45
59
87
skipif mysql # not compatible
query I rowsort label-1908
SELECT col1 + CAST ( + 28 AS INTEGER ) FROM tab2 AS cor0
----
45
59
87
query I rowsort
SELECT - col2 * + 9 FROM tab2 AS cor0
----
-234
-243
-342
query I rowsort
SELECT - 75 * cor0.col2 FROM tab0 AS cor0
----
-2475
-6150
-75
query I rowsort
SELECT ALL ( + col0 ) + - col2 + - ( tab2.col0 ) FROM tab2
----
-26
-27
-38
query I rowsort
SELECT - ( + 75 ) * col1 + 66 AS col0 FROM tab0 cor0
----
-6384
-6759
-7209
onlyif mysql # use DIV operator for integer division
query I rowsort label-1913
SELECT 56 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-1913
SELECT 56 / - col1 AS col1 FROM tab2 AS cor0
----
-1
-3
0
query I rowsort
SELECT 20 + 37 AS col0 FROM tab0 AS cor0
----
57
57
57
query I rowsort
SELECT DISTINCT - 82 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-82
query I rowsort
SELECT DISTINCT - 65 * ( + tab0.col2 ) AS col2 FROM tab0, tab0 AS cor0
----
-2145
-5330
-65
query I rowsort
SELECT ALL col0 - - col1 * col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL - + col1 - + col0 FROM tab2 cor0
----
-137
-38
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1919
SELECT + + 4 * + col1 + + CAST( + col2 AS SIGNED ) - + col2 * col1 AS col1 FROM tab2 cor0
----
-1272
-540
-686
skipif mysql # not compatible
query I rowsort label-1919
SELECT + + 4 * + col1 + + CAST ( + col2 AS INTEGER ) - + col2 * col1 AS col1 FROM tab2 cor0
----
-1272
-540
-686
query I rowsort
SELECT - - 15 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT + 14 * + col1 * ( col2 ) FROM tab2 AS cor0
----
11718
21476
9044
query I rowsort
SELECT ( + cor0.col0 ) + - ( - col2 ) * col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - + cor0.col0 * - col2 - - col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + col2 + + col1 - - col1 AS col1 FROM tab2 AS cor0
----
144
72
89
query I rowsort
SELECT 9 + + col1 * 86 FROM tab1 AS cor0
----
1127
2245
869
onlyif mysql # use DIV operator for integer division
query I rowsort label-1926
SELECT col2 * - cor0.col2 - - col1 DIV - cor0.col1 FROM tab1 AS cor0
----
-2917
-3250
-9217
skipif mysql # not compatible
query I rowsort label-1926
SELECT col2 * - cor0.col2 - - col1 / - cor0.col1 FROM tab1 AS cor0
----
-2917
-3250
-9217
query I rowsort
SELECT 16 * col2 AS col2 FROM tab0
----
1312
16
528
query I rowsort
SELECT DISTINCT - ( col2 ) AS col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT + 81 * ( + col0 ) + - ( - col2 ) FROM tab0
----
1977
2836
7291
query I rowsort
SELECT - 14 * - col2 + - col1 * + 78 * - 10 AS col2 FROM tab1
----
11484
21036
8598
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1931
SELECT ALL - CAST( - 65 AS SIGNED ) AS col1 FROM tab1
----
65
65
65
skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL - CAST ( - 65 AS INTEGER ) AS col1 FROM tab1
----
65
65
65
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT NULL >= NULL
----
query I rowsort
SELECT cor0.col2 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL - 27 * - cor0.col0 FROM tab2 AS cor0
----
189
2106
2133
query I rowsort
SELECT + col0 * + cor0.col1 + col0 * 50 - - col0 FROM tab1 AS cor0
----
231
3904
5120
query I rowsort
SELECT col2 - col2 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 + col0 * cor0.col0 * col2 FROM tab1 AS cor0
----
233536
489
614480
query I rowsort
SELECT - - 82 + - col0 AS col0 FROM tab0 AS cor0
----
-7
47
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-1939
SELECT ALL col1 + col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
10
12
8
skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL col1 + col2 / - col0 AS col1 FROM tab1 AS cor0
----
10
12
8
query I rowsort
SELECT DISTINCT + 34 + col0 AS col0 FROM tab0 cor0
----
123
58
69
query I rowsort
SELECT ALL col1 * + col0 + - col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT + col1 * col2 + + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT 13 * + col1 AS col1 FROM tab0 AS cor0
----
1118
1183
1261
query I rowsort
SELECT DISTINCT - 17 AS col2 FROM tab0 cor0
----
-17
onlyif mysql # use DIV operator for integer division
query I rowsort label-1945
SELECT DISTINCT 41 DIV cor0.col0 FROM tab0 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT 41 / cor0.col0 FROM tab0 cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 * + cor0.col0 col2 FROM tab0 AS cor0
----
2314
624
910
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * cor0.col2 + 65 col0 FROM tab1 AS cor0
----
1313
1469
635
query I rowsort
SELECT col0 * col2 + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT - - col2 + - 83 * - col0 AS col0 FROM tab2 cor0
----
608
6500
6595
query I rowsort
SELECT col1 + ( col0 ) * + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL - col2 * cor0.col2 + col2 FROM tab2 cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL + col1 * 20 FROM tab2 AS cor0
----
1180
340
620
query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab2, tab1, tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - col0 + col2 * ( + col1 ) FROM tab2 AS cor0
----
1456
567
830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 43 * col2 col2 FROM tab1 AS cor0
----
2348
2461
4141
query I rowsort
SELECT DISTINCT 90 * + cor0.col0 FROM tab2, tab1 AS cor0
----
270
5760
7200
query I rowsort
SELECT DISTINCT - ( - ( col1 ) ) + 82 AS col2 FROM tab1 AS cor0
----
108
92
95
query I rowsort
SELECT + ( cor0.col0 ) AS col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT - 72 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6
query I rowsort
SELECT col2 - 85 AS col0 FROM tab0
----
-3
-52
-84
query I rowsort
SELECT DISTINCT col2 + 73 FROM tab2
----
100
111
99
query I rowsort
SELECT col1 * - 87 FROM tab0
----
-7482
-7917
-8439
query I rowsort
SELECT col2 * col1 + col1 + + cor0.col0 * + 26 AS col0 FROM tab2 AS cor0
----
1050
2717
3621
query I rowsort
SELECT DISTINCT - 72 * + 60 AS col1 FROM tab1 AS cor0
----
-4320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL 26 FROM tab0 cor0
----
26
26
26
query I rowsort
SELECT - - col0 + + 82 + col2 AS col2 FROM tab2 AS cor0
----
116
186
199
onlyif mysql # use DIV operator for integer division
query I rowsort label-1968
SELECT DISTINCT + + col1 + - col0 DIV + cor0.col2 FROM tab0 AS cor0
----
62
86
90
skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT + + col1 + - col0 / + cor0.col2 FROM tab0 AS cor0
----
62
86
90
query I rowsort
SELECT ALL + - col1 + - 12 FROM tab1 AS cor0
----
-22
-25
-38
query I rowsort
SELECT ALL + col2 + col2 AS col2 FROM tab0 cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-1971
SELECT ALL - col1 DIV col2 - + cor0.col2 * 87 * 61 FROM tab1 AS cor0
----
-286578
-302499
-509472
skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL - col1 / col2 - + cor0.col2 * 87 * 61 FROM tab1 AS cor0
----
-286578
-302499
-509472
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 * col1 col2 FROM tab2 AS cor0
----
-1173
-2139
-4071
query I rowsort
SELECT + 59 * 64 FROM tab1 AS cor0
----
3776
3776
3776
query I rowsort
SELECT DISTINCT col1 + 49 * 19 FROM tab1
----
941
944
957
query I rowsort
SELECT col2 * ( - 47 ) - col1 FROM tab0
----
-144
-1637
-3945
query I rowsort
SELECT - 11 * + cor1.col2 AS col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to d2b00d396aa1d5a76449421620349f6b
onlyif mysql # use DIV operator for integer division
query I rowsort label-1977
SELECT ALL 25 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL 25 / - col1 AS col1 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT - + col1 + col0 * col2 AS col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT DISTINCT - - ( col1 ) * - col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1980
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT - + CAST ( NULL AS REAL ) * col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + col0 * ( - col1 ) + col2 + + 76 AS col0 FROM tab2
----
-114
-1229
-4500
query I rowsort
SELECT + col2 * - ( - ( col1 ) ) * - ( + ( - col0 ) ) - + col1 AS col2 FROM tab2
----
119593
51017
5828
query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT col0 * tab0.col0 - col2 FROM tab0
----
1224
543
7839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 * + 44 col2 FROM tab2 AS cor0
----
-1408
-1408
-1408
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1986
SELECT ALL CAST( 72 AS SIGNED ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
3888
4104
6912
skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL CAST ( 72 AS INTEGER ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
3888
4104
6912
query I rowsort
SELECT + col1 + col2 + col2 FROM tab1 cor0
----
124
134
205
query I rowsort
SELECT DISTINCT 18 + - cor0.col1 FROM tab2 cor0
----
-13
-41
1
query I rowsort
SELECT ALL ( 77 * col2 + col2 ) FROM tab2
----
2028
2106
2964
query I rowsort
SELECT DISTINCT - col0 * - ( ( col1 ) ) + - col1 * 60 FROM tab2 AS cor0
----
-1643
1062
323
query I rowsort
SELECT ALL + cor0.col0 + + 1 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT ALL - + col2 * 81 FROM tab2 AS cor0
----
-2106
-2187
-3078
query I rowsort
SELECT + col2 * col0 + ( + 83 ) + tab1.col0 AS col1 FROM tab1
----
248
3795
7843
query I rowsort
SELECT + cor0.col0 + + cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b8cf3a0d946da15d11bb8abf87d58a6b
onlyif mysql # use DIV operator for integer division
query I rowsort label-1995
SELECT - col0 + - col1 DIV tab1.col1 AS col2 FROM tab1
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-1995
SELECT - col0 + - col1 / tab1.col1 AS col2 FROM tab1
----
-4
-65
-81
query I rowsort
SELECT - col1 + col2 + - 57 * col2 AS col1 FROM tab2 AS cor0
----
-1515
-1543
-2145
query I rowsort
SELECT ALL + col0 + 56 AS col0 FROM tab1 AS cor0
----
120
136
59
query I rowsort
SELECT ( + 16 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT ALL + tab1.col1 + col0 + col0 FROM tab1
----
138
173
32
query I rowsort
SELECT DISTINCT + col1 * 98 * cor0.col2 + col0 FROM tab1 AS cor0
----
122384
137595
55924
query I rowsort
SELECT - col1 + - 34 FROM tab1 AS cor0
----
-44
-47
-60
query I rowsort
SELECT DISTINCT + + col2 * col0 + col2 * - cor0.col1 FROM tab0 AS cor0
----
-164
-2046
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2003
SELECT + col0 * 99 + 9 DIV col1 AS col2 FROM tab2 AS cor0
----
693
7722
7821
skipif mysql # not compatible
query I rowsort label-2003
SELECT + col0 * 99 + 9 / col1 AS col2 FROM tab2 AS cor0
----
693
7722
7821
query I rowsort
SELECT DISTINCT - + col1 * - col0 + - col1 AS col2 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT - col2 + + col0 + - col2 FROM tab1 AS cor0
----
-105
-112
-50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT ALL - 4 + cor0.col1 AS col2 FROM tab0 AS cor0
----
82
87
93
query I rowsort
SELECT ALL 58 + - col1 FROM tab2 AS cor0
----
-1
27
41
query I rowsort
SELECT ALL - cor0.col0 * - col2 + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT - col0 * col1 + - col2 * - cor0.col0 AS col1 FROM tab1 cor0
----
3008
6640
84
query I rowsort
SELECT DISTINCT + - 88 * col2 * - 39 AS col0 FROM tab0 cor0
----
113256
281424
3432
onlyif mysql # use DIV operator for integer division
query I rowsort label-2012
SELECT ALL - - col2 DIV col1 AS col0 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL - - col2 / col1 AS col0 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT + - col1 * col1 + - 29 AS col2 FROM tab2 AS cor0
----
-318
-3510
-990
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2014
SELECT - 84 * col2 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2014
SELECT - 84 * col2 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2015
SELECT cor0.col2 + + 43 DIV - 48 AS col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-2015
SELECT cor0.col2 + + 43 / - 48 AS col2 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2016
SELECT col2 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2016
SELECT col2 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 72 + ( - col1 ) FROM tab0 AS cor0
----
-158
-163
-169
onlyif mysql # use DIV operator for integer division
query I rowsort label-2018
SELECT ALL + ( - col2 ) * col2 - col2 DIV col0 FROM tab0 cor0
----
-1
-1090
-6724
skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL + ( - col2 ) * col2 - col2 / col0 FROM tab0 cor0
----
-1
-1090
-6724
query I rowsort
SELECT - col1 * - 89 AS col0 FROM tab0 AS cor0
----
7654
8099
8633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2020
SELECT ALL - CAST( - col1 AS SIGNED ) * col2 - - CAST( NULL AS DECIMAL ) * col0 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL - CAST ( - col1 AS INTEGER ) * col2 - - CAST ( NULL AS REAL ) * col0 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col2 - col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT ALL - col2 + - 41 * + col0 AS col0 FROM tab0 AS cor0
----
-1017
-1436
-3731
query I rowsort
SELECT - + col0 + col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT + ( + 23 ) * col0 + - col1 AS col2 FROM tab1 AS cor0
----
1462
1827
43
query I rowsort
SELECT DISTINCT + + ( - ( col2 ) ) + - ( col1 ) FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2026
SELECT ALL CAST( NULL AS SIGNED ) + col1 - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL CAST ( NULL AS INTEGER ) + col1 - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - ( - 16 ) + - col1 AS col0 FROM tab0 AS cor0
----
-70
-75
-81
query I rowsort
SELECT - col2 * 80 + col1 - + col1 AS col2 FROM tab0 AS cor0
----
-2640
-6560
-80
query I rowsort
SELECT col1 - + 24 FROM tab2 AS cor0
----
-7
35
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2030
SELECT ALL 15 DIV - cor0.col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL 15 / - cor0.col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT ALL col1 * col0 * - col1 + col2 FROM tab0
----
-177471
-329314
-736927
query I rowsort
SELECT ALL 42 * + tab2.col0 * tab2.col2 + + col1 FROM tab2
----
126101
7969
85235
query I rowsort
SELECT + 99 * + col1 AS col1 FROM tab2
----
1683
3069
5841
query I rowsort
SELECT - 80 + cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 71059d7707723f113f982256d6e3c3c7
query I rowsort
SELECT ALL 53 + col1 AS col1 FROM tab1
----
63
66
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2036
SELECT + col2 DIV col2 - 30 FROM tab1 AS cor0
----
-29
-29
-29
skipif mysql # not compatible
query I rowsort label-2036
SELECT + col2 / col2 - 30 FROM tab1 AS cor0
----
-29
-29
-29
query I rowsort
SELECT DISTINCT + 60 FROM tab2, tab0 cor0 CROSS JOIN tab0
----
60
query I rowsort
SELECT 48 * - col0 FROM tab2
----
-336
-3744
-3792
query I rowsort
SELECT - 25 * tab2.col2 AS col2 FROM tab2
----
-650
-675
-950
query I rowsort
SELECT + col1 * - col2 * ( 76 ) FROM tab2
----
-116584
-49096
-63612
onlyif mysql # use DIV operator for integer division
query I rowsort label-2041
SELECT + col2 DIV - col1 + ( col2 ) DIV + cor0.col0 AS col2 FROM tab1 AS cor0
----
-5
-6
16
skipif mysql # not compatible
query I rowsort label-2041
SELECT + col2 / - col1 + ( col2 ) / + cor0.col0 AS col2 FROM tab1 AS cor0
----
-5
-6
16
query I rowsort
SELECT ALL col0 - - col1 * + 33 * + 2 FROM tab0
----
5700
6095
6437
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2043
SELECT DISTINCT + tab2.col0 * CAST( NULL AS SIGNED ) * tab2.col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT + tab2.col0 * CAST ( NULL AS INTEGER ) * tab2.col1 FROM tab2
----
NULL
query I rowsort
SELECT - tab0.col0 + - col1 AS col2 FROM tab0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-2045
SELECT - - ( - col0 ) DIV + col2 AS col0 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2045
SELECT - - ( - col0 ) / + col2 AS col0 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT - col0 + tab0.col0 FROM tab0 WHERE NULL NOT BETWEEN - col2 AND NULL
----
query I rowsort
SELECT + tab2.col2 + + tab2.col0 * col0 FROM tab2
----
6110
6279
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 WHERE NULL <> + col1
----
query I rowsort
SELECT ALL + tab1.col1 + - col2 AS col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT + tab0.col2 + + col0 + col1 FROM tab0
----
133
143
262
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col2 - + col2 ) NOT IN ( - cor0.col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * col2 col1 FROM tab2 WHERE NULL > ( + col1 )
----
query I rowsort
SELECT ALL + col1 * - col2 + + col1 AS col2 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT col1 * tab2.col2 AS col2 FROM tab2 WHERE + col1 BETWEEN col1 + + col1 AND NULL
----
query I rowsort
SELECT - tab2.col2 * col0 AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT col1 + + col1 AS col1 FROM tab0 WHERE NULL > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 col2 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT + col2 * col2 * - col1 + + col1 AS col2 FROM tab1
----
-119795
-32480
-75790
query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NOT NULL > col0
----
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) = NULL
----
query I rowsort
SELECT ALL - col2 - tab2.col2 AS col1 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT DISTINCT + col0 + + tab1.col2 AS col2 FROM tab1
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2063
SELECT DISTINCT tab1.col1 + - col1 DIV - col0 AS col1 FROM tab1
----
10
13
34
skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT tab1.col1 + - col1 / - col0 AS col1 FROM tab1
----
10
13
34
query I rowsort
SELECT col1 + col2 + col1 * col1 AS col0 FROM tab0
----
7515
8454
9507
query III rowsort
SELECT ALL * FROM tab1 WHERE col1 NOT IN ( - col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT col0 * + cor0.col0 + - col1 AS col2 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT + col1 * col1 * col0 + col2 FROM tab0 AS cor0
----
177537
329316
737091
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + - col2 <> col0
----
query I rowsort
SELECT DISTINCT - + col0 * - 99 + 90 * col0 * + col1 AS col0 FROM tab2 AS cor0
----
128691
20223
421902
query I rowsort
SELECT - - col2 * ( - col1 ) * col0 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-2071
SELECT DISTINCT + col2 DIV - 89 AS col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2071
SELECT DISTINCT + col2 / - 89 AS col0 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2072
SELECT ALL col2 DIV + col2 - col2 AS col0 FROM tab1 cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL col2 / + col2 - col2 AS col0 FROM tab1 cor0
----
-53
-56
-95
query I rowsort
SELECT col1 + + 3 AS col1 FROM tab2 AS cor0
----
20
34
62
query I rowsort
SELECT DISTINCT - col0 + + col0 * + 77 FROM tab0 AS cor0
----
1824
2660
6764
query I rowsort
SELECT - cor0.col2 + + col1 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT + col1 * ( + 60 ) FROM tab1 AS cor0
----
1560
600
780
onlyif mysql # use DIV operator for integer division
query I rowsort label-2077
SELECT - col0 DIV 32 + + col2 AS col0 FROM tab1 AS cor0
----
54
55
94
skipif mysql # not compatible
query I rowsort label-2077
SELECT - col0 / 32 + + col2 AS col0 FROM tab1 AS cor0
----
54
55
94
query I rowsort
SELECT DISTINCT + col2 + - ( col1 ) FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 * + col1 col2 FROM tab0
----
8342
8827
9409
query I rowsort
SELECT DISTINCT - 57 * col1 AS col1 FROM tab0
----
-4902
-5187
-5529
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2081
SELECT DISTINCT col1 * CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT col1 * CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - col0 + + ( - 59 ) AS col1 FROM tab2 AS cor0
----
-137
-138
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2083
SELECT CAST( - 79 * cor0.col2 AS SIGNED ) FROM tab1, tab2 AS cor0
----
9 values hashing to 72980a3b9357c6534e9dbe0ab9f255af
skipif mysql # not compatible
query I rowsort label-2083
SELECT CAST ( - 79 * cor0.col2 AS INTEGER ) FROM tab1, tab2 AS cor0
----
9 values hashing to 72980a3b9357c6534e9dbe0ab9f255af
query I rowsort
SELECT DISTINCT + + col1 + 22 * col2 AS col1 FROM tab0 cor0
----
119
1895
812
onlyif mysql # use DIV operator for integer division
query I rowsort label-2085
SELECT DISTINCT col1 DIV cor0.col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT col1 / cor0.col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ALL 62 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 0bc652564a158b9c0f7952026f90b60a
query I rowsort
SELECT DISTINCT + cor1.col2 AS col0 FROM tab0, tab2 AS cor0, tab2, tab2 AS cor1
----
26
27
38
query I rowsort
SELECT DISTINCT col1 + tab1.col0 * col0 + col1 FROM tab1
----
4116
61
6426
onlyif mysql # use DIV operator for integer division
query I rowsort label-2089
SELECT + col2 + 10 + col2 DIV col0 AS col1 FROM tab2
----
36
40
48
skipif mysql # not compatible
query I rowsort label-2089
SELECT + col2 + 10 + col2 / col0 AS col1 FROM tab2
----
36
40
48
query I rowsort
SELECT ALL - col1 + 59 FROM tab0
----
-27
-32
-38
query I rowsort
SELECT DISTINCT - 73 + + col0 * col1 AS col2 FROM tab1 cor0
----
5
567
967
onlyif mysql # use DIV operator for integer division
query I rowsort label-2092
SELECT ALL 43 DIV - col1 AS col2 FROM tab1 AS cor0
----
-1
-3
-4
skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL 43 / - col1 AS col2 FROM tab1 AS cor0
----
-1
-3
-4
query I rowsort
SELECT ALL + - 8 * + col0 AS col0 FROM tab1 AS cor0
----
-24
-512
-640
query I rowsort
SELECT 15 * + cor0.col2 * + col1 FROM tab0 cor0
----
111930
1455
42570
query I rowsort
SELECT ALL + 67 * + cor0.col1 FROM tab2 AS cor0
----
1139
2077
3953
query I rowsort
SELECT - col1 + tab0.col0 - tab0.col1 AS col0 FROM tab0
----
-148
-159
-93
query I rowsort
SELECT ALL + col0 + + col2 + - col1 * col2 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND col2 + + col2 * col0 + + col2
----
query I rowsort
SELECT col0 + + tab2.col1 + col0 AS col2 FROM tab2
----
175
215
45
query I rowsort
SELECT ALL + tab0.col1 * tab0.col0 + - col1 * col2 AS col0 FROM tab0
----
-774
3298
637
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( col1 * - col0 )
----
query I rowsort
SELECT - col0 + + col0 + + col2 FROM tab2
----
26
27
38
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 / col0 IN ( col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2103
SELECT - col2 DIV - col2 + ( - col0 * + col0 ) + + col0 col2 FROM tab0
----
-1189
-551
-7831
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2103
SELECT - col2 / - col2 + ( - col0 * + col0 ) + + col0 col2 FROM tab0
----
-1189
-551
-7831
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 col2 FROM tab1
----
-29
-29
-29
query I rowsort
SELECT tab0.col0 * - 69 FROM tab0, tab2 cor0
----
9 values hashing to 31122a861f184117a041b1db992c35ef
query I rowsort
SELECT + 44 * col0 - ( col0 ) AS col1 FROM tab0
----
1032
1505
3827
onlyif mysql # use DIV operator for integer division
query I rowsort label-2107
SELECT - 3 DIV col2 + - col1 * 41 FROM tab0 AS cor0
----
-3526
-3731
-3980
skipif mysql # not compatible
query I rowsort label-2107
SELECT - 3 / col2 + - col1 * 41 FROM tab0 AS cor0
----
-3526
-3731
-3980
query I rowsort
SELECT - 69 + col1 - 3 FROM tab2 AS cor0
----
-13
-41
-55
query I rowsort
SELECT ALL + col2 * col2 + ( - col1 ) AS col2 FROM tab0 cor0
----
-96
1003
6633
query I rowsort
SELECT ALL col0 * + 2 + col1 + + col1 FROM tab0 cor0
----
220
264
360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 - ( + 61 ) col1 FROM tab0 AS cor0
----
25
30
36
query I rowsort
SELECT DISTINCT + - col1 * - 19 + 83 FROM tab1 AS cor0
----
273
330
577
query I rowsort
SELECT + cor0.col1 * - col1 - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT ALL + col0 * col0 + 59 FROM tab1 AS cor0
----
4155
6459
68
query I rowsort
SELECT - col0 + cor0.col1 * + col1 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT col2 * col0 * - col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT + col1 * 93 + col1 AS col2 FROM tab0 AS cor0
----
8084
8554
9118
query I rowsort
SELECT DISTINCT + col2 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-2119
SELECT DISTINCT - - col1 DIV col0 + col1 + - col0 FROM tab0 AS cor0
----
3
64
65
skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT - - col1 / col0 + col1 + - col0 FROM tab0 AS cor0
----
3
64
65
query I rowsort
SELECT + cor0.col0 + cor0.col2 + - col0 AS col1 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2121
SELECT + CAST( col0 AS SIGNED ) * - tab1.col0 FROM tab1
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-2121
SELECT + CAST ( col0 AS INTEGER ) * - tab1.col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT ALL ( + col0 ) * col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL + + 90 FROM tab0 AS cor0
----
90
90
90
query I rowsort
SELECT ALL - 40 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-120
-2560
-3200
query I rowsort
SELECT ALL - 0 * col1 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2126
SELECT + CAST( NULL AS SIGNED ) * 82 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2126
SELECT + CAST ( NULL AS INTEGER ) * 82 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT - cor0.col1 * + 43 AS col2 FROM tab1, tab1 AS cor0
----
-1118
-430
-559
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 DISTINCT - 87 AS col2 FROM tab2 AS cor0
----
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-2130
SELECT DISTINCT + col0 DIV - col2 + + col0 FROM tab1 AS cor0
----
3
63
80
skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT + col0 / - col2 + + col0 FROM tab1 AS cor0
----
3
63
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 90 col1 FROM tab2 AS cor0
----
90
90
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2132
SELECT - col2 DIV cor0.col0 - + col2 FROM tab0 AS cor0
----
-1
-34
-82
skipif mysql # not compatible
query I rowsort label-2132
SELECT - col2 / cor0.col0 - + col2 FROM tab0 AS cor0
----
-1
-34
-82
query I rowsort
SELECT col1 * + col1 + - col2 AS col0 FROM tab2 cor0
----
251
3455
934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 - col2 col1 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT - + col1 - 35 FROM tab0 AS cor0
----
-121
-126
-132
query I rowsort
SELECT col2 * - 77 - ( col1 ) FROM tab0 AS cor0
----
-174
-2627
-6405
query I rowsort
SELECT - col1 * + col2 + - col0 * tab0.col1 FROM tab0
----
-15561
-3492
-4902
query I rowsort
SELECT DISTINCT 31 * tab2.col1 AS col0 FROM tab2
----
1829
527
961
query I rowsort
SELECT DISTINCT - 42 * + col0 - 89 FROM tab0
----
-1097
-1559
-3827
onlyif mysql # use DIV operator for integer division
query I rowsort label-2140
SELECT + 67 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-2140
SELECT + 67 / col1 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT - 41 + col2 FROM tab1
----
13
16
55
query I rowsort
SELECT col0 + + col1 * ( + col1 ) FROM tab0
----
7420
8370
9444
query I rowsort
SELECT DISTINCT 90 * col2 AS col0 FROM tab0
----
2970
7380
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2144
SELECT ALL - col1 DIV - tab1.col1 AS col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL - col1 / - tab1.col1 AS col0 FROM tab1
----
1
1
1
query I rowsort
SELECT - cor0.col0 * - col2 * col1 + - col0 FROM tab0 AS cor0
----
3360
664029
68088
query I rowsort
SELECT ALL - + col0 + + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-2147
SELECT + col0 DIV col2 + + col1 * - col1 FROM tab1 AS cor0
----
-169
-676
-99
skipif mysql # not compatible
query I rowsort label-2147
SELECT + col0 / col2 + + col1 * - col1 FROM tab1 AS cor0
----
-169
-676
-99
query I rowsort
SELECT ALL + col2 * + col1 * + col2 AS col0 FROM tab0
----
611884
93654
97
query I rowsort
SELECT + col2 + + col0 + - col1 * col2 AS col0 FROM tab2 AS cor0
----
-1430
-529
-803
query I rowsort
SELECT - ( + col2 ) + col2 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT - col0 + + 19 FROM tab2
----
-59
-60
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-2152
SELECT ALL ( - ( col2 ) ) * col1 DIV col2 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL ( - ( col2 ) ) * col1 / col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ( - col1 ) * tab0.col1 AS col0 FROM tab0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col2 col0 FROM tab2, tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + + 60 AS col1 FROM tab1 cor0
----
60
60
60
query I rowsort
SELECT + - 62 AS col0 FROM tab2 AS cor0
----
-62
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2157
SELECT + col1 + - col1 * - col1 DIV - col1 AS col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2157
SELECT + col1 + - col1 * - col1 / - col1 AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ( col0 ) * col2 * col2 AS col2 FROM tab1 AS cor0
----
207936
737280
8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-2159
SELECT col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2159
SELECT col1 / - col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - cor0.col1 * cor0.col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - - 73 * + col0 AS col1 FROM tab1 AS cor0
----
219
4672
5840
query I rowsort
SELECT ALL - cor0.col2 - - col1 * 36 AS col0 FROM tab0 AS cor0
----
3063
3194
3491
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 * + col0 col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL + + col1 * - col1 * - col2 FROM tab0 cor0
----
244068
679042
9409
query I rowsort
SELECT + 40 + + col1 FROM tab1 AS cor0
----
50
53
66
query I rowsort
SELECT DISTINCT + col1 * - col0 * + col1 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT + + 10 + - cor0.col1 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
7406
8291
9419
query I rowsort
SELECT + - col0 + 77 * col1 AS col2 FROM tab2 AS cor0
----
1230
2380
4465
query I rowsort
SELECT DISTINCT + + col1 * - 96 FROM tab0 AS cor0
----
-8256
-8736
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * - col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + col0 + ( cor0.col1 ) * col1 FROM tab1 cor0
----
164
249
679
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2172
SELECT DISTINCT CAST( NULL AS SIGNED ) * - cor0.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - cor0.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
NULL
query I rowsort
SELECT - col2 * col1 + + col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL + tab0.col0 + - tab0.col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT - ( + ( + col2 ) ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - 74 + col0 AS col0 FROM tab0 AS cor0
----
-39
-50
15
query I rowsort
SELECT + ( + col0 ) + - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + 88 + 68 + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1187
-4446
-61
query I rowsort
SELECT - col1 - 0 AS col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT + col2 * col2 + col2 * col0 FROM tab1
----
16896
3078
6897
onlyif mysql # use DIV operator for integer division
query I rowsort label-2181
SELECT ALL - col0 DIV 79 AS col1 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL - col0 / 79 AS col1 FROM tab0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2182
SELECT ALL - CAST( NULL AS SIGNED ) + ( + col0 ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL - CAST ( NULL AS INTEGER ) + ( + col0 ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 41 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70
onlyif mysql # use DIV operator for integer division
query I rowsort label-2184
SELECT col0 + 41 - col2 * cor0.col0 DIV col1 AS col2 FROM tab0 cor0
----
50
56
76
skipif mysql # not compatible
query I rowsort label-2184
SELECT col0 + 41 - col2 * cor0.col0 / col1 AS col2 FROM tab0 cor0
----
50
56
76
query I rowsort
SELECT DISTINCT + - col1 + - 24 FROM tab2 AS cor0
----
-41
-55
-83
query I rowsort
SELECT - col1 + + col0 + col2 AS col0 FROM tab2 AS cor0
----
100
3
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 * col0 col0 FROM tab1 AS cor0
----
-207
-4416
-5520
onlyif mysql # use DIV operator for integer division
query I rowsort label-2188
SELECT ALL - col2 DIV + col0 + col1 + + 68 * 19 FROM tab2 cor0
----
1309
1320
1351
skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL - col2 / + col0 + col1 + + 68 * 19 FROM tab2 cor0
----
1309
1320
1351
query I rowsort
SELECT + 42 + - 60 FROM tab0 AS cor0
----
-18
-18
-18
query I rowsort
SELECT + - col0 + 62 - col1 FROM tab2 AS cor0
----
-34
-75
24
query I rowsort
SELECT - 10 * col2 AS col1 FROM tab0 AS cor0
----
-10
-330
-820
query I rowsort
SELECT + + col0 + col0 - + col2 * 67 AS col0 FROM tab2 AS cor0
----
-1586
-1795
-2388
onlyif mysql # use DIV operator for integer division
query I rowsort label-2193
SELECT ALL 10 DIV col1 + tab2.col1 + col0 FROM tab2
----
137
38
96
skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL 10 / col1 + tab2.col1 + col0 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT 73 - - col2 FROM tab0
----
106
155
74
query I rowsort
SELECT - col2 + - 57 - + col1 AS col2 FROM tab1
----
-124
-137
-166
onlyif mysql # use DIV operator for integer division
query I rowsort label-2196
SELECT col2 + tab2.col2 DIV col1 FROM tab2
----
26
27
40
skipif mysql # not compatible
query I rowsort label-2196
SELECT col2 + tab2.col2 / col1 FROM tab2
----
26
27
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-2197
SELECT DISTINCT + 4 DIV + col2 + col2 - col2 FROM tab0
----
0
4
skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT + 4 / + col2 + col2 - col2 FROM tab0
----
0
4
query I rowsort
SELECT + 22 * - ( col2 ) AS col0 FROM tab2
----
-572
-594
-836
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2199
SELECT CAST( NULL AS SIGNED ) * 85 - + col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2199
SELECT CAST ( NULL AS INTEGER ) * 85 - + col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) col0 FROM tab1
----
54
57
96
query I rowsort
SELECT + 73 * + col0 + + ( col1 + + cor0.col0 ) FROM tab1 AS cor0
----
248
4746
5933
query I rowsort
SELECT + col0 * col1 + 59 AS col2 FROM tab2 AS cor0
----
1402
276
4661
query I rowsort
SELECT ( - col1 ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT col0 * + cor0.col2 - - col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL 79 * col2 * - 79 AS col0 FROM tab1 AS cor0
----
-337014
-355737
-599136
onlyif mysql # use DIV operator for integer division
query I rowsort label-2206
SELECT DISTINCT - - col1 DIV col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-2206
SELECT DISTINCT - - col1 / col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT - + cor0.col1 * + cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + cor0.col2 col0 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT + - 15 * col0 - ( ( + col0 ) + 23 ) * col1 AS col0 FROM tab2 AS cor0
----
-1035
-2919
-7129
onlyif mysql # use DIV operator for integer division
query I rowsort label-2210
SELECT - 59 DIV - col1 FROM tab2 AS cor0
----
1
1
3
skipif mysql # not compatible
query I rowsort label-2210
SELECT - 59 / - col1 FROM tab2 AS cor0
----
1
1
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2211
SELECT DISTINCT + col2 DIV 61 + col0 * - col0 + 89 AS col1 FROM tab0 AS cor0
----
-1136
-487
-7831
skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT + col2 / 61 + col0 * - col0 + 89 AS col1 FROM tab0 AS cor0
----
-1136
-487
-7831
query I rowsort
SELECT ALL - + col2 * + col1 * - ( + col2 ) + + 82 AS col2 FROM tab2 AS cor0
----
22681
24630
39966
query I rowsort
SELECT - - col1 * 75 AS col1 FROM tab1 AS cor0
----
1950
750
975
query I rowsort
SELECT ALL + col1 * + ( + 29 ) * col1 FROM tab1
----
19604
2900
4901
query I rowsort
SELECT ALL + col1 + - 42 * col1 FROM tab2 AS cor0
----
-1271
-2419
-697
query I rowsort
SELECT DISTINCT - - col1 - col1 * col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT col2 * + col0 * - 56 FROM tab0 AS cor0
----
-1960
-408688
-44352
query I rowsort
SELECT DISTINCT col1 * + cor0.col1 - col2 AS col1 FROM tab0 AS cor0
----
7363
8199
9408
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2219
SELECT ALL cor0.col1 + - CAST( NULL AS SIGNED ) * - col2 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL cor0.col1 + - CAST ( NULL AS INTEGER ) * - col2 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * ( - col1 ) + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT + cor0.col0 + - 41 FROM tab2 AS cor0
----
-34
37
38
query I rowsort
SELECT - col1 * col2 * - ( col1 ) FROM tab0 cor0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-2223
SELECT DISTINCT + col1 DIV - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-194
-88
-92
skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT + col1 / - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-194
-88
-92
query I rowsort
SELECT DISTINCT + - col1 + + col1 AS col2 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2225
SELECT DISTINCT - col2 - CAST( - col0 AS SIGNED ) FROM tab0 cor0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT - col2 - CAST ( - col0 AS INTEGER ) FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT ( 10 ) * + col0 AS col0 FROM tab0 AS cor0
----
240
350
890
query I rowsort
SELECT ALL + 95 AS col2 FROM tab1 AS cor0
----
95
95
95
query I rowsort
SELECT DISTINCT + + col2 + cor0.col2 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT + ( ( + cor0.col2 ) ) + col0 AS col1 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT cor0.col2 + - 25 * col0 FROM tab1 AS cor0
----
-1543
-1904
-21
query I rowsort
SELECT ALL + col0 * + col1 + - col1 FROM tab1 AS cor0
----
1027
52
630
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 3a186ad492d315801f56fb30a5e89dbb
query I rowsort
SELECT + 14 * col1 AS col1 FROM tab1 AS cor0
----
140
182
364
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0, tab1 cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query I rowsort
SELECT col1 * col1 - col2 AS col2 FROM tab0
----
7363
8199
9408
query I rowsort
SELECT - col2 * 67 AS col1 FROM tab2 AS cor0
----
-1742
-1809
-2546
query I rowsort
SELECT ( + col0 + col0 ) AS col1 FROM tab1
----
128
160
6
query I rowsort
SELECT DISTINCT - 22 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-22
query I rowsort
SELECT DISTINCT col1 + - ( - col2 ) AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT cor0.col0 * + ( - col2 * col1 ) FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-2241
SELECT - + col0 DIV 70 + col2 AS col0 FROM tab1 AS cor0
----
54
57
95
skipif mysql # not compatible
query I rowsort label-2241
SELECT - + col0 / 70 + col2 AS col0 FROM tab1 AS cor0
----
54
57
95
query I rowsort
SELECT ALL 13 FROM tab1, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT - col0 + + 56 AS col1 FROM tab2
----
-22
-23
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2244
SELECT CAST( ( - col0 ) AS SIGNED ) col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2244
SELECT CAST ( ( - col0 ) AS INTEGER ) col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 87 + col2 col0 FROM tab2 AS cor0
----
-49
-60
-61
query I rowsort
SELECT ALL 66 FROM tab2, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2247
SELECT ALL + CAST( - col2 AS SIGNED ) FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL + CAST ( - col2 AS INTEGER ) FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL 14 * - col0 AS col1 FROM tab0
----
-1246
-336
-490
query I rowsort
SELECT - col2 * + col0 * - col0 AS col1 FROM tab2 AS cor0
----
1323
158184
237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-2250
SELECT + - col0 DIV col1 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2250
SELECT + - col0 / col1 AS col1 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2251
SELECT - 90 DIV col0 col0 FROM tab2 AS cor0
----
-1
-1
-12
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2251
SELECT - 90 / col0 col0 FROM tab2 AS cor0
----
-1
-1
-12
query I rowsort
SELECT + 59 * + col2 FROM tab2 AS cor0
----
1534
1593
2242
query I rowsort
SELECT DISTINCT + 41 * col1 FROM tab0 AS cor0
----
3526
3731
3977
query I rowsort
SELECT ALL - 41 * + col1 AS col1 FROM tab0 AS cor0
----
-3526
-3731
-3977
query I rowsort
SELECT + 46 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
query I rowsort
SELECT DISTINCT + 70 FROM tab2, tab2 AS cor0
----
70
query I rowsort
SELECT 13 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT ALL + cor0.col2 * 18 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f3762691e4a423c4281dd8ce8a25a896
query I rowsort
SELECT - cor0.col1 + + 37 FROM tab1 AS cor0
----
11
24
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 86 col0 FROM tab1 AS cor0
----
-112
-96
-99
query I rowsort
SELECT - - col2 * + col2 - col2 AS col2 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT ALL - 20 * col1 + 79 * + col2 AS col2 FROM tab0 cor0
----
-1861
4658
887
query I rowsort
SELECT - - cor0.col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + 75 FROM tab0 cor0
----
75
75
75
query I rowsort
SELECT + 57 FROM tab1, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT - 15 * - col2 AS col1 FROM tab0
----
1230
15
495
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2267
SELECT CAST( + col2 AS SIGNED ) AS col0 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2267
SELECT CAST ( + col2 AS INTEGER ) AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT col2 * - col2 * 39 - col2 AS col2 FROM tab1 AS cor0
----
-113778
-126768
-359520
query I rowsort
SELECT DISTINCT col2 + + 2 AS col0 FROM tab2
----
28
29
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 * - ( col2 ) col0 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT - ( 41 ) AS col2 FROM tab2, tab0 AS cor0
----
-41
query I rowsort
SELECT ALL + + col0 + ( col1 ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + col0 * ( - col1 * col0 ) + col2 FROM tab2 AS cor0
----
-106059
-1492
-358930
onlyif mysql # use DIV operator for integer division
query I rowsort label-2274
SELECT - col0 * ( - col0 ) - col1 DIV col0 AS col1 FROM tab0 AS cor0
----
1223
573
7920
skipif mysql # not compatible
query I rowsort label-2274
SELECT - col0 * ( - col0 ) - col1 / col0 AS col1 FROM tab0 AS cor0
----
1223
573
7920
query I rowsort
SELECT DISTINCT + col2 + col0 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
260
71
81
query I rowsort
SELECT ALL + ( - ( + cor0.col1 ) ) + - 75 FROM tab0 AS cor0
----
-161
-166
-172
query I rowsort
SELECT DISTINCT col0 * col2 + col0 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT 61 AS col1 FROM tab0, tab1 AS cor0
----
61
query I rowsort
SELECT ALL + - col0 * 87 + - col2 FROM tab1 cor0
----
-315
-5625
-7056
query I rowsort
SELECT - 47 * + col0 FROM tab0 cor0
----
-1128
-1645
-4183
query I rowsort
SELECT ALL 22 + + col2 AS col1 FROM tab1 AS cor0
----
118
76
79
query I rowsort
SELECT DISTINCT + + col2 - - cor0.col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - - col1 + cor0.col1 * + col1 * ( col0 ) AS col2 FROM tab1 AS cor0
----
13533
2054
6410
query I rowsort
SELECT + ( 61 ) + cor0.col1 AS col0 FROM tab1 cor0
----
71
74
87
query I rowsort
SELECT ALL + + 19 + - cor0.col2 + - col0 FROM tab0 cor0
----
-152
-17
-38
query I rowsort
SELECT DISTINCT col2 - - tab0.col2 AS col1 FROM tab0
----
164
2
66
query I rowsort
SELECT tab1.col1 + col0 - col0 AS col2 FROM tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + 91 * + 15 col1 FROM tab2
----
-1306
-1334
-1348
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2289
SELECT col0 * CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2289
SELECT col0 * CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * col0 - + col1 AS col2 FROM tab1
----
1027
52
630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col0 * - 17 col0 FROM tab0 AS cor0
----
1602
432
630
query I rowsort
SELECT DISTINCT - + cor0.col0 * cor0.col1 AS col2 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL col0 + - col2 * - 92 AS col1 FROM tab2 AS cor0
----
2470
2491
3575
query I rowsort
SELECT DISTINCT + col1 + + col1 AS col2 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT - 87 AS col2 FROM tab2 AS cor0
----
-87
-87
-87
query I rowsort
SELECT + 43 * + col0 * + 79 AS col2 FROM tab2 AS cor0
----
23779
264966
268363
query I rowsort
SELECT - cor0.col2 * - col2 * col2 FROM tab0 AS cor0
----
1
35937
551368
query I rowsort
SELECT DISTINCT + col0 * - col0 + - ( col0 * col1 ) + col0 * - col2 FROM tab0 cor0
----
-23318
-3432
-4655
query I rowsort
SELECT ALL cor1.col1 + - cor0.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 9ab3c14b8f82aa41e5170ac3662aec0f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2300
SELECT ALL CAST( col0 AS SIGNED ) * col1 AS col1 FROM tab1
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL CAST ( col0 AS INTEGER ) * col1 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT - - 85 AS col2 FROM tab2 AS cor0
----
85
query I rowsort
SELECT - + 43 * - col1 FROM tab2 AS cor0
----
1333
2537
731
onlyif mysql # use DIV operator for integer division
query I rowsort label-2303
SELECT - col1 DIV + cor0.col0 AS col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-2303
SELECT - col1 / + cor0.col0 AS col0 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT ALL - cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT DISTINCT - cor1.col2 AS col0 FROM tab0, tab1 AS cor0, tab1, tab0 AS cor1
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort
SELECT + cor0.col2 + + CAST ( cor0.col2 AS REAL ) * col1 AS col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - + col1 + - cor0.col2 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT col0 * col2 + - col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2309
SELECT - + col1 + - CAST( - cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-2309
SELECT - + col1 + - CAST ( - cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - col1 * + tab1.col0 + - col0 AS col0 FROM tab1
----
-1120
-704
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-2311
SELECT DISTINCT col1 DIV - col2 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT col1 / - col2 FROM tab0
----
-1
-2
-97
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab1 cor0 WHERE NOT NULL <> NULL
----
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 cor2, tab0 AS cor3
----
3645 values hashing to 752ce7d2fdd0678058de6a90ff2b0f3a
onlyif mysql # use DIV operator for integer division
query I rowsort label-2314
SELECT + cor0.col1 DIV + 19 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 0b11509574b38a6005fbf722b6afa708
skipif mysql # not compatible
query I rowsort label-2314
SELECT + cor0.col1 / + 19 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 0b11509574b38a6005fbf722b6afa708
query I rowsort
SELECT - + col1 * + 62 FROM tab2 AS cor0
----
-1054
-1922
-3658
query I rowsort
SELECT ALL cor0.col0 * 74 FROM tab1 AS cor0
----
222
4736
5920
onlyif mysql # use DIV operator for integer division
query I rowsort label-2317
SELECT - col0 * col2 DIV 88 FROM tab2 AS cor0
----
-2
-23
-34
skipif mysql # not compatible
query I rowsort label-2317
SELECT - col0 * col2 / 88 FROM tab2 AS cor0
----
-2
-23
-34
query I rowsort
SELECT ALL col0 + - 3 FROM tab2 AS cor0
----
4
75
76
query I rowsort
SELECT col0 + cor0.col0 * 48 AS col2 FROM tab1 AS cor0
----
147
3136
3920
query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + cor0.col0 + col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - col0 + col2 * - col2 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT ALL col0 + 25 FROM tab1 AS cor0
----
105
28
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2324
SELECT DISTINCT cor0.col1 * - CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT cor0.col1 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2325
SELECT ALL + + cor0.col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL + + cor0.col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT DISTINCT 17 + - 31 + + col2 FROM tab0
----
-13
19
68
query I rowsort
SELECT DISTINCT - + ( 31 ) FROM tab0 cor0
----
-31
query I rowsort
SELECT DISTINCT 43 AS col0 FROM tab1 AS cor0
----
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL 62 * col1 + col0 FROM tab1 AS cor0
----
1615
684
886
query I rowsort
SELECT - + 85 * + ( - col1 ) AS col2 FROM tab0 AS cor0
----
7310
7735
8245
query I rowsort
SELECT - + 97 FROM tab1 cor0
----
-97
-97
-97
query I rowsort
SELECT ALL + - 28 - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1117
-29
-6752
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2335
SELECT ALL CAST( - ( col2 ) AS SIGNED ) * ( + col1 ) + col1 FROM tab1
----
-1235
-1378
-560
skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL CAST ( - ( col2 ) AS INTEGER ) * ( + col1 ) + col1 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT + col0 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col0 * + cor0.col2 * col2 FROM tab2 AS cor0
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-2338
SELECT DISTINCT - - col1 DIV + cor0.col0 AS col1 FROM tab2 AS cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT - - col1 / + cor0.col0 AS col1 FROM tab2 AS cor0
----
0
4
query I rowsort
SELECT DISTINCT + + col2 * + col1 + ( col0 ) FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT cor0.col2 AS col1 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - + col2 * - col0 AS col0 FROM tab0 cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-2342
SELECT ALL + 39 DIV col1 FROM tab1 AS cor0
----
1
3
3
skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL + 39 / col1 FROM tab1 AS cor0
----
1
3
3
query I rowsort
SELECT 86 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT ALL + - 12 FROM tab2 cor0
----
-12
-12
-12
query I rowsort
SELECT DISTINCT - col1 * col1 + - ( col2 ) FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT + - 24 + 76 * col2 AS col0 FROM tab2 AS cor0
----
1952
2028
2864
query I rowsort
SELECT DISTINCT - 86 AS col1 FROM tab1 AS cor0
----
-86
query I rowsort
SELECT ALL - 53 FROM tab2 cor0
----
-53
-53
-53
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( cor0.col1 AS REAL ) * - col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - ( col0 ) - - col0 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 col1 FROM tab1 AS cor0
----
57
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col1 AS REAL ) * cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + ( - cor0.col0 ) * col2 * + ( col0 ) + - cor0.col2 FROM tab2 AS cor0
----
-1350
-158210
-237196
onlyif mysql # use DIV operator for integer division
query I rowsort label-2354
SELECT + 67 + + col2 DIV + col0 + ( + col0 ) AS col0 FROM tab2 AS cor0
----
145
146
77
skipif mysql # not compatible
query I rowsort label-2354
SELECT + 67 + + col2 / + col0 + ( + col0 ) AS col0 FROM tab2 AS cor0
----
145
146
77
query I rowsort
SELECT + col2 * - 52 AS col1 FROM tab1 cor0
----
-2808
-2964
-4992
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1, tab1 AS cor1
----
3645 values hashing to 028fd38910121a0fa7c5b9a24c207cf0
query I rowsort
SELECT + cor0.col1 * ( - cor0.col2 + col2 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 84 * 30 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6d2e93f745fe0aace451a05e70cd1974
query I rowsort
SELECT DISTINCT - + cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - tab1.col1 + + col1 + - col2 * 38 AS col0 FROM tab1
----
-2052
-2166
-3648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2361
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2362
SELECT + col0 DIV col2 + + col1 * col0 * - 20 AS col0 FROM tab0
----
-161979
-41280
-67865
skipif mysql # not compatible
query I rowsort label-2362
SELECT + col0 / col2 + + col1 * col0 * - 20 AS col0 FROM tab0
----
-161979
-41280
-67865
query I rowsort
SELECT tab2.col2 * + ( tab2.col1 ) * + col0 AS col2 FROM tab2
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-2364
SELECT col2 * col2 + - col0 DIV col0 AS col2 FROM tab2
----
1443
675
728
skipif mysql # not compatible
query I rowsort label-2364
SELECT col2 * col2 + - col0 / col0 AS col2 FROM tab2
----
1443
675
728
query I rowsort
SELECT DISTINCT + col1 * col0 * - col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT - tab0.col2 * + 18 AS col0 FROM tab0, tab1, tab2 cor0
----
-1476
-18
-594
query I rowsort
SELECT col1 + tab2.col2 * 5 AS col1 FROM tab2
----
166
189
207
onlyif mysql # use DIV operator for integer division
query I rowsort label-2368
SELECT col0 DIV 64 + 55 DIV col2 + 35 AS col1 FROM tab0 cor0
----
36
36
90
skipif mysql # not compatible
query I rowsort label-2368
SELECT col0 / 64 + 55 / col2 + 35 AS col1 FROM tab0 cor0
----
36
36
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2369
SELECT col0 + CAST( - col2 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
1328
1407
634
skipif mysql # not compatible
query I rowsort label-2369
SELECT col0 + CAST ( - col2 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT 25 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT DISTINCT col1 - col1 * - 61 FROM tab2
----
1054
1922
3658
query I rowsort
SELECT - col2 + + ( + col1 ) * col1 + 90 FROM tab0
----
7453
8289
9498
query I rowsort
SELECT col0 * 67 AS col2 FROM tab1 AS cor0
----
201
4288
5360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2374
SELECT ALL CAST( NULL AS SIGNED ) + col0 * - col0 / + col1 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL CAST ( NULL AS INTEGER ) + col0 * - col0 / + col1 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 61 + ( col0 ) AS col1 FROM tab2
----
139
140
68
query I rowsort
SELECT ALL + col0 * - 53 * col0 + - 33 FROM tab2
----
-2630
-322485
-330806
query I rowsort
SELECT - col0 * cor0.col1 + + col2 FROM tab1 cor0
----
-24
-583
-944
query I rowsort
SELECT ALL - 70 + col2 AS col2 FROM tab2 AS cor0
----
-32
-43
-44
query I rowsort
SELECT col0 + col0 + + col0 FROM tab1 cor0
----
192
240
9
query I rowsort
SELECT - ( - ( col2 ) ) AS col0 FROM tab1 cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 col0 FROM tab2
----
-8
-8
-8
query I rowsort
SELECT DISTINCT + 8 AS col1 FROM tab2
----
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 * col2 col1 FROM tab0
----
-2838
-7052
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 * cor0.col2 + cor0.col2 col1 FROM tab1 AS cor0
----
-3294
-3477
-5856
onlyif mysql # use DIV operator for integer division
query I rowsort label-2385
SELECT - - col2 - - 34 DIV - ( - col1 ) AS col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2385
SELECT - - col2 - - 34 / - ( - col1 ) AS col0 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2386
SELECT + + col2 * CAST( col2 AS SIGNED ) * - cor0.col2 + col0 + col1 * - col2 FROM tab1 AS cor0
----
-158865
-185699
-885904
skipif mysql # not compatible
query I rowsort label-2386
SELECT + + col2 * CAST ( col2 AS INTEGER ) * - cor0.col2 + col0 + col1 * - col2 FROM tab1 AS cor0
----
-158865
-185699
-885904
query I rowsort
SELECT + - col2 * - col1 * ( col2 ) + 0 AS col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT - + col0 * col1 - + col2 AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2389
SELECT + col2 * + col0 + - col0 * cor0.col1 * - CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
118860
50328
728109
skipif mysql # not compatible
query I rowsort label-2389
SELECT + col2 * + col0 + - col0 * cor0.col1 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
118860
50328
728109
onlyif mysql # use DIV operator for integer division
query I rowsort label-2390
SELECT - + col2 * 78 * - cor0.col0 + - col2 DIV + 74 col2 FROM tab1 cor0
----
12636
284544
599039
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2390
SELECT - + col2 * 78 * - cor0.col0 + - col2 / + 74 col2 FROM tab1 cor0
----
12636
284544
599039
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 + col0 * + col1 col1 FROM tab0 AS cor0
----
-774
3298
637
query I rowsort
SELECT - cor0.col2 + 15 * + col0 AS col0 FROM tab1 AS cor0
----
-9
1104
903
query I rowsort
SELECT + tab2.col2 + + tab2.col0 FROM tab2
----
104
117
34
query I rowsort
SELECT col1 * col2 + - col0 FROM tab1 WHERE NULL <> NULL
----
query I rowsort
SELECT ALL + - cor0.col0 + - col1 * col0 AS col1 FROM tab1 cor0
----
-1120
-704
-81
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN NULL AND - col0
----
query I rowsort
SELECT ALL - cor0.col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col0 + + col2 - + col1 * + col0 FROM tab1
----
-21
-519
-864
onlyif mysql # use DIV operator for integer division
query I rowsort label-2399
SELECT ALL col1 * col0 * + col0 + col1 DIV col2 + col1 col0 FROM tab1
----
260
40970
83213
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL col1 * col0 * + col0 + col1 / col2 + col1 col0 FROM tab1
----
260
40970
83213
query I rowsort
SELECT ALL col2 + col1 + col0 AS col1 FROM tab2
----
134
163
65
query I rowsort
SELECT ALL + col1 * + col0 * col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT DISTINCT col2 + tab0.col2 * + col2 - - col1 AS col1 FROM tab0
----
1208
6897
99
query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-2404
SELECT DISTINCT - col2 DIV col0 AS col1 FROM tab2 AS cor0
----
-3
0
skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT - col2 / col0 AS col1 FROM tab2 AS cor0
----
-3
0
query I rowsort
SELECT ALL col0 + + col0 * col0 + col2 AS col1 FROM tab2
----
6188
6358
83
query I rowsort
SELECT ALL col2 * - col1 + + col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT ALL - col2 + + col1 * + col0 AS col0 FROM tab1
----
24
583
944
query I rowsort
SELECT ALL + col1 + - col0 AS col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT - col1 * + col1 + tab0.col1 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT ALL + - col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL - - col1 * cor0.col0 - - col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT + col2 + + cor0.col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT ALL - + col0 * - cor0.col0 - col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT ALL col2 * - col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 AS col1 FROM tab2 cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col0 col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL col1 + + col1 * + col2 AS col2 FROM tab1
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 * col1 - + col1 col0 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT col1 + col2 * col0 AS col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL - col1 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT - col2 * col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT col1 * - col0 + - col2 * - col0 FROM tab1 AS cor0
----
3008
6640
84
query I rowsort
SELECT ALL - - col0 + col1 * cor0.col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT 10 + - col0 * - 99 AS col0 FROM tab1 AS cor0
----
307
6346
7930
query I rowsort
SELECT DISTINCT 47 FROM tab2, tab2 cor0, tab1 AS cor1
----
47
query I rowsort
SELECT ALL + col2 + col0 * ( + 34 ) AS col2 FROM tab2 AS cor0
----
265
2678
2724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * 64 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 255f40cd4837b55ed9edcdf1fb60331e
query I rowsort
SELECT col1 + col2 * col2 + col2 FROM tab1
----
2996
3316
9325
query I rowsort
SELECT DISTINCT tab0.col0 + - col1 * col1 FROM tab0
----
-7372
-8192
-9374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2430
SELECT col2 + + CAST( col1 AS SIGNED ) FROM tab2 cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-2430
SELECT col2 + + CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT + 90 + - col1 FROM tab1
----
64
77
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 11 + cor0.col0 col0 FROM tab0, tab1, tab1 AS cor0
----
14
75
91
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 > NULL
----
query I rowsort
SELECT col2 * - col1 + tab1.col0 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NULL BETWEEN col0 * - col1 + col1 * col2 * col0 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2436
SELECT tab0.col2 DIV - col2 + + col1 AS col2 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-2436
SELECT tab0.col2 / - col2 + + col1 AS col2 FROM tab0
----
85
90
96
query I rowsort
SELECT DISTINCT - tab2.col2 - col2 AS col2 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT DISTINCT + col2 * - tab2.col2 + col2 * - col0 + + col0 * col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT col1 + - col0 * col2 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT col0 * - col0 * col0 AS col1 FROM tab0
----
-13824
-42875
-704969
query I rowsort
SELECT - col0 * + col0 * - col0 FROM tab2
----
343
474552
493039
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 * col2 col0 FROM tab2
----
-10982
-25947
-90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-2443
SELECT ALL - tab1.col2 DIV tab1.col2 AS col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL - tab1.col2 / tab1.col2 AS col2 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + col2 + tab2.col1 + + col0 FROM tab2
----
134
163
65
query I rowsort
SELECT ALL col1 + - tab0.col0 * col0 + - col0 AS col2 FROM tab0
----
-1163
-514
-7919
query I rowsort
SELECT DISTINCT - tab0.col1 * col0 + + tab0.col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT col0 * col0 * col2 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT + col2 * + tab1.col2 * col2 AS col0 FROM tab1
----
157464
185193
884736
query I rowsort
SELECT col0 - col1 * col0 AS col2 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT col0 * + col2 + col2 AS col1 FROM tab1
----
216
3705
7776
query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NOT col2 IN ( col2 )
----
query I rowsort
SELECT - col0 * col1 + - col0 FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT DISTINCT col0 * col1 AS col0 FROM tab0 WHERE + tab0.col0 = ( NULL )
----
query I rowsort
SELECT ALL - tab1.col1 * + 48 FROM tab1, tab2 AS cor0
----
9 values hashing to 330bc2b0e17b5990b55995bd0575db10
query I rowsort
SELECT - col1 * col1 * 15 FROM tab0
----
-110940
-124215
-141135
query I rowsort
SELECT - col0 + + col1 * - col0 AS col1 FROM tab0 cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT cor0.col2 * col2 + + 6 FROM tab2 AS cor0
----
1450
682
735
query I rowsort
SELECT + - col1 * ( col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT cor0.col0 + 72 FROM tab0 cor0
----
107
161
96
query I rowsort
SELECT - cor0.col1 + + cor0.col1 * 19 FROM tab0 cor0
----
1548
1638
1746
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2461
SELECT CAST( NULL AS DECIMAL ) + col1 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2461
SELECT CAST ( NULL AS REAL ) + col1 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col2 col0 FROM tab1 AS cor0
----
-109
-67
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col0 + col1 * - cor0.col2 col0 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT DISTINCT + 78 AS col2 FROM tab2, tab0 AS cor0
----
78
query I rowsort
SELECT DISTINCT cor0.col1 * col0 + + col2 * + 96 + + col1 FROM tab1 AS cor0
----
10269
5288
6122
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 - cor0.col2 * + col0 col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT col0 * col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT 50 + cor0.col2 FROM tab2 AS cor0
----
76
77
88
query I rowsort
SELECT + 45 - cor0.col2 FROM tab0 AS cor0
----
-37
12
44
query I rowsort
SELECT - 3 * + cor0.col2 * cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 91a5396297ec32266642acf1f49e2aaf
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab0 cor1
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query I rowsort
SELECT + col2 * + tab2.col1 * col1 AS col0 FROM tab2
----
10982
25947
90506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2473
SELECT DISTINCT CAST( NULL AS DECIMAL ) + col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT CAST ( NULL AS REAL ) + col1 FROM tab1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2474
SELECT + cor0.col2 + + col2 DIV - col1 - col0 * col1 FROM tab1 cor0
----
-26
-588
-951
skipif mysql # not compatible
query I rowsort label-2474
SELECT + cor0.col2 + + col2 / - col1 - col0 * col1 FROM tab1 cor0
----
-26
-588
-951
query I rowsort
SELECT DISTINCT col0 - + col1 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL - 56 * - col1 FROM tab1 AS cor0
----
1456
560
728
query I rowsort
SELECT - col1 * + col2 - col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT col2 + col0 - cor0.col0 AS col0 FROM tab2 cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-2479
SELECT + + col0 DIV - cor0.col2 + - col1 FROM tab0 AS cor0
----
-132
-86
-92
skipif mysql # not compatible
query I rowsort label-2479
SELECT + + col0 / - cor0.col2 + - col1 FROM tab0 AS cor0
----
-132
-86
-92
query I rowsort
SELECT + + tab2.col0 * + cor0.col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 90419a192c361a642cd324efcc88b14d
query I rowsort
SELECT ALL + ( col1 ) * + col0 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2482
SELECT ALL ( - col0 ) + - col0 DIV col0 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL ( - col0 ) + - col0 / col0 FROM tab0 AS cor0
----
-25
-36
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2483
SELECT DISTINCT - cor0.col0 - col2 DIV col0 AS col2 FROM tab1 AS cor0
----
-21
-64
-81
skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT - cor0.col0 - col2 / col0 AS col2 FROM tab1 AS cor0
----
-21
-64
-81
query I rowsort
SELECT 53 - + col0 FROM tab0 AS cor0
----
-36
18
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-2485
SELECT DISTINCT - col1 DIV - col1 + col1 col2 FROM tab1 cor0
----
11
14
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT - col1 / - col1 + col1 col2 FROM tab1 cor0
----
11
14
27
query I rowsort
SELECT ALL - + col2 * col0 * - col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT + 26 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT ALL + col0 - + cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + 65 * cor0.col1 + + col1 * - col0 FROM tab1 AS cor0
----
-1290
-1768
-1885
query I rowsort
SELECT col0 + + 25 AS col2 FROM tab2
----
103
104
32
query I rowsort
SELECT 37 * cor0.col1 FROM tab1 AS cor0
----
370
481
962
query I rowsort
SELECT col1 * + ( col0 ) + tab0.col0 AS col1 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT col0 * col1 * col1 + col1 AS col0 FROM tab1
----
13533
2054
6410
query I rowsort
SELECT 44 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT 90 * col0 AS col0 FROM tab0
----
2160
3150
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT ALL - ( - col0 + + col0 ) AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT 2 * + 93 * - col0 FROM tab0 AS cor0
----
-16554
-4464
-6510
query I rowsort
SELECT - - col2 + - col2 * - col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT - 43 FROM tab2, tab2 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
query I rowsort
SELECT + 12 * + 77 AS col1 FROM tab0 AS cor0
----
924
924
924
query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab2, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL ( + col2 ) AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - col2 * + col1 * col2 AS col1 FROM tab1
----
-119808
-32490
-75816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 + + cor0.col0 col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + 56 AS col1 FROM tab0, tab0 AS cor0
----
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 * ( col0 ) col1 FROM tab0
----
177504
329315
737009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2508
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2508
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( col2 ) + col0 col1 FROM tab2
----
134
163
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2510
SELECT CAST( NULL AS SIGNED ) + + col0 / tab0.col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2510
SELECT CAST ( NULL AS INTEGER ) + + col0 / tab0.col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2511
SELECT + col0 * + col0 + col1 DIV tab0.col0 AS col1 FROM tab0
----
1227
579
7922
skipif mysql # not compatible
query I rowsort label-2511
SELECT + col0 * + col0 + col1 / tab0.col0 AS col1 FROM tab0
----
1227
579
7922
query I rowsort
SELECT col2 + 83 * col1 AS col1 FROM tab1
----
1175
2212
887
query I rowsort
SELECT ( tab2.col2 ) + col0 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL ( - col0 ) * - col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT 33 * col0 * col2 - 21 * col1 FROM tab1
----
120174
253167
4800
query I rowsort
SELECT + cor1.col1 * ( + 39 ) AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 380303308ebfcdb8888379350168b8a2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2517
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - 92 * col1 AS col2 FROM tab1 AS cor0
----
-1196
-2392
-920
onlyif mysql # use DIV operator for integer division
query I rowsort label-2519
SELECT CAST( - col1 AS SIGNED ) DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-2519
SELECT CAST ( - col1 AS INTEGER ) / + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2520
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 FROM tab1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2521
SELECT DISTINCT - col0 + col2 DIV col0 - 98 * tab0.col2 FROM tab0
----
-133
-3257
-8125
skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT - col0 + col2 / col0 - 98 * tab0.col2 FROM tab0
----
-133
-3257
-8125
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 col2 FROM tab0
----
0
0
0
query I rowsort
SELECT - 82 + + col2 + + col2 AS col2 FROM tab0
----
-16
-80
82
query I rowsort
SELECT DISTINCT col1 - col2 * tab1.col0 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT ALL - col0 + col0 * - 73 * + col1 - col1 AS col1 FROM tab2
----
-15879
-336083
-98135
query I rowsort
SELECT col0 * - col2 * + tab0.col2 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT - tab2.col1 * col2 - - 2 AS col0 FROM tab2
----
-1532
-644
-835
query I rowsort
SELECT - - col0 * - cor0.col2 * - col2 - col0 FROM tab1 AS cor0
----
207872
737200
8745
onlyif mysql # use DIV operator for integer division
query I rowsort label-2529
SELECT + col2 DIV + col1 AS col1 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-2529
SELECT + col2 / + col1 AS col1 FROM tab2
----
0
0
2
query I rowsort
SELECT cor0.col2 + 79 + col1 FROM tab0 AS cor0
----
177
198
252
query I rowsort
SELECT col2 * + 26 FROM tab2 AS cor0
----
676
702
988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 + cor0.col1 * 99 col1 FROM tab0 AS cor0
----
8428
8918
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-2533
SELECT ALL + col0 DIV - ( + cor0.col2 ) FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL + col0 / - ( + cor0.col2 ) FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT ALL col0 * 80 * col2 FROM tab2 AS cor0
----
15120
162240
240160
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2535
SELECT + col0 * CAST( + cor0.col2 AS SIGNED ) + cor0.col1 FROM tab2 AS cor0
----
2087
220
3019
skipif mysql # not compatible
query I rowsort label-2535
SELECT + col0 * CAST ( + cor0.col2 AS INTEGER ) + cor0.col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + 2 * col0 FROM tab1
----
128
160
6
query I rowsort
SELECT DISTINCT - - col0 * + 49 AS col2 FROM tab1 AS cor0
----
147
3136
3920
query I rowsort
SELECT col2 * - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-2539
SELECT ALL + - cor0.col0 + col0 + col0 DIV - col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL + - cor0.col0 + col0 + col0 / - col0 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2540
SELECT - - col2 * col1 + + cor0.col0 DIV col1 + + col1 FROM tab0 cor0
----
194
2924
7553
skipif mysql # not compatible
query I rowsort label-2540
SELECT - - col2 * col1 + + cor0.col0 / col1 + + col1 FROM tab0 cor0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-2541
SELECT ALL tab1.col1 DIV ( col2 ) AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL tab1.col1 / ( col2 ) AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + col0 + ( + col1 ) + col2 * 34 AS col1 FROM tab1 cor0
----
1865
2012
3357
query I rowsort
SELECT ALL + + col2 - col2 * cor0.col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT - col0 - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT + + col2 + cor0.col1 + col0 * - col2 FROM tab0 cor0
----
-673
-7125
63
query I rowsort
SELECT ALL - col1 + col0 * + col0 AS col2 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT + col1 * + col2 - - cor0.col2 AS col2 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-2548
SELECT DISTINCT col0 DIV - col1 + col0 * + col2 + col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
240
4282
8714
skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT col0 / - col1 + col0 * + col2 + col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
240
4282
8714
onlyif mysql # use DIV operator for integer division
query I rowsort label-2549
SELECT DISTINCT col1 DIV col2 + - 23 FROM tab0 cor0
----
-21
-22
74
skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT col1 / col2 + - 23 FROM tab0 cor0
----
-21
-22
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-2550
SELECT - + CAST( col2 AS SIGNED ) DIV + col0 AS col2 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-2550
SELECT - + CAST ( col2 AS INTEGER ) / + col0 AS col2 FROM tab2 AS cor0
----
-3
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2551
SELECT - 73 + col2 * col2 DIV 30 + 36 AS col0 FROM tab1 AS cor0
----
270
60
71
skipif mysql # not compatible
query I rowsort label-2551
SELECT - 73 + col2 * col2 / 30 + 36 AS col0 FROM tab1 AS cor0
----
270
60
71
query I rowsort
SELECT - col0 + col2 + col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - 30 + - 56 AS col1 FROM tab1 AS cor0
----
-86
-86
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col2 AS REAL ) + - col2 col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 47 + + col0 FROM tab2 AS cor0
----
-40
31
32
query I rowsort
SELECT DISTINCT - col1 * - col0 + col2 - 27 FROM tab1 AS cor0
----
105
1109
670
query I rowsort
SELECT ALL ( col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ( 98 ) * col2 FROM tab2 AS cor0
----
2548
2646
3724
query I rowsort
SELECT - col0 - + ( + tab2.col1 + col1 ) * col0 FROM tab2
----
-2765
-441
-9282
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2560
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col2 * - 13 + 86 AS col0 FROM tab2
----
-252
-265
-408
query I rowsort
SELECT + ( col0 ) + col2 + - col2 AS col1 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2563
SELECT 66 * col1 + - col2 DIV - 82 AS col0 FROM tab2 AS cor0
----
1122
2046
3894
skipif mysql # not compatible
query I rowsort label-2563
SELECT 66 * col1 + - col2 / - 82 AS col0 FROM tab2 AS cor0
----
1122
2046
3894
query I rowsort
SELECT DISTINCT col0 * + 93 + + col2 * col1 * col2 FROM tab0
----
3352
620161
95886
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * col0 col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL 61 * col0 + col1 AS col2 FROM tab1 AS cor0
----
209
3914
4893
query I rowsort
SELECT DISTINCT - col1 - col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT + - col2 + col2 * + ( - col0 ) FROM tab0 cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT - - 88 * - col0 AS col1 FROM tab0 AS cor0
----
-2112
-3080
-7832
query I rowsort
SELECT ALL - ( - col0 ) + ( + 83 ) * col2 AS col0 FROM tab1 AS cor0
----
4485
4795
8048
query I rowsort
SELECT DISTINCT - 6 + - col0 * 29 FROM tab2 AS cor0
----
-209
-2268
-2297
query I rowsort
SELECT + 26 + - col2 * ( col2 ) FROM tab1 AS cor0
----
-2890
-3223
-9190
query I rowsort
SELECT + 4 AS col1 FROM tab0 cor0
----
4
4
4
query I rowsort
SELECT + cor0.col2 * - cor0.col0 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2576
SELECT DISTINCT 68 + + col0 DIV - cor0.col0 FROM tab0 AS cor0
----
67
skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT 68 + + col0 / - cor0.col0 FROM tab0 AS cor0
----
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-2577
SELECT DISTINCT - + 64 + col1 DIV col1 FROM tab1 AS cor0
----
-63
skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT - + 64 + col1 / col1 FROM tab1 AS cor0
----
-63
query I rowsort
SELECT DISTINCT + - col1 * ( col1 * + cor0.col0 ) + - ( + col2 ) - - col0 AS col1 FROM tab0 AS cor0
----
-177513
-329281
-737002
query I rowsort
SELECT - - col2 - col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT + col1 * + col1 + col1 * + 78 FROM tab2
----
1615
3379
8083
query I rowsort
SELECT DISTINCT col1 + 71 FROM tab2
----
102
130
88
query I rowsort
SELECT ALL + 24 FROM tab0, tab2 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
onlyif mysql # use DIV operator for integer division
query I rowsort label-2583
SELECT + + ( col0 ) DIV col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2583
SELECT + + ( col0 ) / col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ( + col2 ) + - col1 * col2 * + col0 FROM tab1 AS cor0
----
-36423
-4158
-99744
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 16 + - col1 col0 FROM tab1 AS cor0
----
-10
3
6
query I rowsort
SELECT col2 * - 93 AS col0 FROM tab2
----
-2418
-2511
-3534
query I rowsort
SELECT - 84 * + tab2.col1 FROM tab2
----
-1428
-2604
-4956
query I rowsort
SELECT DISTINCT - + 42 FROM tab1, tab0, tab2 AS cor0
----
-42
query I rowsort
SELECT ALL - ( - col0 ) AS col2 FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col2 ) * ( col1 + cor0.col0 ) col1 FROM tab0 AS cor0
----
132
14760
3630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2591
SELECT - col2 + - col1 * + CAST( - 81 AS SIGNED ) AS col1 FROM tab0 cor0
----
6933
7289
7856
skipif mysql # not compatible
query I rowsort label-2591
SELECT - col2 + - col1 * + CAST ( - 81 AS INTEGER ) AS col1 FROM tab0 cor0
----
6933
7289
7856
query I rowsort
SELECT cor0.col2 + + col1 * + ( + col0 ) * + col0 FROM tab0 cor0
----
118826
49569
720893
query I rowsort
SELECT + + col2 - col1 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT + col0 + col0 * ( - 63 ) * col0 FROM tab2 AS cor0
----
-3080
-383214
-393104
query I rowsort
SELECT - col1 * cor0.col0 * col0 FROM tab0 cor0
----
-118825
-49536
-720811
query I rowsort
SELECT - - 98 - - col1 * + 5 AS col0 FROM tab1 AS cor0
----
148
163
228
query I rowsort
SELECT - - cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-2598
SELECT DISTINCT - col2 + col0 DIV + col0 + - col1 AS col0 FROM tab2 AS cor0
----
-54
-57
-84
skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT - col2 + col0 / + col0 + - col1 AS col0 FROM tab2 AS cor0
----
-54
-57
-84
query I rowsort
SELECT DISTINCT - col0 * + cor0.col0 + col1 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT ALL - col0 * ( 60 ) + - col2 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-591
2736
4416
query I rowsort
SELECT - + col0 * + 72 AS col1 FROM tab1 AS cor0
----
-216
-4608
-5760
onlyif mysql # use DIV operator for integer division
query I rowsort label-2602
SELECT DISTINCT - - col1 DIV + 79 + col1 * col2 DIV + col0 + col2 * col1 AS col0 FROM tab0 AS cor0
----
100
2957
7546
skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT - - col1 / + 79 + col1 * col2 / + col0 + col2 * col1 AS col0 FROM tab0 AS cor0
----
100
2957
7546
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2603
SELECT + CAST( - col1 AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2603
SELECT + CAST ( - col1 AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - ( + col0 ) - cor0.col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT + 81 + - 65 AS col1 FROM tab2 AS cor0
----
16
16
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-2606
SELECT + 61 + + col1 DIV col1 FROM tab1 AS cor0
----
62
62
62
skipif mysql # not compatible
query I rowsort label-2606
SELECT + 61 + + col1 / col1 FROM tab1 AS cor0
----
62
62
62
query I rowsort
SELECT DISTINCT 85 * + cor0.col1 + col1 FROM tab2 AS cor0
----
1462
2666
5074
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 + - cor0.col1 col2 FROM tab2 cor0
----
-20
-48
-6
query I rowsort
SELECT + cor0.col0 * cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0
query I rowsort
SELECT ALL + ( cor0.col2 ) + - 62 FROM tab0, tab2 cor0
----
9 values hashing to fd187422d0f3eae78b683be2a90b4e6c
query I rowsort
SELECT ( + col1 ) * - col1 * - col1 - - col1 FROM tab2
----
205438
29822
4930
query I rowsort
SELECT DISTINCT ( + col0 ) + col1 * - 83 - col2 FROM tab1 cor0
----
-1095
-2209
-823
onlyif mysql # use DIV operator for integer division
query I rowsort label-2613
SELECT DISTINCT + CAST( 77 AS SIGNED ) DIV col2 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT + CAST ( 77 AS INTEGER ) / col2 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT ALL 11 + - cor0.col2 * + col1 FROM tab1 AS cor0
----
-1237
-1393
-559
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2615
SELECT - - CAST( NULL AS SIGNED ) * + ( - col1 + cor0.col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2615
SELECT - - CAST ( NULL AS INTEGER ) * + ( - col1 + cor0.col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col0 * 35 * - col0 FROM tab1 AS cor0
----
-143360
-224000
-315
query I rowsort
SELECT DISTINCT - ( - col1 ) + - col2 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT ALL - col2 - col0 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 752ce7d2fdd0678058de6a90ff2b0f3a
query I rowsort
SELECT ALL + 76 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT DISTINCT - 6 FROM tab1, tab1 AS cor0
----
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2623
SELECT + - col2 + - CAST( 88 AS SIGNED ) FROM tab0 AS cor0
----
-121
-170
-89
skipif mysql # not compatible
query I rowsort label-2623
SELECT + - col2 + - CAST ( 88 AS INTEGER ) FROM tab0 AS cor0
----
-121
-170
-89
query I rowsort
SELECT ALL - 38 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
query I rowsort
SELECT DISTINCT cor0.col2 + - cor0.col2 FROM tab2, tab2 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + ( - col0 * ( + col0 ) ) col1 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT DISTINCT + col0 * ( col1 ) AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - 34 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb
query I rowsort
SELECT ALL - tab0.col2 * col2 * - col0 FROM tab0
----
26136
35
598436
query I rowsort
SELECT + col1 * - 77 AS col1 FROM tab0 AS cor0
----
-6622
-7007
-7469
query I rowsort
SELECT - ( + col1 ) + 51 FROM tab1 AS cor0
----
25
38
41
query I rowsort
SELECT DISTINCT + - col1 * - col2 - col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT ALL + + cor0.col0 - + col2 FROM tab0 AS cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * + col1 * 24 + cor0.col0 col0 FROM tab2 AS cor0
----
23071
7015
83622
query I rowsort
SELECT ALL + 90 * + col2 + + ( + col2 ) FROM tab1 AS cor0
----
4914
5187
8736
query I rowsort
SELECT ALL + ( col0 ) * + col1 + 62 AS col0 FROM tab2
----
1405
279
4664
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col1 ) + 21 col1 FROM tab2 AS cor0
----
38
52
80
query I rowsort
SELECT ALL - + col0 * + col2 + - col1 * + col0 FROM tab1 AS cor0
----
-240
-4288
-8720
query I rowsort
SELECT ALL + 25 + col1 - 62 AS col1 FROM tab2 AS cor0
----
-20
-6
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 * col1 * - col0 col2 FROM tab0 AS cor0
----
-118790
-49512
-720722
query I rowsort
SELECT DISTINCT - + ( col0 ) * + col1 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT - col0 + + col2 AS col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT DISTINCT - 62 + - col1 AS col1 FROM tab2 AS cor0
----
-121
-79
-93
query I rowsort
SELECT - + 11 + col0 FROM tab0 AS cor0
----
13
24
78
query I rowsort
SELECT DISTINCT - col2 * - col0 * - 62 + col2 + col1 AS col0 FROM tab0 AS cor0
----
-2072
-452303
-48985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2646
SELECT DISTINCT - + col1 + col2 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT - + col1 + col2 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2647
SELECT ALL + - col2 + + cor0.col2 DIV - col0 FROM tab1 AS cor0
----
-57
-72
-97
skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL + - col2 + + cor0.col2 / - col0 FROM tab1 AS cor0
----
-57
-72
-97
query I rowsort
SELECT + 62 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
query I rowsort
SELECT col0 * 65 AS col2 FROM tab2 AS cor0
----
455
5070
5135
query I rowsort
SELECT DISTINCT + 10 * cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
10400
6400
780
onlyif mysql # use DIV operator for integer division
query I rowsort label-2651
SELECT DISTINCT + ( col2 ) DIV + cor0.col1 AS col2 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT + ( col2 ) / + cor0.col1 AS col2 FROM tab0 cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2652
SELECT CAST( + cor0.col0 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2652
SELECT CAST ( + cor0.col0 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT cor0.col1 * col1 * col0 + - 71 * col2 FROM tab2 AS cor0
----
20133
269672
4810
query I rowsort
SELECT + col2 * - col0 - - col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2655
SELECT ALL ( col0 ) * col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL ( col0 ) * col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2656
SELECT ALL + - ( - col1 ) DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL + - ( - col1 ) / col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 86 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2658
SELECT col0 - CAST( + col2 * col1 AS SIGNED ) FROM tab1
----
-1168
-1401
-506
skipif mysql # not compatible
query I rowsort label-2658
SELECT col0 - CAST ( + col2 * col1 AS INTEGER ) FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT + 75 AS col2 FROM tab2 cor0
----
75
75
75
query I rowsort
SELECT DISTINCT col0 + + col0 * - col0 + tab0.col1 AS col0 FROM tab0
----
-1093
-466
-7741
onlyif mysql # use DIV operator for integer division
query I rowsort label-2661
SELECT tab2.col2 * 55 + col2 + - 61 * tab2.col1 DIV col0 FROM tab2
----
1242
1410
2115
skipif mysql # not compatible
query I rowsort label-2661
SELECT tab2.col2 * 55 + col2 + - 61 * tab2.col1 / col0 FROM tab2
----
1242
1410
2115
query I rowsort
SELECT ALL 82 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
onlyif mysql # use DIV operator for integer division
query I rowsort label-2663
SELECT DISTINCT - tab0.col2 DIV col2 + col1 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT - tab0.col2 / col2 + col1 FROM tab0
----
85
90
96
query I rowsort
SELECT ALL 4 * 29 * + col1 - + 59 AS col2 FROM tab0
----
10497
11193
9917
query I rowsort
SELECT 91 - 52 * - col0 AS col1 FROM tab2
----
4147
4199
455
query I rowsort
SELECT - ( + col0 ) * - col0 + - 72 AS col0 FROM tab2
----
-23
6012
6169
query I rowsort
SELECT DISTINCT col1 - - col1 * - col1 FROM tab0
----
-7310
-8190
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-2668
SELECT + col0 DIV 41 AS col2 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-2668
SELECT + col0 / 41 AS col2 FROM tab1
----
0
1
1
query I rowsort
SELECT DISTINCT - col2 * col0 - + col2 * + col2 FROM tab0
----
-14022
-1881
-36
query I rowsort
SELECT ALL - + col0 + 9 + col2 AS col1 FROM tab0 AS cor0
----
-25
18
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col2 ) + - col2 col1 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT - col1 * - col0 + + col1 AS col0 FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT ALL - + col0 * - col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - col0 + 33 AS col2 FROM tab1
----
-31
-47
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 73 * - col2 ) + - col1 col1 FROM tab2
----
-1957
-2002
-2791
query I rowsort
SELECT col2 + col0 - ( col2 ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - 2 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387
onlyif mysql # use DIV operator for integer division
query I rowsort label-2678
SELECT + - 88 DIV + col0 + - CAST( col0 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-1041
-107
-641
skipif mysql # not compatible
query I rowsort label-2678
SELECT + - 88 / + col0 + - CAST ( col0 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-1041
-107
-641
onlyif mysql # use DIV operator for integer division
query I rowsort label-2679
SELECT ALL - col1 - col2 * col1 DIV 87 AS col2 FROM tab1 AS cor0
----
-16
-27
-42
skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL - col1 - col2 * col1 / 87 AS col2 FROM tab1 AS cor0
----
-16
-27
-42
onlyif mysql # use DIV operator for integer division
query I rowsort label-2680
SELECT ALL col2 DIV + col0 + + cor0.col0 AS col2 FROM tab1 cor0
----
21
64
81
skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL col2 / + col0 + + cor0.col0 AS col2 FROM tab1 cor0
----
21
64
81
query I rowsort
SELECT ALL - - col2 * + col0 + ( col0 ) AS col0 FROM tab2 AS cor0
----
196
2106
3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2682
SELECT cor0.col0 * col2 + CAST( NULL AS SIGNED ) 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-2682
SELECT cor0.col0 * col2 + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( 34 ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 91 col2 FROM tab1 cor0
----
-1183
-2366
-910
onlyif mysql # use DIV operator for integer division
query I rowsort label-2685
SELECT ALL col1 + 91 DIV 80 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL col1 + 91 / 80 FROM tab0 AS cor0
----
87
92
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2686
SELECT DISTINCT col0 + 53 * col1 DIV + cor0.col0 AS col0 FROM tab2 AS cor0
----
118
241
90
skipif mysql # not compatible
query I rowsort label-2686
SELECT DISTINCT col0 + 53 * col1 / + cor0.col0 AS col0 FROM tab2 AS cor0
----
118
241
90
query I rowsort
SELECT ALL - col1 * + 95 FROM tab2 AS cor0
----
-1615
-2945
-5605
query I rowsort
SELECT ALL + cor0.col2 * + col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + 57 * - col1 + col1 * - 79 AS col0 FROM tab0 AS cor0
----
-11696
-12376
-13192
query I rowsort
SELECT - 39 * 13 + col1 AS col1 FROM tab0 AS cor0
----
-410
-416
-421
query I rowsort
SELECT DISTINCT ( col0 ) + col1 + col0 FROM tab1 AS cor0
----
138
173
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2692
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 * col1 col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - + 51 * - col0 AS col1 FROM tab0 AS cor0
----
1224
1785
4539
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2695
SELECT - CAST( col0 AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-2695
SELECT - CAST ( col0 AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + + 33 * - col2 AS col2 FROM tab0 AS cor0
----
-1089
-2706
-33
query I rowsort
SELECT + - cor0.col1 * cor0.col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - 89 * + col2 + - col2 * 97 FROM tab0 AS cor0
----
-15252
-186
-6138
query I rowsort
SELECT DISTINCT col1 + - 16 AS col2 FROM tab2 AS cor0
----
1
15
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2700
SELECT + CAST( 24 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
24
24
24
skipif mysql # not compatible
query I rowsort label-2700
SELECT + CAST ( 24 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
24
24
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-2701
SELECT ALL + ( - 95 ) DIV col1 + - col2 AS col0 FROM tab1 AS cor0
----
-103
-57
-66
skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL + ( - 95 ) / col1 + - col2 AS col0 FROM tab1 AS cor0
----
-103
-57
-66
query I rowsort
SELECT 26 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT + - cor0.col1 * - col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - col1 + ( + col2 * col2 ) AS col1 FROM tab2
----
1427
617
698
query I rowsort
SELECT - col2 * 86 AS col0 FROM tab0 AS cor0
----
-2838
-7052
-86
query I rowsort
SELECT - col1 * + ( 99 * col2 ) AS col0 FROM tab2 AS cor0
----
-151866
-63954
-82863
query I rowsort
SELECT - - col0 * - ( ( - col0 ) ) AS col1 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2708
SELECT DISTINCT - CAST( NULL AS SIGNED ) - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
query I rowsort
SELECT + - col1 * - col0 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT ALL - + 85 * col1 FROM tab1 AS cor0
----
-1105
-2210
-850
query I rowsort
SELECT DISTINCT - + 20 + 58 * cor0.col1 + - col1 * 9 * col0 FROM tab2 AS cor0
----
-11121
-175
-38016
query I rowsort
SELECT ALL + cor0.col0 + - 87 AS col0 FROM tab0 AS cor0
----
-52
-63
2
query I rowsort
SELECT DISTINCT - + 12 + 16 AS col0 FROM tab0 cor0
----
4
query I rowsort
SELECT - tab0.col0 * + ( col1 ) * + col0 - col2 FROM tab0
----
-118826
-49569
-720893
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 * + col2 col0 FROM tab2
----
22599
24548
39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-2716
SELECT DISTINCT + ( + tab2.col2 ) DIV col1 AS col2 FROM tab2
----
0
2
skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT + ( + tab2.col2 ) / col1 AS col2 FROM tab2
----
0
2
query I rowsort
SELECT - 95 * col2 AS col2 FROM tab2 AS cor0
----
-2470
-2565
-3610
query I rowsort
SELECT - 20 + col0 * + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-363
-474572
-493059
query I rowsort
SELECT - ( - col1 + - col0 ) * col0 AS col2 FROM tab1
----
4736
7440
87
query I rowsort
SELECT + ( - ( - col1 ) ) AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT - col2 * + tab0.col2 AS col0 FROM tab0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2722
SELECT + CAST( col1 AS SIGNED ) * col0 * col2 AS col2 FROM tab1
----
36480
4212
99840
skipif mysql # not compatible
query I rowsort label-2722
SELECT + CAST ( col1 AS INTEGER ) * col0 * col2 AS col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT + 0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT - + cor1.col0 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL tab1.col0 + - 51 + ( cor0.col2 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 0a444dad9d2639c812779901a815eb07
query I rowsort
SELECT - ( cor0.col0 ) + ( ( + col0 ) ) * 93 * + col0 FROM tab1 AS cor0
----
380864
595120
834
query I rowsort
SELECT ALL + 38 + + col2 - - col0 AS col0 FROM tab2 AS cor0
----
142
155
72
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab0 cor0, tab2 AS cor1
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2730
SELECT DISTINCT 40 DIV - col2 AS col2 FROM tab0
----
-1
-40
0
skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT 40 / - col2 AS col2 FROM tab0
----
-1
-40
0
query I rowsort
SELECT ALL - col0 + + col2 * - col1 * col1 AS col2 FROM tab0
----
-244092
-679131
-9444
query I rowsort
SELECT + - col2 * col1 + ( 35 ) + - col0 * + ( col2 ) FROM tab0 AS cor0
----
-14725
-3595
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2733
SELECT + - col2 * 19 DIV col1 FROM tab2 AS cor0
----
-16
-42
-8
skipif mysql # not compatible
query I rowsort label-2733
SELECT + - col2 * 19 / col1 FROM tab2 AS cor0
----
-16
-42
-8
query I rowsort
SELECT - cor0.col0 * ( - 50 + col1 ) FROM tab0 AS cor0
----
-1645
-3649
-864
query I rowsort
SELECT DISTINCT - col2 * ( 90 ) + + col0 AS col1 FROM tab0 AS cor0
----
-2946
-55
-7291
query I rowsort
SELECT DISTINCT - col1 * 27 AS col0 FROM tab0 AS cor0
----
-2322
-2457
-2619
onlyif mysql # use DIV operator for integer division
query I rowsort label-2737
SELECT DISTINCT col0 * + col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT col0 * + col0 / - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT col2 + ( - col2 ) AS col0 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2739
SELECT ALL tab0.col0 DIV col2 + col0 FROM tab0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL tab0.col0 / col2 + col0 FROM tab0
----
24
70
90
query I rowsort
SELECT 24 + + col2 * col0 + - ( ( + col0 ) ) * col1 FROM tab2 AS cor0
----
-2550
-4
1683
query I rowsort
SELECT DISTINCT + 30 * col2 - + col0 * tab1.col1 FROM tab1
----
1070
1542
1840
query I rowsort
SELECT 45 AS col1 FROM tab2 cor0
----
45
45
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-2743
SELECT 62 * col2 DIV + col0 - + ( col2 ) * col0 * - CAST( + 79 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
13914
288247
606794
skipif mysql # not compatible
query I rowsort label-2743
SELECT 62 * col2 / + col0 - + ( col2 ) * col0 * - CAST ( + 79 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
13914
288247
606794
onlyif mysql # use DIV operator for integer division
query I rowsort label-2744
SELECT + col0 + + col1 DIV - col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-27
177
46
skipif mysql # not compatible
query I rowsort label-2744
SELECT + col0 + + col1 / - col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-27
177
46
query I rowsort
SELECT - col0 * + cor0.col1 + col0 * + col2 + cor0.col1 AS col2 FROM tab2 cor0
----
-2515
1676
3
query I rowsort
SELECT - 79 * col1 + + col2 FROM tab1 AS cor0
----
-2000
-733
-931
query I rowsort
SELECT tab2.col0 FROM tab0, tab2 cor0 CROSS JOIN tab2
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 * col2 col2 FROM tab2
----
-1534
-646
-837
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab1 AS cor2, tab1
----
13122 values hashing to ce504497aa901d34bc3f8fdf68af446b
onlyif mysql # use DIV operator for integer division
query I rowsort label-2750
SELECT col1 DIV col1 + col0 AS col1 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-2750
SELECT col1 / col1 + col0 AS col1 FROM tab2
----
79
8
80
query I rowsort
SELECT ALL - - col0 + + ( col1 ) AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL col2 + col1 * - 45 FROM tab1 cor0
----
-1116
-393
-489
query I rowsort
SELECT DISTINCT col0 * - cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT - col0 * 53 + 65 FROM tab2 AS cor0
----
-306
-4069
-4122
query I rowsort
SELECT DISTINCT - - col2 * - col2 - - cor0.col2 * - col1 FROM tab2 AS cor0
----
-1566
-2090
-2210
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 15 col0 FROM tab0 AS cor0
----
1290
1365
1455
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2757
SELECT + col1 + + CAST( NULL AS SIGNED ) / col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2757
SELECT + col1 + + CAST ( NULL AS INTEGER ) / col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + - col2 col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - col2 * ( - col2 ) AS col2 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-2760
SELECT ALL col0 + col1 DIV col1 AS col2 FROM tab1 cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL col0 + col1 / col1 AS col2 FROM tab1 cor0
----
4
65
81
query I rowsort
SELECT - + col1 + ( + 97 ) FROM tab2 cor0
----
38
66
80
query I rowsort
SELECT ALL + ( - cor0.col0 ) + + col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 * 62 + - col2 AS col2 FROM tab0 cor0
----
5299
5560
6013
query I rowsort
SELECT + 57 + - 78 FROM tab2 AS cor0
----
-21
-21
-21
query I rowsort
SELECT DISTINCT - + ( 76 ) + col1 FROM tab0 AS cor0
----
10
15
21
query I rowsort
SELECT + cor0.col0 + + ( col1 ) * ( col0 ) AS col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - + cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT DISTINCT - 83 * col0 + - col0 AS col0 FROM tab0 AS cor0
----
-2016
-2940
-7476
onlyif mysql # use DIV operator for integer division
query I rowsort label-2769
SELECT DISTINCT col0 - + col0 DIV + col0 FROM tab1
----
2
63
79
skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT col0 - + col0 / + col0 FROM tab1
----
2
63
79
query I rowsort
SELECT DISTINCT 68 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col1 * + ( cor0.col0 ) col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL + + col0 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + - cor0.col1 col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL + - 46 + + col2 FROM tab1 AS cor0
----
11
50
8
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 AS col1 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT ALL + cor0.col2 * col0 * 87 FROM tab0 cor0
----
3045
634926
68904
query I rowsort
SELECT + + col2 + + ( col0 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + - col0 + col1 * - 52 AS col2 FROM tab1 AS cor0
----
-1355
-584
-756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * - col1 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + + col2 - 25 AS col0 FROM tab0 cor0
----
-24
57
8
query I rowsort
SELECT DISTINCT 87 AS col0 FROM tab2
----
87
query I rowsort
SELECT col0 * - col1 * - ( 69 ) + col2 FROM tab2
----
15000
317564
92705
query I rowsort
SELECT col2 * - 82 FROM tab1 cor0
----
-4428
-4674
-7872
query I rowsort
SELECT col2 + col2 * + 87 FROM tab0
----
2904
7216
88
query I rowsort
SELECT + col2 + col2 * 63 FROM tab1
----
3456
3648
6144
query I rowsort
SELECT tab2.col1 + + 15 AS col2 FROM tab2
----
32
46
74
query I rowsort
SELECT col0 + - cor0.col1 * + col1 AS col2 FROM tab2 cor0
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT col2 * - 9 AS col0 FROM tab1 AS cor0
----
-486
-513
-864
query I rowsort
SELECT DISTINCT 55 + 35 + + cor0.col0 AS col2 FROM tab0, tab0 AS cor0
----
114
125
179
query I rowsort
SELECT DISTINCT col2 * col0 + cor0.col1 AS col2 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT + col0 + ( - col1 ) * col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL col2 + + col1 * - cor0.col2 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT + tab1.col0 + - 53 FROM tab1
----
-50
11
27
query I rowsort
SELECT + + col1 * + col1 + - ( - col0 ) + col1 FROM tab2 cor0
----
3618
385
999
query I rowsort
SELECT + 98 * + ( col2 ) + 37 * - 88 * col1 AS col1 FROM tab1
----
-26974
-32920
-79364
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2797
SELECT CAST( NULL AS SIGNED ) * col1 + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2797
SELECT CAST ( NULL AS INTEGER ) * col1 + col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2798
SELECT ALL CAST( NULL AS SIGNED ) * + 0 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL CAST ( NULL AS INTEGER ) * + 0 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( + col1 ) * col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT DISTINCT - 3 AS col1 FROM tab0 cor0
----
-3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2801
SELECT - CAST( NULL AS SIGNED ) + - cor0.col1 + col0 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2801
SELECT - CAST ( NULL AS INTEGER ) + - cor0.col1 + col0 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + + col0 * ( col1 ) AS col1 FROM tab0 cor0
----
2040
3360
8010
query I rowsort
SELECT ALL 75 + col0 FROM tab1 cor0
----
139
155
78
query I rowsort
SELECT DISTINCT + col2 * col1 + ( col0 ) FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-2805
SELECT DISTINCT - - col2 + - col1 DIV ( + col1 * col2 ) AS col2 FROM tab0 AS cor0
----
0
33
82
skipif mysql # not compatible
query I rowsort label-2805
SELECT DISTINCT - - col2 + - col1 / ( + col1 * col2 ) AS col2 FROM tab0 AS cor0
----
0
33
82
query I rowsort
SELECT ALL 91 * - col0 FROM tab1
----
-273
-5824
-7280
query I rowsort
SELECT DISTINCT + + 91 * + col2 AS col0 FROM tab0 AS cor0
----
3003
7462
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col2 FROM tab2 AS cor0
----
-23
-23
-23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col2 + col2 + col1 col0 FROM tab0 cor0
----
-673
-7125
63
query I rowsort
SELECT DISTINCT - 44 + col1 AS col1 FROM tab1 AS cor0
----
-18
-31
-34
query I rowsort
SELECT - - ( col0 ) * - ( - col1 ) * - col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT + - 6 FROM tab1 cor0
----
-6
query I rowsort
SELECT + ( + col2 ) * - 81 + col0 FROM tab1 AS cor0
----
-4371
-4553
-7696
query I rowsort
SELECT DISTINCT + ( - col2 ) * + col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-2815
SELECT ALL - col0 * col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL - col0 * col0 / + col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 col1 FROM tab0
----
-11
-11
-11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2817
SELECT + + CAST( + 51 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
51
51
51
skipif mysql # not compatible
query I rowsort label-2817
SELECT + + CAST ( + 51 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
51
51
51
query I rowsort
SELECT ALL tab2.col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL 81 AS col2 FROM tab0, tab1, tab0 AS cor0, tab0 AS cor1
----
81 values hashing to 50d500b1082f81e0b02096b2afac91cd
query I rowsort
SELECT 52 AS col1 FROM tab2 AS cor0
----
52
52
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-2821
SELECT ALL + cor0.col0 + - col0 DIV - ( - ( - col1 ) * col2 ) AS col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL + cor0.col0 + - col0 / - ( - ( - col1 ) * col2 ) AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - 88 + - col2 AS col1 FROM tab0 AS cor0
----
-121
-170
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2823
SELECT DISTINCT + ( 47 ) DIV col1 AS col2 FROM tab1
----
1
3
4
skipif mysql # not compatible
query I rowsort label-2823
SELECT DISTINCT + ( 47 ) / col1 AS col2 FROM tab1
----
1
3
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-2824
SELECT - col2 * + col0 * + col1 + col2 DIV col1 FROM tab2 AS cor0
----
-119652
-51032
-5859
skipif mysql # not compatible
query I rowsort label-2824
SELECT - col2 * + col0 * + col1 + col2 / col1 FROM tab2 AS cor0
----
-119652
-51032
-5859
query I rowsort
SELECT + col0 * ( - col0 + col1 ) AS col2 FROM tab0 AS cor0
----
1488
178
2170
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - ( + col0 ) col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - + col2 + 46 FROM tab1 AS cor0
----
-11
-50
-8
query I rowsort
SELECT DISTINCT - col2 * + 70 + col0 FROM tab1 AS cor0
----
-3777
-3926
-6640
query I rowsort
SELECT ALL - cor0.col0 - 68 * col2 FROM tab0 AS cor0
----
-103
-2268
-5665
query I rowsort
SELECT - + col0 + 5 AS col1 FROM tab2 AS cor0
----
-2
-73
-74
query I rowsort
SELECT + col2 * + 69 AS col0 FROM tab0 AS cor0
----
2277
5658
69
query I rowsort
SELECT ALL - + ( col1 ) * - col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + 26 + + col1 * col2 AS col1 FROM tab2 AS cor0
----
1560
672
863
query I rowsort
SELECT ALL + ( + col2 ) - - col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT col0 * + cor0.col0 + + col0 * - col0 * - col2 AS col0 FROM tab2 AS cor0
----
1372
164268
243399
query I rowsort
SELECT tab1.col0 * - tab1.col2 AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT col2 * - col2 * + col2 FROM tab1 AS cor0
----
-157464
-185193
-884736
onlyif mysql # use DIV operator for integer division
query I rowsort label-2838
SELECT + col1 * - cor0.col1 + col0 DIV + ( - col2 ) col1 FROM tab1 AS cor0
----
-101
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2838
SELECT + col1 * - cor0.col1 + col0 / + ( - col2 ) col1 FROM tab1 AS cor0
----
-101
-169
-676
query I rowsort
SELECT DISTINCT - col1 * + 39 FROM tab1 AS cor0
----
-1014
-390
-507
query I rowsort
SELECT ALL col0 * 6 FROM tab1 cor0
----
18
384
480
query I rowsort
SELECT - col2 * 42 * - col1 FROM tab1 cor0
----
23940
52416
58968
query I rowsort
SELECT - col1 * ( - 11 * + col0 ) AS col2 FROM tab0
----
22704
37345
89089
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * + col2 col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT col1 * - col2 + + 94 + col1 AS col2 FROM tab0
----
-2658
-7277
94
query I rowsort
SELECT + 8 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
query I rowsort
SELECT DISTINCT - col1 * + col0 * - col2 + tab0.col0 + tab0.col2 FROM tab0
----
3431
664289
68169
query I rowsort
SELECT ( - col2 ) * + col1 AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + + cor0.col2 * 22 - 44 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0e319b287167cb21925743c648555e97
query I rowsort
SELECT - col0 * + col1 + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT - ( - 16 ) + tab0.col1 AS col0 FROM tab0
----
102
107
113
query I rowsort
SELECT + 93 * col2 AS col2 FROM tab1 AS cor0
----
5022
5301
8928
query I rowsort
SELECT ( + col1 * 28 ) AS col0 FROM tab2
----
1652
476
868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + + cor0.col2 * + 45 col1 FROM tab0 AS cor0
----
142
1571
3781
query I rowsort
SELECT col1 * - 0 - + col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT tab2.col1 + col1 + - col0 FROM tab2
----
-45
40
55
query I rowsort
SELECT DISTINCT col1 * col1 + col0 AS col0 FROM tab2
----
3559
368
968
query I rowsort
SELECT - + col0 - 64 FROM tab2 AS cor0
----
-142
-143
-71
query I rowsort
SELECT DISTINCT col0 * - cor0.col2 * - col1 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-2859
SELECT DISTINCT col2 DIV 89 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2859
SELECT DISTINCT col2 / 89 AS col2 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + col1 col0 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2861
SELECT + cor0.col0 + - CAST( - col2 AS SIGNED ) * col0 - - ( + 84 + + col0 ) col2 FROM tab0 AS cor0
----
189
7560
924
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2861
SELECT + cor0.col0 + - CAST ( - col2 AS INTEGER ) * col0 - - ( + 84 + + col0 ) col2 FROM tab0 AS cor0
----
189
7560
924
query I rowsort
SELECT col1 * 12 - 60 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-3972
-4536
-48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2863
SELECT DISTINCT CAST( NULL AS SIGNED ) + 3 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-2863
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 3 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
NULL
query I rowsort
SELECT cor0.col1 * + tab2.col0 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to b6acab70a8764f2ad4b9f9f8e9265ffe
query I rowsort
SELECT cor0.col1 * + 14 * col1 AS col1 FROM tab2 AS cor0
----
13454
4046
48734
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 53 col0 FROM tab2 AS cor0
----
1378
1431
2014
query I rowsort
SELECT 37 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2
query I rowsort
SELECT ALL + 72 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT ALL - col0 * col0 + - col2 AS col2 FROM tab2
----
-6110
-6279
-76
query I rowsort
SELECT + 22 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT + col1 * + 87 FROM tab2
----
1479
2697
5133
query I rowsort
SELECT ALL + col1 * + ( 13 ) - + col2 * + col0 AS col0 FROM tab2 AS cor0
----
-1261
-2781
214
query I rowsort
SELECT col2 * 49 FROM tab2 AS cor0
----
1274
1323
1862
query I rowsort
SELECT DISTINCT col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - col2 * col2 + ( col0 ) + + ( + 95 + col1 ) FROM tab0 AS cor0
----
-6449
-884
226
query I rowsort
SELECT ALL - col2 * - cor0.col1 - + ( col1 ) * - col2 AS col1 FROM tab1 AS cor0
----
1140
2496
2808
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2877
SELECT DISTINCT + col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT + col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col0 - - ( col2 ) AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + col1 * - ( col1 ) AS col0 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT - ( 76 ) + + col1 AS col1 FROM tab2
----
-17
-45
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2881
SELECT ( - 70 ) * col2 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2881
SELECT ( - 70 ) * col2 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2882
SELECT ALL CAST( + col1 AS SIGNED ) * cor0.col0 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL CAST ( + col1 AS INTEGER ) * cor0.col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + 59 FROM tab0 cor0
----
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2884
SELECT DISTINCT - + CAST( - 34 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
102
2176
2720
skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT - + CAST ( - 34 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
102
2176
2720
query I rowsort
SELECT 63 * - 14 FROM tab2 AS cor0
----
-882
-882
-882
onlyif mysql # use DIV operator for integer division
query I rowsort label-2886
SELECT DISTINCT col2 * col0 * + cor0.col0 + - 97 DIV col1 + - col2 * + 57 AS col2 FROM tab1 AS cor0
----
-2595
230214
608921
skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT col2 * col0 * + cor0.col0 + - 97 / col1 + - col2 * + 57 AS col2 FROM tab1 AS cor0
----
-2595
230214
608921
query I rowsort
SELECT + col2 + + cor0.col0 AS col1 FROM tab1 cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * - cor0.col1 col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL 8 + + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2830
-7454
-89
query I rowsort
SELECT - col1 + - col0 * - 35 FROM tab2 AS cor0
----
214
2671
2748
query I rowsort
SELECT ALL + col0 * cor0.col0 + 67 AS col0 FROM tab2 AS cor0
----
116
6151
6308
query I rowsort
SELECT DISTINCT + 2 + col0 FROM tab1 AS cor0
----
5
66
82
query I rowsort
SELECT DISTINCT + - col2 + - col1 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT cor0.col2 + col2 + - col1 FROM tab2 AS cor0
----
-7
23
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2895
SELECT ALL 62 DIV + col0 FROM tab1 AS cor0
----
0
0
20
skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL 62 / + col0 FROM tab1 AS cor0
----
0
0
20
query I rowsort
SELECT - ( col2 ) * 90 + col2 * - cor0.col1 + + col2 AS col0 FROM tab0 AS cor0
----
-14760
-186
-5775
onlyif mysql # use DIV operator for integer division
query I rowsort label-2897
SELECT + col1 DIV col1 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-2897
SELECT + col1 / col1 col1 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 col2 FROM tab0 cor0
----
-63
query I rowsort
SELECT DISTINCT col0 * + cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT + + col0 + - col0 + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + - col1 * - col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-2902
SELECT ALL 69 DIV col0 FROM tab0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL 69 / col0 FROM tab0
----
0
1
2
query I rowsort
SELECT - col2 + col0 * - col2 * col2 FROM tab2 AS cor0
----
-114114
-5130
-52754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2904
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 * + col0 + + ( - col1 ) / + col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2904
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 * + col0 + + ( - col1 ) / + col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - - col1 * + col2 + col2 * ( col1 ) FROM tab0 cor0
----
14924
194
5676
query I rowsort
SELECT ALL col0 + ( col0 ) * - 71 * col0 + - col0 * + ( col0 ) AS col1 FROM tab2 AS cor0
----
-3521
-437970
-449273
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2907
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col1 * - col0 col2 FROM tab0 AS cor0
----
2031
3394
8017
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2909
SELECT DISTINCT + + CAST( + col0 AS SIGNED ) + col1 * + 68 - cor0.col2 AS col1 FROM tab0 AS cor0
----
5839
6195
6630
skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT + + CAST ( + col0 AS INTEGER ) + col1 * + 68 - cor0.col2 AS col1 FROM tab0 AS cor0
----
5839
6195
6630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT + - col2 * cor0.col0 * + col0 - col0 FROM tab2 AS cor0
----
-1330
-158262
-237237
query I rowsort
SELECT ALL ( - col1 ) * tab2.col0 + ( 20 ) * + col1 AS col1 FROM tab2
----
-1003
-3422
403
query I rowsort
SELECT - - ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 10 AS REAL ) col0 FROM tab0
----
10
10
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 * col0 col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL 62 FROM tab1, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 44 AS REAL ) FROM tab1 cor0
----
44
44
44
query I rowsort
SELECT DISTINCT + col2 + - tab1.col0 AS col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT 59 - cor1.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 5241c018ac8a1fa9bf660cd2b91acfe1
query I rowsort
SELECT DISTINCT cor0.col2 + 41 FROM tab0, tab0 cor0
----
123
42
74
query I rowsort
SELECT + + col1 * col1 - col2 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT ALL + - cor0.col1 * col2 + + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT col0 + - col2 * - ( - cor0.col0 ) FROM tab1 cor0
----
-159
-3584
-7600
query I rowsort
SELECT - col2 - + ( col0 ) AS col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - cor0.col0 + 68 FROM tab1 AS cor0
----
-12
4
65
query I rowsort
SELECT col1 + - cor0.col1 * - 73 * col1 AS col0 FROM tab2 AS cor0
----
21114
254172
70184
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 1 + 13 col0 FROM tab1 AS cor0
----
17
78
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 col2 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2929
SELECT + col0 + CAST( 87 AS SIGNED ) + col1 * col2 * col1 FROM tab0 cor0
----
244179
679218
9531
skipif mysql # not compatible
query I rowsort label-2929
SELECT + col0 + CAST ( 87 AS INTEGER ) + col1 * col2 * col1 FROM tab0 cor0
----
244179
679218
9531
query I rowsort
SELECT DISTINCT + cor0.col0 * - col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col0 * + ( col0 ) * + col2 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT ALL - col2 * - cor0.col1 + col1 * + col0 AS col0 FROM tab0 AS cor0
----
15561
3492
4902
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 + - col2 * col0 col0 FROM tab0
----
-7127
-735
1
query I rowsort
SELECT ALL + - col1 + - 73 * + col2 * - col2 AS col1 FROM tab1 AS cor0
----
212842
237167
672755
query I rowsort
SELECT col0 * - col1 - + col2 AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT NULL <= cor0.col0
----
query I rowsort
SELECT DISTINCT + + cor0.col1 * - cor0.col0 - + col1 AS col2 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT - col0 + col1 * + ( - col2 ) * col0 AS col0 FROM tab0 AS cor0
----
-3430
-664207
-68136
query I rowsort
SELECT ALL + col0 * + ( + col1 ) + + col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - col2 * - 88 FROM tab2 AS cor0
----
2288
2376
3344
query I rowsort
SELECT DISTINCT col0 * 39 * - cor0.col2 + col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-141632
-298480
-6240
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2942
SELECT ALL - CAST( NULL AS SIGNED ) + - 35 * - cor0.col2 * - 88 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL - CAST ( NULL AS INTEGER ) + - 35 * - cor0.col2 * - 88 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 16 * col0 + + col1 FROM tab0 AS cor0
----
-1333
-298
-463
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2944
SELECT 40 + + col1 * cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2944
SELECT 40 + + col1 * cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2945
SELECT DISTINCT col1 DIV - 25 + - col1 * 39 + - col1 DIV col0 FROM tab0 AS cor0
----
-3360
-3553
-3788
skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT col1 / - 25 + - col1 * 39 + - col1 / col0 FROM tab0 AS cor0
----
-3360
-3553
-3788
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + ( col2 ) ) + col0 * + cor0.col1 col0 FROM tab1 cor0
----
24
583
944
query I rowsort
SELECT DISTINCT - 1 * - col0 AS col1 FROM tab2 cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2948
SELECT DISTINCT - col1 + col1 DIV + col2 + + ( 57 ) AS col2 FROM tab1 AS cor0
----
31
44
47
skipif mysql # not compatible
query I rowsort label-2948
SELECT DISTINCT - col1 + col1 / + col2 + + ( 57 ) AS col2 FROM tab1 AS cor0
----
31
44
47
query I rowsort
SELECT col1 + - 27 + + col1 FROM tab0
----
145
155
167
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2950
SELECT - col0 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2950
SELECT - col0 + - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + - 11 * - tab0.col1 AS col1 FROM tab0
----
1068
1083
979
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 * tab1.col2 col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT + col0 * + col1 * + col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT - col0 + col0 - - col1 AS col1 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-2955
SELECT DISTINCT 73 DIV - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT 73 / - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-2
-4
query I rowsort
SELECT + 18 AS col2 FROM tab0 cor0
----
18
18
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 * col2 col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL + + 16 + + col0 * 67 FROM tab0 AS cor0
----
1624
2361
5979
query I rowsort
SELECT DISTINCT 43 * 75 * + col1 AS col0 FROM tab0
----
277350
293475
312825
query I rowsort
SELECT ALL + 45 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 * - col1 col0 FROM tab1 AS cor0
----
-1157
-2314
-890
query I rowsort
SELECT + col2 * col0 + - ( - 1 ) * - col1 AS col1 FROM tab1
----
136
3638
7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-2963
SELECT - cor0.col2 * col0 - col0 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-2963
SELECT - cor0.col2 * col0 - col0 / cor0.col1 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 + + cor0.col1 col0 FROM tab0 AS cor0
----
112
117
123
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2965
SELECT ALL - CAST( + 11 AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
-1
15
2
skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL - CAST ( + 11 AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
-1
15
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2966
SELECT CAST( NULL AS SIGNED ) * + ( col1 ) + - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2966
SELECT CAST ( NULL AS INTEGER ) * + ( col1 ) + - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( + 41 ) AS col2 FROM tab2 AS cor0
----
41
41
41
query I rowsort
SELECT DISTINCT col1 * - 98 AS col2 FROM tab2 AS cor0
----
-1666
-3038
-5782
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2969
SELECT ALL - + CAST( ( - col2 ) AS SIGNED ) * + cor0.col1 + 81 AS col2 FROM tab1 AS cor0
----
1329
1485
651
skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL - + CAST ( ( - col2 ) AS INTEGER ) * + cor0.col1 + 81 AS col2 FROM tab1 AS cor0
----
1329
1485
651
query I rowsort
SELECT DISTINCT + col1 * - 45 AS col1 FROM tab0 AS cor0
----
-3870
-4095
-4365
query I rowsort
SELECT ALL + cor0.col2 * 2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - 93 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba
query I rowsort
SELECT + col2 + + col1 - col0 AS col2 FROM tab0
----
63
84
95
query I rowsort
SELECT + col0 + - 93 AS col2 FROM tab2
----
-14
-15
-86
query I rowsort
SELECT ALL + col0 + col0 AS col0 FROM tab1
----
128
160
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2976
SELECT - CAST( NULL AS SIGNED ) * + col0 + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2976
SELECT - CAST ( NULL AS INTEGER ) * + col0 + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + - 88 * col0 AS col0 FROM tab1
----
-318
-5689
-7136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2978
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT col0 + - cor0.col2 * 80 AS col2 FROM tab1 AS cor0
----
-4317
-4496
-7600
query I rowsort
SELECT DISTINCT - 49 FROM tab0, tab0 AS cor0
----
-49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2981
SELECT DISTINCT - 4 * - 63 - cor0.col0 * + CAST( NULL AS DECIMAL ) * 34 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT - 4 * - 63 - cor0.col0 * + CAST ( NULL AS REAL ) * 34 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + - ( - col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + 65 + + 4 FROM tab2 AS cor0
----
69
query I rowsort
SELECT 22 * - col2 FROM tab2 AS cor0
----
-572
-594
-836
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 35998cdc87c8b13ea047f14c9f5dc8d6
query I rowsort
SELECT ALL + 77 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT ALL - tab1.col0 - tab1.col1 * col0 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT ALL - - col1 * col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - col1 + + col2 * col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT - col0 + col2 * col2 AS col0 FROM tab0 cor0
----
-34
1065
6635
query I rowsort
SELECT cor0.col1 * - col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + col1 * - ( col2 ) * + col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT ALL 88 + col1 AS col1 FROM tab2
----
105
119
147
query I rowsort
SELECT DISTINCT - 94 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-94
query I rowsort
SELECT DISTINCT + 18 + col0 * ( ( - col1 ) ) AS col0 FROM tab2
----
-1325
-199
-4584
query I rowsort
SELECT DISTINCT - 40 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2997
SELECT ALL - col0 * CAST( NULL AS SIGNED ) - 55 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) - 55 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + + col1 * - 90 * - tab2.col1 FROM tab2
----
25972
313264
86463
query I rowsort
SELECT ALL col2 + col1 * + 41 FROM tab2
----
1298
2445
735
onlyif mysql # use DIV operator for integer division
query I rowsort label-3000
SELECT ALL + col2 DIV 99 + col2 + col1 AS col1 FROM tab2
----
55
58
85
skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL + col2 / 99 + col2 + col1 AS col1 FROM tab2
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-3001
SELECT - col1 DIV cor0.col2 + + col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3001
SELECT - col1 / cor0.col2 + + col2 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3002
SELECT DISTINCT col1 + - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
20
26
52
skipif mysql # not compatible
query I rowsort label-3002
SELECT DISTINCT col1 + - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL + - col1 * - col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 5ec52b92c3c8d78cc0a61df3fc16f18b
query I rowsort
SELECT DISTINCT + col1 * ( + col2 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - col1 * 92 AS col0 FROM tab0 AS cor0
----
-7912
-8372
-8924
query I rowsort
SELECT col1 * col1 * + col1 AS col0 FROM tab0
----
636056
753571
912673
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 19a23ac6b759f8988954bf75ba7c431a
query I rowsort
SELECT ALL col0 * + col0 * - 24 + + col1 FROM tab2
----
-1145
-145957
-149767
onlyif mysql # use DIV operator for integer division
query I rowsort label-3010
SELECT DISTINCT - col0 DIV CAST( + ( col1 ) AS SIGNED ) + - col1 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT - col0 / CAST ( + ( col1 ) AS INTEGER ) + - col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + + col0 + + 54 * - col2 AS col1 FROM tab2 AS cor0
----
-1326
-1451
-1973
query I rowsort
SELECT DISTINCT - cor0.col2 * 49 AS col0 FROM tab1 AS cor0
----
-2646
-2793
-4704
query I rowsort
SELECT col2 * + col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT + col2 * - cor0.col0 + 18 AS col1 FROM tab0 AS cor0
----
-17
-7280
-774
onlyif mysql # use DIV operator for integer division
query I rowsort label-3015
SELECT ALL - + col2 DIV 48 col1 FROM tab1 AS cor0
----
-1
-1
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL - + col2 / 48 col1 FROM tab1 AS cor0
----
-1
-1
-2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3016
SELECT DISTINCT col2 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT col2 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
query I rowsort
SELECT ALL - - 87 * - col2 AS col1 FROM tab1 AS cor0
----
-4698
-4959
-8352
onlyif mysql # use DIV operator for integer division
query I rowsort label-3018
SELECT col1 * + ( col1 * - col2 ) + - col0 + - col1 DIV + ( + col2 ) AS col2 FROM tab0 AS cor0
----
-244094
-679132
-9541
skipif mysql # not compatible
query I rowsort label-3018
SELECT col1 * + ( col1 * - col2 ) + - col0 + - col1 / + ( + col2 ) AS col2 FROM tab0 AS cor0
----
-244094
-679132
-9541
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col1 FROM tab0, tab1 cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 2815a2e064e1815ac3a10bcd8b0ab19c
query I rowsort
SELECT - col0 * 21 AS col2 FROM tab0 AS cor0
----
-1869
-504
-735
query I rowsort
SELECT DISTINCT + - col0 + - col0 * + col0 AS col1 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT ALL - col2 * + cor0.col2 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1482
-702
-756
query I rowsort
SELECT DISTINCT + 48 AS col2 FROM tab2 AS cor0
----
48
query I rowsort
SELECT ALL cor0.col1 + + cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-3025
SELECT + - col1 * col0 DIV + 21 col2 FROM tab2 AS cor0
----
-10
-219
-63
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3025
SELECT + - col1 * col0 / + 21 col2 FROM tab2 AS cor0
----
-10
-219
-63
query I rowsort
SELECT + col1 + - 1 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT + cor0.col0 + 99 FROM tab0 AS cor0
----
123
134
188
query I rowsort
SELECT col0 * col1 + - col0 FROM tab2 cor0
----
1264
210
4524
query I rowsort
SELECT + col0 + - col0 * 40 AS col2 FROM tab1 cor0
----
-117
-2496
-3120
query I rowsort
SELECT + 38 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT + tab1.col0 + col2 + 68 FROM tab1
----
125
189
244
query I rowsort
SELECT ALL 64 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3033
SELECT + col1 DIV + col2 AS col0 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-3033
SELECT + col1 / + col2 AS col0 FROM tab0
----
1
2
97
query I rowsort
SELECT DISTINCT col1 * - col2 + ( 20 + col0 * col2 ) FROM tab2
----
-628
2376
514
query I rowsort
SELECT DISTINCT col0 + col2 * + col2 + col2 AS col0 FROM tab0
----
1146
37
6895
query I rowsort
SELECT ALL - tab1.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 col1 FROM tab0 AS cor0
----
-5
-5
-5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3038
SELECT - col2 * cor0.col2 + CAST( - col2 AS SIGNED ) - - col0 FROM tab2 AS cor0
----
-1403
-624
-749
skipif mysql # not compatible
query I rowsort label-3038
SELECT - col2 * cor0.col2 + CAST ( - col2 AS INTEGER ) - - col0 FROM tab2 AS cor0
----
-1403
-624
-749
query I rowsort
SELECT DISTINCT 27 AS col0 FROM tab0, tab1 AS cor0
----
27
query I rowsort
SELECT - - col2 + - col1 - col0 FROM tab2 AS cor0
----
-11
-111
-58
query I rowsort
SELECT DISTINCT 28 AS col0 FROM tab1
----
28
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col0 AS REAL ) * col1 FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 col0 FROM tab0
----
16
query I rowsort
SELECT 91 * - col1 FROM tab1
----
-1183
-2366
-910
query I rowsort
SELECT + ( col0 + - col0 ) AS col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col1 FROM tab0
----
42
42
42
query I rowsort
SELECT ALL + 93 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT ALL + - 93 + - cor0.col2 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 6aa55ceb3d1dce47581af3ca4aad0e47
query I rowsort
SELECT DISTINCT + ( col1 + col1 ) AS col1 FROM tab1
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-3050
SELECT - 95 + - col0 DIV col1 FROM tab2 AS cor0
----
-95
-96
-99
skipif mysql # not compatible
query I rowsort label-3050
SELECT - 95 + - col0 / col1 FROM tab2 AS cor0
----
-95
-96
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) - col0 col2 FROM tab2
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-3052
SELECT ALL + col1 + - col1 DIV col0 AS col2 FROM tab2
----
17
27
59
skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL + col1 + - col1 / col0 AS col2 FROM tab2
----
17
27
59
query I rowsort
SELECT DISTINCT 91 + 85 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
176
query I rowsort
SELECT - 39 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e
onlyif mysql # use DIV operator for integer division
query I rowsort label-3055
SELECT ALL - col1 DIV ( 97 ) FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL - col1 / ( 97 ) FROM tab0
----
-1
0
0
query I rowsort
SELECT - col0 + 29 AS col0 FROM tab1
----
-35
-51
26
query I rowsort
SELECT DISTINCT - - col0 * - 81 AS col2 FROM tab0 AS cor0
----
-1944
-2835
-7209
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT col2 + 21 - + col0 FROM tab0 cor0
----
-13
14
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-3060
SELECT + col2 + cor0.col2 + - col1 DIV - col2 FROM tab0 AS cor0
----
165
68
99
skipif mysql # not compatible
query I rowsort label-3060
SELECT + col2 + cor0.col2 + - col1 / - col2 FROM tab0 AS cor0
----
165
68
99
query I rowsort
SELECT ALL 77 AS col2 FROM tab1
----
77
77
77
query I rowsort
SELECT + col2 * ( - col1 * - col1 ) FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT - cor0.col2 * - 0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - 56 + col2 AS col1 FROM tab0 AS cor0
----
-23
-55
26
query I rowsort
SELECT 71 * col0 AS col0 FROM tab2 AS cor0
----
497
5538
5609
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3066
SELECT - CAST( NULL AS SIGNED ) * + ( + col2 * col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3066
SELECT - CAST ( NULL AS INTEGER ) * + ( + col2 * col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( 97 * col2 ) - col2 FROM tab0
----
3168
7872
96
query I rowsort
SELECT DISTINCT + - 54 AS col0 FROM tab2 AS cor0
----
-54
query I rowsort
SELECT ALL - cor0.col0 + - 86 AS col1 FROM tab1 AS cor0
----
-150
-166
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3070
SELECT 94 DIV col2 + col2 AS col1 FROM tab0
----
35
83
95
skipif mysql # not compatible
query I rowsort label-3070
SELECT 94 / col2 + col2 AS col1 FROM tab0
----
35
83
95
query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 * col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT DISTINCT col2 + - col0 + 75 AS col2 FROM tab2 cor0
----
23
34
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-3073
SELECT ALL + ( col1 ) DIV col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL + ( col1 ) / col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT - - cor0.col0 - cor0.col0 * 29 AS col2 FROM tab1 AS cor0
----
-1792
-2240
-84
query I rowsort
SELECT DISTINCT - + 84 AS col2 FROM tab2 AS cor0
----
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 75 + + col0 col1 FROM tab1 cor0
----
139
155
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3077
SELECT DISTINCT col2 DIV col0 AS col1 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT col2 / col0 AS col1 FROM tab1 AS cor0
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col2 col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT + cor0.col2 + + col2 AS col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT DISTINCT + - col1 * col2 * col2 + + cor0.col0 * + col1 AS col0 FROM tab0 cor0
----
-603785
-91590
3298
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 + + cor0.col2 * - col2 col0 FROM tab0 AS cor0
----
-1068
-6703
20
query I rowsort
SELECT cor0.col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT col2 * + col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + 6 * col2 * col1 FROM tab1 AS cor0
----
3420
7488
8424
query I rowsort
SELECT DISTINCT cor0.col0 * col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + col0 + + col2 * col0 * + cor0.col2 FROM tab0 AS cor0
----
26160
598525
70
query I rowsort
SELECT DISTINCT - col2 * col0 - 95 FROM tab0 AS cor0
----
-130
-7393
-887
onlyif mysql # use DIV operator for integer division
query I rowsort label-3088
SELECT + + col0 DIV - cor0.col1 + - cor0.col0 AS col1 FROM tab2 cor0
----
-7
-79
-83
skipif mysql # not compatible
query I rowsort label-3088
SELECT + + col0 / - cor0.col1 + - cor0.col0 AS col1 FROM tab2 cor0
----
-7
-79
-83
query I rowsort
SELECT ALL - + cor0.col1 * - 51 FROM tab2 AS cor0
----
1581
3009
867
query I rowsort
SELECT DISTINCT - + col2 + 39 FROM tab2 AS cor0
----
1
12
13
query I rowsort
SELECT DISTINCT col0 + col2 * - col0 * col2 FROM tab0 cor0
----
-26112
-598347
0
query I rowsort
SELECT col0 * + 78 AS col0 FROM tab2 cor0
----
546
6084
6162
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3093
SELECT + col1 + - CAST( col0 + - col0 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3093
SELECT + col1 + - CAST ( col0 + - col0 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - - cor0.col0 + - 34 AS col0 FROM tab0 AS cor0
----
-10
1
55
query I rowsort
SELECT col2 * col2 * col2 + + cor0.col0 FROM tab2 cor0
----
17654
19690
54951
query I rowsort
SELECT ALL col1 + cor0.col2 + + col2 AS col1 FROM tab2 AS cor0
----
111
85
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3097
SELECT cor0.col1 * - CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3097
SELECT cor0.col1 * - CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT + - col2 * 60 + - cor0.col0 + - col2 AS col2 FROM tab0 AS cor0
----
-2037
-5091
-96
query I rowsort
SELECT DISTINCT 70 AS col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
70
query I rowsort
SELECT DISTINCT + tab1.col2 + - col1 AS col2 FROM tab1
----
28
47
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3101
SELECT DISTINCT + - 42 + ( cor1.col1 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT + - 42 + ( cor1.col1 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 cor1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3102
SELECT ALL - tab1.col0 DIV + col1 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL - tab1.col0 / + col1 FROM tab1
----
-6
-6
0
query I rowsort
SELECT ALL + ( col0 ) + + col2 * + tab1.col1 + + col2 AS col0 FROM tab1
----
1424
1461
691
query I rowsort
SELECT DISTINCT cor0.col1 * + 22 AS col1 FROM tab2, tab1 AS cor0
----
220
286
572
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + + tab1.col2 col1 FROM tab1
----
121
176
57
query I rowsort
SELECT - col0 * - col2 - - 64 AS col1 FROM tab1 cor0
----
226
3712
7744
query I rowsort
SELECT - - 19 + cor0.col0 * 90 FROM tab2 AS cor0
----
649
7039
7129
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 + ( col1 ) col0 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT - col2 * + cor0.col2 + ( ( col2 ) ) * + 11 * + col2 + col2 * + 9 AS col0 FROM tab2 AS cor0
----
14782
6994
7533
query I rowsort
SELECT - + col2 - - col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-86
-91
-97
query I rowsort
SELECT - col1 + col2 * + col2 + col2 AS col0 FROM tab2 AS cor0
----
1465
643
725
query I rowsort
SELECT DISTINCT - + col0 * ( + col2 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-3114
SELECT DISTINCT - - cor0.col1 DIV 11 FROM tab2 cor0
----
1
2
5
skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT - - cor0.col1 / 11 FROM tab2 cor0
----
1
2
5
query I rowsort
SELECT col2 * + 92 + - ( + col1 ) + ( col0 ) AS col2 FROM tab2 AS cor0
----
2411
2460
3558
query I rowsort
SELECT ALL - ( col1 ) + 93 + - col0 FROM tab2
----
-3
-44
55
query I rowsort
SELECT - 38 + col2 FROM tab1
----
16
19
58
query I rowsort
SELECT + + col0 + col1 * - ( col1 ) AS col1 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT ALL + 1 + + col0 AS col1 FROM tab0
----
25
36
90
query I rowsort
SELECT DISTINCT - col1 + + 95 * - col0 FROM tab1 AS cor0
----
-311
-6090
-7613
query I rowsort
SELECT ALL - ( - 27 ) - - col0 AS col2 FROM tab1 AS cor0
----
107
30
91
query I rowsort
SELECT ALL ( + 42 ) - col1 AS col1 FROM tab0 AS cor0
----
-44
-49
-55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3123
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 * col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 * col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL ( - ( col1 ) ) * + col1 + - cor0.col2 FROM tab1 AS cor0
----
-157
-265
-730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 - col1 col2 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT + + 47 * col1 AS col2 FROM tab1 cor0
----
1222
470
611
query I rowsort
SELECT + - col2 - + col0 FROM tab1 AS cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - col2 AS REAL ) FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-3129
SELECT - ( + cor0.col1 ) - col0 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-3129
SELECT - ( + cor0.col1 ) - col0 / cor0.col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL 74 * - col1 AS col2 FROM tab1 AS cor0
----
-1924
-740
-962
onlyif mysql # use DIV operator for integer division
query I rowsort label-3131
SELECT DISTINCT - ( + cor0.col0 ) DIV - col0 + + col0 FROM tab2 cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT - ( + cor0.col0 ) / - col0 + + col0 FROM tab2 cor0
----
79
8
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * ( col1 ) * col0 + - col0 col0 FROM tab0 AS cor0
----
-118860
-49560
-720900
query I rowsort
SELECT DISTINCT - col0 - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT ALL 74 * + col1 + - col2 AS col1 FROM tab0 AS cor0
----
6331
6652
7177
query I rowsort
SELECT ALL col1 + - col2 * col1 * ( - col2 ) + col1 AS col2 FROM tab0 AS cor0
----
291
612066
93826
query I rowsort
SELECT ALL + col1 * - col2 + - col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT DISTINCT + col0 * - col1 + col1 * col2 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT + 61 - col0 FROM tab1 AS cor0
----
-19
-3
58
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0 CROSS JOIN tab0, tab0 cor1
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query I rowsort
SELECT DISTINCT + tab2.col1 * + tab2.col0 + - col0 AS col2 FROM tab2
----
1264
210
4524
query I rowsort
SELECT - ( col0 ) * + 11 - + col1 AS col2 FROM tab0 AS cor0
----
-1070
-350
-482
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT - 79 * col1 FROM tab2 AS cor0
----
-1343
-2449
-4661
query I rowsort
SELECT + col2 * 13 + + col2 FROM tab0
----
1148
14
462
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 75 ) + col0 col2 FROM tab0
----
110
164
99
query I rowsort
SELECT DISTINCT + ( col2 ) + col2 * 78 FROM tab2
----
2054
2133
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-3147
SELECT DISTINCT col0 + col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT col0 + col2 / - col1 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - + 10 * col2 + - col0 FROM tab0 AS cor0
----
-354
-45
-909
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0, tab0 cor0, tab0 AS cor1
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3150
SELECT DISTINCT + tab2.col2 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT + tab2.col2 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT cor0.col1 * 21 FROM tab2 AS cor0
----
1239
357
651
query I rowsort
SELECT ALL - + col1 * + ( ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + ( col2 + col1 ) AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT - 5 FROM tab1 cor0
----
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-3155
SELECT - + col1 DIV col1 col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3155
SELECT - + col1 / col1 col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - 79 * + col2 FROM tab2
----
-2054
-2133
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 55 ) * + col1 col1 FROM tab0 AS cor0
----
4730
5005
5335
onlyif mysql # use DIV operator for integer division
query I rowsort label-3158
SELECT DISTINCT - 75 + - col2 DIV col2 FROM tab1 cor0
----
-76
skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT - 75 + - col2 / col2 FROM tab1 cor0
----
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-3159
SELECT + - cor0.col0 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3159
SELECT + - cor0.col0 / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3160
SELECT - - col0 + col2 DIV col0 FROM tab1 AS cor0
----
21
64
81
skipif mysql # not compatible
query I rowsort label-3160
SELECT - - col0 + col2 / col0 FROM tab1 AS cor0
----
21
64
81
query I rowsort
SELECT DISTINCT col0 + ( + cor0.col2 + + col0 ) FROM tab2 AS cor0
----
182
196
41
query I rowsort
SELECT - - col0 * 31 AS col2 FROM tab0 cor0
----
1085
2759
744
onlyif mysql # use DIV operator for integer division
query I rowsort label-3163
SELECT - col0 * 11 DIV + 67 AS col1 FROM tab1 AS cor0
----
-10
-13
0
skipif mysql # not compatible
query I rowsort label-3163
SELECT - col0 * 11 / + 67 AS col1 FROM tab1 AS cor0
----
-10
-13
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) + col1 * - col2 col0 FROM tab2 cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT - col1 * - 75 AS col1 FROM tab1 cor0
----
1950
750
975
query I rowsort
SELECT DISTINCT - 99 AS col2 FROM tab0, tab2 AS cor0
----
-99
query I rowsort
SELECT DISTINCT 89 + + 57 FROM tab2 AS cor0
----
146
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3168
SELECT ALL + + CAST( - 29 AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
-16
-19
-3
skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL + + CAST ( - 29 AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
-16
-19
-3
query I rowsort
SELECT - col0 + ( - 0 ) AS col2 FROM tab2
----
-7
-78
-79
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1 cor1, tab2 cor2
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614
query I rowsort
SELECT ALL - cor0.col1 * 99 + col0 + cor0.col0 FROM tab2 cor0
----
-1525
-3055
-5685
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT ALL - 66 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112
query I rowsort
SELECT DISTINCT 88 AS col1 FROM tab0
----
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) col0 FROM tab2
----
7
78
79
query I rowsort
SELECT + 17 AS col0 FROM tab1
----
17
17
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3177
SELECT col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3177
SELECT col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - cor0.col1 * + 98 + ( col0 ) FROM tab2 AS cor0
----
-1587
-3031
-5704
query I rowsort
SELECT DISTINCT - col0 - col1 * col1 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT ALL + + 97 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT 30 + + col0 AS col2 FROM tab0
----
119
54
65
query I rowsort
SELECT ALL - + 58 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0
query I rowsort
SELECT DISTINCT - col1 + + col1 AS col0 FROM tab1
----
0
query I rowsort
SELECT col2 * 20 + col1 + - col2 FROM tab0
----
116
1649
713
query I rowsort
SELECT DISTINCT + ( + col2 ) * col2 + ( + col2 ) FROM tab1
----
2970
3306
9312
query I rowsort
SELECT col1 * - 38 AS col0 FROM tab1
----
-380
-494
-988
query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3188
SELECT ( col1 ) * + col0 + 82 DIV col1 FROM tab2
----
1347
219
4603
skipif mysql # not compatible
query I rowsort label-3188
SELECT ( col1 ) * + col0 + 82 / col1 FROM tab2
----
1347
219
4603
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3189
SELECT - CAST( NULL AS SIGNED ) + + 6 * + col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3189
SELECT - CAST ( NULL AS INTEGER ) + + 6 * + col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 52 * ( - col1 * col1 ) - - col0 FROM tab1 AS cor0
----
-35149
-5136
-8708
onlyif mysql # use DIV operator for integer division
query I rowsort label-3191
SELECT DISTINCT - 67 + + col0 DIV + col2 AS col0 FROM tab0
----
-32
-66
-67
skipif mysql # not compatible
query I rowsort label-3191
SELECT DISTINCT - 67 + + col0 / + col2 AS col0 FROM tab0
----
-32
-66
-67
query I rowsort
SELECT DISTINCT + 29 + col1 AS col2 FROM tab0 AS cor0
----
115
120
126
query I rowsort
SELECT + + ( col1 ) * col2 * col2 AS col0 FROM tab2 AS cor0
----
22599
24548
39884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3194
SELECT + + col1 * + col1 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3194
SELECT + + col1 * + col1 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 23 + - col1 FROM tab2 AS cor0
----
-36
-8
6
query I rowsort
SELECT + 83 + col2 FROM tab2 AS cor0
----
109
110
121
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 62 ) col2 FROM tab2
----
62
62
62
query I rowsort
SELECT ALL + 32 * col1 FROM tab2 AS cor0
----
1888
544
992
query I rowsort
SELECT ALL - - col0 + col2 * + 55 FROM tab2 cor0
----
1492
1508
2169
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3200
SELECT col0 + + col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3200
SELECT col0 + + col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + col2 + + 95 AS col2 FROM tab0 AS cor0
----
-1
42
86
query I rowsort
SELECT DISTINCT tab0.col1 AS col2 FROM tab0, tab1, tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + tab0.col0 * - col2 + + col1 * - col2 col2 FROM tab0
----
-131
-14678
-3597
query I rowsort
SELECT DISTINCT tab0.col1 + + col0 + col1 * - col1 AS col0 FROM tab0
----
-7286
-8101
-9277
onlyif mysql # use DIV operator for integer division
query I rowsort label-3205
SELECT ALL col0 DIV col2 + - col0 AS col2 FROM tab1
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL col0 / col2 + - col0 AS col2 FROM tab1
----
-3
-63
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3206
SELECT col0 * col1 DIV col0 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-3206
SELECT col0 * col1 / col0 FROM tab2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3207
SELECT col0 * col0 DIV col1 + tab2.col2 FROM tab2
----
129
28
405
skipif mysql # not compatible
query I rowsort label-3207
SELECT col0 * col0 / col1 + tab2.col2 FROM tab2
----
129
28
405
query I rowsort
SELECT DISTINCT col1 * col0 - col2 * col2 * - col1 FROM tab2
----
22816
25891
44486
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - tab1.col2 * col2 + + col0 col2 FROM tab1
----
-2859
-3128
-9040
query I rowsort
SELECT col0 + - col0 * + col1 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL + + col0 * col0 + + col1 FROM tab1 AS cor0
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-3212
SELECT col1 + + col0 DIV - col2 col1 FROM tab0
----
62
86
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3212
SELECT col1 + + col0 / - col2 col1 FROM tab0
----
62
86
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-3213
SELECT DISTINCT - col0 DIV col1 + col2 + col2 AS col1 FROM tab0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT - col0 / col1 + col2 + col2 AS col1 FROM tab0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col0 col2 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT col2 + - tab1.col1 * - col1 AS col1 FROM tab1
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-3216
SELECT DISTINCT + + col2 DIV - col2 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT + + col2 / - col2 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT cor0.col0 * col2 - + col0 FROM tab1 AS cor0
----
159
3584
7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT col2 * + col2 - + cor0.col2 AS col0 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT ALL - cor0.col0 - - col2 AS col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT - col1 - - col0 * - col2 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-3222
SELECT DISTINCT - col0 + col2 DIV + col0 FROM tab0 AS cor0
----
-23
-35
-89
skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT - col0 + col2 / + col0 FROM tab0 AS cor0
----
-23
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3223
SELECT DISTINCT - col2 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT - col2 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT + + 88 * + col2 + col0 * + col2 FROM tab1 AS cor0
----
16128
4914
8664
query I rowsort
SELECT ALL 64 + col0 FROM tab0 AS cor0
----
153
88
99
query I rowsort
SELECT DISTINCT + 68 * - col1 FROM tab1 AS cor0
----
-1768
-680
-884
query I rowsort
SELECT ALL - cor0.col2 * col2 + - col2 * col2 AS col2 FROM tab1 AS cor0
----
-18432
-5832
-6498
query I rowsort
SELECT ALL ( col2 ) + - col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col0 * - col2 + col2 col2 FROM tab1 cor0
----
207993
737376
8802
onlyif mysql # use DIV operator for integer division
query I rowsort label-3230
SELECT DISTINCT col2 DIV cor0.col2 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1041
641
79
skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT col2 / cor0.col2 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1041
641
79
query I rowsort
SELECT ALL - col1 + col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT col1 * col0 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-3233
SELECT DISTINCT + + col1 + cor0.col2 DIV + col1 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT + + col1 + cor0.col2 / + col1 FROM tab1 AS cor0
----
15
20
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-3234
SELECT ALL col0 * - col1 DIV + col1 - col2 AS col0 FROM tab1
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL col0 * - col1 / + col1 - col2 AS col0 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT ALL - col0 * col1 + + tab0.col0 AS col2 FROM tab0
----
-2040
-3360
-8010
query III rowsort
SELECT * FROM tab1 WHERE col2 NOT BETWEEN ( NULL ) AND col1 + + col2 / - col1 + col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT - col2 + + tab1.col0 AS col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT ALL + tab1.col0 * col0 + tab1.col0 * + col1 AS col2 FROM tab1
----
4736
7440
87
query III rowsort
SELECT * FROM tab1 WHERE NOT col2 = NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - col0 + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3241
SELECT DISTINCT col1 * + col1 * - col1 + - col1 DIV + col0 AS col2 FROM tab1
----
-1000
-17584
-2197
skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT col1 * + col1 * - col1 + - col1 / + col0 AS col2 FROM tab1
----
-1000
-17584
-2197
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( - col0 + col1 * + col1 )
----
query I rowsort
SELECT ALL col0 * col1 + + col2 * - col1 FROM tab1
----
-1326
-208
70
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> col2 * - col2 + col2 + col2 * col2
----
query I rowsort
SELECT ALL cor2.col1 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT tab0.col2 + col2 * col0 AS col2 FROM tab0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col1 FROM tab0 AS cor0
----
88
88
88
query I rowsort
SELECT ALL + 46 - cor0.col0 * cor0.col0 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 81ce11a0dc2b459b4830c4c9a6f8e2b8
query I rowsort
SELECT - tab1.col1 / col1 FROM tab1 WHERE ( - col1 ) <> ( NULL )
----
query I rowsort
SELECT DISTINCT - col1 * tab1.col0 * - col1 + col2 * + col2 FROM tab1
----
22736
4944
9649
query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( col2 ) <> NULL
----
query I rowsort
SELECT ALL - col1 * - col2 * tab2.col0 + - col0 AS col2 FROM tab2
----
119574
50955
5852
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) <= NULL
----
query I rowsort
SELECT col0 * - col2 * col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( cor0.col0 * col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3256
SELECT DISTINCT + col1 DIV + col0 + - col1 col0 FROM tab1
----
-10
-13
-18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT + col1 / + col0 + - col1 col0 FROM tab1
----
-10
-13
-18
query I rowsort
SELECT ALL + col2 * + col1 + + col2 FROM tab0
----
2871
7544
98
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= ( + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3259
SELECT + col2 DIV - col1 + - col2 * col1 FROM tab0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-3259
SELECT + col2 / - col1 + - col2 * col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + col1 - col0 * - col1 AS col1 FROM tab1
----
104
1053
650
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + col1 AND col2
----
query I rowsort
SELECT ALL col1 - - col2 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL col0 * col1 + col1 AS col2 FROM tab1
----
104
1053
650
query I rowsort
SELECT ALL col0 * col1 * - col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT cor0.col1 * + col1 + - col1 * + col0 AS col2 FROM tab0 AS cor0
----
182
5332
6014
query I rowsort
SELECT DISTINCT - col2 - - col0 * - col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT ALL - cor0.col1 FROM tab0 cor0 WHERE col2 > NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT col1 BETWEEN NULL AND ( - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT + col0 * + col2 + col2 * - col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL tab0.col2 * + col1 + + col0 AS col2 FROM tab0
----
132
2862
7551
query III rowsort
SELECT * FROM tab2 WHERE + col0 BETWEEN col1 AND NULL
----
query I rowsort
SELECT DISTINCT col1 - - col2 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT 71 FROM tab1, tab1 AS cor0
----
71
query I rowsort
SELECT 46 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
onlyif mysql # use DIV operator for integer division
query I rowsort label-3275
SELECT + - 32 DIV col0 FROM tab1 AS cor0
----
-10
0
0
skipif mysql # not compatible
query I rowsort label-3275
SELECT + - 32 / col0 FROM tab1 AS cor0
----
-10
0
0
query I rowsort
SELECT 25 * col0 * + col0 - col0 AS col1 FROM tab1
----
102336
159920
222
onlyif mysql # use DIV operator for integer division
query I rowsort label-3277
SELECT col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-3277
SELECT col2 / - col1 AS col1 FROM tab2 AS cor0
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col1 FROM tab1 AS cor0
----
-11
-11
-11
onlyif mysql # use DIV operator for integer division
query I rowsort label-3279
SELECT + + 78 DIV col1 FROM tab2 AS cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-3279
SELECT + + 78 / col1 FROM tab2 AS cor0
----
1
2
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-3280
SELECT + col0 + + col0 DIV 18 AS col0 FROM tab1 AS cor0
----
3
67
84
skipif mysql # not compatible
query I rowsort label-3280
SELECT + col0 + + col0 / 18 AS col0 FROM tab1 AS cor0
----
3
67
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 * col2 * - 32 col1 FROM tab1 AS cor0
----
-145152
-153216
-258048
query I rowsort
SELECT col0 + - ( - 78 ) AS col1 FROM tab0 AS cor0
----
102
113
167
query I rowsort
SELECT DISTINCT - col2 + 86 AS col2 FROM tab2
----
48
59
60
query I rowsort
SELECT DISTINCT col0 + col2 * col2 * - tab2.col0 FROM tab2
----
-113997
-5096
-52650
query I rowsort
SELECT - col2 * 65 + col0 * col2 AS col1 FROM tab1 AS cor0
----
-3348
-57
1440
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) * col0 * - ( - col1 ) + col1 col2 FROM tab2 AS cor0
----
22848
271577
6758
onlyif mysql # use DIV operator for integer division
query I rowsort label-3287
SELECT DISTINCT - ( ( col0 ) ) DIV ( - col2 ) + + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
571
skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT - ( ( col0 ) ) / ( - col2 ) + + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
571
onlyif mysql # use DIV operator for integer division
query I rowsort label-3288
SELECT - 11 DIV 87 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3288
SELECT - 11 / 87 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3289
SELECT - 74 + col2 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
-73
-73
-73
skipif mysql # not compatible
query I rowsort label-3289
SELECT - 74 + col2 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
-73
-73
-73
query I rowsort
SELECT - col2 * + col0 + + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3291
SELECT DISTINCT + col1 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT + col1 * + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT - cor0.col1 - + col2 * + col2 * + col1 FROM tab2 AS cor0
----
-22630
-24565
-39943
query I rowsort
SELECT - 19 * + ( col1 ) * - col1 + col0 FROM tab1 AS cor0
----
12847
1964
3291
query I rowsort
SELECT DISTINCT + + col2 * cor0.col1 - - col2 FROM tab0 AS cor0
----
2871
7544
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 * 34 col0 FROM tab2 cor0
----
2448
2448
2448
query I rowsort
SELECT ALL 5 + - 36 * col2 FROM tab1 cor0
----
-1939
-2047
-3451
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3297
SELECT ALL - CAST( col2 AS SIGNED ) - col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66
skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL - CAST ( col2 AS INTEGER ) - col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT + + col2 * col0 + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT + + 83 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-7138
-7553
-8051
query I rowsort
SELECT DISTINCT + cor1.col1 AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
17
31
59
query I rowsort
SELECT + col1 * + ( 56 ) FROM tab1
----
1456
560
728
onlyif mysql # use DIV operator for integer division
query I rowsort label-3302
SELECT ALL 55 DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL 55 / - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - 30 FROM tab0 AS cor0
----
-30
-30
-30
query I rowsort
SELECT DISTINCT - ( - col1 ) + + col0 * col2 AS col0 FROM tab0
----
132
7389
878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3305
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-3305
SELECT + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3306
SELECT DISTINCT + + 39 DIV + col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT + + 39 / + col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - col0 + cor0.col1 * col1 * col0 FROM tab0 cor0
----
177480
329280
736920
query I rowsort
SELECT + 1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT + ( 72 * - col1 + - col2 ) AS col0 FROM tab1
----
-1032
-1926
-777
query I rowsort
SELECT ALL - 90 + col1 * + col0 * col1 FROM tab0
----
177414
329225
736919
query I rowsort
SELECT DISTINCT + 66 AS col1 FROM tab1, tab0, tab2 AS cor0
----
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3312
SELECT - CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3312
SELECT - CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT + col1 * + col2 + col2 * col2 FROM tab2 cor0
----
1566
2090
2210
query I rowsort
SELECT ALL col1 * 36 AS col1 FROM tab0 AS cor0
----
3096
3276
3492
query I rowsort
SELECT + col2 + - ( - 95 ) * - col1 FROM tab2 AS cor0
----
-1577
-2918
-5579
query I rowsort
SELECT DISTINCT - - col2 * - 71 AS col2 FROM tab0 AS cor0
----
-2343
-5822
-71
query I rowsort
SELECT col1 + + col0 - 65 AS col0 FROM tab1 AS cor0
----
-36
28
9
query I rowsort
SELECT + ( - col0 ) + - col0 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT + col0 * + col0 - ( + col1 ) * col0 AS col2 FROM tab1
----
-69
3456
5360
query I rowsort
SELECT DISTINCT 27 * + tab0.col1 FROM tab0
----
2322
2457
2619
query I rowsort
SELECT DISTINCT ( - col2 + - col0 ) * 11 * - col0 AS col2 FROM tab0
----
13860
15048
167409
query I rowsort
SELECT DISTINCT 27 + + tab0.col2 AS col0 FROM tab0, tab2, tab2 AS cor0
----
109
28
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-3323
SELECT + col0 * - CAST( - col0 AS SIGNED ) + tab0.col1 + + col1 DIV col0 AS col2 FROM tab0
----
1324
665
8013
skipif mysql # not compatible
query I rowsort label-3323
SELECT + col0 * - CAST ( - col0 AS INTEGER ) + tab0.col1 + + col1 / col0 AS col2 FROM tab0
----
1324
665
8013
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 + - col0 col0 FROM tab0
----
86
91
97
query I rowsort
SELECT - cor0.col1 + ( col2 ) * - col1 FROM tab2 cor0
----
-1593
-663
-868
onlyif mysql # use DIV operator for integer division
query I rowsort label-3326
SELECT DISTINCT + col0 + - col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT + col0 + - col2 / + col2 AS col0 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT ALL col1 * ( - col1 ) * col2 - col2 AS col1 FROM tab0 AS cor0
----
-244101
-679124
-9410
query I rowsort
SELECT DISTINCT + - col1 + col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT ALL - col2 + - col1 * + ( col0 ) - + col0 FROM tab2 AS cor0
----
-1460
-251
-4706
query I rowsort
SELECT + - col2 + - ( col0 ) * + col1 FROM tab0 cor0
----
-2097
-3396
-8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-3331
SELECT ALL - - col0 DIV + col0 - ( + col2 + - col0 ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
-296
35
575
skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL - - col0 / + col0 - ( + col2 + - col0 ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
-296
35
575
query I rowsort
SELECT col0 * + col1 + col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT - + col0 + ( col0 ) * col2 * + col0 FROM tab2 AS cor0
----
1316
158106
237079
query I rowsort
SELECT + + col1 * + col2 + - col1 AS col1 FROM tab2 cor0
----
1475
629
806
query I rowsort
SELECT col0 * - 83 - col1 AS col0 FROM tab0 AS cor0
----
-2078
-3002
-7478
query I rowsort
SELECT + cor1.col1 + + cor1.col0 * + ( + 37 ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f790a60e7298925a11fa3256a4d97459
query I rowsort
SELECT DISTINCT - col0 + + col0 * 77 FROM tab1 cor0
----
228
4864
6080
query I rowsort
SELECT DISTINCT + col0 + ( - col1 ) * - col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT + col1 * + col2 + + col2 * col2 AS col1 FROM tab0
----
14186
3927
98
query I rowsort
SELECT col2 + tab1.col0 + 77 FROM tab1
----
134
198
253
query I rowsort
SELECT col1 + + ( + col0 * col1 ) AS col0 FROM tab2
----
1360
248
4661
query I rowsort
SELECT ALL col2 + col1 * + col0 * - col2 FROM tab2 AS cor0
----
-119626
-50996
-5832
query I rowsort
SELECT - - tab0.col0 * - 58 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 4bf87bce71cedcb6ace45c48d5d2e576
query I rowsort
SELECT DISTINCT col2 * 61 + - col0 FROM tab2
----
1508
1640
2239
query I rowsort
SELECT - 33 FROM tab1, tab2 cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03
query I rowsort
SELECT - ( + cor0.col1 ) FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT + col2 + - 80 + col0 AS col1 FROM tab0
----
-23
-44
91
query I rowsort
SELECT - col1 * + col0 * - col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT col2 * - 82 * + col0 FROM tab0
----
-2870
-598436
-64944
onlyif mysql # use DIV operator for integer division
query I rowsort label-3350
SELECT ALL - 33 DIV - 89 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL - 33 / - 89 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT + + 82 + col1 + - col1 * col2 FROM tab1 AS cor0
----
-1153
-1296
-478
onlyif mysql # use DIV operator for integer division
query I rowsort label-3352
SELECT DISTINCT - ( col0 ) + - col2 + - col1 DIV col0 FROM tab0 AS cor0
----
-172
-38
-60
skipif mysql # not compatible
query I rowsort label-3352
SELECT DISTINCT - ( col0 ) + - col2 + - col1 / col0 FROM tab0 AS cor0
----
-172
-38
-60
query I rowsort
SELECT + col1 * col0 + col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT + + cor0.col2 * col0 + - col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT + 35 + - col0 AS col0 FROM tab2 AS cor0
----
-43
-44
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - ( col0 ) * ( 79 ) + - cor0.col0 * 27 FROM tab0 AS cor0
----
-2544
-3710
-9434
query I rowsort
SELECT tab1.col2 * + col0 * + 46 AS col2 FROM tab1
----
167808
353280
7452
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3359
SELECT 88 * - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3359
SELECT 88 * - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + col2 * + col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT - - col1 + + cor0.col1 + ( col1 ) * col1 FROM tab2 AS cor0
----
1023
323
3599
query I rowsort
SELECT - col0 * col0 * - col0 AS col1 FROM tab2
----
343
474552
493039
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3363
SELECT col2 - - CAST( - col1 * col2 AS SIGNED ) AS col0 FROM tab1
----
-1152
-1350
-513
skipif mysql # not compatible
query I rowsort label-3363
SELECT col2 - - CAST ( - col1 * col2 AS INTEGER ) AS col0 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT + - col1 * + ( 61 ) AS col1 FROM tab0 cor0
----
-5246
-5551
-5917
query I rowsort
SELECT - col0 * 78 FROM tab2 AS cor0
----
-546
-6084
-6162
query I rowsort
SELECT col1 + + ( + col1 ) * col0 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3367
SELECT - col1 + + CAST( NULL AS DECIMAL ) + - col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3367
SELECT - col1 + + CAST ( NULL AS REAL ) + - col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3368
SELECT ALL + CAST( + col1 AS SIGNED ) + col2 FROM tab1 AS cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL + CAST ( + col1 AS INTEGER ) + col2 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 + + 13 * + col1 col0 FROM tab0 AS cor0
----
1125
1190
1268
onlyif mysql # use DIV operator for integer division
query I rowsort label-3370
SELECT + + col1 DIV col0 + + col0 FROM tab2 AS cor0
----
11
78
79
skipif mysql # not compatible
query I rowsort label-3370
SELECT + + col1 / col0 + + col0 FROM tab2 AS cor0
----
11
78
79
query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 * col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-3372
SELECT DISTINCT 18 DIV + cor0.col0 col2 FROM tab2 AS cor0
----
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT 18 / + cor0.col0 col2 FROM tab2 AS cor0
----
0
2
query I rowsort
SELECT ALL + 74 + col0 FROM tab0 cor0
----
109
163
98
query I rowsort
SELECT + ( + col0 ) - col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - col2 - - 63 FROM tab1 AS cor0
----
-33
6
9
query I rowsort
SELECT - col2 + - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT + 93 + - col1 FROM tab0 AS cor0
----
-4
2
7
query I rowsort
SELECT + 18 * col0 AS col2 FROM tab2
----
126
1404
1422
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT ( - 15 + + tab0.col2 ) * - CAST ( + 90 AS REAL ) * - col2 AS col1 FROM tab0
----
-1260
494460
53460
query I rowsort
SELECT DISTINCT - 95 FROM tab0, tab1 AS cor0
----
-95
query I rowsort
SELECT DISTINCT + 40 AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
40
query I rowsort
SELECT ALL + 44 * col2 + - col0 AS col2 FROM tab0
----
1428
3519
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 * 30 - col2 col0 FROM tab0 AS cor0
----
-2341
-2373
-2422
query I rowsort
SELECT DISTINCT + col0 * 91 - col1 AS col1 FROM tab1 AS cor0
----
247
5814
7267
query I rowsort
SELECT DISTINCT col0 + - cor0.col0 * - col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ( col1 ) * col1 * ( cor0.col1 ) + col1 FROM tab0 AS cor0
----
636142
753662
912770
query I rowsort
SELECT ALL - - col0 * 92 + - col0 AS col1 FROM tab1 cor0
----
273
5824
7280
query I rowsort
SELECT - + ( col1 ) * + cor0.col1 + - col1 AS col1 FROM tab1 AS cor0
----
-110
-182
-702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3389
SELECT DISTINCT CAST( col1 AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT CAST ( col1 AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT col1 - cor0.col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - 19 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1121
-323
-589
query I rowsort
SELECT DISTINCT - - ( col2 ) * col1 + col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) + col1 * + ( col2 ) col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT 74 AS col1 FROM tab1 AS cor0
----
74
query I rowsort
SELECT ALL col0 * - col1 + col1 + col1 AS col2 FROM tab0 AS cor0
----
-1892
-3201
-7917
query I rowsort
SELECT + col2 - - ( - col0 ) FROM tab1
----
-7
16
51
query I rowsort
SELECT ALL - col1 * + ( 14 ) FROM tab0
----
-1204
-1274
-1358
query I rowsort
SELECT DISTINCT - col2 * + tab2.col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT col1 * 93 FROM tab1
----
1209
2418
930
query I rowsort
SELECT DISTINCT 17 + col2 AS col0 FROM tab2
----
43
44
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 + - 56 col1 FROM tab2 AS cor0
----
-18
-29
-30
query I rowsort
SELECT col1 + cor0.col1 * - cor0.col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT - - col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL col0 * cor0.col0 + col1 AS col0 FROM tab1 cor0
----
35
4106
6413
query I rowsort
SELECT ALL + ( - 91 ) + - col1 FROM tab1 AS cor0
----
-101
-104
-117
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 + + col1 col1 FROM tab1
----
106
90
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3407
SELECT - CAST( col2 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-3407
SELECT - CAST ( col2 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT ( + 30 ) FROM tab1, tab2 AS cor0, tab0 AS cor1
----
30
query I rowsort
SELECT col1 * col0 - col2 FROM tab2 AS cor0
----
1305
190
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + cor0.col1 ) + - cor0.col1 col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT col1 - + col2 * 27 FROM tab1
----
-1432
-1529
-2579
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595
query I rowsort
SELECT + col0 - + col1 * col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT - - col2 * + col2 * ( cor0.col2 ) + ( - col0 ) FROM tab1 AS cor0
----
157461
185129
884656
query I rowsort
SELECT - tab2.col0 + - col0 * tab2.col2 - - col1 AS col1 FROM tab2
----
-165
-2047
-3064
query I rowsort
SELECT ALL tab1.col1 AS col2 FROM tab1, tab2, tab0 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT col1 * + col0 - + 20 * + col0 AS col1 FROM tab0 cor0
----
1584
2695
6319
query I rowsort
SELECT DISTINCT col2 - 37 FROM tab0 AS cor0
----
-36
-4
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-3419
SELECT ALL - cor0.col0 + + 57 DIV - col1 col0 FROM tab2 AS cor0
----
-78
-8
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL - cor0.col0 + + 57 / - col1 col0 FROM tab2 AS cor0
----
-78
-8
-82
query I rowsort
SELECT + + cor0.col1 * 41 * + col1 + col2 FROM tab0 AS cor0
----
303269
339603
385770
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 + 80 col0 FROM tab1, tab0 cor0
----
9 values hashing to a56f9de6db40b055288f12121bc47f66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * ( col1 ) * - col2 col1 FROM tab2
----
-10944
-25920
-90480
query I rowsort
SELECT - 88 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32
query I rowsort
SELECT col0 * cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
343
474552
493039
query I rowsort
SELECT + + col0 - + col1 AS col0 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT - col2 + 8 * + cor0.col1 FROM tab0 AS cor0
----
646
655
775
query I rowsort
SELECT col0 + 37 AS col1 FROM tab2 AS cor0
----
115
116
44
query I rowsort
SELECT + + col2 + 29 FROM tab0 AS cor0
----
111
30
62
query I rowsort
SELECT - col1 * + col1 - col2 AS col1 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT DISTINCT + + col0 + col2 * - col1 + - col2 FROM tab2 AS cor0
----
-1482
-605
-857
query I rowsort
SELECT col1 + 62 FROM tab0 AS cor0
----
148
153
159
onlyif mysql # use DIV operator for integer division
query I rowsort label-3432
SELECT ALL + col1 + + col0 * col1 DIV - col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL + col1 + + col0 * col1 / - col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col0 + 43 FROM tab0 cor0
----
132
67
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3434
SELECT col0 DIV 4 + + 12 DIV + col1 FROM tab2 AS cor0
----
1
19
19
skipif mysql # not compatible
query I rowsort label-3434
SELECT col0 / 4 + + 12 / + col1 FROM tab2 AS cor0
----
1
19
19
query I rowsort
SELECT DISTINCT col2 + 17 FROM tab0 AS cor0
----
18
50
99
query I rowsort
SELECT + - col2 - - 6 FROM tab2 AS cor0
----
-20
-21
-32
query I rowsort
SELECT ALL cor0.col0 * + col0 AS col1 FROM tab1 cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * + 82 col2 FROM tab0 AS cor0
----
2706
6724
82
query I rowsort
SELECT DISTINCT + + col2 * - cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + 76 * + 1 FROM tab1 AS cor0
----
76
76
76
query I rowsort
SELECT + cor0.col0 + - 99 * col1 * col2 FROM tab0 AS cor0
----
-280938
-738649
-9568
query I rowsort
SELECT 73 + + ( + cor0.col1 ) FROM tab2 AS cor0
----
104
132
90
query I rowsort
SELECT - col1 - col2 * + col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT - - 17 AS col2 FROM tab2 AS cor0
----
17
query I rowsort
SELECT ALL - col2 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT ALL - - col2 * + col1 AS col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT - cor0.col0 + col2 AS col2 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT ALL + 43 * + col0 + 9 * + col1 FROM tab2 AS cor0
----
3550
3885
580
query I rowsort
SELECT DISTINCT + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-3450
SELECT + col1 * col0 DIV ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
1
10
11
skipif mysql # not compatible
query I rowsort label-3450
SELECT + col1 * col0 / ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
1
10
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-3451
SELECT DISTINCT + col1 + + col0 DIV - col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT + col1 + + col0 / - col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3452
SELECT ALL + col1 + - col2 DIV col1 AS col0 FROM tab2 AS cor0
----
15
31
59
skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL + col1 + - col2 / col1 AS col0 FROM tab2 AS cor0
----
15
31
59
query I rowsort
SELECT DISTINCT + col1 + 17 FROM tab2 AS cor0
----
34
48
76
query I rowsort
SELECT ALL - - col0 + col1 * - ( col0 ) AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL + col1 * - 59 FROM tab2 AS cor0
----
-1003
-1829
-3481
query I rowsort
SELECT ALL col1 * + col1 * - 21 FROM tab0
----
-155316
-173901
-197589
query I rowsort
SELECT 68 + - tab2.col2 FROM tab2
----
30
41
42
query I rowsort
SELECT - tab1.col2 + col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT col1 - col2 * tab1.col0 FROM tab1
----
-136
-3638
-7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col0 FROM tab2
----
-18
-18
-18
query I rowsort
SELECT DISTINCT 25 * col0 + col0 AS col1 FROM tab1 cor0
----
1664
2080
78
query I rowsort
SELECT 9 + col2 AS col0 FROM tab2 AS cor0
----
35
36
47
query I rowsort
SELECT ALL 56 * + cor0.col1 FROM tab2 AS cor0
----
1736
3304
952
query I rowsort
SELECT ALL - 21 AS col0 FROM tab1 AS cor0
----
-21
-21
-21
query I rowsort
SELECT + ( + col1 * col1 ) FROM tab1
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3466
SELECT + CAST( col2 AS SIGNED ) * col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-3466
SELECT + CAST ( col2 AS INTEGER ) * col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + + ( - col0 ) * col1 + ( cor0.col2 ) FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - - 86 AS col1 FROM tab0 AS cor0
----
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-3469
SELECT ALL - tab1.col1 + col2 * 23 DIV + col0 FROM tab1
----
10
14
388
skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL - tab1.col1 + col2 * 23 / + col0 FROM tab1
----
10
14
388
query I rowsort
SELECT + - cor0.col0 * cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT ALL 31 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT ALL - tab2.col2 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 24 * col0 col0 FROM tab1 AS cor0
----
-1536
-1920
-72
query I rowsort
SELECT - 42 * col1 AS col1 FROM tab2 AS cor0
----
-1302
-2478
-714
query I rowsort
SELECT + ( + 10 ) FROM tab2
----
10
10
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3476
SELECT CAST( 41 AS SIGNED ) FROM tab1
----
41
41
41
skipif mysql # not compatible
query I rowsort label-3476
SELECT CAST ( 41 AS INTEGER ) FROM tab1
----
41
41
41
query I rowsort
SELECT ALL - 59 AS col1 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to 2d947a91062cb6f04dae4c2cd8f99509
query I rowsort
SELECT DISTINCT + col1 + - col1 - ( + col0 ) * cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL + - col1 * 58 * + col0 + - col0 AS col0 FROM tab2 AS cor0
----
-12593
-266994
-77973
query I rowsort
SELECT + col0 * + 52 + 72 * col2 AS col2 FROM tab0 AS cor0
----
10532
1892
3624
query I rowsort
SELECT - cor0.col2 + col2 * + 0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col1 * + ( + col1 ) FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3483
SELECT ALL col2 DIV - 94 + col2 - col1 FROM tab1 cor0
----
28
47
82
skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL col2 / - 94 + col2 - col1 FROM tab1 cor0
----
28
47
82
query I rowsort
SELECT ALL + col1 + 2 FROM tab2 cor0
----
19
33
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-3485
SELECT - col0 DIV + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-3485
SELECT - col0 / + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - col1 + 37 FROM tab2 cor0
----
-22
20
6
query I rowsort
SELECT tab0.col1 * col1 + + ( 52 ) + col2 FROM tab0
----
7481
8415
9462
onlyif mysql # use DIV operator for integer division
query I rowsort label-3488
SELECT DISTINCT col0 DIV - col1 + col0 col1 FROM tab1
----
3
58
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT col0 / - col1 + col0 col1 FROM tab1
----
3
58
74
query I rowsort
SELECT - ( col2 ) + col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT + tab0.col1 * + col2 + + col0 + + 66 * col0 AS col2 FROM tab0
----
13425
2442
4446
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3491
SELECT DISTINCT col2 - col2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-3491
SELECT DISTINCT col2 - col2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3492
SELECT DISTINCT 0 - col1 DIV ( - col1 ) AS col1 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT 0 - col1 / ( - col1 ) AS col1 FROM tab1
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3493
SELECT ALL tab1.col2 * col2 + 43 DIV + col1 - col1 FROM tab1
----
2891
3243
9206
skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL tab1.col2 * col2 + 43 / + col1 - col1 FROM tab1
----
2891
3243
9206
query I rowsort
SELECT 10 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3495
SELECT - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3495
SELECT - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + + 58 FROM tab0
----
144
149
155
onlyif mysql # use DIV operator for integer division
query I rowsort label-3497
SELECT ALL - - col1 + - col2 DIV - col1 + col0 AS col2 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL - - col1 + - col2 / - col1 + col0 AS col2 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-3498
SELECT col2 + + 67 DIV col0 FROM tab1 AS cor0
----
58
76
96
skipif mysql # not compatible
query I rowsort label-3498
SELECT col2 + + 67 / col0 FROM tab1 AS cor0
----
58
76
96
query I rowsort
SELECT + cor0.col2 + 35 FROM tab0 AS cor0
----
117
36
68
query I rowsort
SELECT ALL col0 * + 25 FROM tab1 AS cor0
----
1600
2000
75
query I rowsort
SELECT DISTINCT - + col1 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3502
SELECT ALL + cor0.col2 * CAST( col0 * col0 AS SIGNED ) + + 8 FROM tab0 AS cor0
----
1233
19016
649530
skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL + cor0.col2 * CAST ( col0 * col0 AS INTEGER ) + + 8 FROM tab0 AS cor0
----
1233
19016
649530
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3503
SELECT DISTINCT + col0 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT + col0 + - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col1 ) col0 FROM tab0 cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3505
SELECT - CAST( cor0.col1 AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-3505
SELECT - CAST ( cor0.col1 AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - 4 * - 79 FROM tab2
----
316
316
316
query I rowsort
SELECT col2 + + col0 * col0 AS col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT + + 70 * + 8 + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-16
-665
-7361
query I rowsort
SELECT - cor0.col0 * col0 + col0 * ( ( col0 ) ) AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3510
SELECT col2 * ( + col0 ) * CAST( NULL AS SIGNED ) + 1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3510
SELECT col2 * ( + col0 ) * CAST ( NULL AS INTEGER ) + 1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + 23 AS REAL ) FROM tab0 AS cor0
----
23
23
23
query I rowsort
SELECT - ( col2 ) * - col0 + col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT - 80 * 62 + col0 AS col1 FROM tab0 AS cor0
----
-4871
-4925
-4936
query I rowsort
SELECT DISTINCT - + 39 + + col2 FROM tab0 AS cor0
----
-38
-6
43
query I rowsort
SELECT + - ( - cor0.col1 ) * - col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-3516
SELECT + col2 DIV cor0.col1 AS col2 FROM tab1 cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-3516
SELECT + col2 / cor0.col1 AS col2 FROM tab1 cor0
----
2
5
7
query I rowsort
SELECT + + 42 * + col0 + - 87 AS col1 FROM tab0 AS cor0
----
1383
3651
921
query I rowsort
SELECT ALL - col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 * + col2 col0 FROM tab1 AS cor0
----
-1440
-810
-855
query I rowsort
SELECT ALL - 64 * - col2 * - col2 AS col1 FROM tab2 AS cor0
----
-43264
-46656
-92416
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3521
SELECT col1 + CAST( col1 AS SIGNED ) * - col0 - - col2 AS col0 FROM tab0 AS cor0
----
-1945
-3297
-7926
skipif mysql # not compatible
query I rowsort label-3521
SELECT col1 + CAST ( col1 AS INTEGER ) * - col0 - - col2 AS col0 FROM tab0 AS cor0
----
-1945
-3297
-7926
query I rowsort
SELECT + + cor0.col1 + 48 AS col1 FROM tab2 AS cor0
----
107
65
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-3523
SELECT + - col2 DIV - ( + col1 ) + + cor0.col1 - - col0 AS col2 FROM tab2 AS cor0
----
137
38
98
skipif mysql # not compatible
query I rowsort label-3523
SELECT + - col2 / - ( + col1 ) + + cor0.col1 - - col0 AS col2 FROM tab2 AS cor0
----
137
38
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3524
SELECT + - col0 + CAST( col2 AS SIGNED ) * cor0.col2 - ( col0 ) AS col2 FROM tab0 AS cor0
----
-69
1041
6546
skipif mysql # not compatible
query I rowsort label-3524
SELECT + - col0 + CAST ( col2 AS INTEGER ) * cor0.col2 - ( col0 ) AS col2 FROM tab0 AS cor0
----
-69
1041
6546
query I rowsort
SELECT - - col2 * 62 FROM tab0 AS cor0
----
2046
5084
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - cor0.col2 + - col1 col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT - col1 * - col2 * + 29 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
16587
36288
40770
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 - + 32 col0 FROM tab1 cor0
----
-1280
-1436
-602
query I rowsort
SELECT 11 + col2 FROM tab0 AS cor0
----
12
44
93
query I rowsort
SELECT - - 96 * - col1 FROM tab2 AS cor0
----
-1632
-2976
-5664
onlyif mysql # use DIV operator for integer division
query I rowsort label-3531
SELECT + col2 + col0 DIV - CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
54
56
96
skipif mysql # not compatible
query I rowsort label-3531
SELECT + col2 + col0 / - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
54
56
96
query I rowsort
SELECT + + cor0.col1 - + col2 * col0 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3533
SELECT ALL + cor0.col0 * col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL + cor0.col0 * col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 26 * col2 * col1 AS col0 FROM tab2
----
16796
21762
39884
query I rowsort
SELECT ALL ( - 54 * col1 ) AS col1 FROM tab1
----
-1404
-540
-702
onlyif mysql # use DIV operator for integer division
query I rowsort label-3536
SELECT ALL - col2 + - col2 DIV 41 + 36 FROM tab0 AS cor0
----
-48
3
35
skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL - col2 + - col2 / 41 + 36 FROM tab0 AS cor0
----
-48
3
35
query I rowsort
SELECT - col2 * - cor0.col0 + + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL col2 - + col1 AS col0 FROM tab1 cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3539
SELECT ALL - 43 * col1 DIV col2 + col0 col1 FROM tab1 AS cor0
----
-17
57
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL - 43 * col1 / col2 + col0 col1 FROM tab1 AS cor0
----
-17
57
75
query I rowsort
SELECT ALL - 68 * - col0 AS col0 FROM tab0 AS cor0
----
1632
2380
6052
query I rowsort
SELECT + col0 * 77 + - 21 + cor0.col2 FROM tab1 AS cor0
----
264
4964
6235
query I rowsort
SELECT ALL - cor0.col0 + + col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT - col2 + - col0 * + 17 FROM tab0
----
-1595
-441
-596
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 6dfb18fb846f922ba9ea60ce42b86fb0
query I rowsort
SELECT DISTINCT col2 - + col2 AS col1 FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT - col0 + - col0 * + col2 AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - cor0.col0 col2 FROM tab0 AS cor0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 28 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
28
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( ( col2 ) AS REAL ) - + tab1.col1 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT DISTINCT 66 - 92 FROM tab2
----
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + ( - col0 ) * - col2 ) col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + col2 * - 15 AS col1 FROM tab0 AS cor0
----
-1230
-15
-495
query I rowsort
SELECT + + col0 * + 20 AS col2 FROM tab1 cor0
----
1280
1600
60
query I rowsort
SELECT + 9 - col0 AS col1 FROM tab1
----
-55
-71
6
query I rowsort
SELECT ALL ( ( - col1 ) ) FROM tab1
----
-10
-13
-26
query I rowsort
SELECT col1 * col0 * col1 + - col2 FROM tab2
----
22793
271492
6700
query I rowsort
SELECT DISTINCT - col0 * col1 + + 71 * + tab2.col1 AS col2 FROM tab2
----
-136
-413
1984
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab0, tab1, tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + col0 + tab0.col1 * ( 74 ) * - col2 FROM tab0
----
-209988
-552099
-7143
query I rowsort
SELECT DISTINCT 38 + - col2 AS col2 FROM tab0
----
-44
37
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 col2 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT ALL + 34 + cor0.col1 - 9 FROM tab0 AS cor0
----
111
116
122
query I rowsort
SELECT - + col0 * col0 + ( - cor0.col1 ) + + col0 FROM tab0 AS cor0
----
-1287
-638
-7923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3564
SELECT DISTINCT ( + col0 ) - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT ( + col0 ) - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - tab1.col0 * 68 AS col0 FROM tab1
----
-204
-4352
-5440
query I rowsort
SELECT DISTINCT - 67 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-67
onlyif mysql # use DIV operator for integer division
query I rowsort label-3567
SELECT DISTINCT + col2 DIV col1 + + col0 + - tab0.col2 AS col1 FROM tab0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-3567
SELECT DISTINCT + col2 / col1 + + col0 + - tab0.col2 AS col1 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT - col2 + col1 + col0 FROM tab1
----
-25
-3
17
query I rowsort
SELECT - col0 + tab2.col0 * - col2 FROM tab2
----
-196
-2106
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-3570
SELECT ALL - col2 DIV cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - col2 / cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3571
SELECT col0 DIV - col1 AS col0 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-3571
SELECT col0 / - col1 AS col0 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT - col1 + ( cor0.col1 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col1 * 88 + col2 FROM tab0 AS cor0
----
7601
8090
8537
query I rowsort
SELECT ALL + ( col0 ) + - col1 * col2 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3575
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 57 * + col1 / - col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 57 * + col1 / - col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col0 * col0 + + col1 FROM tab1 cor0
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-3577
SELECT ALL - ( + 16 ) DIV col1 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL - ( + 16 ) / col1 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3578
SELECT - 85 DIV - col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3578
SELECT - 85 / - col2 FROM tab1 AS cor0
----
0
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3579
SELECT ALL + + 80 DIV + cor0.col1 FROM tab2 AS cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL + + 80 / + cor0.col1 FROM tab2 AS cor0
----
1
2
4
query I rowsort
SELECT - col0 * 47 AS col1 FROM tab1 cor0
----
-141
-3008
-3760
query I rowsort
SELECT DISTINCT + ( - 97 ) FROM tab2 AS cor0
----
-97
query I rowsort
SELECT DISTINCT - + col0 + - col0 * col0 FROM tab2 cor0
----
-56
-6162
-6320
query I rowsort
SELECT DISTINCT - - ( ( - col1 ) ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + + 97 + col1 FROM tab2 AS cor0
----
114
128
156
query I rowsort
SELECT + cor0.col2 * + col1 + + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT - col1 * + col0 + col2 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT col2 * col2 + + col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT ALL - + col0 * - col1 - cor0.col1 * + col1 AS col0 FROM tab1 AS cor0
----
-598
540
871
query I rowsort
SELECT + cor0.col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + cor1.col2 * cor1.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7623ebe74018211e6a4da91fc8c37d6d
query I rowsort
SELECT ALL - col2 + - cor0.col0 * cor0.col1 * col1 FROM tab2 AS cor0
----
-22869
-271544
-6754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 col0 FROM tab0
----
68
68
68
query I rowsort
SELECT DISTINCT - - col0 + cor0.col1 * col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - col0 + ( + col0 ) * - col1 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT DISTINCT + ( - col0 ) * cor0.col1 + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3596
SELECT - + CAST( NULL AS SIGNED ) + col0 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3596
SELECT - + CAST ( NULL AS INTEGER ) + col0 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + + col0 * col0 AS col0 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT 53 - col1 FROM tab0 AS cor0
----
-33
-38
-44
query I rowsort
SELECT + col1 + + col0 - + col0 * col2 AS col2 FROM tab2 AS cor0
----
-151
-1891
-2906
query I rowsort
SELECT col0 + - cor0.col0 * - col2 FROM tab2 cor0
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-3601
SELECT - - col0 DIV - col2 + col1 FROM tab1 AS cor0
----
13
26
9
skipif mysql # not compatible
query I rowsort label-3601
SELECT - - col0 / - col2 + col1 FROM tab1 AS cor0
----
13
26
9
query I rowsort
SELECT DISTINCT tab1.col1 * 26 + + col2 AS col1 FROM tab1
----
317
434
730
query I rowsort
SELECT - ( + 68 ) * col0 + col1 AS col2 FROM tab2
----
-445
-5245
-5355
query I rowsort
SELECT col0 + col2 + + col2 FROM tab0
----
253
37
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 90 col1 FROM tab2
----
-52
-63
-64
query I rowsort
SELECT ( + 93 ) * col1 + col0 + col2 AS col2 FROM tab0
----
8055
8634
9057
onlyif mysql # use DIV operator for integer division
query I rowsort label-3607
SELECT col1 * col2 DIV col1 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-3607
SELECT col1 * col2 / col1 FROM tab2
----
26
27
38
query I rowsort
SELECT - 95 + 34 AS col2 FROM tab0
----
-61
-61
-61
query I rowsort
SELECT DISTINCT col2 + - col2 * - col2 AS col2 FROM tab1
----
2970
3306
9312
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3611
SELECT col2 * col1 DIV col2 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3611
SELECT col2 * col1 / col2 FROM tab0
----
86
91
97
query I rowsort
SELECT col0 + - col0 * - col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT + col0 + col1 + - col1 AS col2 FROM tab1 AS cor0
----
3
64
80
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL + col0 + col1 * col1 - col2 AS col1 FROM tab1 AS cor0
----
107
153
625
query I rowsort
SELECT col2 * + col1 + col0 * col1 AS col0 FROM tab0
----
15561
3492
4902
query I rowsort
SELECT ALL tab1.col1 + col2 AS col2 FROM tab1 WHERE + col0 * col1 * col2 IN ( col1 * + tab1.col2 + col0 )
----
query I rowsort
SELECT - col0 * col2 FROM tab1 WHERE col1 + col2 * col0 < ( + col1 )
----
query I rowsort
SELECT - col0 * - tab2.col0 AS col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT + col1 FROM tab2 WHERE - tab2.col2 BETWEEN NULL AND col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + col1 col0 FROM tab1
----
1261
1430
580
query I rowsort
SELECT - col1 + col1 + + col2 FROM tab1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * tab1.col1 + - col1 col2 FROM tab1
----
1027
52
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-3624
SELECT ALL col2 * col2 - - col0 DIV col1 AS col0 FROM tab1
----
2916
3255
9222
skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL col2 * col2 - - col0 / col1 AS col0 FROM tab1
----
2916
3255
9222
query I rowsort
SELECT + col1 + + col2 * col0 * - tab0.col1 AS col1 FROM tab0
----
-3298
-664027
-68026
query I rowsort
SELECT - col2 + - col2 AS col0 FROM tab1 WHERE NOT + col0 BETWEEN ( NULL ) AND ( NULL )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * - col0 NOT IN ( + col0 * + col1 + col2 + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT DISTINCT + tab1.col1 * col1 * + col1 FROM tab1
----
1000
17576
2197
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab2, tab0 cor0
----
16
query I rowsort
SELECT - col0 * 60 AS col0 FROM tab1 AS cor0
----
-180
-3840
-4800
query I rowsort
SELECT DISTINCT col0 * 88 FROM tab0 AS cor0
----
2112
3080
7832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3634
SELECT ALL + col1 * - CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL + col1 * - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - col0 * + col2 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-3636
SELECT + col1 DIV + 66 - - col0 * + tab0.col0 FROM tab0
----
1226
577
7922
skipif mysql # not compatible
query I rowsort label-3636
SELECT + col1 / + 66 - - col0 * + tab0.col0 FROM tab0
----
1226
577
7922
onlyif mysql # use DIV operator for integer division
query I rowsort label-3637
SELECT + col2 DIV + 51 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3637
SELECT + col2 / + 51 AS col0 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3638
SELECT ALL + + CAST( + col2 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL + + CAST ( + col2 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-3639
SELECT DISTINCT - - col0 DIV cor0.col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT - - col0 / cor0.col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT ALL - cor0.col2 * 19 FROM tab1 AS cor0
----
-1026
-1083
-1824
query I rowsort
SELECT ALL - col1 * 22 AS col2 FROM tab0 cor0
----
-1892
-2002
-2134
query I rowsort
SELECT DISTINCT - col1 + + col0 * col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT - + col2 + + col1 * + col2 * col0 AS col1 FROM tab1 AS cor0
----
36423
4158
99744
query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) * col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3645
SELECT + CAST( 34 AS SIGNED ) * col0 FROM tab2 AS cor0
----
238
2652
2686
skipif mysql # not compatible
query I rowsort label-3645
SELECT + CAST ( 34 AS INTEGER ) * col0 FROM tab2 AS cor0
----
238
2652
2686
query I rowsort
SELECT DISTINCT col2 * - 23 FROM tab1 AS cor0
----
-1242
-1311
-2208
query I rowsort
SELECT - col2 * col2 + + cor0.col2 + col1 FROM tab0 AS cor0
----
-6551
-970
97
query I rowsort
SELECT 54 + col2 FROM tab1 AS cor0
----
108
111
150
query I rowsort
SELECT - 13 * - col2 FROM tab0 AS cor0
----
1066
13
429
onlyif mysql # use DIV operator for integer division
query I rowsort label-3650
SELECT 97 * col0 + + 46 DIV - col0 FROM tab2 AS cor0
----
673
7566
7663
skipif mysql # not compatible
query I rowsort label-3650
SELECT 97 * col0 + + 46 / - col0 FROM tab2 AS cor0
----
673
7566
7663
query I rowsort
SELECT + cor0.col1 * col2 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL + + col0 + + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT + ( - col0 ) * - 2 FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 70 col0 FROM tab1
----
1820
700
910
query I rowsort
SELECT - col0 + col1 * 36 AS col2 FROM tab2 cor0
----
1109
2046
533
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3656
SELECT ALL + col1 + col1 * CAST( NULL AS DECIMAL ) / + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL + col1 + col1 * CAST ( NULL AS REAL ) / + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col0 * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT 72 AS col0 FROM tab2 cor0
----
72
72
72
query I rowsort
SELECT ALL - + col2 + col2 - col1 * - col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-3660
SELECT ALL 89 DIV tab0.col2 FROM tab0
----
1
2
89
skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL 89 / tab0.col2 FROM tab0
----
1
2
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3661
SELECT cor0.col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3661
SELECT cor0.col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col0 * col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - cor0.col2 * + col1 + col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL + + col1 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT - - cor0.col2 - - ( ( col0 ) ) AS col1 FROM tab1 cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * col1 col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL - col0 * - 89 * col0 AS col1 FROM tab0 AS cor0
----
109025
51264
704969
query I rowsort
SELECT cor0.col0 * + col2 + + 65 * col2 * col1 FROM tab2 cor0
----
101738
44992
54594
query I rowsort
SELECT DISTINCT col1 * + col2 + col0 + col0 AS col2 FROM tab1 AS cor0
----
1408
1410
698
query I rowsort
SELECT DISTINCT col0 + + 62 FROM tab2 AS cor0
----
140
141
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * cor0.col2 * + col1 col0 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT - 86 + col1 AS col2 FROM tab1
----
-60
-73
-76
query I rowsort
SELECT ALL 62 * + tab2.col2 + - 66 * tab2.col2 AS col1 FROM tab2
----
-104
-108
-152
query I rowsort
SELECT DISTINCT col1 + - 24 FROM tab1 AS cor0
----
-11
-14
2
query I rowsort
SELECT col2 * + col2 - + col0 AS col1 FROM tab2
----
1365
598
722
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3677
SELECT + tab2.col0 + - CAST( 36 AS SIGNED ) AS col1 FROM tab2
----
-29
42
43
skipif mysql # not compatible
query I rowsort label-3677
SELECT + tab2.col0 + - CAST ( 36 AS INTEGER ) AS col1 FROM tab2
----
-29
42
43
query I rowsort
SELECT 0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL + col0 * cor0.col1 + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL + ( 62 ) - - col0 FROM tab0
----
151
86
97
query I rowsort
SELECT ALL + + 86 * - col1 - + 43 FROM tab1 cor0
----
-1161
-2279
-903
query I rowsort
SELECT + cor0.col2 * - col1 + 76 AS col2 FROM tab1 AS cor0
----
-1172
-1328
-494
query I rowsort
SELECT 45 * + col0 AS col1 FROM tab1
----
135
2880
3600
query I rowsort
SELECT ALL + - 62 + tab1.col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 3f3e4fea51fdbdab5192b4a9b79fae75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843
query I rowsort
SELECT + 90 + + col1 AS col1 FROM tab2 AS cor0
----
107
121
149
query I rowsort
SELECT ALL - + 89 + + col0 AS col1 FROM tab1 cor0
----
-25
-86
-9
query I rowsort
SELECT DISTINCT - 91 * + col1 AS col2 FROM tab0 AS cor0
----
-7826
-8281
-8827
query I rowsort
SELECT ALL - - col0 + + col0 * - 53 FROM tab0 AS cor0
----
-1248
-1820
-4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) * + 8 col2 FROM tab0 AS cor0
----
192
280
712
query I rowsort
SELECT ALL col0 * + col1 + col2 AS col2 FROM tab1
----
1136
132
697
query I rowsort
SELECT + 3 * col1 FROM tab1
----
30
39
78
query I rowsort
SELECT - tab2.col0 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
onlyif mysql # use DIV operator for integer division
query I rowsort label-3694
SELECT col2 DIV col1 col1 FROM tab1
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3694
SELECT col2 / col1 col1 FROM tab1
----
2
5
7
query I rowsort
SELECT ALL 49 AS col0 FROM tab1
----
49
49
49
query I rowsort
SELECT DISTINCT + - col1 + + col2 * col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT - 92 * col2 + + 53 FROM tab1 AS cor0
----
-4915
-5191
-8779
onlyif mysql # use DIV operator for integer division
query I rowsort label-3698
SELECT ALL ( - col1 ) DIV 22 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL ( - col1 ) / 22 FROM tab1 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3699
SELECT ALL col2 DIV 19 FROM tab1
----
2
3
5
skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL col2 / 19 FROM tab1
----
2
3
5
query I rowsort
SELECT + col0 * - 46 AS col2 FROM tab0 AS cor0
----
-1104
-1610
-4094
query I rowsort
SELECT - 74 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28
query I rowsort
SELECT DISTINCT + - col1 + 6 * col1 AS col1 FROM tab1 AS cor0
----
130
50
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) * + col2 col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-3704
SELECT DISTINCT + col0 DIV + col0 AS col2 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT + col0 / + col0 AS col2 FROM tab0 cor0
----
1
query I rowsort
SELECT - 63 + - 51 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-216
-3327
-4143
query I rowsort
SELECT ALL - col0 * + col0 * col1 AS col1 FROM tab0 AS cor0
----
-118825
-49536
-720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * 84 col2 FROM tab1 AS cor0
----
-4536
-4788
-8064
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + ( col0 ) ) * - ( - col2 ) * - cor0.col0 col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT ALL + col1 * - col1 + col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-3711
SELECT col1 DIV + 53 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3711
SELECT col1 / + 53 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + - ( - col2 ) * col2 * + col0 AS col2 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT ALL col2 * 22 AS col0 FROM tab2
----
572
594
836
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
query I rowsort
SELECT - cor0.col2 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
onlyif mysql # use DIV operator for integer division
query I rowsort label-3716
SELECT + + cor0.col1 DIV + col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3716
SELECT + + cor0.col1 / + col1 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3717
SELECT cor0.col1 DIV 85 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3717
SELECT cor0.col1 / 85 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - 79 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
query I rowsort
SELECT + ( + 5 ) AS col1 FROM tab2 AS cor0
----
5
5
5
query I rowsort
SELECT - 45 + + 90 FROM tab0 AS cor0
----
45
45
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-3721
SELECT col0 + - cor0.col1 DIV ( + cor0.col1 ) FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-3721
SELECT col0 + - cor0.col1 / ( + cor0.col1 ) FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT DISTINCT - cor0.col0 + - cor0.col1 * - 14 AS col0 FROM tab0 cor0
----
1180
1185
1323
onlyif mysql # use DIV operator for integer division
query I rowsort label-3723
SELECT col1 DIV + col2 AS col0 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3723
SELECT col1 / + col2 AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + ( - col2 ) * col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL 31 * - col0 AS col1 FROM tab1 AS cor0
----
-1984
-2480
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3726
SELECT DISTINCT 87 * - col0 * + CAST( ( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-4263
-529308
-542967
skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT 87 * - col0 * + CAST ( ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-4263
-529308
-542967
query I rowsort
SELECT + col0 * + col0 + - 30 FROM tab1 AS cor0
----
-21
4066
6370
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3728
SELECT + cor0.col1 * + CAST( NULL AS SIGNED ) + cor0.col2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3728
SELECT + cor0.col1 * + CAST ( NULL AS INTEGER ) + cor0.col2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + 91 AS col0 FROM tab2 AS cor0
----
117
118
129
query I rowsort
SELECT ALL + 15 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
query I rowsort
SELECT DISTINCT col1 * - col1 + 49 AS col0 FROM tab2
----
-240
-3432
-912
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 20 + col0 FROM tab2
----
27
98
99
query I rowsort
SELECT - + col0 * + ( col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-3735
SELECT - col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3735
SELECT - col1 / - col1 AS col2 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ( - cor0.col1 ) + - cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 66e198acca624efd182aa551bb5de4c7
query I rowsort
SELECT + 74 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
query I rowsort
SELECT DISTINCT + col2 * tab1.col1 * + ( + 56 ) FROM tab1
----
31920
69888
78624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3739
SELECT ALL + col2 + - col2 + CAST( NULL AS SIGNED ) * + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL + col2 + - col2 + CAST ( NULL AS INTEGER ) * + col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3740
SELECT DISTINCT - cor0.col0 - + CAST( - 41 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-48
17
6
skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT - cor0.col0 - + CAST ( - 41 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-48
17
6
query I rowsort
SELECT DISTINCT col2 * col1 + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - 33 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948
query I rowsort
SELECT - 61 + col0 AS col0 FROM tab0
----
-26
-37
28
query I rowsort
SELECT - col0 * col0 + - 27 FROM tab1 AS cor0
----
-36
-4123
-6427
query I rowsort
SELECT col0 - + tab1.col0 * ( - col2 ) AS col1 FROM tab1
----
165
3712
7760
query I rowsort
SELECT col1 * + 47 FROM tab0 AS cor0
----
4042
4277
4559
query I rowsort
SELECT ALL - col0 * cor0.col1 * col2 + - col0 * - ( + col1 ) AS col2 FROM tab1 AS cor0
----
-35840
-4134
-98800
query I rowsort
SELECT ALL - col0 + ( - col0 ) * + col1 FROM tab1 cor0
----
-1120
-704
-81
query I rowsort
SELECT col2 + - col2 * + cor0.col2 * + col0 AS col0 FROM tab1 cor0
----
-207879
-737184
-8694
query I rowsort
SELECT ALL - col2 * + 62 AS col0 FROM tab1 AS cor0
----
-3348
-3534
-5952
query I rowsort
SELECT DISTINCT + - col1 * - ( 64 ) FROM tab2 cor0
----
1088
1984
3776
onlyif mysql # use DIV operator for integer division
query I rowsort label-3752
SELECT ALL col2 * col1 DIV 21 AS col0 FROM tab0 AS cor0
----
135
355
4
skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL col2 * col1 / 21 AS col0 FROM tab0 AS cor0
----
135
355
4
query I rowsort
SELECT ALL + col2 * 2 AS col1 FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 * tab2.col0 + - col0 col2 FROM tab2
----
1976
209
2961
query I rowsort
SELECT - col0 * - col2 * + col1 AS col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT col1 + + tab1.col1 * - col1 + - col2 FROM tab1
----
-147
-252
-704
query I rowsort
SELECT - col0 * - col1 * col0 FROM tab2
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-3758
SELECT ALL col0 + col2 DIV col0 FROM tab0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL col0 + col2 / col0 FROM tab0
----
25
35
89
query I rowsort
SELECT DISTINCT + col2 * col1 * + col1 FROM tab1
----
16224
36504
5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-3760
SELECT DISTINCT col1 + - col2 DIV col0 AS col0 FROM tab2
----
17
28
59
skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT col1 + - col2 / col0 AS col0 FROM tab2
----
17
28
59
query I rowsort
SELECT ALL col1 + tab0.col1 * col2 AS col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT col1 FROM tab0 WHERE ( NULL ) NOT IN ( + tab0.col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 col2 FROM tab2
----
-1534
-646
-837
query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 + col1 + col1 ) NOT BETWEEN col2 - + col1 AND - col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL tab2.col1 + col0 AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT col2 * tab0.col1 * - col2 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT - tab2.col1 * + col2 + tab2.col2 * - col0 AS col1 FROM tab2 WHERE NULL = ( NULL )
----
query I rowsort
SELECT DISTINCT col0 + + col2 + - col1 FROM tab2
----
100
3
45
query I rowsort
SELECT tab1.col2 * + col1 * col2 AS col0 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT + col0 + col0 + col2 AS col0 FROM tab0
----
260
71
81
query I rowsort
SELECT ALL + col1 + tab2.col1 * col2 + - col2 * - col1 * col0 AS col1 FROM tab2
----
121245
51697
6727
query I rowsort
SELECT col0 * col1 + tab2.col2 * col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT DISTINCT col0 + + col1 FROM tab0 WHERE NOT ( NULL ) < ( NULL )
----
query I rowsort
SELECT ALL - 86 * col1 FROM tab0 AS cor0
----
-7396
-7826
-8342
query I rowsort
SELECT ALL + 54 FROM tab1, tab0 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to c12c2f39593b3ce157086f29d8391c32
query I rowsort
SELECT DISTINCT - + 99 + col0 AS col0 FROM tab0 AS cor0
----
-10
-64
-75
query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL - cor0.col1 * 35 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 6080e370f86ce7edde8c44797e4affff
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-52
query I rowsort
SELECT + col1 * col1 * + col2 FROM tab2 WHERE NOT + col2 NOT BETWEEN NULL AND ( + col0 )
----
query I rowsort
SELECT - 44 * + col2 + + 79 FROM tab0 AS cor0
----
-1373
-3529
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3782
SELECT ALL 2 + + col0 * CAST( + 82 + col0 * - ( + 27 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-13582
-206567
-30203
skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL 2 + + col0 * CAST ( + 82 + col0 * - ( + 27 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-13582
-206567
-30203
query I rowsort
SELECT ALL tab1.col1 + col0 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL - 31 + col2 + ( + 42 + col0 ) AS col1 FROM tab2 AS cor0
----
115
128
45
query I rowsort
SELECT - 13 + + col2 FROM tab1 AS cor0
----
41
44
83
query I rowsort
SELECT DISTINCT + - 17 * col2 AS col2 FROM tab0 AS cor0
----
-1394
-17
-561
query I rowsort
SELECT ALL + 78 * - col2 + + col1 + col2 * - col1 FROM tab0 cor0
----
-13767
-5326
-78
query I rowsort
SELECT DISTINCT - - cor0.col0 * + col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - col1 + col1 + ( tab0.col2 ) * col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + + 7 + - cor0.col1 * 94 AS col2 FROM tab0 cor0
----
-8077
-8547
-9111
query I rowsort
SELECT DISTINCT - 74 + - cor0.col0 FROM tab1 AS cor0
----
-138
-154
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-3792
SELECT ALL - - 74 + col1 DIV col0 FROM tab0 AS cor0
----
75
76
77
skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL - - 74 + col1 / col0 FROM tab0 AS cor0
----
75
76
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + + col2 / col0 - CAST ( 80 AS REAL ) * col2 col0 FROM tab1 AS cor0
----
-4302
-4560
-7679
query I rowsort
SELECT DISTINCT + ( col1 ) + col0 * ( col0 ) AS col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT DISTINCT + + 8 AS col2 FROM tab2 AS cor0
----
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3796
SELECT ALL - col0 + + col1 DIV 25 FROM tab0 cor0
----
-21
-32
-86
skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL - col0 + + col1 / 25 FROM tab0 cor0
----
-21
-32
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-3797
SELECT DISTINCT - + col2 + col2 DIV col2 + - 94 AS col1 FROM tab1 AS cor0
----
-147
-150
-189
skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT - + col2 + col2 / col2 + - 94 AS col1 FROM tab1 AS cor0
----
-147
-150
-189
query I rowsort
SELECT col0 * - col2 - + ( cor0.col2 ) * col0 AS col1 FROM tab0 AS cor0
----
-14596
-1584
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-3799
SELECT ALL - 72 DIV col0 + - col0 * col1 + - col2 FROM tab2 AS cor0
----
-1381
-254
-4628
skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL - 72 / col0 + - col0 * col1 + - col2 FROM tab2 AS cor0
----
-1381
-254
-4628
query I rowsort
SELECT - col1 * + col2 + - 32 FROM tab2 AS cor0
----
-1566
-678
-869
onlyif mysql # use DIV operator for integer division
query I rowsort label-3801
SELECT + col0 * col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-103
-367
skipif mysql # not compatible
query I rowsort label-3801
SELECT + col0 * col0 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-103
-367
onlyif mysql # use DIV operator for integer division
query I rowsort label-3802
SELECT DISTINCT + tab1.col0 + col1 DIV tab1.col2 + col0 col1 FROM tab1
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT + tab1.col0 + col1 / tab1.col2 + col0 col1 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL col0 * col0 + + col1 * 93 AS col0 FROM tab2
----
11571
2932
7822
query I rowsort
SELECT - - col1 * col2 - col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT ALL + 79 * 94 + + col2 FROM tab2 AS cor0
----
7452
7453
7464
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 - + col0 col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3807
SELECT + 40 * - col1 - cor0.col2 DIV + col1 FROM tab2 AS cor0
----
-1240
-2360
-682
skipif mysql # not compatible
query I rowsort label-3807
SELECT + 40 * - col1 - cor0.col2 / + col1 FROM tab2 AS cor0
----
-1240
-2360
-682
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323
query I rowsort
SELECT DISTINCT - 23 + ( col0 * ( - cor0.col2 ) ) AS col1 FROM tab0 cor0
----
-58
-7321
-815
query I rowsort
SELECT - tab2.col0 * + 25 - + col2 AS col0 FROM tab2
----
-1976
-2013
-202
query I rowsort
SELECT DISTINCT - - 12 * - 93 FROM tab1 AS cor0
----
-1116
query I rowsort
SELECT col0 * + 43 - col2 FROM tab2
----
274
3328
3359
onlyif mysql # use DIV operator for integer division
query I rowsort label-3813
SELECT DISTINCT 80 + col2 DIV col2 FROM tab1
----
81
skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT 80 + col2 / col2 FROM tab1
----
81
query I rowsort
SELECT + 10 * + 67 + + col2 FROM tab0
----
671
703
752
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3815
SELECT - CAST( 29 AS SIGNED ) * col1 FROM tab1
----
-290
-377
-754
skipif mysql # not compatible
query I rowsort label-3815
SELECT - CAST ( 29 AS INTEGER ) * col1 FROM tab1
----
-290
-377
-754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3816
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - tab0.col0 * col2 + - col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - tab0.col0 * col2 + - col1 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT col0 + 0 AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT - col0 + tab1.col0 * col0 FROM tab1
----
4032
6
6320
query I rowsort
SELECT - 73 + col0 + + col0 FROM tab2
----
-59
83
85
query I rowsort
SELECT - 13 + - 23 * + col2 FROM tab1
----
-1255
-1324
-2221
query I rowsort
SELECT ALL col0 + + 51 * col1 AS col0 FROM tab2 cor0
----
1588
3087
946
query I rowsort
SELECT - ( + cor0.col1 ) + - col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3823
SELECT ALL - CAST( NULL AS SIGNED ) * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL - CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0 cor1, tab2, tab0 AS cor2
----
3645 values hashing to 4fa4bd3038de6e74a345debc8ab4cd53
query I rowsort
SELECT DISTINCT - col2 * + col2 + col2 * - cor0.col1 AS col1 FROM tab1 cor0
----
-10464
-3819
-4320
query I rowsort
SELECT + col1 + 52 AS col1 FROM tab1
----
62
65
78
query I rowsort
SELECT ALL + 75 * + col2 + - tab1.col2 FROM tab1
----
3996
4218
7104
onlyif mysql # use DIV operator for integer division
query I rowsort label-3828
SELECT - - col1 DIV ( + 4 ) FROM tab0 AS cor0
----
21
22
24
skipif mysql # not compatible
query I rowsort label-3828
SELECT - - col1 / ( + 4 ) FROM tab0 AS cor0
----
21
22
24
query I rowsort
SELECT DISTINCT + col1 + - 96 * - 83 AS col0 FROM tab0 AS cor0
----
8054
8059
8065
onlyif mysql # use DIV operator for integer division
query I rowsort label-3830
SELECT ALL - col0 DIV 80 AS col0 FROM tab0 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL - col0 / 80 AS col0 FROM tab0 cor0
----
-1
0
0
query I rowsort
SELECT col2 * col2 * + 6 FROM tab0 AS cor0
----
40344
6
6534
query I rowsort
SELECT DISTINCT - - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
86
91
97
query IIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2, tab0 cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
onlyif mysql # use DIV operator for integer division
query I rowsort label-3834
SELECT + + 93 DIV cor0.col2 FROM tab1 cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3834
SELECT + + 93 / cor0.col2 FROM tab1 cor0
----
0
1
1
query I rowsort
SELECT + 76 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT + 46 FROM tab0, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT + + col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3838
SELECT CAST( - col0 AS SIGNED ) * + col0 FROM tab1
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-3838
SELECT CAST ( - col0 AS INTEGER ) * + col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - 33 + 22 AS col2 FROM tab1
----
-11
query I rowsort
SELECT + col1 * + 12 AS col0 FROM tab2
----
204
372
708
query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2, tab0 AS cor1, tab0 cor2
----
13122 values hashing to 7789786d148bdb0bdad7be3452fef68c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3842
SELECT col0 + col2 * CAST( - 22 * col0 AS SIGNED ) FROM tab0
----
-160467
-17400
-735
skipif mysql # not compatible
query I rowsort label-3842
SELECT col0 + col2 * CAST ( - 22 * col0 AS INTEGER ) FROM tab0
----
-160467
-17400
-735
query I rowsort
SELECT + 39 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
query I rowsort
SELECT ALL tab0.col2 * col1 * ( ( col2 ) ) FROM tab0
----
611884
93654
97
query I rowsort
SELECT DISTINCT - - col1 * col0 * ( 78 * col1 ) FROM tab1 AS cor0
----
1054560
158184
499200
onlyif mysql # use DIV operator for integer division
query I rowsort label-3846
SELECT cor0.col0 DIV col0 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3846
SELECT cor0.col0 / col0 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - 85 AS col2 FROM tab1
----
-85
query I rowsort
SELECT ALL - + col2 - col0 * 66 AS col1 FROM tab2 cor0
----
-489
-5174
-5252
query I rowsort
SELECT DISTINCT + col2 * ( + col0 * col0 ) FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT DISTINCT + + col0 + ( - ( col2 ) ) * - 97 AS col1 FROM tab2 AS cor0
----
2600
2626
3765
query I rowsort
SELECT DISTINCT col2 * ( col0 ) * - col2 + col2 + 53 * col2 FROM tab2 AS cor0
----
-112024
-3645
-51324
query I rowsort
SELECT 41 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT ALL 30 + + col1 * + 50 FROM tab1
----
1330
530
680
query I rowsort
SELECT ALL 89 * + col2 FROM tab2
----
2314
2403
3382
query I rowsort
SELECT 76 * + col0 AS col1 FROM tab0
----
1824
2660
6764
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 26 col1 FROM tab2 AS cor0
----
182
2028
2054
query I rowsort
SELECT - 14 * + col2 FROM tab0
----
-1148
-14
-462
query I rowsort
SELECT ALL 32 AS col1 FROM tab1
----
32
32
32
query I rowsort
SELECT + - 20 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee
query I rowsort
SELECT ALL + col2 * + ( + col2 + tab2.col1 ) FROM tab2
----
1566
2090
2210
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + tab1.col0 ) col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT + - cor0.col0 * col2 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-3863
SELECT + col0 + cor0.col0 DIV col0 AS col2 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-3863
SELECT + col0 + cor0.col0 / col0 AS col2 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT col0 + - col0 * - col0 - + col1 FROM tab0 AS cor0
----
1163
514
7919
onlyif mysql # use DIV operator for integer division
query I rowsort label-3865
SELECT - + col1 + 70 DIV + cor0.col0 AS col0 FROM tab1 cor0
----
-13
-3
-9
skipif mysql # not compatible
query I rowsort label-3865
SELECT - + col1 + 70 / + cor0.col0 AS col0 FROM tab1 cor0
----
-13
-3
-9
query I rowsort
SELECT - col1 * - col2 - col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT - - ( + col1 ) + - 32 AS col0 FROM tab1 AS cor0
----
-19
-22
-6
query I rowsort
SELECT col2 * + col0 * + col0 AS col2 FROM tab1 AS cor0
----
233472
486
614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + cor0.col0 * ( - 59 + cor0.col0 ) col1 FROM tab2 AS cor0
----
-371
1404
1501
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 col2 FROM tab1, tab1 AS cor0
----
34
query I rowsort
SELECT ALL - 96 * + col1 AS col1 FROM tab2
----
-1632
-2976
-5664
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 + col0 col0 FROM tab2 AS cor0
----
156
157
85
query I rowsort
SELECT 20 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-6
10
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3874
SELECT - col1 DIV col0 + - col2 AS col1 FROM tab2 AS cor0
----
-26
-31
-38
skipif mysql # not compatible
query I rowsort label-3874
SELECT - col1 / col0 + - col2 AS col1 FROM tab2 AS cor0
----
-26
-31
-38
query I rowsort
SELECT DISTINCT - + ( col1 ) * 50 AS col0 FROM tab1 AS cor0
----
-1300
-500
-650
query I rowsort
SELECT ALL - cor0.col1 * 2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4a21fff066040168fa2a1bf702533e5d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3877
SELECT ALL + CAST( NULL AS SIGNED ) + col2 * - col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 * - col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( col2 ) + + col1 * 93 FROM tab0 AS cor0
----
8031
8545
9022
onlyif mysql # use DIV operator for integer division
query I rowsort label-3879
SELECT + - col1 DIV - cor0.col2 col2 FROM tab0 AS cor0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3879
SELECT + - col1 / - cor0.col2 col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ALL - 9 * col2 FROM tab2 AS cor0
----
-234
-243
-342
onlyif mysql # use DIV operator for integer division
query I rowsort label-3881
SELECT DISTINCT col2 DIV - col0 + + col0 FROM tab0 AS cor0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT col2 / - col0 + + col0 FROM tab0 AS cor0
----
23
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3882
SELECT + 10 + ( + col0 ) * CAST( col2 AS SIGNED ) * col1 + - CAST( - 72 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
36562
4294
99922
skipif mysql # not compatible
query I rowsort label-3882
SELECT + 10 + ( + col0 ) * CAST ( col2 AS INTEGER ) * col1 + - CAST ( - 72 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
36562
4294
99922
query I rowsort
SELECT ALL col0 * col2 + col0 + - col0 * - col2 FROM tab0
----
105
14685
1608
query I rowsort
SELECT + col2 + + 11 * col2 FROM tab0 AS cor0
----
12
396
984
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT + 36 * col2 - col0 AS col0 FROM tab1
----
1941
1988
3376
query I rowsort
SELECT ALL col1 + + 47 + + col1 AS col1 FROM tab1
----
67
73
99
query I rowsort
SELECT ALL col1 + + col0 * + col2 * col0 FROM tab0
----
1322
19094
649613
query I rowsort
SELECT ALL + col1 * - col2 + col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT - col0 + + 82 FROM tab1 cor0
----
18
2
79
query I rowsort
SELECT + col1 * tab0.col0 * 68 FROM tab0
----
140352
230860
550732
query I rowsort
SELECT ALL - col0 * + 28 + - 72 AS col0 FROM tab0 cor0
----
-1052
-2564
-744
query I rowsort
SELECT DISTINCT - + col0 + 3 FROM tab2 AS cor0
----
-4
-75
-76
query I rowsort
SELECT ALL - + col1 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3895
SELECT + col2 * + CAST( col2 AS SIGNED ) - - col2 col0 FROM tab0 AS cor0
----
1122
2
6806
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3895
SELECT + col2 * + CAST ( col2 AS INTEGER ) - - col2 col0 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT ALL + + col0 + + col2 + - ( - col2 * cor0.col0 ) AS col1 FROM tab2 AS cor0
----
2132
223
3119
query I rowsort
SELECT + 9 - col0 AS col2 FROM tab2
----
-69
-70
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 col0 FROM tab0
----
-61
query I rowsort
SELECT DISTINCT col2 - ( cor0.col0 ) FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT col0 + + 9 AS col2 FROM tab2 AS cor0
----
16
87
88
query I rowsort
SELECT + cor0.col2 - + cor0.col1 AS col1 FROM tab0 cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3902
SELECT col2 + - 53 DIV col1 FROM tab2 AS cor0
----
26
26
35
skipif mysql # not compatible
query I rowsort label-3902
SELECT col2 + - 53 / col1 FROM tab2 AS cor0
----
26
26
35
query I rowsort
SELECT ALL + - col0 * - 68 AS col1 FROM tab0 AS cor0
----
1632
2380
6052
onlyif mysql # use DIV operator for integer division
query I rowsort label-3904
SELECT DISTINCT - col0 + ( - 25 ) DIV - cor0.col0 FROM tab1 AS cor0
----
-64
-80
5
skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT - col0 + ( - 25 ) / - cor0.col0 FROM tab1 AS cor0
----
-64
-80
5
query I rowsort
SELECT col0 * col1 - col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT + col1 + - 62 AS col1 FROM tab0
----
24
29
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-3907
SELECT DISTINCT col0 DIV + col0 - tab0.col1 * tab0.col1 FROM tab0
----
-7395
-8280
-9408
skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT col0 / + col0 - tab0.col1 * tab0.col1 FROM tab0
----
-7395
-8280
-9408
query I rowsort
SELECT DISTINCT - col1 * - ( + col1 ) FROM tab1 AS cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3909
SELECT ALL - + cor0.col0 * - CAST( NULL AS SIGNED ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL - + cor0.col0 * - 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-3910
SELECT col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3910
SELECT col1 * CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( 10 ) FROM tab2 cor0
----
-10
query I rowsort
SELECT ( 0 ) * col1 + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - + ( 75 ) FROM tab0 AS cor0
----
-75
-75
-75
query I rowsort
SELECT ALL - ( cor0.col2 ) + + cor0.col2 * - 34 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
1189
248050
26895
query I rowsort
SELECT DISTINCT + + col1 * + ( col0 ) * - 94 - - ( cor0.col1 * col0 + - col0 ) FROM tab0 AS cor0
----
-191976
-315770
-753296
query I rowsort
SELECT + 82 * - col1 + col1 FROM tab2 AS cor0
----
-1377
-2511
-4779
query I rowsort
SELECT DISTINCT + 96 + cor0.col1 AS col1 FROM tab2 AS cor0
----
113
127
155
query I rowsort
SELECT ALL - + 30 + col1 - col0 FROM tab2 cor0
----
-49
-6
-92
query I rowsort
SELECT - - ( col2 ) * + col0 + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3920
SELECT CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3920
SELECT CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3921
SELECT + + col1 * col0 + - col0 * + CAST( + col1 * col0 + + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956
skipif mysql # not compatible
query I rowsort label-3921
SELECT + + col1 * col0 + - col0 * + CAST ( + col1 * col0 + + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT + cor0.col0 - col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + + 49 + ( col0 ) AS col1 FROM tab2 AS cor0
----
127
128
56
query I rowsort
SELECT DISTINCT + 2 * + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - 57 * - ( + col1 ) + - col1 FROM tab1 cor0
----
1456
560
728
query I rowsort
SELECT DISTINCT 26 + col2 FROM tab2 AS cor0
----
52
53
64
query I rowsort
SELECT col1 + cor0.col0 * + col2 AS col0 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-3928
SELECT ALL + cor0.col1 DIV cor0.col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL + cor0.col1 / cor0.col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT DISTINCT col0 + + col1 * + 74 FROM tab1 AS cor0
----
1042
1927
804
query I rowsort
SELECT DISTINCT + - 22 + col2 FROM tab0 AS cor0
----
-21
11
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-3931
SELECT ALL - + col0 + cor0.col0 DIV - 11 FROM tab0 AS cor0
----
-26
-38
-97
skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL - + col0 + cor0.col0 / - 11 FROM tab0 AS cor0
----
-26
-38
-97
query I rowsort
SELECT - 47 + - col1 FROM tab1 AS cor0
----
-57
-60
-73
query I rowsort
SELECT ALL 91 * + col0 FROM tab0 cor0
----
2184
3185
8099
query I rowsort
SELECT ( + col2 ) * + 90 FROM tab2 AS cor0
----
2340
2430
3420
onlyif mysql # use DIV operator for integer division
query I rowsort label-3935
SELECT ALL - 92 DIV col2 + + col2 col2 FROM tab1 AS cor0
----
53
56
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL - 92 / col2 + + col2 col2 FROM tab1 AS cor0
----
53
56
96
query I rowsort
SELECT DISTINCT - + col2 * 20 * - col0 AS col1 FROM tab1 AS cor0
----
153600
3240
72960
onlyif mysql # use DIV operator for integer division
query I rowsort label-3937
SELECT DISTINCT - cor0.col0 + 31 * col0 DIV col2 AS col1 FROM tab0 cor0
----
-2
-56
1050
skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT - cor0.col0 + 31 * col0 / col2 AS col1 FROM tab0 cor0
----
-2
-56
1050
query I rowsort
SELECT + col2 * ( col0 * - col2 ) AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT + + col2 + - 6 AS col1 FROM tab2 AS cor0
----
20
21
32
query I rowsort
SELECT ALL + col1 * cor0.col2 - - cor0.col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL + + col0 * - col2 + col0 * col2 AS col2 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 * - 59 col2 FROM tab1
----
-3183
-3299
-5584
query I rowsort
SELECT - cor0.col1 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) * col2 + 72 col0 FROM tab1 AS cor0
----
-3576
-7608
-90
query I rowsort
SELECT DISTINCT - 67 + col0 FROM tab2 AS cor0
----
-60
11
12
query I rowsort
SELECT - col0 + 6 FROM tab0 cor0
----
-18
-29
-83
query I rowsort
SELECT - - col0 + + col1 * - col0 * + col1 AS col2 FROM tab0 AS cor0
----
-177480
-329280
-736920
query I rowsort
SELECT ALL col2 * + 74 FROM tab0 AS cor0
----
2442
6068
74
query I rowsort
SELECT + 90 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
query I rowsort
SELECT DISTINCT + col0 * 38 FROM tab0
----
1330
3382
912
query I rowsort
SELECT ALL + col2 + cor0.col2 AS col2 FROM tab0 cor0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 82 + col1 col0 FROM tab2 AS cor0
----
-1377
-2511
-4779
query I rowsort
SELECT 84 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT - - cor0.col1 * ( - col2 ) + - cor0.col0 + 78 FROM tab0 AS cor0
----
-2784
-54
-7473
query I rowsort
SELECT + 14 - cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 16a1554c6ac6274b2528167d7716a527
query I rowsort
SELECT + col2 * col1 - col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT - - cor0.col0 * col0 * col0 - col2 AS col0 FROM tab1 AS cor0
----
-27
262087
511904
query I rowsort
SELECT ( 13 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT ALL + col1 + - col0 * col0 + + col0 FROM tab0
----
-1093
-466
-7741
query I rowsort
SELECT ( cor0.col1 ) * col2 + col2 + + col2 FROM tab2 AS cor0
----
1586
722
891
query I rowsort
SELECT + col0 + - col2 * col1 * 94 + col1 AS col1 FROM tab0 AS cor0
----
-266662
-701248
-8986
query I rowsort
SELECT col1 + + col2 + - col1 AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT + 55 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to c59acfbb70996777fa5053195838c3d6
query I rowsort
SELECT ALL + col0 - col1 * col1 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-1
-33
-82
query I rowsort
SELECT + + col2 - + col2 * col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3970
SELECT - CAST( + col0 AS SIGNED ) AS col0 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-3970
SELECT - CAST ( + col0 AS INTEGER ) AS col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT - tab0.col0 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL + 29 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
onlyif mysql # use DIV operator for integer division
query I rowsort label-3973
SELECT DISTINCT + ( - tab1.col0 ) DIV col0 + - 27 FROM tab1
----
-28
skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT + ( - tab1.col0 ) / col0 + - 27 FROM tab1
----
-28
onlyif mysql # use DIV operator for integer division
query I rowsort label-3974
SELECT ALL col2 DIV + col0 AS col2 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL col2 / + col0 AS col2 FROM tab2
----
0
0
3
query I rowsort
SELECT - + 46 * + 36 * col1 + col2 FROM tab1 AS cor0
----
-16503
-21432
-43002
query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab1, tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 37 + col0 FROM tab0
----
-13
-2
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 + col1 col1 FROM tab2
----
25
39
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col1 col1 FROM tab2
----
55
58
85
query I rowsort
SELECT + col1 + ( + tab1.col1 ) + col0 AS col0 FROM tab1
----
106
55
84
query I rowsort
SELECT + col2 + + col1 * col0 AS col0 FROM tab2
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-3982
SELECT DISTINCT + tab0.col0 * ( + col1 ) + col2 DIV - 25 FROM tab0
----
2063
3395
8096
skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT + tab0.col0 * ( + col1 ) + col2 / - 25 FROM tab0
----
2063
3395
8096
query I rowsort
SELECT + 90 + + tab0.col1 FROM tab0
----
176
181
187
query I rowsort
SELECT DISTINCT 5 * col2 AS col1 FROM tab1
----
270
285
480
onlyif mysql # use DIV operator for integer division
query I rowsort label-3985
SELECT tab1.col2 DIV tab1.col0 + + col2 FROM tab1
----
57
72
97
skipif mysql # not compatible
query I rowsort label-3985
SELECT tab1.col2 / tab1.col0 + + col2 FROM tab1
----
57
72
97
query I rowsort
SELECT col2 * - 95 + - col0 * + col0 FROM tab0 AS cor0
----
-1320
-15711
-3711
onlyif mysql # use DIV operator for integer division
query I rowsort label-3987
SELECT - cor0.col0 + col2 DIV cor0.col1 FROM tab2 AS cor0
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-3987
SELECT - cor0.col0 + col2 / cor0.col1 FROM tab2 AS cor0
----
-7
-77
-78
query I rowsort
SELECT tab1.col1 * 0 * col0 FROM tab1
----
0
0
0
query I rowsort
SELECT cor0.col0 + cor0.col0 + - ( 49 ) AS col0 FROM tab0 AS cor0
----
-1
129
21
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab1 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 78077727601c056ad0d4f4c11c8daffb
query I rowsort
SELECT ALL - - 10 AS col0 FROM tab1 AS cor0
----
10
10
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + tab2.col1 col2 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT - 57 * - col0 + - 33 * + col0 + - col1 AS col1 FROM tab0
----
2045
490
743
query I rowsort
SELECT col1 * - tab1.col2 + 93 AS col0 FROM tab1
----
-1155
-1311
-477
query I rowsort
SELECT ALL col0 * + col0 + - col0 * tab2.col2 + + col1 * - col2 * + col1 AS col1 FROM tab2
----
-26087
-7743
-86450
query I rowsort
SELECT ALL + ( - 54 ) FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 95 + cor0.col2 col0 FROM tab0 AS cor0
----
128
177
96
query I rowsort
SELECT col0 * col1 - - 14 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1581
5428
651
query I rowsort
SELECT DISTINCT - - col2 * col2 * ( + 39 * + col0 ) AS col2 FROM tab0 cor0
----
1019304
1365
23339004
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - cor0.col2 + + cor0.col0 col1 FROM tab1 AS cor0
----
-2913
-3185
-9136
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + 13 * col2 + - CAST ( col2 AS REAL ) * - col2 AS col1 FROM tab0 AS cor0
----
14
1518
7790
query I rowsort
SELECT + - 7 - col1 * ( + col0 ) FROM tab0 AS cor0
----
-2071
-3402
-8106
query I rowsort
SELECT DISTINCT - + col1 * col2 * col0 + col1 * + col2 FROM tab2 AS cor0
----
-118118
-5022
-50388
query I rowsort
SELECT + col1 * + col0 + col2 * + 39 * col2 FROM tab0 AS cor0
----
270335
3434
44535
query I rowsort
SELECT DISTINCT + + col2 * + 63 AS col1 FROM tab0 AS cor0
----
2079
5166
63
query I rowsort
SELECT - - col0 * - 94 AS col2 FROM tab1 AS cor0
----
-282
-6016
-7520
query I rowsort
SELECT + col1 + - col1 * cor0.col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT col2 * - col1 + col0 * + col0 * + col1 FROM tab2 AS cor0
----
105451
357422
682
query I rowsort
SELECT - + col1 * + ( col0 + col2 ) FROM tab0 AS cor0
----
-15561
-3492
-4902
query I rowsort
SELECT ALL + + cor0.col0 * - 15 FROM tab2 AS cor0
----
-105
-1170
-1185
onlyif mysql # use DIV operator for integer division
query I rowsort label-4011
SELECT + tab0.col2 + col0 * 83 DIV - 19 FROM tab0
----
-151
-306
-71
skipif mysql # not compatible
query I rowsort label-4011
SELECT + tab0.col2 + col0 * 83 / - 19 FROM tab0
----
-151
-306
-71
query I rowsort
SELECT + 89 * - col2 AS col0 FROM tab0
----
-2937
-7298
-89
query I rowsort
SELECT + col2 * col1 - - tab0.col0 AS col0 FROM tab0
----
132
2862
7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4014
SELECT DISTINCT + - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT + - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT 14 AS col2 FROM tab1 cor0
----
14
14
14
query I rowsort
SELECT ALL - col1 + - col2 * - col2 + - col0 * col1 FROM tab0 AS cor0
----
-1061
-1466
-3491
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 77 col2 FROM tab2 AS cor0
----
77
77
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4018
SELECT ALL + CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL + CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4019
SELECT DISTINCT - - col0 / - cor0.col0 + + col1 - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT - - col0 / - cor0.col0 + + col1 - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + 10 * - 66 AS col2 FROM tab0 AS cor0
----
-660
-660
-660
query I rowsort
SELECT DISTINCT 62 * - col1 + col1 * - ( + col0 ) + col0 * 60 AS col0 FROM tab2 AS cor0
----
-1719
-3580
2343
query I rowsort
SELECT ALL + 29 + - cor0.col2 FROM tab0 AS cor0
----
-4
-53
28
query I rowsort
SELECT col1 * - 54 AS col0 FROM tab2 cor0
----
-1674
-3186
-918
query I rowsort
SELECT - 69 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to ca5f4bc365dc2c6b14187d6ffc83a01d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 col1 FROM tab2
----
45
45
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 + - col2 col1 FROM tab0 cor0
----
-127
-176
-95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4027
SELECT - col2 * + cor0.col0 + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4027
SELECT - col2 * + cor0.col0 + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4028
SELECT DISTINCT - col1 + + col1 DIV - col0 FROM tab1 cor0
----
-10
-13
-34
skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT - col1 + + col1 / - col0 FROM tab1 cor0
----
-10
-13
-34
query I rowsort
SELECT + 63 AS col2 FROM tab2 cor0
----
63
63
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 * col2 ) col1 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT + 71 * + 15 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ff0a531fb401c68ca8e23b7140756a6e
query I rowsort
SELECT DISTINCT + col1 - - col1 * + col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - - cor0.col2 * + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
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 ALL + + 78 * col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
1094
2031
844
query I rowsort
SELECT DISTINCT + 85 * + col2 + 97 AS col0 FROM tab1 cor0
----
4687
4942
8257
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 43 + col1 col2 FROM tab2 AS cor0
----
102
60
74
query I rowsort
SELECT DISTINCT + + ( col0 ) + - col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL + ( - col2 ) + + col2 * cor0.col0 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT - 75 AS col2 FROM tab1 AS cor0
----
-75
-75
-75
query I rowsort
SELECT 90 * col0 AS col0 FROM tab2 AS cor0
----
630
7020
7110
query I rowsort
SELECT DISTINCT col0 - + col2 * - 6 FROM tab0 AS cor0
----
222
41
581
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 + cor0.col2 col2 FROM tab1 AS cor0
----
101
104
143
onlyif mysql # use DIV operator for integer division
query I rowsort label-4044
SELECT DISTINCT col2 DIV col0 - 60 FROM tab2 AS cor0
----
-57
-60
skipif mysql # not compatible
query I rowsort label-4044
SELECT DISTINCT col2 / col0 - 60 FROM tab2 AS cor0
----
-57
-60
query I rowsort
SELECT DISTINCT 9 AS col0 FROM tab1, tab2 AS cor0
----
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4046
SELECT - tab1.col1 DIV + ( + 93 ) + - col2 * ( ( col0 ) ) FROM tab1
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-4046
SELECT - tab1.col1 / + ( + 93 ) + - col2 * ( ( col0 ) ) FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-4048
SELECT + col2 * - CAST( cor0.col1 AS SIGNED ) + cor0.col1 DIV + cor0.col0 + 29 * - col2 AS col0 FROM tab1 AS cor0
----
-2223
-2962
-4032
skipif mysql # not compatible
query I rowsort label-4048
SELECT + col2 * - CAST ( cor0.col1 AS INTEGER ) + cor0.col1 / + cor0.col0 + 29 * - col2 AS col0 FROM tab1 AS cor0
----
-2223
-2962
-4032
query I rowsort
SELECT DISTINCT - cor0.col2 * - 75 AS col1 FROM tab0 cor0
----
2475
6150
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 8 * - col2 * + col2 col1 FROM tab2 AS cor0
----
-11631
-5486
-5839
query I rowsort
SELECT DISTINCT col0 * ( 36 ) AS col2 FROM tab1 AS cor0
----
108
2304
2880
query I rowsort
SELECT - - col2 * - ( + col2 ) + + col0 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT ALL + - col0 * - cor0.col0 + - col0 FROM tab1 AS cor0
----
4032
6
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-4054
SELECT DISTINCT + + col2 - - col1 DIV - col0 FROM tab1 AS cor0
----
46
57
96
skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT + + col2 - - col1 / - col0 FROM tab1 AS cor0
----
46
57
96
query I rowsort
SELECT DISTINCT col2 * col2 * col2 FROM tab0
----
1
35937
551368
query I rowsort
SELECT DISTINCT + cor0.col2 * + 15 FROM tab1 AS cor0
----
1440
810
855
query I rowsort
SELECT DISTINCT - 96 * col1 + cor0.col0 FROM tab2 cor0
----
-1553
-2969
-5586
query I rowsort
SELECT + - 47 AS col2 FROM tab1 cor0
----
-47
-47
-47
query I rowsort
SELECT + - ( + col1 ) * col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4060
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + ( col2 ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + ( col2 ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + - col0 * + 66 + + col1 * col2 FROM tab0 AS cor0
----
-2213
1254
1588
query I rowsort
SELECT ALL - 41 FROM tab1 cor0
----
-41
-41
-41
query I rowsort
SELECT ALL 73 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 9f0f371d979e70a792c8597c6559f0e2
query I rowsort
SELECT ALL + 28 FROM tab1, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4065
SELECT ALL - CAST( 28 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-28
-28
-28
skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL - CAST ( 28 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-28
-28
-28
query I rowsort
SELECT 38 AS col0 FROM tab0 AS cor0
----
38
38
38
query I rowsort
SELECT - col1 + 1 * + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - - 27 - - 24 FROM tab0 AS cor0
----
51
51
51
query I rowsort
SELECT + 2 FROM tab0, tab1 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT DISTINCT - col0 * 31 * col0 FROM tab1
----
-126976
-198400
-279
query I rowsort
SELECT + col2 * 45 FROM tab1 AS cor0
----
2430
2565
4320
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( + col2 AS REAL ) * + col2 + col1 * + col1 col0 FROM tab0 cor0
----
15005
8485
9410
query I rowsort
SELECT DISTINCT 34 * + col1 FROM tab1 AS cor0
----
340
442
884
query I rowsort
SELECT + - col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL col1 + - col2 * - 19 AS col0 FROM tab1 cor0
----
1052
1093
1837
query I rowsort
SELECT DISTINCT - + 49 * col1 AS col0 FROM tab2 AS cor0
----
-1519
-2891
-833
query I rowsort
SELECT + col1 - 21 AS col0 FROM tab2 AS cor0
----
-4
10
38
query I rowsort
SELECT + col2 * col2 + + col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT col1 * + col2 - 53 FROM tab0 cor0
----
2785
44
7409
query I rowsort
SELECT ALL 5 AS col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
query I rowsort
SELECT cor1.col1 - 79 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to c95955537278c23281cb829bce8b1e9c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * 87 * 12 col2 FROM tab2 AS cor0
----
7308
81432
82476
query I rowsort
SELECT col2 * + ( col1 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col2 * + ( + col0 * col1 ) FROM tab2
----
119652
51034
5859
query I rowsort
SELECT DISTINCT - + col1 * 71 AS col0 FROM tab2 AS cor0
----
-1207
-2201
-4189
query I rowsort
SELECT ALL + col2 * + col1 + col0 + col1 AS col0 FROM tab0 AS cor0
----
229
2948
7642
query I rowsort
SELECT ALL - col0 + - ( - col0 ) * col0 FROM tab0 AS cor0
----
1190
552
7832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4088
SELECT + cor0.col2 * - CAST( 26 * col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-174824
-26
-28314
skipif mysql # not compatible
query I rowsort label-4088
SELECT + cor0.col2 * - CAST ( 26 * col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-174824
-26
-28314
query I rowsort
SELECT col2 * 78 AS col2 FROM tab1 AS cor0
----
4212
4446
7488
query I rowsort
SELECT - col1 * + 26 AS col2 FROM tab0 AS cor0
----
-2236
-2366
-2522
query I rowsort
SELECT + col0 * - col0 * ( - cor0.col2 ) FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT ALL - 14 FROM tab0, tab2 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT + col0 - - col1 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col2 - - 78 AS col0 FROM tab1 AS cor0
----
-18
21
24
query I rowsort
SELECT ALL 81 + col0 FROM tab1 AS cor0
----
145
161
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-4096
SELECT ALL 64 DIV cor0.col0 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to a60e38b47c9a1630f49f788be1f1a012
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL 64 / cor0.col0 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to a60e38b47c9a1630f49f788be1f1a012
query I rowsort
SELECT DISTINCT col1 - - 59 * 27 FROM tab0
----
1679
1684
1690
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab1 cor1, tab0, tab2 AS cor2
----
3645 values hashing to d2c0c94b38e721d8cf9f7df226475a2f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col1 FROM tab0 cor0
----
-39
-39
-39
query I rowsort
SELECT DISTINCT - ( col0 ) * + ( + ( col2 ) ) AS col1 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4101
SELECT DISTINCT + col1 DIV + col1 AS col1 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT + col1 / + col1 AS col1 FROM tab1
----
1
query I rowsort
SELECT DISTINCT + col0 + + col1 * 75 FROM tab0 cor0
----
6474
6914
7310
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL + 21 AS col1 FROM tab0
----
21
21
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-4105
SELECT DISTINCT ( + col2 + col0 ) DIV - col2 FROM tab0
----
-1
-2
-36
skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT ( + col2 + col0 ) / - col2 FROM tab0
----
-1
-2
-36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4106
SELECT + CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4106
SELECT + CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT col0 FROM tab2 WHERE col2 NOT BETWEEN NULL AND col2
----
query I rowsort
SELECT ALL + col2 * + col2 + - col1 FROM tab1
----
2890
3239
9203
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - col2
----
query I rowsort
SELECT col1 * col1 + - col1 * - col2 + + col1 * col0 AS col0 FROM tab1
----
1310
2158
2457
query I rowsort
SELECT DISTINCT - col1 * - col2 + col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT ALL col2 * - col1 + - col0 * - tab0.col2 FROM tab0
----
-164
-2046
-62
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > - col1 + col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col2 + + col1 col1 FROM tab0
----
119
173
98
query I rowsort
SELECT - cor0.col0 * + cor0.col1 * col0 + - col2 AS col2 FROM tab1 AS cor0
----
-288
-41017
-83296
query I rowsort
SELECT + col1 - - col0 * 91 AS col2 FROM tab2 AS cor0
----
668
7157
7206
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col0 ) + + cor0.col2 + 26 * col2 col1 FROM tab1 AS cor0
----
1461
1603
2672
query I rowsort
SELECT - col2 + - col0 * ( + col1 ) FROM tab0 cor0
----
-2097
-3396
-8181
query I rowsort
SELECT ALL - 35 + cor0.col2 + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-69
-7251
-794
query I rowsort
SELECT + col2 * - col2 * + col1 + col1 AS col2 FROM tab0
----
-611793
-93568
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4121
SELECT - ( col1 ) DIV - tab0.col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4121
SELECT - ( col1 ) / - tab0.col1 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT + ( col1 ) * - col0 + - tab2.col0 FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT - tab2.col1 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5
query I rowsort
SELECT ALL ( col1 ) * - col1 + col2 * col1 AS col1 FROM tab0
----
-4558
-819
-9312
query I rowsort
SELECT DISTINCT + 96 - + col0 AS col0 FROM tab2 AS cor0
----
17
18
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4126
SELECT DISTINCT col1 - - col0 DIV - ( - 45 ) FROM tab0 AS cor0
----
86
92
97
skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT col1 - - col0 / - ( - 45 ) FROM tab0 AS cor0
----
86
92
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4127
SELECT DISTINCT 7 - col1 DIV - cor0.col0 FROM tab0 AS cor0
----
10
8
9
skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT 7 - col1 / - cor0.col0 FROM tab0 AS cor0
----
10
8
9
query I rowsort
SELECT ALL - col2 * cor0.col1 + col1 * - col0 + col0 AS col1 FROM tab0 AS cor0
----
-15472
-3457
-4878
query I rowsort
SELECT - 92 - + col1 AS col1 FROM tab0 AS cor0
----
-178
-183
-189
query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * col0 > NULL
----
query III rowsort
SELECT * FROM tab0 WHERE + col1 >= NULL
----
query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE NULL <> - col0
----
query I rowsort
SELECT cor0.col0 * cor0.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4829ede06f586935ff95a5b0dfdb9199
query I rowsort
SELECT col1 * col2 + + col1 * + col1 + - col1 FROM tab1 AS cor0
----
1404
2054
660
query I rowsort
SELECT - tab0.col0 AS col0 FROM tab0 WHERE ( col2 ) IN ( col0 )
----
query I rowsort
SELECT ALL col2 * - col0 + col2 FROM tab1
----
-108
-3591
-7584
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > col0 * + col0 / + col2
----
query I rowsort
SELECT col1 + - col2 * + col1 + + col1 FROM tab0
----
-2666
-7280
97
query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col2 * col2 + - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4140
SELECT ALL - col0 * col0 DIV - col1 + + col0 * col1 AS col2 FROM tab0
----
2070
3407
8186
skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL - col0 * col0 / - col1 + + col0 * col1 AS col2 FROM tab0
----
2070
3407
8186
query I rowsort
SELECT ALL + tab0.col2 + col0 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT - col2 + + col1 * col0 FROM tab2
----
1305
190
4576
query I rowsort
SELECT col1 + col2 * - col1 * - tab1.col2 FROM tab1
----
119821
32500
75842
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 2 col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - 20 * - 68 AS col2 FROM tab2 AS cor0
----
1360
1360
1360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4146
SELECT + - ( + 39 ) * col0 / - CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4146
SELECT + - ( + 39 ) * col0 / - CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + ( + 15 ) AS col2 FROM tab1 AS cor0
----
-15
-15
-15
onlyif mysql # use DIV operator for integer division
query I rowsort label-4148
SELECT + ( col0 ) + col1 DIV 63 FROM tab0 cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-4148
SELECT + ( col0 ) + col1 / 63 FROM tab0 cor0
----
25
36
90
query I rowsort
SELECT cor2.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4150
SELECT 86 + + col1 DIV - col2 AS col1 FROM tab0 cor0
----
-11
84
85
skipif mysql # not compatible
query I rowsort label-4150
SELECT 86 + + col1 / - col2 AS col1 FROM tab0 cor0
----
-11
84
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-4151
SELECT col0 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4151
SELECT col0 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT 82 * + col1 AS col2 FROM tab1 cor0
----
1066
2132
820
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 col2 FROM tab0
----
45
query I rowsort
SELECT 88 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT ALL ( + 4 ) * col0 FROM tab2
----
28
312
316
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 col0 FROM tab2
----
66
query I rowsort
SELECT DISTINCT - + col0 + col2 + col1 FROM tab1 AS cor0
----
29
3
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4158
SELECT - - col0 + col2 * + ( col1 ) + CAST( - col0 * col1 AS SIGNED ) FROM tab0 AS cor0
----
-3263
-548
798
skipif mysql # not compatible
query I rowsort label-4158
SELECT - - col0 + col2 * + ( col1 ) + CAST ( - col0 * col1 AS INTEGER ) FROM tab0 AS cor0
----
-3263
-548
798
query I rowsort
SELECT col2 * - 95 * 50 + col2 FROM tab2 AS cor0
----
-123474
-128223
-180462
onlyif mysql # use DIV operator for integer division
query I rowsort label-4160
SELECT DISTINCT col0 DIV col0 + 35 * col1 FROM tab1 AS cor0
----
351
456
911
skipif mysql # not compatible
query I rowsort label-4160
SELECT DISTINCT col0 / col0 + 35 * col1 FROM tab1 AS cor0
----
351
456
911
query I rowsort
SELECT ALL + - col0 + + col1 * - cor0.col2 - + col0 AS col1 FROM tab2 AS cor0
----
-1690
-804
-851
query I rowsort
SELECT DISTINCT + + col0 + - col2 * col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1041
-6546
69
query I rowsort
SELECT - col1 + + 0 + 84 FROM tab2 AS cor0
----
25
53
67
query I rowsort
SELECT - col0 * - col0 + col0 + col1 AS col0 FROM tab2
----
6221
6337
87
query I rowsort
SELECT DISTINCT 60 * - col0 + - col0 AS col0 FROM tab1
----
-183
-3904
-4880
onlyif mysql # use DIV operator for integer division
query I rowsort label-4166
SELECT + 12 DIV + col2 col1 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4166
SELECT + 12 / + col2 col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL 72 + col2 * tab0.col2 AS col2 FROM tab0
----
1161
6796
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4168
SELECT DISTINCT - col0 * col0 + CAST( - col0 AS SIGNED ) * col2 AS col2 FROM tab2
----
-238
-8112
-9243
skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT - col0 * col0 + CAST ( - col0 AS INTEGER ) * col2 AS col2 FROM tab2
----
-238
-8112
-9243
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4169
SELECT DISTINCT + 0 + - tab2.col0 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4169
SELECT DISTINCT + 0 + - tab2.col0 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT - col1 + + col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT - 55 FROM tab1, tab2 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3
query I rowsort
SELECT + + cor0.col1 * - 54 + col1 FROM tab2 cor0
----
-1643
-3127
-901
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 * + ( - col0 ) + col2 col0 FROM tab0 AS cor0
----
133
7471
911
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4174
SELECT ALL + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col2 + - col1 * - col1 + cor0.col2 FROM tab1 cor0
----
214
361
784
query I rowsort
SELECT ALL + + col0 + - 97 AS col0 FROM tab0 AS cor0
----
-62
-73
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-4177
SELECT DISTINCT + - col2 * col0 + + col1 DIV col1 FROM tab0 AS cor0
----
-34
-7297
-791
skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT + - col2 * col0 + + col1 / col1 FROM tab0 AS cor0
----
-34
-7297
-791
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + + ( - ( col0 ) ) col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4179
SELECT - col0 * CAST( + cor0.col2 AS SIGNED ) + col1 FROM tab2 cor0
----
-158
-1969
-2985
skipif mysql # not compatible
query I rowsort label-4179
SELECT - col0 * CAST ( + cor0.col2 AS INTEGER ) + col1 FROM tab2 cor0
----
-158
-1969
-2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 66 col1 FROM tab1 AS cor0
----
120
123
162
query I rowsort
SELECT ALL - col0 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT + - col2 * + col2 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
1375
3394
975
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4183
SELECT + - 41 * + col1 + CAST( ( + col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1012
-353
-437
skipif mysql # not compatible
query I rowsort label-4183
SELECT + - 41 * + col1 + CAST ( ( + col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1012
-353
-437
query I rowsort
SELECT 59 - col1 FROM tab0 cor0
----
-27
-32
-38
query I rowsort
SELECT - - col0 - - cor0.col0 AS col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT col1 * - col1 - col0 AS col0 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT ALL 73 + tab2.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to bb55bb7a7028c5833a465ed3eb1d8971
query I rowsort
SELECT DISTINCT - 64 AS col2 FROM tab0, tab0 AS cor0
----
-64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col1 FROM tab0
----
-38
-38
-38
query I rowsort
SELECT ALL - 75 AS col0 FROM tab2
----
-75
-75
-75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4191
SELECT + CAST( 78 AS SIGNED ) AS col1 FROM tab0
----
78
78
78
skipif mysql # not compatible
query I rowsort label-4191
SELECT + CAST ( 78 AS INTEGER ) AS col1 FROM tab0
----
78
78
78
query I rowsort
SELECT - 2 * col2 AS col0 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT cor1.col1 AS col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4194
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-4195
SELECT - col0 - - col1 DIV - ( + 78 * col1 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-4195
SELECT - col0 - - col1 / - ( + 78 * col1 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - ( + col0 ) + col2 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT - cor1.col2 - cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9a5747f396f9371b613126d1446f7355
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab0, tab1 AS cor1
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col0 AS REAL ) * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to adaea38eae032c1639715f21831dd376
query I rowsort
SELECT - 18 * 64 AS col0 FROM tab2 AS cor0
----
-1152
-1152
-1152
query I rowsort
SELECT ( 43 + + col1 ) AS col0 FROM tab1
----
53
56
69
query I rowsort
SELECT ALL 32 FROM tab1, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4204
SELECT CAST( NULL AS DECIMAL ) * 23 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4204
SELECT CAST ( NULL AS REAL ) * 23 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4205
SELECT CAST( NULL AS SIGNED ) * + ( - col2 ) * - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4205
SELECT CAST ( NULL AS INTEGER ) * + ( - col2 ) * - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + ( 80 ) + col2 AS col0 FROM tab1 AS cor0
----
134
137
176
query I rowsort
SELECT + col1 * 58 AS col2 FROM tab1 AS cor0
----
1508
580
754
query I rowsort
SELECT DISTINCT + 69 AS col2 FROM tab1, tab1 cor0, tab2 cor1, tab2 AS cor2
----
69
query I rowsort
SELECT col0 + col0 * + col0 * + col2 FROM tab1 AS cor0
----
233536
489
614480
skipif mysql # not compatible
query I rowsort
SELECT ALL + 13 * + col0 + CAST ( - col1 AS REAL ) AS col2 FROM tab2 AS cor0
----
1010
60
955
query I rowsort
SELECT - 40 * col1 AS col2 FROM tab2 AS cor0
----
-1240
-2360
-680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4212
SELECT col0 / CAST( NULL AS SIGNED ) + - col1 * - col2 + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4212
SELECT col0 / CAST ( NULL AS INTEGER ) + - col1 * - col2 + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + + ( tab0.col1 ) FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT col1 + ( + col2 ) * - col0 + - ( - col1 * col1 ) AS col2 FROM tab0
----
1074
6690
9471
query I rowsort
SELECT DISTINCT + 32 FROM tab2, tab2 AS cor0, tab1 cor1
----
32
query I rowsort
SELECT tab0.col0 - - 49 * - col1 AS col1 FROM tab0
----
-4190
-4370
-4718
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4217
SELECT - col1 + - CAST( NULL AS DECIMAL ) + 39 * col0 * - tab1.col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4217
SELECT - col1 + - CAST ( NULL AS REAL ) + 39 * col0 * - tab1.col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * + col1 * col1 AS col1 FROM tab0
----
244068
679042
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4219
SELECT DISTINCT - col2 * CAST( cor0.col0 AS SIGNED ) FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT - col2 * CAST ( cor0.col0 AS INTEGER ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - - 81 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT - col2 + 1 * - col0 * col1 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT + 19 AS col0 FROM tab1 AS cor0
----
19
query I rowsort
SELECT + cor0.col2 AS col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - col2 * ( 56 ) * tab0.col1 FROM tab0
----
-158928
-417872
-5432
onlyif mysql # use DIV operator for integer division
query I rowsort label-4225
SELECT ALL cor0.col1 * cor0.col2 + + col1 DIV cor0.col0 FROM tab0 AS cor0
----
2841
7463
99
skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL cor0.col1 * cor0.col2 + + col1 / cor0.col0 FROM tab0 AS cor0
----
2841
7463
99
query I rowsort
SELECT DISTINCT - cor0.col0 * + 81 AS col0 FROM tab0 cor0
----
-1944
-2835
-7209
query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col2 * col2 + + col0 FROM tab2 AS cor0
----
17654
19690
54951
onlyif mysql # use DIV operator for integer division
query I rowsort label-4228
SELECT + col1 DIV - ( + col1 ) FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4228
SELECT + col1 / - ( + col1 ) FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + col1 * - ( col1 ) + col2 AS col0 FROM tab0 AS cor0
----
-7363
-8199
-9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT DISTINCT col2 * - ( - 8 ) AS col0 FROM tab0 AS cor0
----
264
656
8
query I rowsort
SELECT ALL + col1 + col2 AS col0 FROM tab1 cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4233
SELECT ALL col0 * - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL col0 * - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + 4 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT DISTINCT col0 * 22 + col0 FROM tab2 AS cor0
----
161
1794
1817
query I rowsort
SELECT - + cor0.col0 + ( + ( col2 ) ) FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL - 99 + col0 AS col1 FROM tab2
----
-20
-21
-92
query I rowsort
SELECT 51 + 38 FROM tab0
----
89
89
89
query I rowsort
SELECT + col2 * + col0 + + col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT ALL + 8 FROM tab0, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT - col0 + col1 * - col0 - + col1 FROM tab2 cor0
----
-1439
-255
-4739
onlyif mysql # use DIV operator for integer division
query I rowsort label-4242
SELECT ALL tab0.col0 DIV + 34 col0 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to eff82df49d5880477456e4901e030e04
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL tab0.col0 / + 34 col0 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to eff82df49d5880477456e4901e030e04
onlyif mysql # use DIV operator for integer division
query I rowsort label-4243
SELECT DISTINCT + col2 * col1 DIV col1 + + tab1.col1 AS col0 FROM tab1
----
109
67
80
skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT + col2 * col1 / col1 + + tab1.col1 AS col0 FROM tab1
----
109
67
80
query I rowsort
SELECT + col2 + - col0 * - col0 + + col2 AS col2 FROM tab1
----
117
4210
6592
onlyif mysql # use DIV operator for integer division
query I rowsort label-4245
SELECT ALL + col1 + + cor0.col0 DIV 40 FROM tab1 AS cor0
----
11
15
26
skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL + col1 + + cor0.col0 / 40 FROM tab1 AS cor0
----
11
15
26
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 - col1 FROM tab2 cor0
----
-1593
-663
-868
query I rowsort
SELECT - - col2 + + col1 * - col0 AS col1 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT + cor0.col1 - col1 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + 10 + col0 FROM tab2 AS cor0
----
17
88
89
query I rowsort
SELECT DISTINCT - + 92 * + col2 AS col2 FROM tab2 AS cor0
----
-2392
-2484
-3496
query I rowsort
SELECT DISTINCT - 95 * - col0 AS col2 FROM tab2 AS cor0
----
665
7410
7505
query I rowsort
SELECT - - col1 * col0 * - col2 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL - 0 + + cor0.col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT 28 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
1792
2240
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4255
SELECT DISTINCT col2 * cor0.col1 * 71 + col2 + - cor0.col1 * + CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
101142
41097
89952
skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT col2 * cor0.col1 * 71 + col2 + - cor0.col1 * + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
101142
41097
89952
query I rowsort
SELECT ALL + - 96 AS col1 FROM tab2 AS cor0
----
-96
-96
-96
query I rowsort
SELECT + cor0.col2 * - col0 + col2 * col1 FROM tab0 cor0
----
164
2046
62
query I rowsort
SELECT ALL col1 * - col0 + + cor0.col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT - cor0.col1 * col2 * - col0 FROM tab2 AS cor0
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 col0 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT col0 + - col1 AS col1 FROM tab1 cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-4262
SELECT + col1 DIV col1 + - col2 AS col0 FROM tab2
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-4262
SELECT + col1 / col1 + - col2 AS col0 FROM tab2
----
-25
-26
-37
query I rowsort
SELECT ALL + + col1 + col0 * - 48 * col1 FROM tab0 AS cor0
----
-162863
-388661
-98986
query I rowsort
SELECT DISTINCT 3 + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-159
-3645
-7677
query I rowsort
SELECT 11 * col2 + 47 FROM tab0 AS cor0
----
410
58
949
query I rowsort
SELECT DISTINCT + + 34 + col0 FROM tab1 AS cor0
----
114
37
98
query I rowsort
SELECT ALL - 64 * - col0 AS col0 FROM tab0 AS cor0
----
1536
2240
5696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col2 FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4269
SELECT col0 + col1 DIV - ( col0 ) AS col1 FROM tab2 AS cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-4269
SELECT col0 + col1 / - ( col0 ) AS col1 FROM tab2 AS cor0
----
3
78
79
query I rowsort
SELECT + cor0.col2 * col2 + cor0.col1 AS col1 FROM tab1 cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT + col2 * + 99 + + 96 + col0 AS col1 FROM tab2 AS cor0
----
2748
2776
3937
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col1 col2 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 83 col2 FROM tab2 AS cor0
----
161
162
90
query I rowsort
SELECT ALL - + col0 * + col2 + - col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-378
-4056
-6004
query I rowsort
SELECT ALL tab0.col1 * cor0.col2 FROM tab0, tab2 cor0
----
9 values hashing to 3aa3dc9c06ac75ec040ed5bc20953cf9
query I rowsort
SELECT 87 + col2 AS col2 FROM tab2
----
113
114
125
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 * col1 * col0 + - col1 col1 FROM tab0 AS cor0
----
3333
664116
68050
query I rowsort
SELECT + col1 + 45 * + col2 FROM tab2 AS cor0
----
1229
1246
1727
onlyif mysql # use DIV operator for integer division
query I rowsort label-4279
SELECT + - 23 DIV + cor0.col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-10
-64
-80
skipif mysql # not compatible
query I rowsort label-4279
SELECT + - 23 / + cor0.col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-10
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4280
SELECT + 57 + - col0 DIV col0 - - ( - 69 ) col0 FROM tab0 AS cor0
----
-13
-13
-13
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4280
SELECT + 57 + - col0 / col0 - - ( - 69 ) col0 FROM tab0 AS cor0
----
-13
-13
-13
query I rowsort
SELECT DISTINCT - col2 * - col1 + col0 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4282
SELECT ALL + CAST( NULL AS SIGNED ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL + CAST ( NULL AS INTEGER ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4283
SELECT DISTINCT col0 DIV + 86 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT col0 / + 86 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT + - 63 + + 84 AS col2 FROM tab1 AS cor0
----
21
21
21
query I rowsort
SELECT - + 66 + col0 * col1 FROM tab0 AS cor0
----
1998
3329
8033
query I rowsort
SELECT ALL - 16 * col1 AS col2 FROM tab1 AS cor0
----
-160
-208
-416
query I rowsort
SELECT - 65 FROM tab0, tab2 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23
onlyif mysql # use DIV operator for integer division
query I rowsort label-4288
SELECT DISTINCT + cor0.col0 DIV + 5 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
22
26
29
skipif mysql # not compatible
query I rowsort label-4288
SELECT DISTINCT + cor0.col0 / + 5 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
22
26
29
query I rowsort
SELECT ALL + 1 * - col2 + - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT DISTINCT - col1 + 68 FROM tab1 AS cor0
----
42
55
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-4291
SELECT ALL + 35 DIV + 33 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL + 35 / + 33 AS col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT col2 * - ( col0 ) + + col2 * 92 * col2 FROM tab2
----
129846
60164
66879
query I rowsort
SELECT - 3 * - col0 + - col0 * + 61 AS col1 FROM tab0 AS cor0
----
-1392
-2030
-5162
query I rowsort
SELECT ALL - 77 + - col0 AS col1 FROM tab1
----
-141
-157
-80
query I rowsort
SELECT ALL + - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT DISTINCT + 70 FROM tab1, tab2 AS cor0, tab0, tab1 AS cor1
----
70
query I rowsort
SELECT DISTINCT + 9 FROM tab2, tab1 AS cor0, tab0 cor1
----
9
query I rowsort
SELECT + - col0 * 88 FROM tab1 AS cor0
----
-264
-5632
-7040
query I rowsort
SELECT - col2 * ( col2 ) * + col1 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT col1 * 66 + col2 * + 45 FROM tab0 AS cor0
----
6447
7161
9696
query I rowsort
SELECT DISTINCT + - col1 * - col2 + + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL col1 - - col0 AS col2 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4303
SELECT + CAST( NULL AS DECIMAL ) * + 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-4303
SELECT + CAST ( NULL AS REAL ) * + col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 12 * col0 + - col1 + 36 FROM tab0 AS cor0
----
1013
238
359
onlyif mysql # use DIV operator for integer division
query I rowsort label-4305
SELECT + + col1 DIV col1 AS col1 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4305
SELECT + + col1 / col1 AS col1 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT + 2 * cor0.col2 * col0 FROM tab1 AS cor0
----
15360
324
7296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4307
SELECT ALL CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT 47 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
query I rowsort
SELECT - cor0.col2 * - cor0.col2 + - ( col1 * + col2 ) AS col1 FROM tab2 AS cor0
----
-108
-858
798
onlyif mysql # use DIV operator for integer division
query I rowsort label-4310
SELECT - col1 + + col0 + + col0 * 12 DIV + col2 FROM tab1 AS cor0
----
-23
67
77
skipif mysql # not compatible
query I rowsort label-4310
SELECT - col1 + + col0 + + col0 * 12 / + col2 FROM tab1 AS cor0
----
-23
67
77
query I rowsort
SELECT + + col2 + cor0.col1 * ( - col1 + col1 ) AS col0 FROM tab2 cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4312
SELECT + 21 * cor0.col0 + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
1958
528
770
skipif mysql # not compatible
query I rowsort label-4312
SELECT + 21 * cor0.col0 + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
1958
528
770
query I rowsort
SELECT 70 * - col0 + 75 + col1 FROM tab1 AS cor0
----
-109
-4395
-5512
query I rowsort
SELECT 3 * + tab1.col2 FROM tab1
----
162
171
288
query I rowsort
SELECT - tab2.col1 + + 98 FROM tab2
----
39
67
81
query I rowsort
SELECT tab2.col1 + cor0.col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 0d3314bb1336bbbe450f5f7434b6b3cd
query I rowsort
SELECT + + cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL col2 * 28 FROM tab1 AS cor0
----
1512
1596
2688
query I rowsort
SELECT ALL + 98 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT - col1 * col1 * - cor0.col1 + cor0.col0 FROM tab1 AS cor0
----
1064
17579
2277
onlyif mysql # use DIV operator for integer division
query I rowsort label-4321
SELECT DISTINCT - + col1 DIV ( - col2 ) + col1 FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT - + col1 / ( - col2 ) + col1 FROM tab1 cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4322
SELECT ALL - col0 * CAST( + ( col1 ) AS SIGNED ) * col1 AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400
skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL - col0 * CAST ( + ( col1 ) AS INTEGER ) * col1 AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT + col1 * ( col1 ) * + col2 - 62 FROM tab2 AS cor0
----
10920
25885
90444
query I rowsort
SELECT ALL - col1 + ( col0 ) * - col0 AS col2 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT DISTINCT col1 * col2 * - col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT col0 * - cor0.col1 + + col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT + col1 * + 34 FROM tab0 cor0
----
2924
3094
3298
query I rowsort
SELECT DISTINCT + col2 + + col2 * 16 FROM tab1 AS cor0
----
1632
918
969
onlyif mysql # use DIV operator for integer division
query I rowsort label-4329
SELECT col2 DIV col2 - - col1 * + col1 AS col2 FROM tab0
----
7397
8282
9410
skipif mysql # not compatible
query I rowsort label-4329
SELECT col2 / col2 - - col1 * + col1 AS col2 FROM tab0
----
7397
8282
9410
query I rowsort
SELECT - 90 + col1 FROM tab1
----
-64
-77
-80
query I rowsort
SELECT - col1 + tab1.col0 - + col2 AS col1 FROM tab1
----
-29
-3
-77
query I rowsort
SELECT DISTINCT + 7 + - col0 * col2 AS col1 FROM tab0
----
-28
-7291
-785
query I rowsort
SELECT - 3 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166
query I rowsort
SELECT col0 * - col1 + 55 FROM tab0 AS cor0
----
-2009
-3340
-8044
onlyif mysql # use DIV operator for integer division
query I rowsort label-4335
SELECT + col0 DIV - 85 + cor0.col1 - col1 DIV + 79 AS col2 FROM tab0 AS cor0
----
85
89
96
skipif mysql # not compatible
query I rowsort label-4335
SELECT + col0 / - 85 + cor0.col1 - col1 / + 79 AS col2 FROM tab0 AS cor0
----
85
89
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4336
SELECT + + 26 - 49 DIV col1 FROM tab2 cor0
----
24
25
26
skipif mysql # not compatible
query I rowsort label-4336
SELECT + + 26 - 49 / col1 FROM tab2 cor0
----
24
25
26
query I rowsort
SELECT col0 - col0 * - tab0.col0 AS col0 FROM tab0
----
1260
600
8010
query I rowsort
SELECT + ( + col2 ) + 0 * + ( - col0 * + col1 ) AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + col2 * - col0 + col1 * 58 FROM tab0 cor0
----
-2020
4196
5591
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 col2 FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col2 col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT 96 * col0 FROM tab2
----
672
7488
7584
query I rowsort
SELECT DISTINCT ( - col1 ) + ( 17 ) AS col2 FROM tab2
----
-14
-42
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4344
SELECT ( col2 ) + + CAST( NULL AS DECIMAL ) * - col0 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4344
SELECT ( col2 ) + + CAST ( NULL AS REAL ) * - col0 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * col1 - 73 AS col2 FROM tab1 AS cor0
----
1175
1331
497
query I rowsort
SELECT DISTINCT - col0 - - col0 FROM tab1 cor0
----
0
query I rowsort
SELECT - 13 - col1 AS col2 FROM tab0 AS cor0
----
-104
-110
-99
query I rowsort
SELECT DISTINCT + cor0.col2 + - col2 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + ( + ( + col2 ) ) + col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT 1 * 4 FROM tab0 AS cor0
----
4
query I rowsort
SELECT ALL - ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + ( - 62 ) FROM tab1 AS cor0
----
-62
-62
-62
query I rowsort
SELECT 52 * 99 FROM tab2 AS cor0
----
5148
5148
5148
query I rowsort
SELECT DISTINCT - 86 * col1 * - col0 AS col2 FROM tab1 cor0
----
55040
6708
89440
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4355
SELECT CAST( col2 AS SIGNED ) + + cor0.col2 * CAST( 16 * col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
20064
22518
9177
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4355
SELECT CAST ( col2 AS INTEGER ) + + cor0.col2 * CAST ( 16 * col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
20064
22518
9177
onlyif mysql # use DIV operator for integer division
query I rowsort label-4356
SELECT + - col2 DIV + col2 + - col0 DIV 60 + - col0 col2 FROM tab0 AS cor0
----
-25
-36
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4356
SELECT + - col2 / + col2 + - col0 / 60 + - col0 col2 FROM tab0 AS cor0
----
-25
-36
-91
query I rowsort
SELECT ALL 11 AS col2 FROM tab2 AS cor0
----
11
11
11
query I rowsort
SELECT ALL + ( 96 ) FROM tab0 AS cor0
----
96
96
96
query I rowsort
SELECT + - 73 + 29 * col1 AS col0 FROM tab2 cor0
----
1638
420
826
query I rowsort
SELECT + ( + col1 ) * - col0 + - ( col1 ) * - col1 + col1 AS col2 FROM tab0 AS cor0
----
273
5418
6111
query I rowsort
SELECT 11 + + col0 * ( col0 ) AS col2 FROM tab0 AS cor0
----
1236
587
7932
query I rowsort
SELECT DISTINCT + + 39 + col1 AS col1 FROM tab0 AS cor0
----
125
130
136
query I rowsort
SELECT DISTINCT 72 + col2 AS col1 FROM tab0 AS cor0
----
105
154
73
query I rowsort
SELECT tab2.col1 + 43 FROM tab2
----
102
60
74
query I rowsort
SELECT col2 * tab2.col2 * + col2 FROM tab2
----
17576
19683
54872
query I rowsort
SELECT - ( - col0 ) - col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT ALL 48 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2, tab0 cor2
----
3645 values hashing to ba0381921410f59519cc658d8e65eee3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - cor0.col1 ) col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4370
SELECT - - col0 + CAST( NULL AS SIGNED ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4370
SELECT - - col0 + CAST ( NULL AS INTEGER ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + ( cor0.col2 ) * col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT col2 + + col1 * col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT - - col1 * 91 - 68 AS col1 FROM tab0 cor0
----
7758
8213
8759
query I rowsort
SELECT ALL + + col2 + 16 AS col1 FROM tab1 AS cor0
----
112
70
73
query I rowsort
SELECT ALL - 41 * - 5 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fe4fd90442e9bf0cc16392ecc6ad1585
query I rowsort
SELECT col1 * - col1 - - 89 FROM tab2 cor0
----
-200
-3392
-872
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4377
SELECT col0 - - CAST( + 98 AS SIGNED ) * - tab2.col1 FROM tab2
----
-1587
-3031
-5704
skipif mysql # not compatible
query I rowsort label-4377
SELECT col0 - - CAST ( + 98 AS INTEGER ) * - tab2.col1 FROM tab2
----
-1587
-3031
-5704
query I rowsort
SELECT col2 * ( - tab1.col1 ) * - col2 AS col2 FROM tab1
----
119808
32490
75816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col1 + + col2 col2 FROM tab0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 + 16 * - col2 col1 FROM tab2 AS cor0
----
-390
-405
-570
query I rowsort
SELECT cor0.col1 * col2 + col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - col0 * - ( - col1 ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col2 + - 55 * 56 FROM tab1
----
-2984
-3023
-3026
query I rowsort
SELECT + cor0.col1 * col1 - + col1 AS col1 FROM tab0 AS cor0
----
7310
8190
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 * - tab1.col1 + col1 col0 FROM tab1
----
13533
2054
6410
onlyif mysql # use DIV operator for integer division
query I rowsort label-4386
SELECT DISTINCT - col2 DIV 33 FROM tab2
----
-1
0
skipif mysql # not compatible
query I rowsort label-4386
SELECT DISTINCT - col2 / 33 FROM tab2
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4387
SELECT 58 DIV - cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 12cf998ae1d669a29d1b8503397eeb1c
skipif mysql # not compatible
query I rowsort label-4387
SELECT 58 / - cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 12cf998ae1d669a29d1b8503397eeb1c
skipif mysql # not compatible
query I rowsort
SELECT ( + col0 ) * - col2 - CAST ( + ( col2 ) AS REAL ) FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT + ( col1 ) * cor0.col2 + 62 * - col1 AS col1 FROM tab0 AS cor0
----
-2494
-5917
1820
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col1 FROM tab0
----
9
9
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - cor0.col0 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col2 * col2 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + - col0 * 61 FROM tab0 AS cor0
----
-1464
-2135
-5429
query I rowsort
SELECT ALL + cor0.col0 + 94 AS col2 FROM tab0 AS cor0
----
118
129
183
query I rowsort
SELECT DISTINCT col0 * ( + ( + cor0.col2 ) ) + - cor0.col2 * + 77 AS col1 FROM tab2 AS cor0
----
-1890
26
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-4396
SELECT DISTINCT col1 DIV cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT col1 / cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
3
36
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * cor0.col1 col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col2 * 64 AS col2 FROM tab0 AS cor0
----
2112
5248
64
query I rowsort
SELECT - col2 * + col0 + + col1 FROM tab1
----
-136
-3638
-7667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4400
SELECT CAST( - col0 + + col1 AS SIGNED ) * - col2 FROM tab2
----
-648
2356
494
skipif mysql # not compatible
query I rowsort label-4400
SELECT CAST ( - col0 + + col1 AS INTEGER ) * - col2 FROM tab2
----
-648
2356
494
query I rowsort
SELECT ALL - tab0.col0 * + 97 AS col1 FROM tab0
----
-2328
-3395
-8633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT + 93 AS col1 FROM tab0 cor0
----
93
93
93
query I rowsort
SELECT DISTINCT + + ( - cor0.col2 ) * col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT + - col1 * + cor0.col2 * + cor0.col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT 27 * + cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
207360
4374
98496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 76 col1 FROM tab0 AS cor0
----
1824
2660
6764
query I rowsort
SELECT col2 * - ( - 70 ) FROM tab2 AS cor0
----
1820
1890
2660
query I rowsort
SELECT DISTINCT - col1 * - ( cor0.col0 ) FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4410
SELECT DISTINCT + + col2 DIV - ( - col1 ) col2 FROM tab1 AS cor0
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT + + col2 / - ( - col1 ) col2 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT + - col2 + + 58 FROM tab1 AS cor0
----
-38
1
4
query I rowsort
SELECT + - cor0.col2 - - 85 FROM tab2 cor0
----
47
58
59
query I rowsort
SELECT + col2 * + cor0.col0 + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + + col0 * 57 AS col1 FROM tab2 AS cor0
----
399
4446
4503
query I rowsort
SELECT - + col1 * 82 FROM tab0 AS cor0
----
-7052
-7462
-7954
query I rowsort
SELECT - 12 FROM tab1, tab1 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45
query I rowsort
SELECT + cor1.col2 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4418
SELECT col1 + CAST( - col1 AS SIGNED ) FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4418
SELECT col1 + CAST ( - col1 AS INTEGER ) FROM tab1
----
0
0
0
query I rowsort
SELECT + col2 * col1 + - col1 + col2 * col0 AS col0 FROM tab0 AS cor0
----
14669
35
3544
onlyif mysql # use DIV operator for integer division
query I rowsort label-4420
SELECT ALL - col0 + - cor0.col1 DIV - col0 FROM tab0 AS cor0
----
-21
-33
-88
skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL - col0 + - cor0.col1 / - col0 FROM tab0 AS cor0
----
-21
-33
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-4421
SELECT + - col2 DIV col2 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4421
SELECT + - col2 / col2 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + col1 + - col2 * col0 * + col0 AS col0 FROM tab1 AS cor0
----
-233462
-460
-614387
query I rowsort
SELECT DISTINCT + - col0 + + col1 * + col1 AS col2 FROM tab1 AS cor0
----
36
673
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 * + col1 col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT - col2 + - col2 + + col1 AS col0 FROM tab1 cor0
----
-104
-179
-82
query I rowsort
SELECT ALL + + col0 * - col1 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4427
SELECT ALL - - cor0.col0 DIV - col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - - cor0.col0 / - col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT + col0 * + col0 + + col2 * - col0 * col0 AS col0 FROM tab1 AS cor0
----
-229376
-477
-608000
query I rowsort
SELECT + cor0.col1 - + col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT + col2 * col0 + - col1 FROM tab0 AS cor0
----
-62
706
7207
onlyif mysql # use DIV operator for integer division
query I rowsort label-4431
SELECT DISTINCT - - col1 DIV cor0.col1 + - col1 AS col2 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT - - col1 / cor0.col1 + - col1 AS col2 FROM tab2 AS cor0
----
-16
-30
-58
query I rowsort
SELECT col1 * col1 - + col1 * + tab2.col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + - col1 col2 FROM tab1
----
-188
-3658
-7693
query I rowsort
SELECT ALL + col0 + - col1 * tab1.col1 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT DISTINCT - col0 + - col1 + - col2 FROM tab0
----
-133
-143
-262
query I rowsort
SELECT ALL - col2 * + col2 + + col1 + col1 * col2 FROM tab2
----
-781
139
917
query I rowsort
SELECT ALL + col2 * col2 + + cor0.col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT ALL col2 * col0 * + col2 AS col1 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT ALL + 73 * + col1 FROM tab0
----
6278
6643
7081
query I rowsort
SELECT ALL + col2 * col1 * + tab1.col0 + tab1.col2 - - col2 FROM tab1
----
100032
36594
4320
query I rowsort
SELECT ALL + col0 * + col2 - col2 AS col2 FROM tab0
----
34
7216
759
query I rowsort
SELECT DISTINCT - col2 - + col2 AS col1 FROM tab1
----
-108
-114
-192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 * col2 col1 FROM tab1
----
119808
32490
75816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * + col2 col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT + col2 * col2 AS col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT + col1 + col0 - - 56 FROM tab2 AS cor0
----
152
193
94
query I rowsort
SELECT + - 7 AS col1 FROM tab2 cor0
----
-7
-7
-7
query I rowsort
SELECT col0 * + col0 + + col2 AS col1 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT ALL - - 64 FROM tab1 AS cor0
----
64
64
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 + + 74 col2 FROM tab2
----
-1269
-143
-4528
query I rowsort
SELECT + 49 * col2 FROM tab0 AS cor0
----
1617
4018
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 * + 25 col1 FROM tab2 AS cor0
----
-16900
-18225
-36100
query I rowsort
SELECT - cor0.col0 * + col2 + col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT col2 * + cor0.col1 + col0 AS col1 FROM tab2 cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-4456
SELECT ALL 94 DIV - col1 AS col2 FROM tab1 AS cor0
----
-3
-7
-9
skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL 94 / - col1 AS col2 FROM tab1 AS cor0
----
-3
-7
-9
query I rowsort
SELECT ALL - col2 + col2 * 76 * - ( col2 ) FROM tab0 AS cor0
----
-511106
-77
-82797
query I rowsort
SELECT DISTINCT - col2 * 85 + col1 AS col2 FROM tab2 AS cor0
----
-2151
-2264
-3213
query I rowsort
SELECT DISTINCT + col1 - col0 AS col1 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT ALL + cor0.col0 * + col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - col0 + - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + + col0 + col2 * cor0.col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT 4 + + col0 FROM tab0
----
28
39
93
query I rowsort
SELECT ALL - - col1 - ( + cor0.col1 * + col0 ) FROM tab2 AS cor0
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - col0 col0 FROM tab1 cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4466
SELECT DISTINCT - cor0.col2 * - col0 DIV - col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT - cor0.col2 * - col0 / - col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - 11 FROM tab2, tab2 AS cor0
----
-11
query I rowsort
SELECT ALL ( 23 ) * + col1 FROM tab2 AS cor0
----
1357
391
713
onlyif mysql # use DIV operator for integer division
query I rowsort label-4469
SELECT + 96 DIV - col1 FROM tab2 AS cor0
----
-1
-3
-5
skipif mysql # not compatible
query I rowsort label-4469
SELECT + 96 / - col1 FROM tab2 AS cor0
----
-1
-3
-5
query I rowsort
SELECT DISTINCT + 17 + 31 AS col0 FROM tab1 cor0
----
48
query I rowsort
SELECT DISTINCT - - col2 + 25 AS col1 FROM tab0 AS cor0
----
107
26
58
query I rowsort
SELECT ALL ( - col0 ) AS col2 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL - col2 * + 37 AS col1 FROM tab0 AS cor0
----
-1221
-3034
-37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4474
SELECT ALL - CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4475
SELECT CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4475
SELECT CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - - 69 * col1 AS col0 FROM tab1 AS cor0
----
1794
690
897
onlyif mysql # use DIV operator for integer division
query I rowsort label-4477
SELECT DISTINCT - - ( - 93 ) + cor0.col1 * ( + 47 ) DIV col2 AS col2 FROM tab0 AS cor0
----
-41
29
4466
skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT - - ( - 93 ) + cor0.col1 * ( + 47 ) / col2 AS col2 FROM tab0 AS cor0
----
-41
29
4466
query I rowsort
SELECT DISTINCT col2 * - col0 * col2 AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - tab2.col1 ) col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT - col2 * + col0 + 87 - + col1 AS col2 FROM tab2 AS cor0
----
-133
-2000
-2932
query I rowsort
SELECT ALL - cor0.col1 * - col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - 66 * + col1 AS col2 FROM tab1 AS cor0
----
-1716
-660
-858
query I rowsort
SELECT ALL - col1 + cor0.col1 - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - col1 * + col1 + ( 87 ) FROM tab2 AS cor0
----
-202
-3394
-874
query I rowsort
SELECT - ( + 85 ) * - cor0.col2 + - cor0.col2 * 57 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to de80fc70e79e9e7d591f8f9c82056ce5
query I rowsort
SELECT DISTINCT col0 * - ( col0 ) * - col2 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT + col0 * - 36 + col0 FROM tab2
----
-245
-2730
-2765
onlyif mysql # use DIV operator for integer division
query I rowsort label-4488
SELECT + col0 DIV - col2 AS col0 FROM tab0 cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-4488
SELECT + col0 / - col2 AS col0 FROM tab0 cor0
----
-1
-35
0
query I rowsort
SELECT - ( + col2 ) * 55 AS col2 FROM tab1 AS cor0
----
-2970
-3135
-5280
query I rowsort
SELECT + 63 FROM tab2, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * col1 col1 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4492
SELECT DISTINCT + tab0.col2 + col1 DIV col1 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-4492
SELECT DISTINCT + tab0.col2 + col1 / col1 FROM tab0
----
2
34
83
query I rowsort
SELECT - tab0.col1 * - cor0.col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to d09890f5ef66bc8fba3ae4a45b718168
query I rowsort
SELECT ALL tab2.col1 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-4495
SELECT col1 * + col0 DIV col0 AS col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4495
SELECT col1 * + col0 / col0 AS col1 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-4496
SELECT - 35 DIV + col0 + - 99 + 49 AS col1 FROM tab2
----
-50
-50
-55
skipif mysql # not compatible
query I rowsort label-4496
SELECT - 35 / + col0 + - 99 + 49 AS col1 FROM tab2
----
-50
-50
-55
query I rowsort
SELECT DISTINCT - 26 + - tab0.col1 FROM tab0
----
-112
-117
-123
query I rowsort
SELECT DISTINCT + 75 AS col2 FROM tab0 AS cor0
----
75
query I rowsort
SELECT ALL - 34 + col0 FROM tab1 AS cor0
----
-31
30
46
query I rowsort
SELECT 79 + - col1 FROM tab2 cor0
----
20
48
62
query I rowsort
SELECT - ( + col0 + + ( + 39 ) ) FROM tab2
----
-117
-118
-46
query I rowsort
SELECT 57 * - ( col1 ) + + cor0.col2 AS col2 FROM tab2 cor0
----
-1740
-3337
-931
query I rowsort
SELECT + col2 * + col2 + - col1 FROM tab0
----
-96
1003
6633
query I rowsort
SELECT ALL col2 + - 59 FROM tab0 cor0
----
-26
-58
23
query I rowsort
SELECT DISTINCT + ( + col2 ) * col2 + + col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT - + ( + cor0.col1 ) + col1 AS col2 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - col0 col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT ( + 96 ) AS col2 FROM tab2
----
96
query I rowsort
SELECT ALL - ( ( col0 ) ) + col1 AS col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT + ( - 17 ) + col1 * + 20 AS col1 FROM tab0 AS cor0
----
1703
1803
1923
query I rowsort
SELECT DISTINCT 24 + - col2 + + col1 * 10 * + 93 AS col0 FROM tab0 AS cor0
----
79971
84572
90233
query I rowsort
SELECT ALL 8 * + 62 FROM tab0 AS cor0
----
496
496
496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4513
SELECT ALL + CAST( + 93 AS SIGNED ) + + cor0.col0 col1 FROM tab0 AS cor0
----
117
128
182
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL + CAST ( + 93 AS INTEGER ) + + cor0.col0 col1 FROM tab0 AS cor0
----
117
128
182
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 col0 FROM tab0 cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL 3 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ( + cor0.col2 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT DISTINCT ( + col0 ) * col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT + col1 * col2 + + col0 + + col0 FROM tab1 AS cor0
----
1408
1410
698
query I rowsort
SELECT tab2.col0 + col0 AS col0 FROM tab2
----
14
156
158
query I rowsort
SELECT ALL - ( col0 ) + - tab1.col2 FROM tab1
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4522
SELECT - 50 * col1 + - col2 DIV + col1 AS col1 FROM tab2
----
-1550
-2950
-852
skipif mysql # not compatible
query I rowsort label-4522
SELECT - 50 * col1 + - col2 / + col1 AS col1 FROM tab2
----
-1550
-2950
-852
query I rowsort
SELECT + + col2 + - cor0.col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + col1 + cor0.col2 AS col0 FROM tab2 cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-4525
SELECT - col1 DIV 52 + cor0.col1 AS col2 FROM tab2 AS cor0
----
17
31
58
skipif mysql # not compatible
query I rowsort label-4525
SELECT - col1 / 52 + cor0.col1 AS col2 FROM tab2 AS cor0
----
17
31
58
query I rowsort
SELECT + - col0 * ( 87 ) - - col2 AS col0 FROM tab2 cor0
----
-582
-6760
-6835
onlyif mysql # use DIV operator for integer division
query I rowsort label-4527
SELECT + col1 * - col2 - + col0 DIV col0 FROM tab1 AS cor0
----
-1249
-1405
-571
skipif mysql # not compatible
query I rowsort label-4527
SELECT + col1 * - col2 - + col0 / col0 FROM tab1 AS cor0
----
-1249
-1405
-571
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col1 + - col0 - - tab1.col0 col2 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL col2 * ( col0 ) * + tab0.col2 AS col1 FROM tab0
----
26136
35
598436
query I rowsort
SELECT ALL - col2 * + 31 AS col0 FROM tab0 AS cor0
----
-1023
-2542
-31
query I rowsort
SELECT ALL - 13 FROM tab0, tab0 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
query I rowsort
SELECT - col0 + 85 AS col0 FROM tab2
----
6
7
78
query I rowsort
SELECT DISTINCT + - ( + col1 ) + col0 + col0 * - ( col2 ) FROM tab1 AS cor0
----
-185
-3594
-7613
query I rowsort
SELECT + ( col1 ) * cor0.col1 + - 13 FROM tab0 AS cor0
----
7383
8268
9396
query I rowsort
SELECT DISTINCT - col0 + cor0.col2 * + col1 AS col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ALL - col1 + cor0.col2 * + col0 AS col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT + 46 * cor0.col1 + col0 FROM tab1 AS cor0
----
1199
524
678
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4538
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - ( col2 ) * + cor0.col1 + - col1 * col2 + - col2 FROM tab1 AS cor0
----
-1197
-2592
-2862
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4540
SELECT + CAST( + col1 AS SIGNED ) + col2 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-4540
SELECT + CAST ( + col1 AS INTEGER ) + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + - 34 + col2 FROM tab1 cor0
----
20
23
62
query I rowsort
SELECT - col0 + + cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT DISTINCT - 85 + - col1 FROM tab0 AS cor0
----
-171
-176
-182
query I rowsort
SELECT DISTINCT - - 70 AS col2 FROM tab1 AS cor0
----
70
query I rowsort
SELECT + - cor0.col1 * - col0 + + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-4546
SELECT ALL ( col1 ) + + cor0.col2 + cor0.col2 DIV col0 FROM tab1 AS cor0
----
110
67
98
skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL ( col1 ) + + cor0.col2 + cor0.col2 / col0 FROM tab1 AS cor0
----
110
67
98
query I rowsort
SELECT DISTINCT - col0 * + col2 - - col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT + ( col1 ) + + cor0.col1 * - col0 AS col2 FROM tab1 cor0
----
-1027
-52
-630
query I rowsort
SELECT 95 - col1 AS col2 FROM tab0 AS cor0
----
-2
4
9
query I rowsort
SELECT ALL ( cor0.col0 ) * col1 - + col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT - 55 + - 68 * col1 AS col1 FROM tab2 AS cor0
----
-1211
-2163
-4067
query I rowsort
SELECT DISTINCT + ( + 30 ) * + col2 + col2 + col1 AS col1 FROM tab0 AS cor0
----
1109
128
2633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) * - col2 + + ( - 30 ) col1 FROM tab1 AS cor0
----
132
3618
7650
query I rowsort
SELECT - col2 * + col1 * + col2 + col0 * col0 AS col0 FROM tab0 AS cor0
----
-603963
-93078
1128
query I rowsort
SELECT ALL cor0.col1 + cor0.col2 * col1 * - col1 FROM tab0 AS cor0
----
-243982
-678951
-9312
query I rowsort
SELECT 96 * - col1 + ( + col1 ) * col0 AS col2 FROM tab0
----
-5917
-6192
-637
onlyif mysql # use DIV operator for integer division
query I rowsort label-4557
SELECT ALL - col1 DIV - col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL - col1 / - col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT - ( + col1 ) + 39 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-13
13
19
query I rowsort
SELECT ALL - 18 * col1 AS col1 FROM tab1 AS cor0
----
-180
-234
-468
query I rowsort
SELECT col2 + - col1 + 26 FROM tab1 AS cor0
----
109
54
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4561
SELECT DISTINCT + col1 + col0 * CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
2150
3492
8190
skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT + col1 + col0 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + + col1 * cor0.col0 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL + ( - col1 ) * ( - col0 ) AS col1 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4564
SELECT DISTINCT col2 DIV col1 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT col2 / col1 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - + 73 FROM tab2 AS cor0
----
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-4566
SELECT - + 10 + + cor0.col0 + - 48 DIV 70 FROM tab1 AS cor0
----
-7
54
70
skipif mysql # not compatible
query I rowsort label-4566
SELECT - + 10 + + cor0.col0 + - 48 / 70 FROM tab1 AS cor0
----
-7
54
70
query I rowsort
SELECT DISTINCT - cor0.col2 * - ( - col1 ) + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT - cor0.col0 + cor0.col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT col0 + + cor0.col1 FROM tab0 cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-4570
SELECT + col0 * col1 DIV col2 FROM tab0 AS cor0
----
3395
62
98
skipif mysql # not compatible
query I rowsort label-4570
SELECT + col0 * col1 / col2 FROM tab0 AS cor0
----
3395
62
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4571
SELECT + col0 DIV 68 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4571
SELECT + col0 / 68 FROM tab1 cor0
----
0
0
1
query I rowsort
SELECT DISTINCT cor1.col1 - + cor1.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-21
33
4
query I rowsort
SELECT DISTINCT + - 63 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-117
-120
-159
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 + tab0.col2 col2 FROM tab0
----
103
22
54
query I rowsort
SELECT DISTINCT - ( tab2.col0 + - col2 ) AS col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT ALL + 93 AS col0 FROM tab2
----
93
93
93
query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
22
query I rowsort
SELECT DISTINCT - - 61 AS col1 FROM tab2 AS cor0
----
61
query I rowsort
SELECT DISTINCT - - col0 + - cor0.col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL + col0 + cor0.col1 * 41 AS col2 FROM tab2 AS cor0
----
1278
2497
776
query I rowsort
SELECT ALL ( cor0.col1 ) * 9 + + col0 AS col0 FROM tab0 AS cor0
----
798
908
908
onlyif mysql # use DIV operator for integer division
query I rowsort label-4582
SELECT ALL - cor0.col0 DIV - cor0.col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL - cor0.col0 / - cor0.col1 FROM tab1 AS cor0
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + - cor0.col0 col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - + ( cor0.col1 ) * cor0.col2 + + col0 * col2 AS col2 FROM tab2 AS cor0
----
-648
2356
494
onlyif mysql # use DIV operator for integer division
query I rowsort label-4585
SELECT ALL 1 DIV + col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL 1 / + col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + cor0.col1 * cor0.col0 * + 74 col2 FROM tab2 AS cor0
----
16089
340607
99399
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 * col2 col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT 51 + cor0.col1 * 0 AS col1 FROM tab0 AS cor0
----
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-4589
SELECT + 83 DIV - ( + cor0.col1 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-4589
SELECT + 83 / - ( + cor0.col1 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL col2 - 84 FROM tab2 cor0
----
-46
-57
-58
query I rowsort
SELECT - cor0.col2 * + 38 FROM tab1 AS cor0
----
-2052
-2166
-3648
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + - 73 col0 FROM tab0 AS cor0
----
-38
-49
16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4593
SELECT ALL col2 * CAST( NULL AS SIGNED ) 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-4593
SELECT ALL col2 * CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + 97 AS col2 FROM tab0 AS cor0
----
121
132
186
query I rowsort
SELECT DISTINCT - + col0 + ( col0 * - col2 ) FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT ALL + - 86 + + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1257
131
4516
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 15 col0 FROM tab1 AS cor0
----
-15
-15
-15
onlyif mysql # use DIV operator for integer division
query I rowsort label-4598
SELECT ALL 52 + col1 + - col0 DIV + 91 FROM tab1 AS cor0
----
62
65
78
skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL 52 + col1 + - col0 / + 91 FROM tab1 AS cor0
----
62
65
78
query I rowsort
SELECT ALL ( + ( col0 ) ) AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - col1 + - 91 AS col2 FROM tab2 AS cor0
----
-108
-122
-150
query I rowsort
SELECT DISTINCT + + 72 + cor0.col2 FROM tab1 AS cor0
----
126
129
168
query I rowsort
SELECT + ( ( + col2 ) ) FROM tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4603
SELECT ALL CAST( cor0.col2 AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL CAST ( cor0.col2 AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT 24 FROM tab1, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col0 AS REAL ) + col2 + col1 col1 FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT - 81 + col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-24
-45
90
query I rowsort
SELECT DISTINCT - + col1 - - col2 * - col0 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT + + 46 * col0 + - col0 AS col1 FROM tab0 AS cor0
----
1080
1575
4005
query I rowsort
SELECT ALL - col1 * + ( + col1 ) + - ( + cor0.col2 ) FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT + + 65 AS col2 FROM tab1 AS cor0
----
65
65
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 * + col1 col0 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT DISTINCT 91 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
91
query I rowsort
SELECT ALL + 36 + 90 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 19b1f1fcc466c23e5267b585248665fc
query I rowsort
SELECT ( - col2 ) * + col0 + - col0 AS col1 FROM tab1
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT + 2 * - col2 FROM tab2
----
-52
-54
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-4616
SELECT + cor0.col0 * cor0.col2 - col0 DIV col1 FROM tab1 AS cor0
----
162
3642
7674
skipif mysql # not compatible
query I rowsort label-4616
SELECT + cor0.col0 * cor0.col2 - col0 / col1 FROM tab1 AS cor0
----
162
3642
7674
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4617
SELECT - - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4617
SELECT - - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + - cor0.col2 * col1 * - col1 FROM tab0 AS cor0
----
243982
678951
9312
query I rowsort
SELECT DISTINCT col0 * col2 * + col2 + + col2 FROM tab2 AS cor0
----
114114
5130
52754
query I rowsort
SELECT + col0 * + col0 * - col1 + tab0.col1 FROM tab0
----
-118728
-49450
-720720
query I rowsort
SELECT - col1 * cor0.col2 - + col2 * col2 AS col0 FROM tab1 AS cor0
----
-10464
-3819
-4320
query I rowsort
SELECT - col0 * ( - 72 ) AS col1 FROM tab0 AS cor0
----
1728
2520
6408
query I rowsort
SELECT - col0 * - tab1.col1 + 71 AS col2 FROM tab1
----
1111
149
711
query I rowsort
SELECT col1 * ( - 84 ) FROM tab2
----
-1428
-2604
-4956
query I rowsort
SELECT DISTINCT 51 * + tab0.col2 AS col1 FROM tab0, tab1 AS cor0
----
1683
4182
51
skipif mysql # not compatible
query I rowsort
SELECT col1 * CAST ( col0 + col2 AS REAL ) FROM tab1
----
1210
1482
2288
query I rowsort
SELECT cor0.col1 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + - 77 + + col0 * - col1 * col1 AS col1 FROM tab2 AS cor0
----
-22908
-271595
-6804
query I rowsort
SELECT ALL - col1 * + 69 FROM tab0
----
-5934
-6279
-6693
query I rowsort
SELECT DISTINCT + col0 * - 72 FROM tab1
----
-216
-4608
-5760
query I rowsort
SELECT ALL - col2 * 13 * 16 FROM tab0
----
-17056
-208
-6864
query I rowsort
SELECT + col2 * col0 + col1 - cor0.col0 FROM tab2 AS cor0
----
2009
213
2940
query I rowsort
SELECT - col0 * - col1 + 34 * - 15 AS col0 FROM tab0 AS cor0
----
1554
2885
7589
query I rowsort
SELECT ALL col2 * col2 - + col1 FROM tab0
----
-96
1003
6633
query I rowsort
SELECT ALL col2 - tab0.col0 AS col0 FROM tab0
----
-34
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4636
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT col2 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT + cor0.col0 * col2 - - col2 AS col1 FROM tab2 cor0
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-4639
SELECT + col1 DIV 33 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4639
SELECT + col1 / 33 FROM tab2 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 * + col0 col0 FROM tab0 cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-4641
SELECT DISTINCT + col0 DIV 56 AS col1 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT + col0 / 56 AS col1 FROM tab0 AS cor0
----
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4642
SELECT + col1 * CAST( - col1 + + col2 AS SIGNED ) FROM tab0 AS cor0
----
-4558
-819
-9312
skipif mysql # not compatible
query I rowsort label-4642
SELECT + col1 * CAST ( - col1 + + col2 AS INTEGER ) FROM tab0 AS cor0
----
-4558
-819
-9312
query I rowsort
SELECT + col2 * - 46 + col1 * col0 AS col1 FROM tab0 AS cor0
----
3349
4327
546
onlyif mysql # use DIV operator for integer division
query I rowsort label-4644
SELECT DISTINCT + + col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT + + col2 / + col0 AS col1 FROM tab2 AS cor0
----
0
3
query I rowsort
SELECT DISTINCT - - col0 + col0 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT - - col2 + + 87 AS col0 FROM tab0 AS cor0
----
120
169
88
query I rowsort
SELECT ALL + col2 + + col0 - tab2.col2 AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT - 23 + - col2 AS col2 FROM tab1
----
-119
-77
-80
query I rowsort
SELECT ALL 11 * tab0.col0 AS col0 FROM tab0
----
264
385
979
query I rowsort
SELECT + col1 + + col0 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + ( col0 ) * + col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4652
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col1 AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT CAST ( NULL AS REAL ) * + col1 AS col1 FROM tab0
----
NULL
query I rowsort
SELECT + ( 10 ) FROM tab0 AS cor0
----
10
10
10
query I rowsort
SELECT + ( - 70 ) FROM tab0 AS cor0
----
-70
-70
-70
query I rowsort
SELECT + + col0 + + col1 FROM tab2 cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4656
SELECT ALL 80 + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL 80 + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 10 - col1 AS col0 FROM tab1 AS cor0
----
-16
-3
0
query I rowsort
SELECT + 0 + col0 * 18 FROM tab1 AS cor0
----
1152
1440
54
query I rowsort
SELECT ALL + col0 * - col1 + - 44 AS col1 FROM tab0 cor0
----
-2108
-3439
-8143
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT DISTINCT + col1 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - cor0.col0 + col2 * - 10 AS col0 FROM tab2 AS cor0
----
-277
-338
-459
query I rowsort
SELECT ALL + col0 * col2 + col1 * - col2 - - col1 FROM tab0 cor0
----
-1960
-73
35
query I rowsort
SELECT ALL - 76 + + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-67
4020
6324
query I rowsort
SELECT DISTINCT + + 5 * + col2 + + 69 * 37 FROM tab1 AS cor0
----
2823
2838
3033
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 * + col1 col0 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT col2 * col1 * col1 + 15 + + col0 AS col2 FROM tab1 AS cor0
----
16319
36522
5779
query I rowsort
SELECT 40 + - col0 FROM tab0 AS cor0
----
-49
16
5
query I rowsort
SELECT ALL - tab1.col0 - tab1.col2 FROM tab1, tab0 cor0, tab0, tab0 AS cor1
----
81 values hashing to 4896d5ccfae8c2d53923d03ccf10ad7f
query I rowsort
SELECT - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 cor2
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d
query I rowsort
SELECT + - 12 FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0
query I rowsort
SELECT ALL col0 * col1 + + col2 FROM tab0
----
2097
3396
8181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4674
SELECT ALL tab0.col0 + - CAST( ( col1 ) AS SIGNED ) * ( col1 ) AS col2 FROM tab0
----
-7372
-8192
-9374
skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL tab0.col0 + - CAST ( ( col1 ) AS INTEGER ) * ( col1 ) AS col2 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT + + cor0.col2 + - 61 * + col2 AS col2 FROM tab0 AS cor0
----
-1980
-4920
-60
query I rowsort
SELECT + + col0 * + cor0.col1 * cor0.col1 FROM tab2 cor0
----
22831
271518
6727
query I rowsort
SELECT + cor0.col0 * + ( 87 ) FROM tab0 AS cor0
----
2088
3045
7743
query I rowsort
SELECT DISTINCT - col0 * - ( col2 ) AS col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT col2 * - col1 + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL 45 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 * ( col2 ) AS col1 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + ( 52 ) * - cor0.col2 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 57c01e1e92fd6ffe9c1e41196f6efba7
query I rowsort
SELECT - + 5 * - 33 FROM tab1 AS cor0
----
165
165
165
query I rowsort
SELECT - - col0 + - cor0.col0 * col1 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT - cor0.col2 + + ( - col1 ) FROM tab1 cor0
----
-109
-67
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 col1 FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + ( cor0.col2 + col2 ) col1 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT DISTINCT + col2 * 86 * - ( col0 ) FROM tab2 AS cor0
----
-16254
-174408
-258172
query I rowsort
SELECT ALL col0 + 8 * col1 AS col2 FROM tab2 AS cor0
----
215
255
550
query I rowsort
SELECT + col2 * 14 AS col0 FROM tab2 AS cor0
----
364
378
532
query I rowsort
SELECT 72 * - col0 + + 20 AS col0 FROM tab2
----
-484
-5596
-5668
query I rowsort
SELECT tab0.col2 + + tab0.col2 * 94 * - ( - tab0.col1 ) FROM tab0
----
266805
701510
9119
query I rowsort
SELECT - + col0 + 0 AS col1 FROM tab2 cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4695
SELECT + col1 DIV ( + col1 ) AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4695
SELECT + col1 / ( + col1 ) AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL 75 FROM tab0, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4697
SELECT - CAST( - ( cor0.col0 ) AS SIGNED ) FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4697
SELECT - CAST ( - ( cor0.col0 ) AS INTEGER ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL col1 * + 12 FROM tab1 AS cor0
----
120
156
312
query I rowsort
SELECT ALL cor1.col2 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - 2 + col1 AS col2 FROM tab2
----
15
29
57
query I rowsort
SELECT ALL + ( col1 ) AS col2 FROM tab1
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4702
SELECT + + col2 * + cor0.col0 + - CAST( NULL AS SIGNED ) * col2 / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4702
SELECT + + col2 * + cor0.col0 + - CAST ( NULL AS INTEGER ) * col2 / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 50 * + col1 FROM tab1 AS cor0
----
1300
500
650
query I rowsort
SELECT ALL + + col1 * - col1 - 64 AS col1 FROM tab1 AS cor0
----
-164
-233
-740
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 col0 FROM tab0 AS cor0
----
94
query I rowsort
SELECT - - col2 - col0 AS col2 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT ALL - + col2 + - col0 * cor0.col1 FROM tab0 cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT - + col1 + + cor0.col0 * 88 FROM tab0 cor0
----
2026
2983
7741
query I rowsort
SELECT DISTINCT 8 AS col0 FROM tab1 AS cor0
----
8
query I rowsort
SELECT - + col2 * ( + ( - col2 ) ) FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-4711
SELECT DISTINCT + tab1.col2 DIV ( - 87 ) FROM tab1
----
-1
0
skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT + tab1.col2 / ( - 87 ) FROM tab1
----
-1
0
query I rowsort
SELECT col0 * 16 AS col2 FROM tab1 cor0
----
1024
1280
48
query I rowsort
SELECT DISTINCT cor2.col0 - - 12 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
101
36
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 col0 FROM tab0, tab2 AS cor0
----
-20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - tab2.col0 col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT + col0 + + 95 + col0 FROM tab0
----
143
165
273
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4717
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 + col1 AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 + col1 AS col0 FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4718
SELECT col2 DIV 67 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4718
SELECT col2 / 67 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - + 72 * + col2 FROM tab0 AS cor0
----
-2376
-5904
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 35 + col2 col2 FROM tab0 AS cor0
----
1226
3197
873
query I rowsort
SELECT DISTINCT + + col1 * 27 FROM tab2 AS cor0
----
1593
459
837
query I rowsort
SELECT ALL + 27 * + col0 AS col1 FROM tab2 AS cor0
----
189
2106
2133
query I rowsort
SELECT - ( col0 ) * + col2 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4724
SELECT - 91 * - col0 - 2 DIV + 78 AS col1 FROM tab0 AS cor0
----
2184
3185
8099
skipif mysql # not compatible
query I rowsort label-4724
SELECT - 91 * - col0 - 2 / + 78 AS col1 FROM tab0 AS cor0
----
2184
3185
8099
query I rowsort
SELECT + 60 * col2 * col0 - + 80 FROM tab1 cor0
----
218800
460720
9640
query I rowsort
SELECT + + cor0.col1 + - col0 - ( + cor0.col1 ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT 96 * col0 AS col0 FROM tab1
----
288
6144
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4728
SELECT DISTINCT + col1 * 68 * col1 + + 79 DIV col0 FROM tab1
----
11492
45994
6801
skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT + col1 * 68 * col1 + + 79 / col0 FROM tab1
----
11492
45994
6801
onlyif mysql # use DIV operator for integer division
query I rowsort label-4729
SELECT col0 DIV 75 AS col1 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4729
SELECT col0 / 75 AS col1 FROM tab0
----
0
0
1
query I rowsort
SELECT DISTINCT + col1 * - col1 * + col0 + col2 AS col0 FROM tab2
----
-22793
-271492
-6700
query I rowsort
SELECT + col1 - - col2 * col1 AS col2 FROM tab1
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL - col0 * + col2 + - col0 * + col0 FROM tab2 AS cor0
----
-238
-8112
-9243
query I rowsort
SELECT ALL - - 98 FROM tab2 AS cor0
----
98
98
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4736
SELECT DISTINCT - CAST( 28 AS SIGNED ) + col2 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1506
618
809
skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT - CAST ( 28 AS INTEGER ) + col2 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1506
618
809
query I rowsort
SELECT ALL + col1 - 70 FROM tab2 cor0
----
-11
-39
-53
query I rowsort
SELECT ALL ( col1 ) * cor0.col0 * col0 + col0 FROM tab1 AS cor0
----
237
41024
83280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 + col2 col2 FROM tab2 AS cor0
----
84
85
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT 51 * col0 AS col0 FROM tab1
----
153
3264
4080
query I rowsort
SELECT + - ( col0 ) + col2 * + 44 + col0 FROM tab1 AS cor0
----
2376
2508
4224
query I rowsort
SELECT + col2 + - tab1.col1 * 39 - + col1 AS col1 FROM tab1
----
-343
-424
-986
query I rowsort
SELECT DISTINCT - 83 + - col1 + - col2 FROM tab0
----
-181
-202
-256
query I rowsort
SELECT DISTINCT + + 26 FROM tab2 cor0
----
26
query I rowsort
SELECT + ( + cor0.col0 ) + + cor0.col2 AS col1 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT - - col0 + - cor0.col2 + + col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + - col1 + + 74 * - cor0.col0 FROM tab2 AS cor0
----
-549
-5831
-5863
query I rowsort
SELECT ALL - col0 * + 51 * - col1 FROM tab1 AS cor0
----
32640
3978
53040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 * - col2 col1 FROM tab2
----
-1026
-1444
-988
query I rowsort
SELECT ALL col0 * - col1 * 68 AS col2 FROM tab2
----
-14756
-312936
-91324
query I rowsort
SELECT + - col2 * - cor0.col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + cor0.col2 + col1 FROM tab0 cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4754
SELECT ALL col2 DIV + col1 + col1 * cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
244068
679042
9409
skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL col2 / + col1 + col1 * cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ALL col2 + + col2 * + col0 * + col2 FROM tab2 AS cor0
----
114114
5130
52754
query I rowsort
SELECT DISTINCT + ( + col1 ) * + tab1.col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT col0 * col1 + col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT - col2 * - col2 + + tab2.col1 FROM tab2
----
1461
735
760
query I rowsort
SELECT + col0 - tab0.col1 * col2 AS col0 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT col1 * - tab1.col1 * col0 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT ALL col2 + cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT ALL - cor0.col1 * col1 + col0 FROM tab0 cor0
----
-7372
-8192
-9374
query I rowsort
SELECT - col1 + col1 * + col2 FROM tab1
----
1235
1378
560
query I rowsort
SELECT ALL 94 * + tab1.col0 * - col1 FROM tab1
----
-60160
-7332
-97760
query I rowsort
SELECT - 65 * + 35 FROM tab2
----
-2275
-2275
-2275
query I rowsort
SELECT ALL + col2 * + col1 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL + + col0 + col0 * col2 + - col1 FROM tab2 AS cor0
----
165
2047
3064
query I rowsort
SELECT + - 41 * + cor0.col0 FROM tab2 AS cor0
----
-287
-3198
-3239
query I rowsort
SELECT DISTINCT + 90 - - col0 * - col0 FROM tab0 AS cor0
----
-1135
-486
-7831
query I rowsort
SELECT + col2 + col0 * col0 + + col1 FROM tab2
----
107
6169
6296
query I rowsort
SELECT ALL tab2.col1 * - col1 - col2 AS col2 FROM tab2
----
-327
-3507
-988
query I rowsort
SELECT ALL col1 * - col1 * + col1 - col0 AS col1 FROM tab0
----
-636080
-753660
-912708
query I rowsort
SELECT ALL ( - tab0.col1 ) * - tab0.col2 + + col1 + col2 * col0 FROM tab0
----
14851
229
3716
query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
7
78
79
query I rowsort
SELECT - + col0 - - col0 * + col1 AS col1 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-4777
SELECT DISTINCT cor0.col1 + col0 DIV col1 FROM tab1 AS cor0
----
16
19
26
skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT cor0.col1 + col0 / col1 FROM tab1 AS cor0
----
16
19
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * cor0.col2 + col1 * col0 * col1 col0 FROM tab2 AS cor0
----
24275
272194
7456
query I rowsort
SELECT DISTINCT 92 + - cor0.col1 * + col1 FROM tab2 cor0
----
-197
-3389
-869
query I rowsort
SELECT + col1 * + col2 + - col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT + + col0 * col1 + + cor0.col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + cor0.col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL col0 - + col2 * col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT cor0.col2 * 47 AS col0 FROM tab1 AS cor0
----
2538
2679
4512
query I rowsort
SELECT DISTINCT - col1 - cor0.col1 * col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT ALL - col2 * - cor0.col1 - col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT - col2 + cor0.col0 * - 75 FROM tab1 AS cor0
----
-279
-4857
-6096
query I rowsort
SELECT + + 10 + - col2 * - col0 FROM tab2 AS cor0
----
199
2038
3012
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4789
SELECT ALL - - col1 * col0 + CAST( NULL AS SIGNED ) + - col2 / - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL - - col1 * col0 + CAST ( NULL AS INTEGER ) + - col2 / - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 63 - col2 FROM tab2 cor0
----
25
36
37
query I rowsort
SELECT ALL - col1 * ( - col2 ) + - col0 AS col1 FROM tab1
----
1168
1401
506
query I rowsort
SELECT DISTINCT - ( col2 ) + col2 FROM tab1
----
0
query I rowsort
SELECT col0 * + col1 + - tab1.col2 AS col2 FROM tab1
----
24
583
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-4794
SELECT col0 DIV col0 + - tab1.col1 * + CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
-1039
-639
-77
skipif mysql # not compatible
query I rowsort label-4794
SELECT col0 / col0 + - tab1.col1 * + CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
-1039
-639
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4795
SELECT CAST( col2 AS SIGNED ) * + col0 AS col1 FROM tab2
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-4795
SELECT CAST ( col2 AS INTEGER ) * + col0 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT + ( col1 ) * - tab2.col0 + + ( - col0 ) AS col1 FROM tab2
----
-1422
-224
-4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col0 + ( col2 ) * - col2 col1 FROM tab1 AS cor0
----
-10256
-2994
-3889
query I rowsort
SELECT DISTINCT col1 + + 86 FROM tab0
----
172
177
183
query I rowsort
SELECT DISTINCT 0 + col2 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL + + col0 * cor0.col0 AS col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT col0 * - col2 + 12 * col1 FROM tab1 AS cor0
----
-3528
-7524
150
query I rowsort
SELECT - col2 * - col0 * - col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT + + col2 * col0 - - col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT - - col0 * ( col0 + - col2 ) FROM tab0 cor0
----
-216
1190
623
query I rowsort
SELECT ALL - + col2 + - ( col1 ) AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT - + col0 * ( - 81 * col1 ) AS col0 FROM tab1 AS cor0
----
51840
6318
84240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + - col0 + col0 * - col1 * col0 - col2 FROM tab1 AS cor0
----
-291
-41081
-83376
onlyif mysql # use DIV operator for integer division
query I rowsort label-4809
SELECT DISTINCT - tab2.col1 DIV + col1 col2 FROM tab2
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT - tab2.col1 / + col1 col2 FROM tab2
----
-1
query I rowsort
SELECT - cor0.col2 * + col0 - - cor0.col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT + col0 - col0 AS col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + + col1 + 8 AS col0 FROM tab0 AS cor0
----
105
94
99
skipif mysql # not compatible
query I rowsort
SELECT - - col1 * CAST ( 44 AS REAL ) AS col1 FROM tab1 AS cor0
----
1144
440
572
query I rowsort
SELECT + 63 * + 23 AS col0 FROM tab0 AS cor0
----
1449
1449
1449
query I rowsort
SELECT + - cor0.col2 + + ( + col0 ) * - 7 AS col2 FROM tab1 AS cor0
----
-505
-656
-75
query I rowsort
SELECT + cor0.col1 - col2 * col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL col0 + - ( col1 * + tab2.col0 ) FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT ( tab2.col0 ) AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT ALL + col0 + + col0 * - col2 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT - 39 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e
query I rowsort
SELECT 85 * cor0.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 0f5bdae12cc44fbaa4d67f7b41a774b8
query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-54
-57
-96
query I rowsort
SELECT col0 - + col1 AS col2 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4824
SELECT 16 * col0 + col0 DIV 45 + - col0 AS col1 FROM tab1 AS cor0
----
1201
45
961
skipif mysql # not compatible
query I rowsort label-4824
SELECT 16 * col0 + col0 / 45 + - col0 AS col1 FROM tab1 AS cor0
----
1201
45
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-4825
SELECT - - 53 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
-53
0
skipif mysql # not compatible
query I rowsort label-4825
SELECT - - 53 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-53
0
query I rowsort
SELECT col1 - col0 * - col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT col2 + 80 * + col2 FROM tab0
----
2673
6642
81
query I rowsort
SELECT + + 20 * - 25 AS col0 FROM tab0 AS cor0
----
-500
-500
-500
query I rowsort
SELECT DISTINCT col2 + - ( col0 ) * - tab1.col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT DISTINCT + col1 * col0 + - 0 + + tab2.col0 AS col1 FROM tab2
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4831
SELECT col2 * 27 DIV 61 AS col1 FROM tab0
----
0
14
36
skipif mysql # not compatible
query I rowsort label-4831
SELECT col2 * 27 / 61 AS col1 FROM tab0
----
0
14
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 70 + - col2 col1 FROM tab2
----
103
49
74
query I rowsort
SELECT DISTINCT + col1 * - 74 FROM tab2
----
-1258
-2294
-4366
query I rowsort
SELECT - 22 * + 67 AS col0 FROM tab1
----
-1474
-1474
-1474
query I rowsort
SELECT cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT + 98 * col1 + + col0 * - 81 * - col1 FROM tab1 AS cor0
----
52820
85514
8866
onlyif mysql # use DIV operator for integer division
query I rowsort label-4837
SELECT - ( col0 ) DIV - col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-4837
SELECT - ( col0 ) / - col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT + 79 * - col0 FROM tab1 AS cor0
----
-237
-5056
-6320
query I rowsort
SELECT + 73 FROM tab2, tab1 AS cor0, tab0, tab0 cor1
----
81 values hashing to 9f0f371d979e70a792c8597c6559f0e2
query I rowsort
SELECT + col0 + ( - 0 ) AS col2 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4841
SELECT + CAST( NULL AS SIGNED ) + + 39 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4841
SELECT + CAST ( NULL AS INTEGER ) + + 39 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + col1 + cor0.col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL - 56 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-18
-29
-30
query I rowsort
SELECT + 17 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
query I rowsort
SELECT cor0.col1 * ( ( col1 ) ) FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4846
SELECT - ( + col1 ) * + CAST( col2 + col1 AS SIGNED ) AS col2 FROM tab2
----
-1798
-5015
-935
skipif mysql # not compatible
query I rowsort label-4846
SELECT - ( + col1 ) * + CAST ( col2 + col1 AS INTEGER ) AS col2 FROM tab2
----
-1798
-5015
-935
query I rowsort
SELECT ALL cor0.col2 + + 81 FROM tab2 cor0
----
107
108
119
query I rowsort
SELECT DISTINCT + + cor0.col0 * ( - col1 ) + col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * tab2.col2 col2 FROM tab2
----
196
2106
3081
query I rowsort
SELECT + cor1.col2 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT DISTINCT col0 * - col0 * + col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 86 ) * tab2.col1 - - ( col0 ) * col2 col2 FROM tab2
----
2855
4464
7102
query I rowsort
SELECT ALL ( - col1 + col1 ) * + col2 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT + 54 * 27 + col1 - - ( col2 + col1 ) FROM tab1 cor0
----
1535
1564
1580
query I rowsort
SELECT ( col1 ) * col1 - 87 * col0 AS col1 FROM tab0
----
5308
538
6364
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4856
SELECT + + CAST( NULL AS SIGNED ) * col0 + - col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4856
SELECT + + CAST ( NULL AS INTEGER ) * col0 + - col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + 68 * - col0 FROM tab0 AS cor0
----
-1599
-2379
-5970
query I rowsort
SELECT 84 * col2 * - col1 + col1 FROM tab1 AS cor0
----
-104819
-117910
-47870
onlyif mysql # use DIV operator for integer division
query I rowsort label-4859
SELECT 83 DIV - col1 + + 32 FROM tab2 cor0
----
28
30
31
skipif mysql # not compatible
query I rowsort label-4859
SELECT 83 / - col1 + + 32 FROM tab2 cor0
----
28
30
31
query I rowsort
SELECT - 33 * - cor0.col0 + + col1 * col2 FROM tab1 cor0
----
1503
2682
3888
query I rowsort
SELECT ( col1 ) * + col1 + - col1 AS col2 FROM tab1 AS cor0
----
156
650
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * + col1 * + col2 col0 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT 22 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT + - ( + cor0.col0 ) * + 39 * + col2 + + col1 FROM tab2 AS cor0
----
-117061
-7340
-79033
query I rowsort
SELECT DISTINCT + col0 * + col0 + 16 FROM tab2 AS cor0
----
6100
6257
65
query I rowsort
SELECT ALL - cor0.col1 * col1 - col1 * col1 FROM tab2 AS cor0
----
-1922
-578
-6962
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 88 * col0 + - col0 * - col0 col2 FROM tab1 AS cor0
----
13440
273
9728
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-4869
SELECT - - 54 DIV cor0.col0 - CAST( 47 AS SIGNED ) * col0 * 81 AS col1 FROM tab1 cor0
----
-11403
-243648
-304560
skipif mysql # not compatible
query I rowsort label-4869
SELECT - - 54 / cor0.col0 - CAST ( 47 AS INTEGER ) * col0 * 81 AS col1 FROM tab1 cor0
----
-11403
-243648
-304560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 + + col2 col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-4871
SELECT - 85 * - col2 + 96 DIV - col2 AS col1 FROM tab0 AS cor0
----
-11
2803
6969
skipif mysql # not compatible
query I rowsort label-4871
SELECT - 85 * - col2 + 96 / - col2 AS col1 FROM tab0 AS cor0
----
-11
2803
6969
query I rowsort
SELECT 33 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4873
SELECT ALL 6 DIV tab2.col1 + + col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL 6 / tab2.col1 + + col0 FROM tab2
----
7
78
79
query I rowsort
SELECT ( - col1 * col1 ) FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT - tab1.col2 + - col0 * + col2 + + col1 FROM tab1
----
-190
-3695
-7763
query I rowsort
SELECT ALL - 19 AS col2 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662
query I rowsort
SELECT ALL 65 * col2 FROM tab2 AS cor0
----
1690
1755
2470
query I rowsort
SELECT DISTINCT - col2 + col0 * + col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT - + col0 * - cor0.col1 * 22 - ( col2 ) * ( + col0 ) FROM tab1 cor0
----
10432
15200
1554
onlyif mysql # use DIV operator for integer division
query I rowsort label-4880
SELECT ALL col1 DIV + col2 + + col0 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL col1 / + col2 + + col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + cor0.col2 + + col2 * cor0.col1 AS col1 FROM tab1 cor0
----
1344
1458
627
query I rowsort
SELECT ALL col2 * cor0.col0 * - 70 + col0 AS col1 FROM tab0 AS cor0
----
-2415
-510771
-55416
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + ( + col1 * + cor0.col0 ) - 7 col2 FROM tab0 AS cor0
----
177497
329308
737002
query I rowsort
SELECT - - col0 * ( - col0 ) + + col0 * col1 * 70 AS col0 FROM tab0 AS cor0
----
143904
236425
559009
query I rowsort
SELECT ALL - col2 * 44 FROM tab1 AS cor0
----
-2376
-2508
-4224
query I rowsort
SELECT DISTINCT col2 + + ( + col2 ) FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL col0 * 81 * + col0 FROM tab0 cor0
----
46656
641601
99225
query I rowsort
SELECT 2 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
query I rowsort
SELECT DISTINCT - 36 + col0 FROM tab2
----
-29
42
43
query I rowsort
SELECT 73 * - col1 FROM tab0
----
-6278
-6643
-7081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * col2 + 50 + col0 col2 FROM tab0
----
120
7437
866
query I rowsort
SELECT 84 - + col0 AS col0 FROM tab1
----
20
4
81
query I rowsort
SELECT DISTINCT col0 + - col0 * col0 + - col2 AS col1 FROM tab1 AS cor0
----
-4089
-60
-6416
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4894
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 33 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 33 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - 79 + 26 FROM tab2 AS cor0
----
-53
-53
-53
query I rowsort
SELECT DISTINCT + col0 * col1 + - cor0.col0 * - col1 AS col0 FROM tab1 AS cor0
----
1280
156
2080
query I rowsort
SELECT DISTINCT tab1.col2 * 33 * col1 AS col2 FROM tab1
----
18810
41184
46332
query I rowsort
SELECT ALL + 24 AS col0 FROM tab1 AS cor0
----
24
24
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-4899
SELECT + cor0.col1 + - col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
17
28
59
skipif mysql # not compatible
query I rowsort label-4899
SELECT + cor0.col1 + - col2 / + col0 AS col1 FROM tab2 AS cor0
----
17
28
59
query I rowsort
SELECT + 66 * ( - cor0.col0 + - 95 ) FROM tab1 AS cor0
----
-10494
-11550
-6468
query I rowsort
SELECT ALL 31 * - col0 AS col2 FROM tab2 AS cor0
----
-217
-2418
-2449
onlyif mysql # use DIV operator for integer division
query I rowsort label-4902
SELECT col0 DIV - 90 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4902
SELECT col0 / - 90 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 col2 FROM tab2 AS cor0
----
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 48 col0 FROM tab2
----
-336
-3744
-3792
query I rowsort
SELECT ALL col0 + - col2 - + col1 * - col1 AS col2 FROM tab1
----
107
153
625
query I rowsort
SELECT - col0 + - col2 * col0 * tab0.col0 AS col1 FROM tab0
----
-1260
-19032
-649611
query I rowsort
SELECT - tab1.col0 - + col0 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT ALL col1 * tab2.col2 + + col0 + col1 FROM tab2
----
1671
742
875
query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL >= ( col2 + - col0 * - cor0.col1 / col1 + col1 * - col2 )
----
query I rowsort
SELECT ALL + col1 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 + + col1 )
----
query I rowsort
SELECT DISTINCT + col1 + - cor0.col2 + - col0 FROM tab1 AS cor0
----
-111
-163
-31
query I rowsort
SELECT col0 * col2 - + col0 AS col2 FROM tab0 cor0
----
0
7209
768
query I rowsort
SELECT ALL - col1 + + col0 * cor0.col1 FROM tab2 cor0
----
1326
186
4543
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 + col2 < NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT ALL col2 * col1 * - col0 FROM tab1
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-4917
SELECT col1 * tab0.col1 + - tab0.col1 DIV + col1 FROM tab0
----
7395
8280
9408
skipif mysql # not compatible
query I rowsort label-4917
SELECT col1 * tab0.col1 + - tab0.col1 / + col1 FROM tab0
----
7395
8280
9408
query I rowsort
SELECT ALL col0 * col1 * col0 FROM tab1
----
234
40960
83200
query I rowsort
SELECT + tab0.col0 * - col0 + col2 FROM tab0
----
-1224
-543
-7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-4920
SELECT - col2 - - col2 DIV col1 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-4920
SELECT - col2 - - col2 / col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL col2 * + col1 + + col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT ALL col2 + col0 * col0 - col0 * - col2 FROM tab1
----
14176
225
7801
onlyif mysql # use DIV operator for integer division
query I rowsort label-4923
SELECT DISTINCT col0 DIV col1 + col2 * col2 + col2 * + tab0.col1 FROM tab0
----
14186
3927
98
skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT col0 / col1 + col2 * col2 + col2 * + tab0.col1 FROM tab0
----
14186
3927
98
query I rowsort
SELECT ALL + col1 + - col0 + + col0 * - col2 FROM tab0
----
-7296
-730
27
query I rowsort
SELECT DISTINCT col1 + col2 * - tab1.col2 * tab1.col1 - col1 * col2 FROM tab1
----
-121043
-33050
-77194
query I rowsort
SELECT col1 * - tab0.col0 + col2 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT - col2 * tab1.col0 * + col0 + col2 * - col1 AS col2 FROM tab1
----
-1890
-234042
-615648
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + - col0 col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL - col2 * col2 - col2 AS col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT + col2 + col2 * col2 FROM tab2
----
1482
702
756
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1
----
1
33
82
query I rowsort
SELECT ALL + - col1 * cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - col1 * + col2 * col0 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL + col1 * col2 - + col2 AS col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT ALL - col1 + + col1 * - col2 * col2 FROM tab1 AS cor0
----
-119821
-32500
-75842
query I rowsort
SELECT DISTINCT + + col1 - cor0.col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col1 * - col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col2 FROM tab0, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT col0 + + cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL col2 + col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT + col0 * col2 * - col2 + col2 AS col0 FROM tab1 cor0
----
-207879
-737184
-8694
query I rowsort
SELECT DISTINCT col0 + - cor0.col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT + col1 * col2 + tab0.col0 AS col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT + col1 + - cor0.col1 FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( col1 * col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - 50 * col0 col2 FROM tab1 AS cor0
----
32000
3900
52000
query I rowsort
SELECT ALL - col0 + - ( col2 ) * col1 FROM tab1 AS cor0
----
-1328
-1407
-634
onlyif mysql # use DIV operator for integer division
query I rowsort label-4947
SELECT - cor0.col2 DIV - 14 AS col2 FROM tab0 cor0
----
0
2
5
skipif mysql # not compatible
query I rowsort label-4947
SELECT - cor0.col2 / - 14 AS col2 FROM tab0 cor0
----
0
2
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4948
SELECT + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4948
SELECT + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT - + col2 * CAST ( + col0 * + col0 AS REAL ) AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 * cor0.col1 col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT - 26 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39
query I rowsort
SELECT cor0.col1 * + 82 + cor0.col0 * + col0 AS col2 FROM tab0 AS cor0
----
15383
7628
9179
query I rowsort
SELECT + ( 90 ) * col2 - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1135
-541
2394
query I rowsort
SELECT - col1 + col1 - col1 * ( + col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + 8 FROM tab2, tab2 AS cor0
----
8
query I rowsort
SELECT DISTINCT 34 * - cor0.col1 AS col0 FROM tab0, tab1 AS cor0
----
-340
-442
-884
query I rowsort
SELECT - + cor0.col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + col0 * + tab1.col1 * col0 + col0 FROM tab1
----
237
41024
83280
query I rowsort
SELECT - col1 * col0 * col1 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT ALL 30 * + cor0.col0 AS col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 11636d367200d6ff91265460f177a16e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 col0 FROM tab2
----
-97
-97
-97
query I rowsort
SELECT DISTINCT cor1.col2 * 86 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
2236
2322
3268
query I rowsort
SELECT tab0.col1 * 39 FROM tab0, tab0 AS cor0
----
9 values hashing to 5dde7da9aec6b2abc4d24c8d50e16968
query I rowsort
SELECT DISTINCT - - col2 * - col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col2 * + cor0.col1 + + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT col2 + + 48 AS col2 FROM tab2 AS cor0
----
74
75
86
query I rowsort
SELECT - 33 + col1 FROM tab1 AS cor0
----
-20
-23
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4968
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL - 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-4969
SELECT DISTINCT - CAST( col1 AS SIGNED ) + col2 FROM tab2 AS cor0
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT col2 * - col0 - col0 FROM tab1 cor0
----
-165
-3712
-7760
query I rowsort
SELECT + - 56 + + col1 FROM tab0 AS cor0
----
30
35
41
query I rowsort
SELECT + ( + col0 ) * col0 * ( col2 + - col0 ) AS col2 FROM tab2 AS cor0
----
-255881
-316368
980
query I rowsort
SELECT DISTINCT cor0.col2 * - col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - ( 3 ) AS col1 FROM tab2 AS cor0
----
-3
query I rowsort
SELECT - - 30 * col2 FROM tab1 AS cor0
----
1620
1710
2880
query I rowsort
SELECT ALL ( col2 ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT 82 + ( tab0.col0 ) FROM tab0, tab2 cor0
----
106
117
171
query I rowsort
SELECT DISTINCT col0 * 0 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4979
SELECT ALL - tab1.col1 DIV - 18 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL - tab1.col1 / - 18 FROM tab1
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4980
SELECT col1 DIV 45 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4980
SELECT col1 / 45 FROM tab2
----
0
0
1
query I rowsort
SELECT ALL tab1.col2 * + col0 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT 18 + col0 AS col0 FROM tab0 AS cor0
----
107
42
53
query I rowsort
SELECT + + ( 59 ) + col2 * + ( - cor0.col1 ) * col0 FROM tab2 AS cor0
----
-119593
-50975
-5800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4984
SELECT ALL - + CAST( + col0 AS SIGNED ) + col2 * + CAST( + 11 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
563
591
976
skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL - + CAST ( + col0 AS INTEGER ) + col2 * + CAST ( + 11 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
563
591
976
query I rowsort
SELECT - - ( col1 ) - col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 46 * cor0.col0 col1 FROM tab0 AS cor0
----
-1104
-1610
-4094
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 col2 FROM tab1 AS cor0
----
30
30
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 96 ) + col2 * 0 col1 FROM tab2 AS cor0
----
96
96
96
query I rowsort
SELECT ALL - 78 + + col1 FROM tab1 AS cor0
----
-52
-65
-68
query I rowsort
SELECT ALL - 25 * col0 FROM tab0 AS cor0
----
-2225
-600
-875
query I rowsort
SELECT ALL + - ( - col0 ) + col2 * col0 * col0 AS col0 FROM tab2 AS cor0
----
1330
158262
237237
query I rowsort
SELECT cor0.col0 FROM tab0, tab2 cor0 CROSS JOIN tab1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 * 50 + + col1 FROM tab0 AS cor0
----
-141814
-373009
-4753
query I rowsort
SELECT ALL + cor0.col2 * 96 AS col0 FROM tab0 AS cor0
----
3168
7872
96
query I rowsort
SELECT DISTINCT + cor0.col2 + col2 + col1 AS col2 FROM tab1 AS cor0
----
124
134
205
onlyif mysql # use DIV operator for integer division
query I rowsort label-4996
SELECT DISTINCT col2 + + 99 + 19 DIV col0 AS col0 FROM tab0 AS cor0
----
100
132
181
skipif mysql # not compatible
query I rowsort label-4996
SELECT DISTINCT col2 + + 99 + 19 / col0 AS col0 FROM tab0 AS cor0
----
100
132
181
onlyif mysql # use DIV operator for integer division
query I rowsort label-4997
SELECT DISTINCT col2 DIV - col0 + col1 FROM tab1 cor0
----
10
12
8
skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT col2 / - col0 + col1 FROM tab1 cor0
----
10
12
8
query I rowsort
SELECT + col0 * + ( + ( col2 ) ) FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4999
SELECT ALL + col2 DIV 1 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL + col2 / 1 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + col2 + col1 * + ( + col0 ) - ( - tab0.col2 ) * - col2 AS col2 FROM tab0
----
1008
1457
3395
onlyif mysql # use DIV operator for integer division
query I rowsort label-5001
SELECT - col0 * - 21 * 13 + col2 DIV 2 AS col0 FROM tab0 AS cor0
----
24338
6568
9555
skipif mysql # not compatible
query I rowsort label-5001
SELECT - col0 * - 21 * 13 + col2 / 2 AS col0 FROM tab0 AS cor0
----
24338
6568
9555
query I rowsort
SELECT ALL + 80 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT + col2 + 39 AS col2 FROM tab0
----
121
40
72
query I rowsort
SELECT DISTINCT + + col1 * col1 * + col1 + - cor0.col1 FROM tab2 AS cor0
----
205320
29760
4896
query I rowsort
SELECT - + cor0.col1 * col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - col0 + col0 AS col0 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5007
SELECT DISTINCT CAST( 28 AS SIGNED ) * tab2.col2 + + 51 * + 18 * col2 col2 FROM tab2
----
24596
25542
35948
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT CAST ( 28 AS INTEGER ) * tab2.col2 + + 51 * + 18 * col2 col2 FROM tab2
----
24596
25542
35948
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5008
SELECT + + CAST( NULL AS SIGNED ) - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5008
SELECT + + CAST ( NULL AS INTEGER ) - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5009
SELECT DISTINCT + 76 DIV - col0 + col1 FROM tab1 AS cor0
----
1
13
9
skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT + 76 / - col0 + col1 FROM tab1 AS cor0
----
1
13
9
query I rowsort
SELECT + 9 FROM tab2, tab0 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab2.col2 ) * col0 col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT + 84 * + col1 FROM tab1
----
1092
2184
840
query I rowsort
SELECT + 31 * - 60 + - col1 + 31 AS col2 FROM tab1
----
-1839
-1842
-1855
query I rowsort
SELECT col2 + - tab0.col1 + - col2 * col2 AS col1 FROM tab0
----
-1142
-6733
-97
query I rowsort
SELECT DISTINCT col1 + - col2 * + col0 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT 76 + 68 FROM tab1
----
144
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5017
SELECT DISTINCT ( - col1 ) + - tab1.col0 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-5017
SELECT DISTINCT ( - col1 ) + - tab1.col0 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT 15 FROM tab0, tab1, tab2 AS cor0
----
15
query I rowsort
SELECT DISTINCT + + col0 + + col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT + - cor0.col0 * col0 + col0 FROM tab0 AS cor0
----
-1190
-552
-7832
onlyif mysql # use DIV operator for integer division
query I rowsort label-5021
SELECT + ( cor0.col0 ) - + col1 DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-5021
SELECT + ( cor0.col0 ) - + col1 / - cor0.col1 AS col0 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT ALL - - 91 * - col2 FROM tab2 AS cor0
----
-2366
-2457
-3458
onlyif mysql # use DIV operator for integer division
query I rowsort label-5023
SELECT DISTINCT - ( 32 ) DIV col1 + col1 * + col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT - ( 32 ) / col1 + col1 * + col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 - - col0 col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT - + 99 - + 91 AS col2 FROM tab1 AS cor0
----
-190
-190
-190
query I rowsort
SELECT ALL + ( tab1.col2 ) AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT 53 + + col1 AS col2 FROM tab0
----
139
144
150
query I rowsort
SELECT DISTINCT - col0 * col0 + col2 AS col1 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL - + cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT - col0 * col1 - - 68 AS col1 FROM tab2 cor0
----
-1275
-149
-4534
query I rowsort
SELECT DISTINCT col0 * + cor0.col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - col1 + - 75 AS col1 FROM tab2 AS cor0
----
-106
-134
-92
query I rowsort
SELECT DISTINCT - col2 + - 19 + - col2 * col1 FROM tab0 AS cor0
----
-117
-2890
-7563
query I rowsort
SELECT DISTINCT - - col2 * - ( 56 + col2 ) FROM tab1 AS cor0
----
-14592
-5940
-6441
query I rowsort
SELECT - cor0.col1 + - 79 FROM tab2 AS cor0
----
-110
-138
-96
query I rowsort
SELECT ALL col1 * - 25 + - col1 AS col0 FROM tab2 AS cor0
----
-1534
-442
-806
query I rowsort
SELECT - + cor0.col1 * + ( + ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + col0 + col2 - - 50 FROM tab2 AS cor0
----
154
167
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-5039
SELECT DISTINCT - - col1 + cor0.col2 DIV + col2 FROM tab1 cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT - - col1 + cor0.col2 / + col2 FROM tab1 cor0
----
11
14
27
query I rowsort
SELECT DISTINCT + - col1 + + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5041
SELECT ALL cor0.col1 * - CAST( NULL AS SIGNED ) + 39 * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL cor0.col1 * - CAST ( NULL AS INTEGER ) + 39 * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5042
SELECT DISTINCT + col0 - + 86 DIV col1 AS col0 FROM tab1 cor0
----
0
56
74
skipif mysql # not compatible
query I rowsort label-5042
SELECT DISTINCT + col0 - + 86 / col1 AS col0 FROM tab1 cor0
----
0
56
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5043
SELECT + col0 + + col1 * CAST( col2 AS SIGNED ) * - col2 FROM tab0
----
-611795
-62
-93630
skipif mysql # not compatible
query I rowsort label-5043
SELECT + col0 + + col1 * CAST ( col2 AS INTEGER ) * - col2 FROM tab0
----
-611795
-62
-93630
query I rowsort
SELECT + 72 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT 24 - - tab2.col1 * - col2 FROM tab2
----
-1510
-622
-813
query I rowsort
SELECT DISTINCT + - col1 * + col1 * col2 + col1 * - col1 FROM tab0 AS cor0
----
-18818
-251464
-687323
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5047
SELECT ALL col0 + CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL col0 + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5048
SELECT - + cor0.col2 * - col0 DIV col0 AS col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5048
SELECT - + cor0.col2 * - col0 / col0 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - 28 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-2492
-672
-980
query I rowsort
SELECT DISTINCT + - 87 * + col2 FROM tab1 cor0
----
-4698
-4959
-8352
query I rowsort
SELECT 18 * - col1 FROM tab0 cor0
----
-1548
-1638
-1746
query I rowsort
SELECT tab0.col2 + - tab0.col1 FROM tab0, tab2 cor0
----
9 values hashing to 92ef426526338653e88acd4aba639c47
query I rowsort
SELECT ALL + tab1.col1 AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + cor0.col0 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT - col2 * - col2 + - col0 FROM tab0
----
-34
1065
6635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 + + tab1.col1 col2 FROM tab1
----
-54
-67
23
query I rowsort
SELECT ALL 21 * col2 * col2 AS col0 FROM tab2 AS cor0
----
14196
15309
30324
query I rowsort
SELECT 18 * - col1 AS col1 FROM tab1
----
-180
-234
-468
query I rowsort
SELECT ALL 23 - + cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 36bd10e36ca4dbc96762458ab52e59ca
query I rowsort
SELECT 95 + - cor0.col2 FROM tab0 AS cor0
----
13
62
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-5061
SELECT ( 75 ) * col2 + - col1 DIV - col2 col2 FROM tab0 AS cor0
----
172
2477
6151
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5061
SELECT ( 75 ) * col2 + - col1 / - col2 col2 FROM tab0 AS cor0
----
172
2477
6151
query I rowsort
SELECT DISTINCT 71 FROM tab0, tab2 AS cor0
----
71
query I rowsort
SELECT + tab0.col1 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab2 cor1
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094
query I rowsort
SELECT ALL - + cor0.col0 + 14 + - cor0.col1 * 98 FROM tab0 AS cor0
----
-8438
-8993
-9527
query I rowsort
SELECT DISTINCT - col0 * col2 + col1 * col2 FROM tab0 AS cor0
----
164
2046
62
query I rowsort
SELECT DISTINCT - + 37 * - 60 AS col0 FROM tab1 AS cor0
----
2220
query I rowsort
SELECT DISTINCT + col2 * col2 + + col1 AS col0 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT - 54 * - col1 AS col2 FROM tab1 cor0
----
1404
540
702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5070
SELECT - CAST( NULL AS SIGNED ) * - 92 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5070
SELECT - CAST ( NULL AS INTEGER ) * - 92 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5071
SELECT col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-5071
SELECT col0 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - cor0.col0 + + col2 col2 FROM tab0 AS cor0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - 77 * - ( col2 ) FROM tab1 AS cor0
----
4158
4389
7392
query I rowsort
SELECT + - 98 * col1 FROM tab0 AS cor0
----
-8428
-8918
-9506
query I rowsort
SELECT DISTINCT ( 53 ) AS col1 FROM tab1
----
53
query I rowsort
SELECT DISTINCT - 26 AS col2 FROM tab2, tab0 AS cor0
----
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col0 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 6624b1f09c0594f5576803ac29f4499d
query I rowsort
SELECT DISTINCT col1 + - col1 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - cor0.col2 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL - 20 * col0 + - col1 AS col2 FROM tab1 cor0
----
-1290
-1613
-86
query I rowsort
SELECT DISTINCT + 43 * col2 AS col1 FROM tab2 AS cor0
----
1118
1161
1634
onlyif mysql # use DIV operator for integer division
query I rowsort label-5083
SELECT + 75 DIV + col1 AS col2 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-5083
SELECT + 75 / + col1 AS col2 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT + - col0 + - 45 FROM tab1 cor0
----
-109
-125
-48
query I rowsort
SELECT + col1 - - col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT col0 * col1 * col1 + + col2 FROM tab2 AS cor0
----
22869
271544
6754
onlyif mysql # use DIV operator for integer division
query I rowsort label-5087
SELECT col2 DIV 4 + + ( + col2 ) DIV + ( - col1 ) AS col0 FROM tab1 AS cor0
----
11
17
9
skipif mysql # not compatible
query I rowsort label-5087
SELECT col2 / 4 + + ( + col2 ) / + ( - col1 ) AS col0 FROM tab1 AS cor0
----
11
17
9
query I rowsort
SELECT 35 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT + cor0.col0 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5090
SELECT + 45 + 67 DIV col0 AS col1 FROM tab0 AS cor0
----
45
46
47
skipif mysql # not compatible
query I rowsort label-5090
SELECT + 45 + 67 / col0 AS col1 FROM tab0 AS cor0
----
45
46
47
query I rowsort
SELECT - - col0 * col2 * col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT - 57 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT + 3 - col2 AS col2 FROM tab0
----
-30
-79
2
query I rowsort
SELECT 80 * col2 FROM tab0 AS cor0
----
2640
6560
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5096
SELECT ALL cor0.col1 * cor0.col2 DIV ( col0 ) AS col1 FROM tab1 AS cor0
----
15
468
8
skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL cor0.col1 * cor0.col2 / ( col0 ) AS col1 FROM tab1 AS cor0
----
15
468
8
query I rowsort
SELECT - 35 * + col1 + + col1 AS col1 FROM tab1 AS cor0
----
-340
-442
-884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 57 * 76 * - col0 col1 FROM tab2 AS cor0
----
-30331
-337974
-342307
query I rowsort
SELECT ALL - col1 + col0 + - col1 FROM tab1 AS cor0
----
-49
44
54
query I rowsort
SELECT + cor0.col0 * - col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT DISTINCT col0 + 20 FROM tab0 AS cor0
----
109
44
55
query I rowsort
SELECT DISTINCT - col1 * col2 * col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - - col1 * ( col0 ) - + cor0.col0 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5104
SELECT ALL - - col1 + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL - - col1 + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - 7 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
query I rowsort
SELECT - + col1 + ( cor0.col1 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 46 FROM tab2, tab1 cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
onlyif mysql # use DIV operator for integer division
query I rowsort label-5108
SELECT CAST( 21 AS SIGNED ) DIV + col1 FROM tab2 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5108
SELECT CAST ( 21 AS INTEGER ) / + col1 FROM tab2 cor0
----
0
0
1
query I rowsort
SELECT ALL 56 + - 52 AS col2 FROM tab1, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 3347a3237b37ed63205e9440d8818a46
query I rowsort
SELECT DISTINCT - 73 * col2 FROM tab0 AS cor0
----
-2409
-5986
-73
query I rowsort
SELECT DISTINCT tab2.col2 * - col1 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + 90 AS col1 FROM tab0
----
90
query I rowsort
SELECT ALL - ( col1 ) * col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5114
SELECT DISTINCT - col0 * - col1 DIV + cor0.col1 AS col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT - col0 * - col1 / + cor0.col1 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - - 69 * cor0.col2 FROM tab2 AS cor0
----
1794
1863
2622
query I rowsort
SELECT DISTINCT - ( + 40 ) * + col2 FROM tab0
----
-1320
-3280
-40
query I rowsort
SELECT - - ( + col2 ) * - cor0.col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT - col2 + + 61 AS col1 FROM tab1
----
-35
4
7
query I rowsort
SELECT col1 + col0 * + col0 AS col0 FROM tab2
----
6143
6258
80
query I rowsort
SELECT col2 - 19 FROM tab1
----
35
38
77
query I rowsort
SELECT - ( - tab1.col0 ) - - col2 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT + ( - col0 ) + ( + col0 ) + + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - col1 + col2 * - 83 FROM tab0 cor0
----
-180
-2825
-6897
query I rowsort
SELECT ALL - 88 * - col0 AS col1 FROM tab1 cor0
----
264
5632
7040
query I rowsort
SELECT DISTINCT - - col1 + + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 * cor0.col0 col2 FROM tab1 AS cor0
----
-282
-6016
-7520
query I rowsort
SELECT DISTINCT ( col0 ) * - 42 + col0 * + cor0.col0 FROM tab2 cor0
----
-245
2808
2923
query I rowsort
SELECT - - 37 AS col1 FROM tab0 cor0
----
37
37
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-5129
SELECT ALL 17 DIV + col1 AS col0 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL 17 / + col1 AS col0 FROM tab1
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL 84 + cor0.col1 * 76 FROM tab0 AS cor0
----
6620
7000
7456
query I rowsort
SELECT + - 1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
query I rowsort
SELECT col1 + col1 * - col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT col2 * col0 + tab0.col0 AS col1 FROM tab0
----
70
7387
816
query I rowsort
SELECT col0 * 43 * col0 + col2 - 63 * col2 AS col2 FROM tab2
----
260000
266007
433
query I rowsort
SELECT - col1 * col2 * col2 AS col1 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT + col0 * - 69 + col0 FROM tab0
----
-1632
-2380
-6052
query I rowsort
SELECT - col0 + 92 AS col0 FROM tab2 AS cor0
----
13
14
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5139
SELECT + - cor0.col1 - CAST( col1 AS SIGNED ) * + col1 AS col0 FROM tab1 AS cor0
----
-110
-182
-702
skipif mysql # not compatible
query I rowsort label-5139
SELECT + - cor0.col1 - CAST ( col1 AS INTEGER ) * + col1 AS col0 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT tab1.col1 - col2 * col0 AS col2 FROM tab1
----
-136
-3638
-7667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5141
SELECT col2 + + CAST( - col0 AS SIGNED ) * + col2 FROM tab2
----
-162
-2002
-2964
skipif mysql # not compatible
query I rowsort label-5141
SELECT col2 + + CAST ( - col0 AS INTEGER ) * + col2 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT + col2 + col0 + + 15 FROM tab1
----
136
191
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-5143
SELECT DISTINCT + tab0.col0 + + col1 DIV tab0.col1 AS col2 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-5143
SELECT DISTINCT + tab0.col0 + + col1 / tab0.col1 AS col2 FROM tab0
----
25
36
90
query I rowsort
SELECT + 65 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT ALL cor0.col0 * 9 FROM tab0 AS cor0
----
216
315
801
query I rowsort
SELECT DISTINCT 38 * + col0 + - col1 AS col2 FROM tab0 AS cor0
----
1233
3291
826
query I rowsort
SELECT DISTINCT - + col1 * 1 + col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT + 13 + ( + col0 + + 71 ) FROM tab2 AS cor0
----
162
163
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-5149
SELECT ALL + - col1 + - 88 DIV + cor0.col0 FROM tab0 AS cor0
----
-89
-91
-99
skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL + - col1 + - 88 / + cor0.col0 FROM tab0 AS cor0
----
-89
-91
-99
query I rowsort
SELECT DISTINCT + - cor0.col0 * cor0.col1 + - col2 FROM tab2 AS cor0
----
-1381
-244
-4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 col0 FROM tab0 AS cor0
----
12
12
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-5152
SELECT ALL + col1 + col0 DIV col1 FROM tab2 AS cor0
----
21
31
60
skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL + col1 + col0 / col1 FROM tab2 AS cor0
----
21
31
60
query I rowsort
SELECT + - col1 * col2 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL - - 0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - 91 * cor0.col2 + col2 FROM tab0 AS cor0
----
-2970
-7380
-90
query I rowsort
SELECT - - 92 + col2 AS col2 FROM tab2 AS cor0
----
118
119
130
query I rowsort
SELECT ALL - 44 + col0 * col0 * col2 FROM tab2 AS cor0
----
1279
158140
237114
query I rowsort
SELECT ALL - - 37 * - col2 FROM tab1 AS cor0
----
-1998
-2109
-3552
query I rowsort
SELECT ALL - col2 * + col2 * - col0 + col2 AS col2 FROM tab0 cor0
----
26169
36
598518
onlyif mysql # use DIV operator for integer division
query I rowsort label-5160
SELECT col2 DIV 2 AS col2 FROM tab1 AS cor0
----
27
28
48
skipif mysql # not compatible
query I rowsort label-5160
SELECT col2 / 2 AS col2 FROM tab1 AS cor0
----
27
28
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-5161
SELECT DISTINCT col1 DIV 10 FROM tab0 AS cor0
----
8
9
skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT col1 / 10 FROM tab0 AS cor0
----
8
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5162
SELECT - - cor0.col2 DIV - ( + 36 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-5162
SELECT - - cor0.col2 / - ( + 36 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-2
query I rowsort
SELECT DISTINCT - 61 AS col0 FROM tab2, tab0 AS cor0
----
-61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5164
SELECT DISTINCT CAST( NULL AS SIGNED ) col1 FROM tab2, tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab2, tab2 AS cor0
----
NULL
query I rowsort
SELECT - col1 + - 29 * - cor0.col0 FROM tab0 AS cor0
----
2490
610
918
query I rowsort
SELECT - + 89 * col0 AS col1 FROM tab0 AS cor0
----
-2136
-3115
-7921
query I rowsort
SELECT + 29 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT - - cor0.col0 * col0 - col1 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT ALL col1 + cor0.col0 * + col0 FROM tab1 cor0
----
35
4106
6413
query I rowsort
SELECT ALL - - col2 * col1 AS col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL + col1 * + col0 + ( col0 ) FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT - 73 * col0 + + col1 FROM tab1
----
-193
-4662
-5827
query I rowsort
SELECT ALL col0 + col2 + col0 AS col2 FROM tab1
----
185
256
60
query I rowsort
SELECT DISTINCT - col1 + col1 + tab2.col0 * 16 AS col2 FROM tab2
----
112
1248
1264
query I rowsort
SELECT DISTINCT 72 * + tab1.col0 FROM tab1, tab1 cor0
----
216
4608
5760
query I rowsort
SELECT ALL - 0 + col2 + - col2 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5177
SELECT ALL tab0.col2 DIV col1 + + col2 * 85 * - col1 + col0 * + col2 col2 FROM tab0
----
-240438
-626972
-8210
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL tab0.col2 / col1 + + col2 * 85 * - col1 + col0 * + col2 col2 FROM tab0
----
-240438
-626972
-8210
query I rowsort
SELECT ( + 77 ) FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT DISTINCT ( col1 ) + + col0 AS col2 FROM tab1
----
29
74
93
query I rowsort
SELECT + tab0.col1 * col1 * 64 FROM tab0
----
473344
529984
602176
query I rowsort
SELECT ALL - 21 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757
query I rowsort
SELECT ALL - 59 FROM tab0 AS cor0
----
-59
-59
-59
query I rowsort
SELECT + col1 + col1 + - 64 FROM tab1 AS cor0
----
-12
-38
-44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5184
SELECT ALL + 18 * cor0.col1 + + CAST( NULL AS SIGNED ) * ( + col0 ) 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-5184
SELECT ALL + 18 * cor0.col1 + + CAST ( NULL AS INTEGER ) * ( + col0 ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( + col0 ) * - 31 + - 34 + - col0 * - ( + col0 * - col0 ) FROM tab0 AS cor0
----
-14602
-43994
-707762
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
query I rowsort
SELECT ALL - 34 FROM tab2 cor0
----
-34
-34
-34
query I rowsort
SELECT col0 * + col1 + col0 + + col2 FROM tab1 AS cor0
----
1216
135
761
query I rowsort
SELECT - + tab0.col0 FROM tab0, tab1, tab0 cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL + cor0.col0 - - col1 AS col2 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL + 22 * tab0.col2 FROM tab0
----
1804
22
726
query I rowsort
SELECT - + cor0.col2 * - col0 + 16 FROM tab0 AS cor0
----
51
7314
808
query I rowsort
SELECT - col0 * - cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT - col0 * + cor0.col1 + + cor0.col0 + + col1 AS col2 FROM tab0 AS cor0
----
-1954
-3263
-7919
query I rowsort
SELECT ALL 77 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT + col2 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ( ( col0 ) ) AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - col2 + 33 * col0 FROM tab1 AS cor0
----
2055
2544
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5199
SELECT DISTINCT CAST( + col1 AS SIGNED ) + - col1 AS col2 FROM tab2 cor0
----
0
skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + - col1 AS col2 FROM tab2 cor0
----
0
query I rowsort
SELECT + ( col1 ) + + ( - col0 ) + col2 FROM tab0 cor0
----
63
84
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 col1 FROM tab0, tab2 AS cor0
----
86
91
97
query I rowsort
SELECT + tab1.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT - + cor0.col2 + 11 FROM tab0, tab2 AS cor0
----
9 values hashing to e13d40a9944ad4408b0b2a63b47af5ea
query I rowsort
SELECT DISTINCT - - 10 + cor0.col1 * - col2 FROM tab0 AS cor0
----
-2828
-7452
-87
query I rowsort
SELECT DISTINCT - col2 + + cor0.col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + 39 AS col2 FROM tab2
----
39
39
39
query I rowsort
SELECT ALL + + 75 * 13 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to fb35b186c6dc30ef0e905311db7f594c
onlyif mysql # use DIV operator for integer division
query I rowsort label-5208
SELECT DISTINCT + col1 DIV tab2.col0 FROM tab2
----
0
4
skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT + col1 / tab2.col0 FROM tab2
----
0
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5209
SELECT ALL + CAST( NULL AS DECIMAL ) * 46 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL + CAST ( NULL AS REAL ) * 46 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 38 * + 51 + + col0 FROM tab1
----
1941
2002
2018
query I rowsort
SELECT - cor0.col2 + + 68 * cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f3692d3baba5d24053d4c68d06dcf845
query I rowsort
SELECT - 41 + - col1 FROM tab2 AS cor0
----
-100
-58
-72
query I rowsort
SELECT DISTINCT - 85 * - col1 + 21 AS col2 FROM tab1 AS cor0
----
1126
2231
871
query I rowsort
SELECT - 87 + cor0.col1 * - col0 AS col2 FROM tab1 AS cor0
----
-1127
-165
-727
query I rowsort
SELECT - + 96 * + cor0.col0 FROM tab0 AS cor0
----
-2304
-3360
-8544
query I rowsort
SELECT DISTINCT + col0 + col1 * col1 AS col0 FROM tab1 cor0
----
164
249
679
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 * col0 col1 FROM tab1 AS cor0
----
213
4544
5680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 11 col0 FROM tab1
----
-33
-704
-880
query I rowsort
SELECT ALL - col2 + 28 AS col1 FROM tab0
----
-5
-54
27
query I rowsort
SELECT + col0 * + ( - col2 ) FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT tab0.col1 + ( tab0.col1 * tab0.col0 ) AS col0 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT cor0.col2 + - 83 AS col1 FROM tab1 AS cor0
----
-26
-29
13
query I rowsort
SELECT DISTINCT - - col1 - - col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT col1 + + 56 * ( col2 ) AS col1 FROM tab2 AS cor0
----
1515
1543
2145
query I rowsort
SELECT DISTINCT + 46 * col2 AS col2 FROM tab0 AS cor0
----
1518
3772
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-5226
SELECT 47 DIV cor0.col1 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 833b749ae5e53c39fb5c10fe39c8013c
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5226
SELECT 47 / cor0.col1 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 833b749ae5e53c39fb5c10fe39c8013c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 71 col2 FROM tab0 cor0
----
-18
36
47
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 460ecaf0151851c22525e8eac77a0a82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 9 + + col2 col2 FROM tab0 AS cor0
----
249
316
883
query I rowsort
SELECT col1 + - ( col2 ) FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT col0 + ( cor0.col2 ) * + 61 AS col1 FROM tab2 AS cor0
----
1654
1664
2397
query I rowsort
SELECT - ( + col2 ) + - col0 * 8 + col0 FROM tab1 AS cor0
----
-505
-656
-75
query I rowsort
SELECT - 12 * + col0 + col2 AS col0 FROM tab2 AS cor0
----
-57
-910
-910
query I rowsort
SELECT ALL 47 FROM tab0
----
47
47
47
query I rowsort
SELECT - + col1 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5236
SELECT ALL + CAST( NULL AS SIGNED ) + - 13 * - cor0.col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL + CAST ( NULL AS INTEGER ) + - 13 * - cor0.col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 86 * + col0 AS col2 FROM tab0 cor0
----
-2064
-3010
-7654
query I rowsort
SELECT DISTINCT - 87 + + col1 AS col2 FROM tab1 AS cor0
----
-61
-74
-77
query I rowsort
SELECT ALL - 85 - col0 FROM tab0 AS cor0
----
-109
-120
-174
query I rowsort
SELECT 39 + col1 * col2 FROM tab0 AS cor0
----
136
2877
7501
query I rowsort
SELECT + + col2 * + 68 * col0 AS col2 FROM tab1 AS cor0
----
11016
248064
522240
query I rowsort
SELECT DISTINCT - - col2 + + 29 AS col1 FROM tab1 AS cor0
----
125
83
86
query I rowsort
SELECT + col1 * col1 + + col0 AS col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT DISTINCT - ( - col1 ) + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT col0 * col0 - cor0.col1 * - 13 FROM tab2 AS cor0
----
452
6462
6851
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5246
SELECT - + CAST( NULL AS DECIMAL ) + col1 * + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5246
SELECT - + CAST ( NULL AS REAL ) + col1 * + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 96 + - col2 AS col1 FROM tab0 AS cor0
----
14
63
95
query I rowsort
SELECT - col1 + - 92 FROM tab2 AS cor0
----
-109
-123
-151
query I rowsort
SELECT ALL 88 * + col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
3080
642224
69696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 83 * - col2 col1 FROM tab0 AS cor0
----
2739
6806
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 54 ) col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT DISTINCT 37 AS col2 FROM tab0 cor0
----
37
query I rowsort
SELECT ALL - - 93 * - col1 + - 68 FROM tab0 AS cor0
----
-8066
-8531
-9089
query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
10
13
26
query I rowsort
SELECT ALL - col0 * + col0 + - col1 AS col2 FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT - col2 - 75 AS col2 FROM tab1 AS cor0
----
-129
-132
-171
query I rowsort
SELECT DISTINCT cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - col0 - - tab0.col2 FROM tab0
----
-34
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5259
SELECT ALL + + col1 * CAST( NULL AS SIGNED ) * cor0.col2 + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL + + col1 * CAST ( NULL AS INTEGER ) * cor0.col2 + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 72 - + col1 * ( col2 ) FROM tab2
----
-1462
-574
-765
onlyif mysql # use DIV operator for integer division
query I rowsort label-5261
SELECT ALL col2 * 11 DIV + col1 + col1 FROM tab0
----
100
90
97
skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL col2 * 11 / + col1 + col1 FROM tab0
----
100
90
97
query I rowsort
SELECT tab0.col2 + 29 FROM tab0, tab2 AS cor0
----
9 values hashing to 0ffb8c9be4ef1ad2716eac216b279aec
onlyif mysql # use DIV operator for integer division
query I rowsort label-5263
SELECT ALL - col1 DIV 70 + col0 col2 FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL - col1 / 70 + col0 col2 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT - col2 + ( col2 ) + col2 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL - + col1 * col2 + - cor0.col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT ALL - col1 * + col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 12 + col0 * - col1 col1 FROM tab1
----
-114
-1408
-2000
query I rowsort
SELECT + col0 * + col2 + - ( + tab2.col0 ) AS col0 FROM tab2
----
182
1950
2923
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NULL NOT IN ( - col2 / - col2 + - tab1.col0 + col0 / col0 )
----
query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT ( NULL ) > ( NULL )
----
query I rowsort
SELECT DISTINCT - col0 + col0 + + cor0.col0 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + + col2 * cor0.col0 col2 FROM tab1 AS cor0
----
159
3584
7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 + - col1 col2 FROM tab1 AS cor0
----
136
3638
7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-5275
SELECT DISTINCT - - col1 * + col2 + - cor0.col2 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
2837
7461
96
skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT - - col1 * + col2 + - cor0.col2 / cor0.col2 AS col0 FROM tab0 AS cor0
----
2837
7461
96
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * col0 + col2 <> NULL
----
query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2 WHERE NULL < ( NULL )
----
query I rowsort
SELECT col2 * - tab1.col1 AS col2 FROM tab1
----
-1248
-1404
-570
query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 / col1 BETWEEN NULL AND - col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 col2 FROM tab1
----
29
74
93
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - col0
----
query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) BETWEEN NULL AND col1 + col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5283
SELECT col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5283
SELECT col0 / + col2 AS col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT + col2 * + col2 + + col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 + col2 ) > - col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5286
SELECT - col2 * col0 DIV + col0 AS col2 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-5286
SELECT - col2 * col0 / + col0 AS col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL + col0 * + cor0.col2 + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + col2 * cor0.col1 + - col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT - - col1 * - col0 + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT col2 / - col0 + - col1 FROM tab0 WHERE NOT NULL >= NULL AND ( NULL ) IN ( col2 * col2 )
----
query I rowsort
SELECT DISTINCT col1 * - col0 + + col2 * - col0 FROM tab1
----
-240
-4288
-8720
query I rowsort
SELECT - col1 + - col2 + - tab0.col0 FROM tab0
----
-133
-143
-262
query I rowsort
SELECT + col0 * col1 + - col1 + - col1 FROM tab2
----
1309
155
4484
query I rowsort
SELECT + col0 * col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
1226
609
8003
onlyif mysql # use DIV operator for integer division
query I rowsort label-5295
SELECT - col1 * - col1 DIV tab2.col1 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-5295
SELECT - col1 * - col1 / tab2.col1 FROM tab2
----
17
31
59
query I rowsort
SELECT + tab0.col2 + - col1 AS col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT + col1 * + col1 + tab0.col0 + - col2 FROM tab0
----
7387
8288
9443
query I rowsort
SELECT + ( col2 ) + + col2 AS col0 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5299
SELECT 55 DIV + col0 AS col2 FROM tab2
----
0
0
7
skipif mysql # not compatible
query I rowsort label-5299
SELECT 55 / + col0 AS col2 FROM tab2
----
0
0
7
query I rowsort
SELECT DISTINCT - + ( + cor0.col1 ) * - 53 FROM tab0, tab2, tab2 AS cor0
----
1643
3127
901
query I rowsort
SELECT + + 0 * + col1 * - 4 + + 22 FROM tab2 AS cor0
----
22
22
22
query I rowsort
SELECT DISTINCT + - 4 * + col2 FROM tab0 AS cor0
----
-132
-328
-4
query I rowsort
SELECT DISTINCT col2 - + tab0.col2 FROM tab0 WHERE col2 <= col2
----
0
query I rowsort
SELECT col0 + + col0 * + col1 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT - - col2 * col0 - col1 AS col1 FROM tab0 AS cor0
----
-62
706
7207
skipif mysql # not compatible
query I rowsort
SELECT + - col0 + CAST ( cor0.col2 AS REAL ) * col2 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT - - col2 * + 33 + col1 * col2 AS col2 FROM tab0 cor0
----
10168
130
3927
query I rowsort
SELECT ALL col0 * 75 AS col0 FROM tab2 AS cor0
----
525
5850
5925
query I rowsort
SELECT + col0 * col1 + - col0 AS col1 FROM tab1 AS cor0
----
576
75
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-5310
SELECT tab2.col2 * col0 DIV 26 FROM tab2
----
115
7
78
skipif mysql # not compatible
query I rowsort label-5310
SELECT tab2.col2 * col0 / 26 FROM tab2
----
115
7
78
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 / - col1 NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL + col0 + + col0 * col2 AS col1 FROM tab2
----
196
2106
3081
query I rowsort
SELECT - col1 - - tab2.col0 AS col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT + col2 + - tab2.col2 * tab2.col2 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT DISTINCT + col2 + col1 * col2 AS col1 FROM tab1
----
1344
1458
627
query I rowsort
SELECT col1 - + tab1.col0 * - tab1.col2 AS col0 FROM tab1
----
188
3658
7693
query III rowsort
SELECT * FROM tab2 WHERE col0 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL - col0 + col0 AS col0 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5319
SELECT ALL col2 + col1 DIV col1 AS col0 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL col2 + col1 / col1 AS col0 FROM tab2
----
27
28
39
query I rowsort
SELECT col0 + + col2 * - col0 AS col1 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT - col1 + col2 * - col0 AS col2 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT col2 * tab2.col2 + + col2 AS col0 FROM tab2
----
1482
702
756
query I rowsort
SELECT ALL + col0 * col0 + + col1 FROM tab0 AS cor0
----
1322
662
8012
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5324
SELECT ALL + col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL + col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + cor0.col2 + col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - + col2 * ( - col0 * + col0 ) + col2 FROM tab1 AS cor0
----
233529
540
614496
query I rowsort
SELECT DISTINCT cor0.col0 * - 18 FROM tab1 cor0
----
-1152
-1440
-54
onlyif mysql # use DIV operator for integer division
query I rowsort label-5328
SELECT ALL col0 + - col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL col0 + - col1 / - col2 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT tab1.col1 + + col2 * + 18 FROM tab1
----
1036
1741
998
query I rowsort
SELECT - col2 * col0 * col1 + col2 AS col0 FROM tab0
----
-3394
-664036
-68079
query I rowsort
SELECT ALL col2 + col0 * + col0 FROM tab1
----
4153
63
6496
query I rowsort
SELECT 94 * + col0 + 24 AS col2 FROM tab1
----
306
6040
7544
query I rowsort
SELECT ALL 90 * - tab2.col1 * ( + col0 ) + + col0 + + col2 FROM tab2
----
-120753
-19496
-414076
query I rowsort
SELECT cor0.col1 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT col2 * - col2 + - col1 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT ALL - - col0 * + 88 AS col0 FROM tab0 AS cor0
----
2112
3080
7832
query I rowsort
SELECT col0 * + col1 * - col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT - + col1 + + 5 AS col2 FROM tab2 cor0
----
-12
-26
-54
query I rowsort
SELECT DISTINCT - col1 - 28 FROM tab1
----
-38
-41
-54
query I rowsort
SELECT - col2 - - col2 * col1 AS col2 FROM tab0 AS cor0
----
2805
7380
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5341
SELECT + CAST( - col2 AS SIGNED ) * - col2 + col2 * col1 AS col1 FROM tab2 AS cor0
----
1566
2090
2210
skipif mysql # not compatible
query I rowsort label-5341
SELECT + CAST ( - col2 AS INTEGER ) * - col2 + col2 * col1 AS col1 FROM tab2 AS cor0
----
1566
2090
2210
query I rowsort
SELECT + - 22 + col2 AS col1 FROM tab0 AS cor0
----
-21
11
60
query I rowsort
SELECT - 62 + + col2 AS col2 FROM tab1
----
-5
-8
34
query I rowsort
SELECT + cor0.col1 - - col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5345
SELECT DISTINCT col1 DIV col2 + + col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
132
7299
794
skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT col1 / col2 + + col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
132
7299
794
query I rowsort
SELECT ALL + - 95 * col0 AS col0 FROM tab1 AS cor0
----
-285
-6080
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-5347
SELECT 91 - - col2 DIV - 92 AS col2 FROM tab0 cor0
----
91
91
91
skipif mysql # not compatible
query I rowsort label-5347
SELECT 91 - - col2 / - 92 AS col2 FROM tab0 cor0
----
91
91
91
query I rowsort
SELECT DISTINCT - + col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 col0 FROM tab0 AS cor0
----
-70
-70
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - - 92 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5352
SELECT ALL col2 / - col2 + CAST( NULL AS SIGNED ) * - 11 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-5352
SELECT ALL col2 / - col2 + CAST ( NULL AS INTEGER ) * - 11 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 72 AS col2 FROM tab2 AS cor0
----
72
72
72
query I rowsort
SELECT col1 - + col2 * 30 * - 72 AS col1 FROM tab0 AS cor0
----
177211
2257
71366
query I rowsort
SELECT ALL - - col1 * cor0.col2 + - col0 * + col0 FROM tab2 AS cor0
----
-4550
-5595
788
query I rowsort
SELECT DISTINCT - + col0 * - col2 + col2 - - col2 FROM tab2 AS cor0
----
2080
243
3078
query I rowsort
SELECT + 77 * col2 + + col2 FROM tab2 AS cor0
----
2028
2106
2964
query I rowsort
SELECT - cor0.col1 - col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT - - ( col1 ) + + ( - 60 ) * + col1 * col1 + col0 FROM tab1 AS cor0
----
-10047
-40531
-5926
onlyif mysql # use DIV operator for integer division
query I rowsort label-5360
SELECT ALL + col2 + - col1 DIV 70 + + cor0.col1 DIV + cor0.col2 AS col1 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL + col2 + - col1 / 70 + + cor0.col1 / + cor0.col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + col2 * col2 + 90 + col1 * - col2 FROM tab2 AS cor0
----
-18
-768
888
query I rowsort
SELECT ALL + col2 * - 83 AS col1 FROM tab2 AS cor0
----
-2158
-2241
-3154
query I rowsort
SELECT - col1 + + ( ( - col1 ) ) * 90 FROM tab1 AS cor0
----
-1183
-2366
-910
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5364
SELECT ALL + - col0 + + CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL + - col0 + + CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 - ( 92 ) FROM tab2 AS cor0
----
-33
-61
-75
query I rowsort
SELECT col2 + + 97 FROM tab2 AS cor0
----
123
124
135
query I rowsort
SELECT 84 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5368
SELECT DISTINCT + + col1 * + CAST( NULL AS SIGNED ) + - col1 * col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT + + col1 * + CAST ( NULL AS INTEGER ) + - col1 * col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL - col1 - - col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - col1 * - 68 AS col0 FROM tab2 cor0
----
1156
2108
4012
query I rowsort
SELECT + 76 AS col0 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5372
SELECT + cor0.col0 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5372
SELECT + cor0.col0 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT 19 * 46 AS col2 FROM tab1 AS cor0
----
874
onlyif mysql # use DIV operator for integer division
query I rowsort label-5375
SELECT ALL - col1 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL - col1 / cor0.col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col0 + - col0 + 4 AS col1 FROM tab0 AS cor0
----
4
7213
772
query I rowsort
SELECT - ( - col1 ) + col1 FROM tab1
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-5378
SELECT DISTINCT - col0 + col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
-7
-78
-81
skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT - col0 + col2 / - col1 AS col1 FROM tab2 AS cor0
----
-7
-78
-81
query I rowsort
SELECT - 33 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-2112
-2640
-99
query I rowsort
SELECT ALL + 85 * 46 FROM tab1 AS cor0
----
3910
3910
3910
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5381
SELECT ALL - CAST( col0 AS SIGNED ) - + cor0.col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6
skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL - CAST ( col0 AS INTEGER ) - + cor0.col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT col2 + + cor0.col1 AS col1 FROM tab2 cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5383
SELECT ALL - - CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL - - CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 29 FROM tab1 cor0
----
-29
query I rowsort
SELECT - cor0.col2 + + col1 AS col2 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT col1 * + cor0.col2 + col1 FROM tab2 cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-5387
SELECT ALL 17 DIV col1 - col1 AS col2 FROM tab1
----
-12
-26
-9
skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL 17 / col1 - col1 AS col2 FROM tab1
----
-12
-26
-9
query I rowsort
SELECT DISTINCT col1 - + col2 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - col2 * - col1 - 27 AS col0 FROM tab0 AS cor0
----
2811
70
7435
query I rowsort
SELECT ALL + col1 * - col2 + 53 AS col0 FROM tab2 cor0
----
-1481
-593
-784
onlyif mysql # use DIV operator for integer division
query I rowsort label-5391
SELECT ( - cor0.col1 ) DIV 7 + ( col0 ) AS col0 FROM tab2 AS cor0
----
3
70
77
skipif mysql # not compatible
query I rowsort label-5391
SELECT ( - cor0.col1 ) / 7 + ( col0 ) AS col0 FROM tab2 AS cor0
----
3
70
77
query I rowsort
SELECT DISTINCT + + col0 + + col0 AS col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT - ( col1 ) + 61 * col2 AS col1 FROM tab0 AS cor0
----
-36
1927
4911
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 * + col1 col0 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-5395
SELECT DISTINCT - 26 DIV col0 FROM tab2 AS cor0
----
-3
0
skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT - 26 / col0 FROM tab2 AS cor0
----
-3
0
query I rowsort
SELECT ALL + col0 * 62 AS col0 FROM tab2
----
434
4836
4898
query I rowsort
SELECT + ( 63 ) * col0 - + ( col2 ) FROM tab0
----
1479
2204
5525
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col1 ) col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5399
SELECT ALL + col1 DIV 42 + col1 AS col0 FROM tab0
----
88
93
99
skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL + col1 / 42 + col1 AS col0 FROM tab0
----
88
93
99
query I rowsort
SELECT - col0 * col0 - col1 * + 85 FROM tab1 AS cor0
----
-2219
-4946
-7505
query I rowsort
SELECT ALL col2 * - ( - col2 ) + tab0.col2 AS col0 FROM tab0
----
1122
2
6806
query I rowsort
SELECT tab2.col2 * + 41 FROM tab2
----
1066
1107
1558
query I rowsort
SELECT DISTINCT tab1.col0 * 61 FROM tab1
----
183
3904
4880
query I rowsort
SELECT - - col1 * col1 + col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT ALL - 60 AS col0 FROM tab0
----
-60
-60
-60
query I rowsort
SELECT + + 78 AS col0 FROM tab2 AS cor0
----
78
78
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 + col0 col1 FROM tab0 AS cor0
----
148
83
94
query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
1
33
82
query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL - 8 + col2 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-197
-2036
-3010
query I rowsort
SELECT DISTINCT cor0.col2 * + 71 + col2 * - col0 FROM tab1 AS cor0
----
-864
3672
399
query I rowsort
SELECT DISTINCT col2 + + col1 * 5 FROM tab0 cor0
----
463
486
537
query I rowsort
SELECT DISTINCT + col0 - - 48 * col0 AS col2 FROM tab0 AS cor0
----
1176
1715
4361
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5414
SELECT ALL + + col1 + CAST( col2 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
132
7389
878
skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL + + col1 + CAST ( col2 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT col2 * 27 FROM tab0 AS cor0
----
2214
27
891
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - col2 * 69 FROM tab0 AS cor0
----
-2277
-5658
-69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5418
SELECT col2 * + CAST( col1 + col0 AS SIGNED ) * 51 AS col1 FROM tab0 AS cor0
----
185130
6732
752760
skipif mysql # not compatible
query I rowsort label-5418
SELECT col2 * + CAST ( col1 + col0 AS INTEGER ) * 51 AS col1 FROM tab0 AS cor0
----
185130
6732
752760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5419
SELECT col1 + CAST( NULL AS SIGNED ) * - 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-5419
SELECT col1 + CAST ( NULL AS INTEGER ) * - col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - tab1.col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT DISTINCT + col0 + - 66 FROM tab2 AS cor0
----
-59
12
13
query I rowsort
SELECT DISTINCT 59 * + ( + col2 ) - + 93 AS col0 FROM tab2 AS cor0
----
1441
1500
2149
query I rowsort
SELECT ALL - 58 FROM tab0 cor0
----
-58
-58
-58
query I rowsort
SELECT col0 * + ( - col0 ) + 71 FROM tab2 AS cor0
----
-6013
-6170
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-5426
SELECT DISTINCT ( 58 ) DIV col0 AS col0 FROM tab2 cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT ( 58 ) / col0 AS col0 FROM tab2 cor0
----
0
8
query I rowsort
SELECT cor0.col2 + + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + col0 + 29 FROM tab2 AS cor0
----
107
108
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-5429
SELECT ALL col1 * col0 DIV + col2 + col2 * + col0 * col0 AS col2 FROM tab0 AS cor0
----
19070
4620
649620
skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL col1 * col0 / + col2 + col2 * + col0 * col0 AS col2 FROM tab0 AS cor0
----
19070
4620
649620
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5430
SELECT + + CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-5430
SELECT + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - 33 * + col1 AS col1 FROM tab2 AS cor0
----
-1023
-1947
-561
query I rowsort
SELECT + 74 * + col2 + - 5 FROM tab1 AS cor0
----
3991
4213
7099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5433
SELECT + 37 + col0 * - CAST( NULL AS SIGNED ) + 83 * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5433
SELECT + 37 + col0 * - CAST ( NULL AS INTEGER ) + 83 * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * - 1 AS col1 FROM tab2
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col1 FROM tab1
----
26
26
26
query I rowsort
SELECT + + col1 * col2 + 64 * - col2 FROM tab1 AS cor0
----
-2052
-3078
-4896
query I rowsort
SELECT + - col0 + + col2 + - col0 * col0 FROM tab1 AS cor0
----
-4103
-6384
42
query I rowsort
SELECT ALL + col1 + col1 + col0 * + 15 * - col0 FROM tab1
----
-61420
-83
-95974
query I rowsort
SELECT + 27 + col0 FROM tab1
----
107
30
91
query I rowsort
SELECT ALL col2 * 46 - cor0.col1 FROM tab0 AS cor0
----
-51
1432
3681
query I rowsort
SELECT - ( - col1 ) * - col2 * + 36 FROM tab0 AS cor0
----
-102168
-268632
-3492
query I rowsort
SELECT ALL - ( + ( - col2 ) ) * 30 AS col2 FROM tab1 AS cor0
----
1620
1710
2880
query I rowsort
SELECT + - 68 - 63 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 198f2474537eb54a20708dc723210cee
query I rowsort
SELECT DISTINCT + 77 + 74 * - col2 FROM tab2
----
-1847
-1921
-2735
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 + 26 col0 FROM tab0
----
51
query I rowsort
SELECT - col0 * 36 FROM tab2
----
-252
-2808
-2844
query I rowsort
SELECT DISTINCT + - 46 - + 58 * col0 AS col1 FROM tab1 AS cor0
----
-220
-3758
-4686
query I rowsort
SELECT + col0 * - 56 AS col2 FROM tab2 AS cor0
----
-392
-4368
-4424
query I rowsort
SELECT - - col0 * - col0 - - cor0.col1 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830
onlyif mysql # use DIV operator for integer division
query I rowsort label-5450
SELECT ALL + cor0.col2 DIV + 56 FROM tab1 cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL + cor0.col2 / + 56 FROM tab1 cor0
----
0
1
1
query I rowsort
SELECT DISTINCT cor0.col2 + col0 * 59 AS col2 FROM tab1 AS cor0
----
231
3833
4816
onlyif mysql # use DIV operator for integer division
query I rowsort label-5452
SELECT DISTINCT - col0 DIV col0 + 35 col1 FROM tab1 AS cor0
----
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5452
SELECT DISTINCT - col0 / col0 + 35 col1 FROM tab1 AS cor0
----
34
query I rowsort
SELECT - - 36 * + cor0.col2 * col0 FROM tab0 AS cor0
----
1260
262728
28512
query I rowsort
SELECT DISTINCT col1 * col0 * + col0 FROM tab0 cor0
----
118825
49536
720811
query I rowsort
SELECT ALL ( + col0 ) + + col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 + 10 * - col2 AS col1 FROM tab1 AS cor0
----
-10176
-3456
-3819
query I rowsort
SELECT ALL - 17 - + col2 * ( - col0 ) FROM tab0 cor0
----
18
7281
775
query I rowsort
SELECT - - 45 * - col1 + cor0.col0 FROM tab1 cor0
----
-1167
-386
-505
query I rowsort
SELECT DISTINCT + 17 + col0 * 71 FROM tab2 AS cor0
----
514
5555
5626
query I rowsort
SELECT tab1.col0 * + 56 + + col0 FROM tab1
----
171
3648
4560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5461
SELECT - col2 * 82 + + col1 * CAST( 13 AS SIGNED ) + - col0 col2 FROM tab0
----
-1612
-5630
1144
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5461
SELECT - col2 * 82 + + col1 * CAST ( 13 AS INTEGER ) + - col0 col2 FROM tab0
----
-1612
-5630
1144
query I rowsort
SELECT ALL col0 * col2 + col2 * + col2 * 38 FROM tab1
----
110970
127110
357888
query I rowsort
SELECT col2 + 89 AS col2 FROM tab0
----
122
171
90
query I rowsort
SELECT 21 + 0 FROM tab2
----
21
21
21
query I rowsort
SELECT ALL - cor0.col1 + + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT col0 + 73 * 28 * col0 FROM tab2 AS cor0
----
14315
159510
161555
query I rowsort
SELECT + col1 * - ( col0 * + col1 ) FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL + - cor0.col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT cor0.col0 * - 55 FROM tab0 AS cor0
----
-1320
-1925
-4895
onlyif mysql # use DIV operator for integer division
query I rowsort label-5470
SELECT ALL - cor0.col0 DIV + 54 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL - cor0.col0 / + 54 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT - col1 * col2 * 55 AS col2 FROM tab0 AS cor0
----
-156090
-410410
-5335
query I rowsort
SELECT - col1 * - 80 FROM tab2 AS cor0
----
1360
2480
4720
query I rowsort
SELECT - col2 * - 65 AS col2 FROM tab0 AS cor0
----
2145
5330
65
query I rowsort
SELECT DISTINCT + col2 * 1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - - col0 + + col1 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col1 + ( + col0 ) * col1 AS col1 FROM tab0 cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-5477
SELECT DISTINCT col1 DIV 37 + + 79 * cor0.col2 FROM tab0 AS cor0
----
2609
6480
81
skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT col1 / 37 + + 79 * cor0.col2 FROM tab0 AS cor0
----
2609
6480
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-5478
SELECT ALL col2 * col2 - ( col2 ) DIV col0 AS col1 FROM tab2 AS cor0
----
1444
676
726
skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL col2 * col2 - ( col2 ) / col0 AS col1 FROM tab2 AS cor0
----
1444
676
726
query I rowsort
SELECT ALL tab1.col1 - - 93 FROM tab1
----
103
106
119
query I rowsort
SELECT + cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT - col2 * 96 AS col0 FROM tab2 AS cor0
----
-2496
-2592
-3648
query I rowsort
SELECT DISTINCT - - 54 AS col0 FROM tab2, tab1 AS cor0, tab0, tab0 AS cor1
----
54
query I rowsort
SELECT DISTINCT tab1.col2 * 4 - - 8 * + col1 FROM tab1
----
308
424
488
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 * 51 col2 FROM tab0 AS cor0
----
4692
4692
4692
onlyif mysql # use DIV operator for integer division
query I rowsort label-5485
SELECT DISTINCT + 90 + 85 DIV - col1 AS col0 FROM tab2 AS cor0
----
85
88
89
skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT + 90 + 85 / - col1 AS col0 FROM tab2 AS cor0
----
85
88
89
query I rowsort
SELECT + + 7 * 41 FROM tab0 AS cor0
----
287
287
287
query I rowsort
SELECT col0 * 86 AS col2 FROM tab2 cor0
----
602
6708
6794
onlyif mysql # use DIV operator for integer division
query I rowsort label-5488
SELECT + - col0 + col2 DIV col0 AS col1 FROM tab2 AS cor0
----
-4
-78
-79
skipif mysql # not compatible
query I rowsort label-5488
SELECT + - col0 + col2 / col0 AS col1 FROM tab2 AS cor0
----
-4
-78
-79
query I rowsort
SELECT DISTINCT col1 * + ( 60 ) * - col0 AS col2 FROM tab0
----
-123840
-203700
-485940
query I rowsort
SELECT ALL + 39 + col0 * col1 FROM tab0
----
2103
3434
8138
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5491
SELECT ALL CAST( NULL AS SIGNED ) * + 74 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL CAST ( NULL AS INTEGER ) * + 74 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + col1 * + col0 * - col2 FROM tab1
----
-36544
-4215
-99920
query I rowsort
SELECT - 46 * + col2 + - col0 FROM tab1 AS cor0
----
-2487
-2686
-4496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5494
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col1 * - col0 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col1 * - col0 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - - 81 * col0 FROM tab1 cor0
----
243
5184
6480
query I rowsort
SELECT DISTINCT 66 + col1 FROM tab2 AS cor0
----
125
83
97
query I rowsort
SELECT ALL - ( col1 ) * + col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT + col0 + - 56 FROM tab2 AS cor0
----
-49
22
23
query I rowsort
SELECT ALL - col1 * + 69 - - col1 AS col1 FROM tab2 AS cor0
----
-1156
-2108
-4012
query I rowsort
SELECT ALL - col0 * - col0 * + cor0.col0 AS col2 FROM tab1 cor0
----
262144
27
512000
query I rowsort
SELECT - + 37 * + col1 + col1 FROM tab2 AS cor0
----
-1116
-2124
-612
onlyif mysql # use DIV operator for integer division
query I rowsort label-5502
SELECT col0 * col1 * + col1 + col0 DIV - col0 AS col1 FROM tab0
----
177503
329314
737008
skipif mysql # not compatible
query I rowsort label-5502
SELECT col0 * col1 * + col1 + col0 / - col0 AS col1 FROM tab0
----
177503
329314
737008
query I rowsort
SELECT DISTINCT cor0.col2 * - 22 FROM tab0, tab1 AS cor0
----
-1188
-1254
-2112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 col0 FROM tab1
----
44
44
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-5505
SELECT col1 DIV cor0.col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-5505
SELECT col1 / cor0.col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT DISTINCT - col1 * col1 * + col2 AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT + col0 + - col2 * 14 FROM tab2 AS cor0
----
-286
-371
-453
query I rowsort
SELECT ALL 91 + col0 FROM tab0 AS cor0
----
115
126
180
query I rowsort
SELECT ALL 1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort
SELECT + 13 * - cor0.col0 + + CAST ( 53 AS REAL ) AS col0 FROM tab2 AS cor0
----
-38
-961
-974
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 9 col1 FROM tab0 AS cor0
----
774
819
873
query I rowsort
SELECT DISTINCT + + col2 + - ( col0 ) AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL + col0 + - col0 + col0 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + ( - col0 ) col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT ALL - col0 * + 32 AS col1 FROM tab1 AS cor0
----
-2048
-2560
-96
query I rowsort
SELECT - 73 * col0 * + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-42048
-578233
-89425
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 + + col0 col2 FROM tab0 AS cor0
----
152
87
98
query I rowsort
SELECT - - col0 - cor0.col0 * + cor0.col2 FROM tab1 cor0
----
-159
-3584
-7600
query I rowsort
SELECT - col0 + + 18 * - cor0.col0 FROM tab0 AS cor0
----
-1691
-456
-665
query I rowsort
SELECT ALL ( 13 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT 68 AS col0 FROM tab2 cor0
----
68
68
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
query I rowsort
SELECT col0 + - ( - col2 ) AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT + ( col2 + - col0 ) * 63 AS col2 FROM tab0
----
-2142
-441
567
query I rowsort
SELECT ALL - + ( + cor0.col1 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + 5 * - 28 FROM tab2
----
-140
-140
-140
query I rowsort
SELECT ALL + - col0 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT - ( + 89 ) * col2 + - ( 58 ) AS col2 FROM tab1
----
-4864
-5131
-8602
query I rowsort
SELECT ALL + ( - tab2.col2 ) * col1 + tab2.col0 FROM tab2
----
-1456
-567
-830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5531
SELECT CAST( NULL AS SIGNED ) * + col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5531
SELECT CAST ( NULL AS INTEGER ) * + col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 87 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
onlyif mysql # use DIV operator for integer division
query I rowsort label-5533
SELECT ALL 95 DIV col0 AS col0 FROM tab2
----
1
1
13
skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL 95 / col0 AS col0 FROM tab2
----
1
1
13
query I rowsort
SELECT ALL + col1 + - col1 * col2 FROM tab0 cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT 4 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5536
SELECT - + col1 + + CAST( col0 + - col1 AS SIGNED ) * cor0.col2 FROM tab1 cor0
----
-1268
3068
6419
skipif mysql # not compatible
query I rowsort label-5536
SELECT - + col1 + + CAST ( col0 + - col1 AS INTEGER ) * cor0.col2 FROM tab1 cor0
----
-1268
3068
6419
query I rowsort
SELECT + col1 * col2 - - 74 FROM tab1 AS cor0
----
1322
1478
644
query I rowsort
SELECT col2 * - 5 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-102
-251
-501
query I rowsort
SELECT - 81 * 60 + col2 FROM tab0 AS cor0
----
-4778
-4827
-4859
query I rowsort
SELECT - 80 * + col2 FROM tab1 cor0
----
-4320
-4560
-7680
query I rowsort
SELECT + + 52 * - col1 FROM tab2 AS cor0
----
-1612
-3068
-884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5542
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5542
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + + cor0.col0 + + 0 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5544
SELECT ( 21 ) * - cor0.col0 + - CAST( col1 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-432
-774
1341
skipif mysql # not compatible
query I rowsort label-5544
SELECT ( 21 ) * - cor0.col0 + - CAST ( col1 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-432
-774
1341
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + col1 AS REAL ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + col1 + - col0 AS col2 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT - + 88 + col2 * col1 FROM tab0 AS cor0
----
2750
7374
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5548
SELECT DISTINCT - CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-5548
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5549
SELECT ALL + CAST( NULL AS SIGNED ) + col2 * - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 * - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5550
SELECT DISTINCT + 99 DIV col1 AS col0 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT + 99 / col1 AS col0 FROM tab0 AS cor0
----
1
query I rowsort
SELECT ALL - col1 * col0 - col1 * col2 FROM tab1
----
-1210
-1482
-2288
query I rowsort
SELECT ALL - col2 - - col2 * - ( col2 ) AS col0 FROM tab2
----
-1482
-702
-756
query I rowsort
SELECT DISTINCT + 62 FROM tab0, tab2, tab1 AS cor0
----
62
query I rowsort
SELECT ALL + + col1 * - col1 FROM tab1 cor0
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5555
SELECT DISTINCT + col1 + col1 * CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT + col1 + col1 * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) + col0 col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + col0 * col1 + + col1 * 93 AS col1 FROM tab2 AS cor0
----
10089
2924
3100
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + + ( - col2 ) col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5559
SELECT + col0 DIV - col1 + col0 FROM tab2
----
7
75
77
skipif mysql # not compatible
query I rowsort label-5559
SELECT + col0 / - col1 + col0 FROM tab2
----
7
75
77
query I rowsort
SELECT DISTINCT - + cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - col2 * - col0 * - 48 - + col1 AS col1 FROM tab0 AS cor0
----
-1777
-350395
-38102
query I rowsort
SELECT - + cor0.col2 * - col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - col0 + - col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-2919
-3313
-9296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 + + ( col1 ) * + col2 col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - + col2 * - col2 - - cor0.col2 * + col2 * col0 FROM tab0 AS cor0
----
27225
36
605160
query I rowsort
SELECT ALL col0 * - 21 FROM tab0 cor0
----
-1869
-504
-735
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5567
SELECT ALL col1 * CAST( NULL AS DECIMAL ) * col0 + col2 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL col1 * CAST ( NULL AS REAL ) * col0 + col2 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col0 * 97 AS col1 FROM tab1 AS cor0
----
-291
-6208
-7760
query I rowsort
SELECT ALL + col0 + cor0.col2 * col2 FROM tab2 AS cor0
----
1523
736
754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - 18 + 51 col2 FROM tab1 AS cor0
----
-1101
-1389
-3
query I rowsort
SELECT DISTINCT + + col2 + ( col1 ) FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5572
SELECT col0 DIV + cor0.col1 + + 96 col0 FROM tab0 cor0
----
96
96
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5572
SELECT col0 / + cor0.col1 + + 96 col0 FROM tab0 cor0
----
96
96
96
query I rowsort
SELECT DISTINCT - cor0.col0 + 35 + 40 FROM tab1 AS cor0
----
-5
11
72
query I rowsort
SELECT - + col1 * - cor0.col0 + - col1 + col0 FROM tab1 AS cor0
----
1107
55
694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 * + ( + 77 ) col2 FROM tab1 AS cor0
----
-4158
-4389
-7392
query I rowsort
SELECT DISTINCT + + col0 + ( - col1 ) FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT col0 * + ( + cor0.col2 ) AS col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + cor0.col0 * col1 - + ( col2 * + cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-3008
-6640
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col1 FROM tab0 AS cor0
----
-16
-16
-16
query I rowsort
SELECT - 65 * + col1 AS col1 FROM tab0 AS cor0
----
-5590
-5915
-6305
query I rowsort
SELECT + ( + col1 ) * col0 * + col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT + tab2.col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
26
27
38
query I rowsort
SELECT + col2 + - 48 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1222
-1269
-1786
query I rowsort
SELECT ALL col2 + col0 * + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL 46 AS col0 FROM tab1 cor0
----
46
46
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-5586
SELECT + col2 DIV + col2 + - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1088
-6723
0
skipif mysql # not compatible
query I rowsort label-5586
SELECT + col2 / + col2 + - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1088
-6723
0
query I rowsort
SELECT ALL - + ( col0 ) - col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT - ( 61 ) * - col2 FROM tab0 AS cor0
----
2013
5002
61
query I rowsort
SELECT ALL + - cor0.col1 * 83 AS col1 FROM tab0 AS cor0
----
-7138
-7553
-8051
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5590
SELECT DISTINCT + CAST( + cor0.col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT + CAST ( + cor0.col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - - 47 AS col0 FROM tab1 AS cor0
----
47
47
47
query I rowsort
SELECT ALL - cor0.col2 * col0 + + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT + - 14 AS col1 FROM tab2 AS cor0
----
-14
-14
-14
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( cor0.col2 AS REAL ) * col0 * col0 - ( - col2 * + col0 ) FROM tab0 AS cor0
----
1260
19800
656820
query I rowsort
SELECT ALL 66 FROM tab1 cor0
----
66
66
66
query I rowsort
SELECT DISTINCT - 46 + - col0 - - cor0.col2 AS col0 FROM tab2 AS cor0
----
-26
-87
-98
query I rowsort
SELECT - ( - 94 ) + col0 * - col1 FROM tab0 AS cor0
----
-1970
-3301
-8005
query I rowsort
SELECT DISTINCT col2 + 19 AS col2 FROM tab2 AS cor0
----
45
46
57
query I rowsort
SELECT DISTINCT col2 * + col1 - + col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL + tab2.col1 * + 94 FROM tab2
----
1598
2914
5546
query I rowsort
SELECT DISTINCT + - col1 * col0 - 60 * - col0 FROM tab0 cor0
----
-1295
-2759
-624
query I rowsort
SELECT ALL + - 64 * + col1 + 84 * col2 FROM tab0 AS cor0
----
-2732
-6124
1064
query I rowsort
SELECT DISTINCT - - col0 - - cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT 77 * col0 + - col1 * + ( col0 ) FROM tab0
----
-1246
-216
-700
query I rowsort
SELECT ALL + 88 FROM tab0
----
88
88
88
query I rowsort
SELECT DISTINCT 11 * + col0 + col2 AS col1 FROM tab0 AS cor0
----
1061
297
386
query I rowsort
SELECT + - col1 + + col2 * col2 AS col2 FROM tab2 cor0
----
1427
617
698
query I rowsort
SELECT DISTINCT + ( col2 ) * + col2 AS col0 FROM tab2 cor0
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 47 col0 FROM tab1 AS cor0
----
47
47
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 + + col0 col1 FROM tab2 AS cor0
----
145
146
74
query I rowsort
SELECT + - col2 + col1 * + cor0.col1 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT DISTINCT ( - col0 ) * col1 * - col1 FROM tab1 cor0
----
13520
2028
6400
query I rowsort
SELECT col0 - 55 AS col0 FROM tab0
----
-20
-31
34
query I rowsort
SELECT + tab1.col2 + - tab1.col2 * - col0 FROM tab1
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-5615
SELECT ( col0 ) * + col1 + + tab0.col2 DIV col1 AS col0 FROM tab0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-5615
SELECT ( col0 ) * + col1 + + tab0.col2 / col1 AS col0 FROM tab0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5616
SELECT DISTINCT + CAST( - tab1.col0 AS SIGNED ) * + tab1.col1 AS col2 FROM tab1
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT + CAST ( - tab1.col0 AS INTEGER ) * + tab1.col1 AS col2 FROM tab1
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5617
SELECT col1 * col1 + - col2 DIV col0 FROM tab2 cor0
----
289
3481
958
skipif mysql # not compatible
query I rowsort label-5617
SELECT col1 * col1 + - col2 / col0 FROM tab2 cor0
----
289
3481
958
query I rowsort
SELECT - 59 * - col1 FROM tab2 AS cor0
----
1003
1829
3481
query I rowsort
SELECT + 54 + + cor0.col1 FROM tab0, tab1 cor0
----
9 values hashing to 3c4109757b862d7ca1eff7555ff515b6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 col2 FROM tab0 cor0
----
63
query I rowsort
SELECT ALL - 47 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
query I rowsort
SELECT DISTINCT tab0.col2 * + col1 + + ( tab0.col2 * + col2 ) FROM tab0
----
14186
3927
98
query I rowsort
SELECT DISTINCT - - ( - ( cor0.col2 ) ) * col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + 60 * col1 AS col1 FROM tab1 AS cor0
----
1560
600
780
onlyif mysql # use DIV operator for integer division
query I rowsort label-5625
SELECT ALL - col2 * - 74 + col0 DIV col2 + col1 FROM tab1
----
4022
4229
7117
skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL - col2 * - 74 + col0 / col2 + col1 FROM tab1
----
4022
4229
7117
query I rowsort
SELECT ALL - col1 * 53 + - col2 * - col2 AS col1 FROM tab2
----
-2451
-914
543
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to d6394df0309139ffe20e7d96c77e26ee
query I rowsort
SELECT DISTINCT - 16 AS col2 FROM tab0, tab2 AS cor0
----
-16
query I rowsort
SELECT - 66 + tab0.col0 * tab0.col0 FROM tab0
----
1159
510
7855
query I rowsort
SELECT ALL col2 * ( tab1.col2 ) AS col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + 31 AS col2 FROM tab1
----
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-5632
SELECT DISTINCT 34 DIV col0 FROM tab2 AS cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT 34 / col0 FROM tab2 AS cor0
----
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5633
SELECT + - cor0.col2 DIV + 12 AS col2 FROM tab1 AS cor0
----
-4
-4
-8
skipif mysql # not compatible
query I rowsort label-5633
SELECT + - cor0.col2 / + 12 AS col2 FROM tab1 AS cor0
----
-4
-4
-8
query I rowsort
SELECT ALL 15 FROM tab1 cor0
----
15
15
15
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5635
SELECT ALL - CAST( NULL AS DECIMAL ) * - 53 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL - CAST ( NULL AS REAL ) * - 53 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 + - ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5637
SELECT DISTINCT - col1 DIV col2 + + 69 * col1 FROM tab1 AS cor0
----
1794
690
897
skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT - col1 / col2 + + 69 * col1 FROM tab1 AS cor0
----
1794
690
897
query I rowsort
SELECT + - col1 * + cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col2 + + col1 * - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT ALL - 43 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 4f17f941ddb7d7f35d93196515cfe0f2
query I rowsort
SELECT + col2 + - 10 AS col0 FROM tab0
----
-9
23
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5642
SELECT + 38 + 38 * col1 / + CAST( NULL AS DECIMAL ) 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-5642
SELECT + 38 + 38 * col1 / + CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 85 * - col2 + - col0 FROM tab0 AS cor0
----
2781
50
6881
query I rowsort
SELECT ALL + 86 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
onlyif mysql # use DIV operator for integer division
query I rowsort label-5645
SELECT - col0 * col0 DIV 70 AS col0 FROM tab0 AS cor0
----
-113
-17
-8
skipif mysql # not compatible
query I rowsort label-5645
SELECT - col0 * col0 / 70 AS col0 FROM tab0 AS cor0
----
-113
-17
-8
query I rowsort
SELECT + tab0.col1 * tab0.col1 AS col2 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT + + col1 * - ( + 33 ) AS col2 FROM tab2 AS cor0
----
-1023
-1947
-561
query I rowsort
SELECT col1 + - 36 * - col0 AS col2 FROM tab0 AS cor0
----
1357
3295
950
onlyif mysql # use DIV operator for integer division
query I rowsort label-5649
SELECT + + col2 + - col0 DIV col2 AS col1 FROM tab1 AS cor0
----
54
56
96
skipif mysql # not compatible
query I rowsort label-5649
SELECT + + col2 + - col0 / col2 AS col1 FROM tab1 AS cor0
----
54
56
96
query I rowsort
SELECT 86 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT ( - tab0.col1 * - ( - col0 ) ) + + col0 AS col2 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT - 54 AS col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211
query I rowsort
SELECT DISTINCT + ( - cor1.col0 ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5654
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5654
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5655
SELECT ALL - - cor0.col0 * + CAST( ( col1 ) AS SIGNED ) FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL - - cor0.col0 * + CAST ( ( col1 ) AS INTEGER ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - 58 * - tab2.col0 * - col1 FROM tab2
----
-12586
-266916
-77894
query I rowsort
SELECT ALL - - 20 + - 49 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
query I rowsort
SELECT DISTINCT + ( - 74 ) + cor0.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-36
-47
-48
query I rowsort
SELECT col2 - 89 AS col0 FROM tab2
----
-51
-62
-63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( col1 ) - + col2 col2 FROM tab0
----
2031
3394
8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-5661
SELECT DISTINCT col0 + + col0 DIV + 27 + col0 FROM tab0
----
181
48
71
skipif mysql # not compatible
query I rowsort label-5661
SELECT DISTINCT col0 + + col0 / + 27 + col0 FROM tab0
----
181
48
71
query I rowsort
SELECT col2 + - ( + tab0.col2 ) FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - tab2.col2 col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL col2 * col1 + - col0 AS col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * 32 FROM tab1 AS cor0
----
320
416
832
onlyif mysql # use DIV operator for integer division
query I rowsort label-5666
SELECT - cor0.col2 DIV + col1 FROM tab2 cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-5666
SELECT - cor0.col2 / + col1 FROM tab2 cor0
----
-2
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5667
SELECT ALL - col0 DIV col1 AS col1 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL - col0 / col1 AS col1 FROM tab1
----
-6
-6
0
query I rowsort
SELECT 43 AS col2 FROM tab2 AS cor0
----
43
43
43
query I rowsort
SELECT - 62 FROM tab1, tab1 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5670
SELECT DISTINCT CAST( - col1 AS SIGNED ) * - col0 AS col1 FROM tab0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-5670
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * - col0 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT col0 * + col0 + col2 FROM tab1 AS cor0
----
4153
63
6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-5672
SELECT - + col0 DIV col2 - - col2 FROM tab1 AS cor0
----
54
56
96
skipif mysql # not compatible
query I rowsort label-5672
SELECT - + col0 / col2 - - col2 FROM tab1 AS cor0
----
54
56
96
query I rowsort
SELECT - col1 * - cor0.col0 + col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
2686
434
9204
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 + col0 col1 FROM tab2 AS cor0
----
80
81
9
query I rowsort
SELECT ALL + 86 + 91 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c22e7014d7b3bdb046013086e48ff1f6
query I rowsort
SELECT + 45 * 65 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to f648069dee2a29d9f8df55aeec51575b
query I rowsort
SELECT DISTINCT col0 + - col2 * 10 - + col0 AS col1 FROM tab1
----
-540
-570
-960
query I rowsort
SELECT - cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-5679
SELECT + col2 + + col0 DIV col1 FROM tab1 AS cor0
----
102
54
63
skipif mysql # not compatible
query I rowsort label-5679
SELECT + col2 + + col0 / col1 FROM tab1 AS cor0
----
102
54
63
query I rowsort
SELECT - + 98 AS col1 FROM tab0 AS cor0
----
-98
-98
-98
query I rowsort
SELECT DISTINCT - col2 + + col2 * + col2 FROM tab0 AS cor0
----
0
1056
6642
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 + + col0 * - col2 * - col0 col2 FROM tab1 AS cor0
----
233504
518
614432
query I rowsort
SELECT ALL + 35 + - col0 FROM tab0 AS cor0
----
-54
0
11
query I rowsort
SELECT ALL + col0 + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 81 col2 FROM tab1 cor0
----
-81
-81
-81
query I rowsort
SELECT tab2.col2 - ( col0 * + col1 ) FROM tab2
----
-1305
-190
-4576
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 cor0, tab2 AS cor1
----
972 values hashing to a9068b700464993db9fae6f630605fde
skipif mysql # not compatible
query I rowsort
SELECT - - col0 * - 79 + - col0 * + CAST ( + 38 AS REAL ) + + col0 / 10 FROM tab0 AS cor0
----
-10405
-2806
-4092
query I rowsort
SELECT DISTINCT tab2.col2 + col2 * - col2 AS col2 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT - 82 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT ALL - + col0 * 40 + col0 + - col0 FROM tab2 cor0
----
-280
-3120
-3160
onlyif mysql # use DIV operator for integer division
query I rowsort label-5692
SELECT + col1 + + col0 DIV col0 + col1 * - 29 FROM tab2
----
-1651
-475
-867
skipif mysql # not compatible
query I rowsort label-5692
SELECT + col1 + + col0 / col0 + col1 * - 29 FROM tab2
----
-1651
-475
-867
query I rowsort
SELECT col2 * + 0 AS col0 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5694
SELECT - CAST( col2 AS SIGNED ) * col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-5694
SELECT - CAST ( col2 AS INTEGER ) * col1 / col2 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + 60 FROM tab2 cor0
----
60
60
60
query I rowsort
SELECT + cor0.col1 + 65 FROM tab2 AS cor0
----
124
82
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5697
SELECT - ( + col1 ) DIV col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-5697
SELECT - ( + col1 ) / col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT - col2 * 5 AS col0 FROM tab1 cor0
----
-270
-285
-480
onlyif mysql # use DIV operator for integer division
query I rowsort label-5699
SELECT ALL - tab0.col2 DIV - tab0.col0 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6
skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL - tab0.col2 / - tab0.col0 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6
query I rowsort
SELECT + col1 * - 16 AS col0 FROM tab2 cor0
----
-272
-496
-944
query I rowsort
SELECT ALL - + col1 * + 6 FROM tab2 AS cor0
----
-102
-186
-354
query I rowsort
SELECT 58 * + col0 FROM tab0 AS cor0
----
1392
2030
5162
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5703
SELECT + CAST( NULL AS DECIMAL ) * col1 + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5703
SELECT + CAST ( NULL AS REAL ) * col1 + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 25 col1 FROM tab2 AS cor0
----
51
52
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-5705
SELECT DISTINCT 20 * + col2 + - col1 DIV - 85 FROM tab1 AS cor0
----
1080
1140
1920
skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT 20 * + col2 + - col1 / - 85 FROM tab1 AS cor0
----
1080
1140
1920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) * col0 + + 94 col2 FROM tab0 AS cor0
----
-698
-7204
59
query I rowsort
SELECT DISTINCT - col0 + - 52 * cor0.col2 FROM tab2 AS cor0
----
-1411
-1430
-2055
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5708
SELECT ALL - CAST( NULL AS DECIMAL ) * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL - CAST ( NULL AS REAL ) * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * ( - col2 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ( col2 ) * + col1 + col0 AS col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT - ( + col0 ) + - col2 * col1 * 51 FROM tab1 AS cor0
----
-29134
-63728
-71607
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5712
SELECT ALL CAST( 9 AS SIGNED ) FROM tab1
----
9
9
9
skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL CAST ( 9 AS INTEGER ) FROM tab1
----
9
9
9
query I rowsort
SELECT - 4 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd
query I rowsort
SELECT ALL + 46 AS col2 FROM tab0
----
46
46
46
query I rowsort
SELECT col2 * col2 + + col1 AS col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT - 46 + col2 FROM tab1 AS cor0
----
11
50
8
query I rowsort
SELECT cor0.col1 + + col1 AS col1 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5718
SELECT CAST( + col2 AS SIGNED ) + col0 * col0 FROM tab2 AS cor0
----
6110
6279
76
skipif mysql # not compatible
query I rowsort label-5718
SELECT CAST ( + col2 AS INTEGER ) + col0 * col0 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT - 40 * - col2 AS col2 FROM tab1 AS cor0
----
2160
2280
3840
query I rowsort
SELECT DISTINCT - - col2 - - col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - col0 * - col2 * - cor0.col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT + - 48 AS col0 FROM tab0 cor0
----
-48
-48
-48
query I rowsort
SELECT - - col0 + + cor0.col0 FROM tab1 cor0
----
128
160
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5724
SELECT ( col0 ) + + CAST( col1 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
-2814
-62
-7373
skipif mysql # not compatible
query I rowsort label-5724
SELECT ( col0 ) + + CAST ( col1 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT col1 * + col1 + - col0 AS col2 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT DISTINCT - col1 * - col1 + - col0 AS col2 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT - + ( col2 ) * + col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT col2 * - 97 FROM tab0
----
-3201
-7954
-97
query I rowsort
SELECT DISTINCT 67 * col0 FROM tab1
----
201
4288
5360
query I rowsort
SELECT 1 + + col2 * + tab2.col0 AS col0 FROM tab2
----
190
2029
3003
query I rowsort
SELECT DISTINCT + + col2 * + ( - col1 ) + - col1 * 86 FROM tab0 cor0
----
-10234
-15288
-8439
query I rowsort
SELECT ALL - + col0 - + ( 20 ) FROM tab2 AS cor0
----
-27
-98
-99
query I rowsort
SELECT - col1 * - ( col0 ) * col2 + col2 * ( - col0 + + 62 ) AS col0 FROM tab1 cor0
----
36366
7398
98112
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-5735
SELECT ALL + - col2 DIV 29 FROM tab2 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL + - col2 / 29 FROM tab2 cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT - col1 + - col1 + col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - cor0.col1 + - 86 * col0 FROM tab1 AS cor0
----
-284
-5514
-6893
onlyif mysql # use DIV operator for integer division
query I rowsort label-5738
SELECT col2 DIV + col2 + + ( - col2 ) - ( cor0.col2 + + cor0.col2 ) * - col1 AS col0 FROM tab0 AS cor0
----
14843
194
5644
skipif mysql # not compatible
query I rowsort label-5738
SELECT col2 / + col2 + + ( - col2 ) - ( cor0.col2 + + cor0.col2 ) * - col1 AS col0 FROM tab0 AS cor0
----
14843
194
5644
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 60 col0 FROM tab0 AS cor0
----
1440
2100
5340
query I rowsort
SELECT cor0.col0 * col2 + col0 - col2 FROM tab0 AS cor0
----
69
7305
783
query I rowsort
SELECT + col0 + 98 FROM tab1
----
101
162
178
query I rowsort
SELECT + + cor0.col2 * - 30 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c26f32911deba081bd1b109be22da4ed
query I rowsort
SELECT ALL - tab1.col0 + + 29 FROM tab1
----
-35
-51
26
query I rowsort
SELECT - 8 * tab0.col0 AS col1 FROM tab0
----
-192
-280
-712
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 * 73 col0 FROM tab2
----
-111982
-47158
-61101
query I rowsort
SELECT ALL - 43 + - 57 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 21c0ca09ffc507125d1f1a8f18b1d528
onlyif mysql # use DIV operator for integer division
query I rowsort label-5747
SELECT DISTINCT + col0 DIV tab2.col1 AS col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-5747
SELECT DISTINCT + col0 / tab2.col1 AS col1 FROM tab2
----
0
1
4
query I rowsort
SELECT - tab1.col0 * ( - 5 ) AS col2 FROM tab1
----
15
320
400
query I rowsort
SELECT DISTINCT 37 AS col2 FROM tab1, tab0 AS cor0
----
37
query I rowsort
SELECT - + cor0.col0 + col0 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( - col0 * col2 ) col0 FROM tab1 cor0
----
-108
-3591
-7584
query I rowsort
SELECT - col0 + 52 * col1 AS col0 FROM tab1 AS cor0
----
1349
456
596
query I rowsort
SELECT ALL - 34 FROM tab0, tab1 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb
query I rowsort
SELECT DISTINCT + 24 + - col0 * + col2 FROM tab2 AS cor0
----
-165
-2004
-2978
query I rowsort
SELECT - 1 * - col0 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - 62 + col1 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
227
3419
899
onlyif mysql # use DIV operator for integer division
query I rowsort label-5757
SELECT ALL col2 DIV col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL col2 / col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + tab2.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
17
31
59
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0 CROSS JOIN tab1, tab1 cor1
----
972 values hashing to 635619591835474e6aa6acdff4ab166c
query I rowsort
SELECT + + cor0.col0 + 68 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 83057b1e970711dce5e1a947d65526be
query I rowsort
SELECT col2 * + col0 - + col0 * col2 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 14 - col1 AS col0 FROM tab0
----
-72
-77
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 col2 FROM tab0, tab2 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + col1 - + col1 AS col2 FROM tab2
----
0
query I rowsort
SELECT DISTINCT - + col2 * col2 + 18 AS col0 FROM tab1 AS cor0
----
-2898
-3231
-9198
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 + - col2 col0 FROM tab0 cor0
----
-143
-62
-94
query I rowsort
SELECT + - 14 + col1 FROM tab2 AS cor0
----
17
3
45
query I rowsort
SELECT ALL + col0 + col1 * + col0 * 31 FROM tab2 AS cor0
----
142740
41712
6734
query I rowsort
SELECT DISTINCT - col2 * col1 + 80 + col1 FROM tab0 cor0
----
-2672
-7291
80
query I rowsort
SELECT DISTINCT + 61 * col0 + 49 AS col2 FROM tab2 cor0
----
476
4807
4868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 * - col1 * col2 col0 FROM tab1 AS cor0
----
-110916
-45030
-98592
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 - col2 col2 FROM tab1 AS cor0
----
-135
-93
-96
query I rowsort
SELECT ALL - col2 + - cor0.col1 * col1 * cor0.col0 FROM tab1 AS cor0
----
-13616
-2082
-6457
query I rowsort
SELECT ALL cor2.col1 AS col1 FROM tab1, tab2 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT DISTINCT - col0 + 47 + col1 FROM tab0 AS cor0
----
109
49
query I rowsort
SELECT ALL cor0.col1 * - col0 * + 60 + - cor0.col0 AS col2 FROM tab2 cor0
----
-13027
-276198
-80659
query I rowsort
SELECT ALL + col1 * - col1 - - ( - col2 ) * + col1 FROM tab2
----
-1798
-5015
-935
query I rowsort
SELECT DISTINCT 74 - + col1 FROM tab1
----
48
61
64
query I rowsort
SELECT DISTINCT + - col0 - + 69 AS col1 FROM tab2 AS cor0
----
-147
-148
-76
query I rowsort
SELECT cor1.col0 + ( - 44 ) FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 4785955685f2f5f12ae7a8a4ccb2b6e4
query I rowsort
SELECT DISTINCT + + col1 * - 14 AS col2 FROM tab1 AS cor0
----
-140
-182
-364
query I rowsort
SELECT DISTINCT + 19 AS col0 FROM tab2, tab0 cor0, tab0 cor1, tab0 cor2
----
19
query I rowsort
SELECT ( col2 ) * - col1 FROM tab2 AS cor0
----
-1534
-646
-837
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a
query I rowsort
SELECT + 96 * ( + col0 ) FROM tab1 AS cor0
----
288
6144
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5786
SELECT ALL + CAST( col2 AS SIGNED ) * + col1 col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL + CAST ( col2 AS INTEGER ) * + col1 col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 col0 FROM tab2
----
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 * - col0 col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT 72 AS col0 FROM tab0
----
72
query I rowsort
SELECT ALL + col0 * 7 FROM tab0 AS cor0
----
168
245
623
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + 62 col2 FROM tab2 AS cor0
----
434
4836
4898
query I rowsort
SELECT col0 * 85 FROM tab1 AS cor0
----
255
5440
6800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT - cor0.col0 + 95 * - 29 FROM tab0 cor0
----
-2779
-2790
-2844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 32 col1 FROM tab1 AS cor0
----
42
45
58
query I rowsort
SELECT col1 * + ( col0 ) AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL col2 * col0 + col0 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT - tab0.col1 * + col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + 21 * col0 + col0 * ( + 13 + - col2 ) AS col2 FROM tab1 AS cor0
----
-1472
-4960
-60
query I rowsort
SELECT - col2 * + 19 * col2 + + col0 FROM tab1
----
-175024
-55401
-61667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT - col1 * col0 + + col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT + 50 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1300
1350
1900
query I rowsort
SELECT ALL - 49 * + cor0.col1 FROM tab1 AS cor0
----
-1274
-490
-637
query I rowsort
SELECT ALL - ( col0 ) * col0 AS col1 FROM tab2
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-5806
SELECT DISTINCT tab2.col2 DIV + 4 AS col1 FROM tab2
----
6
9
skipif mysql # not compatible
query I rowsort label-5806
SELECT DISTINCT tab2.col2 / + 4 AS col1 FROM tab2
----
6
9
query I rowsort
SELECT DISTINCT - col0 * col2 * col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT + 11 * + col2 AS col1 FROM tab2 AS cor0
----
286
297
418
query I rowsort
SELECT + ( - col1 ) * 20 FROM tab0 AS cor0
----
-1720
-1820
-1940
query I rowsort
SELECT + - 54 * col2 + col2 * col0 FROM tab2 AS cor0
----
-1269
624
950
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5811
SELECT CAST( NULL AS SIGNED ) + - tab0.col1 + + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5811
SELECT CAST ( NULL AS INTEGER ) + - tab0.col1 + + col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 - - col1 AS col2 FROM tab2
----
118
34
62
query I rowsort
SELECT ALL tab1.col1 - - col0 AS col2 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5814
SELECT 33 * 15 + + tab0.col2 DIV - ( - col0 ) AS col1 FROM tab0
----
495
495
496
skipif mysql # not compatible
query I rowsort label-5814
SELECT 33 * 15 + + tab0.col2 / - ( - col0 ) AS col1 FROM tab0
----
495
495
496
query I rowsort
SELECT ALL - tab0.col0 + - col2 + + col2 * col0 FROM tab0
----
-1
7127
735
query I rowsort
SELECT DISTINCT + 69 AS col2 FROM tab2 AS cor0
----
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-5817
SELECT - col2 * cor0.col0 + col0 DIV + 51 AS col1 FROM tab2 AS cor0
----
-189
-2027
-3001
skipif mysql # not compatible
query I rowsort label-5817
SELECT - col2 * cor0.col0 + col0 / + 51 AS col1 FROM tab2 AS cor0
----
-189
-2027
-3001
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5818
SELECT + 50 + + col1 + CAST( 20 * - col0 AS SIGNED ) FROM tab0 AS cor0
----
-1639
-344
-553
skipif mysql # not compatible
query I rowsort label-5818
SELECT + 50 + + col1 + CAST ( 20 * - col0 AS INTEGER ) FROM tab0 AS cor0
----
-1639
-344
-553
query I rowsort
SELECT + - col1 * + col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + - col0 * + cor0.col2 * - cor0.col2 + ( col0 ) * col1 FROM tab2 AS cor0
----
115419
5320
57330
query I rowsort
SELECT ALL cor0.col1 * + col2 + ( - col0 ) + - col2 * + 14 AS col2 FROM tab0 AS cor0
----
2352
48
6225
query I rowsort
SELECT 22 * col2 AS col1 FROM tab2
----
572
594
836
query I rowsort
SELECT DISTINCT - col2 + - tab0.col1 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT ALL + 51 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
query I rowsort
SELECT DISTINCT - ( - col1 ) * + col2 + col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT + - col0 + 81 * cor0.col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
108704
17570
372684
query I rowsort
SELECT - - 15 + - cor0.col0 + 66 AS col0 FROM tab0 AS cor0
----
-8
46
57
query I rowsort
SELECT col1 + - col2 * - 19 FROM tab2 AS cor0
----
544
553
739
query I rowsort
SELECT DISTINCT - col1 * col2 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT + tab0.col2 + + col0 AS col1 FROM tab0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT tab1.col1 * + col1 * 36 FROM tab1
----
24336
3600
6084
query I rowsort
SELECT DISTINCT - col1 * + 43 AS col1 FROM tab2 cor0
----
-1333
-2537
-731
query I rowsort
SELECT col2 * cor0.col2 + + 78 FROM tab1 cor0
----
2994
3327
9294
query I rowsort
SELECT ALL + + col0 * - 78 AS col0 FROM tab2 AS cor0
----
-546
-6084
-6162
query I rowsort
SELECT DISTINCT + + col2 + + 98 + cor0.col0 AS col1 FROM tab2 AS cor0
----
132
202
215
query I rowsort
SELECT + tab0.col0 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL 83 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT + col1 * - col1 + - ( col2 ) * + ( + col0 ) + col2 * + 43 FROM tab2 AS cor0
----
-1657
-4391
11
query I rowsort
SELECT col1 + + col1 * + 42 + + col1 * - ( - col0 ) FROM tab0 AS cor0
----
12012
5762
7566
query I rowsort
SELECT DISTINCT - col0 + + 36 AS col2 FROM tab0 AS cor0
----
-53
1
12
query I rowsort
SELECT - col0 * col1 + 85 FROM tab2 AS cor0
----
-1258
-132
-4517
query I rowsort
SELECT - - col0 - ( - col2 + + col0 ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + cor0.col2 * - col2 * col1 AS col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ALL - + col2 + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + cor0.col0 + - col0 * - col0 AS col2 FROM tab0 cor0
----
1260
600
8010
query I rowsort
SELECT ALL 49 * + col0 AS col1 FROM tab0 AS cor0
----
1176
1715
4361
query I rowsort
SELECT DISTINCT - + 93 * + col2 + - col0 AS col2 FROM tab1 AS cor0
----
-5025
-5365
-9008
onlyif mysql # use DIV operator for integer division
query I rowsort label-5849
SELECT ALL - + cor0.col0 DIV 19 + col1 + - col0 AS col2 FROM tab1 AS cor0
----
-57
-71
23
skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL - + cor0.col0 / 19 + col1 + - col0 AS col2 FROM tab1 AS cor0
----
-57
-71
23
query I rowsort
SELECT + 13 AS col2 FROM tab1 cor0
----
13
13
13
query I rowsort
SELECT ALL + ( ( col1 ) ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - ( + ( col0 ) ) + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 - col2 * col2 col1 FROM tab0 AS cor0
----
-1032
-6553
35
query I rowsort
SELECT ALL - - 94 FROM tab1 AS cor0
----
94
94
94
query I rowsort
SELECT - - ( + 95 ) + col2 FROM tab2 AS cor0
----
121
122
133
query I rowsort
SELECT DISTINCT + col2 * + 39 AS col2 FROM tab1 AS cor0
----
2106
2223
3744
query I rowsort
SELECT DISTINCT + + 24 + col1 * + col1 FROM tab1 cor0
----
124
193
700
query I rowsort
SELECT + + col0 - + col1 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5859
SELECT DISTINCT + - 50 + + col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
-51
skipif mysql # not compatible
query I rowsort label-5859
SELECT DISTINCT + - 50 + + col0 / - col0 AS col2 FROM tab2 AS cor0
----
-51
query I rowsort
SELECT ALL + + col2 + col0 AS col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL col1 * + col0 + + ( - col0 ) AS col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL cor0.col1 * - col0 + - col2 FROM tab0 cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT ( - cor0.col1 ) + + 80 AS col0 FROM tab2 AS cor0
----
21
49
63
query I rowsort
SELECT DISTINCT - 44 AS col2 FROM tab2
----
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-5865
SELECT - - col0 DIV - 87 + col0 AS col2 FROM tab0 AS cor0
----
24
35
88
skipif mysql # not compatible
query I rowsort label-5865
SELECT - - col0 / - 87 + col0 AS col2 FROM tab0 AS cor0
----
24
35
88
query I rowsort
SELECT + cor0.col1 * - 86 * + col2 AS col0 FROM tab1 AS cor0
----
-107328
-120744
-49020
query I rowsort
SELECT - + 9 - + col1 AS col2 FROM tab0 AS cor0
----
-100
-106
-95
query I rowsort
SELECT ALL + tab1.col2 + + cor1.col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 4adc79da53b2973c695f7891ad1fab50
query I rowsort
SELECT - col0 + + cor0.col2 * + col2 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT DISTINCT col2 * ( col0 ) + col0 AS col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT DISTINCT - col0 * + 36 FROM tab2
----
-252
-2808
-2844
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab1, tab2 cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614
query I rowsort
SELECT + 80 FROM tab2, tab2 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT ALL col0 - + tab2.col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT + 13 AS col0 FROM tab2
----
13
query I rowsort
SELECT ALL 18 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595
query I rowsort
SELECT DISTINCT - 26 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5878
SELECT - CAST( NULL AS SIGNED ) + - 27 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5878
SELECT - CAST ( NULL AS INTEGER ) + - 27 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4
query I rowsort
SELECT - + cor0.col1 * + col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT ( col1 ) + col0 * 11 AS col2 FROM tab2 AS cor0
----
108
886
917
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5884
SELECT CAST( - ( - col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5884
SELECT CAST ( - ( - col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - - 15 * + 31 + col2 AS col0 FROM tab0 AS cor0
----
466
498
547
query I rowsort
SELECT ALL - cor0.col2 * col2 + + col1 + ( - 41 ) FROM tab2 AS cor0
----
-1468
-658
-739
query I rowsort
SELECT - 58 * + col0 FROM tab0 AS cor0
----
-1392
-2030
-5162
query I rowsort
SELECT ALL + 7 * col1 FROM tab2 cor0
----
119
217
413
query I rowsort
SELECT ALL ( 69 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT ALL + col0 + - col2 + + col2 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT 65 FROM tab2, tab0 AS cor0
----
65
query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT ALL + col1 * - cor0.col0 + col1 AS col2 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL + 90 * tab1.col1 * + 30 + 65 AS col2 FROM tab1
----
27065
35165
70265
query I rowsort
SELECT - col0 - + col2 * col0 FROM tab1
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT - col2 * + col2 + 9 + col1 FROM tab0 AS cor0
----
-6624
-994
105
query I rowsort
SELECT + 98 * + col0 FROM tab2 AS cor0
----
686
7644
7742
query I rowsort
SELECT ALL 12 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT DISTINCT - + col0 + col1 * 32 * col2 FROM tab1 AS cor0
----
18176
39856
44925
query I rowsort
SELECT DISTINCT - + col2 + 65 AS col2 FROM tab1 AS cor0
----
-31
11
8
query I rowsort
SELECT + 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-5902
SELECT + + col0 + CAST( col0 AS SIGNED ) FROM tab1 cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort label-5902
SELECT + + col0 + CAST ( col0 AS INTEGER ) FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT ALL + cor0.col1 * 77 + 30 AS col0 FROM tab0 AS cor0
----
6652
7037
7499
query I rowsort
SELECT DISTINCT + col2 + + 27 FROM tab1 AS cor0
----
123
81
84
query I rowsort
SELECT ALL - + 12 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 * tab2.col2 col2 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT col2 + - 15 + col0 * - ( - col0 ) * col1 AS col2 FROM tab1
----
273
41002
83281
query I rowsort
SELECT DISTINCT col0 * - col0 * col2 + col0 * + col2 * + col2 AS col1 FROM tab2 AS cor0
----
-105456
-123082
3780
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5909
SELECT ALL - CAST( NULL AS SIGNED ) - - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL - CAST ( NULL AS INTEGER ) - - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col1 ) + col1 col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5911
SELECT CAST( col2 AS SIGNED ) - col1 AS col0 FROM tab1 cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-5911
SELECT CAST ( col2 AS INTEGER ) - col1 AS col0 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - + 23 * col2 + col0 FROM tab2 AS cor0
----
-520
-614
-795
query I rowsort
SELECT ALL - cor0.col1 + - 55 FROM tab2 cor0
----
-114
-72
-86
query I rowsort
SELECT ALL + + ( + cor0.col1 ) * + col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - col1 + col2 + + cor0.col2 * - col0 FROM tab2 AS cor0
----
-193
-2061
-2981
query I rowsort
SELECT DISTINCT + + col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + - 60 + col2 AS col0 FROM tab1 AS cor0
----
-3
-6
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * - col0 + 33 col2 FROM tab2 cor0
----
6117
6274
82
query I rowsort
SELECT ALL 47 * col2 FROM tab1 AS cor0
----
2538
2679
4512
query I rowsort
SELECT DISTINCT - - 13 * + col0 * + col2 AS col0 FROM tab0 AS cor0
----
10296
455
94874
query I rowsort
SELECT - + tab1.col2 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT col2 + + tab1.col2 * + col1 FROM tab1
----
1344
1458
627
query I rowsort
SELECT ALL - col2 * col2 * col1 + col0 AS col1 FROM tab1 cor0
----
-119728
-32426
-75813
query I rowsort
SELECT ALL + + col0 + cor0.col1 * + ( col1 ) FROM tab1 cor0
----
164
249
679
query I rowsort
SELECT + 70 FROM tab1, tab2 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT + col1 + - ( col0 + tab2.col2 ) FROM tab2
----
-100
-3
-45
onlyif mysql # use DIV operator for integer division
query I rowsort label-5927
SELECT DISTINCT col2 DIV - 57 + - 66 AS col1 FROM tab2 AS cor0
----
-66
skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT col2 / - 57 + - 66 AS col1 FROM tab2 AS cor0
----
-66
query I rowsort
SELECT DISTINCT - col2 + 71 FROM tab0 AS cor0
----
-11
38
70
query I rowsort
SELECT ALL - cor0.col2 + - ( - col0 ) FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT - 18 * - 0 AS col0 FROM tab1, tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - tab1.col1 * 39 - + col0 * col2 FROM tab1
----
-1176
-4038
-8187
onlyif mysql # use DIV operator for integer division
query I rowsort label-5932
SELECT DISTINCT col2 DIV + 84 + col2 FROM tab1 AS cor0
----
54
57
97
skipif mysql # not compatible
query I rowsort label-5932
SELECT DISTINCT col2 / + 84 + col2 FROM tab1 AS cor0
----
54
57
97
query I rowsort
SELECT + + col0 * - 16 + - col0 FROM tab0 AS cor0
----
-1513
-408
-595
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - ( cor0.col2 ) col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - + ( - col1 ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5936
SELECT CAST( 17 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-14
-42
0
skipif mysql # not compatible
query I rowsort label-5936
SELECT CAST ( 17 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-14
-42
0
query I rowsort
SELECT ALL + 79 + + ( cor0.col0 ) * - col0 FROM tab1 AS cor0
----
-4017
-6321
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5938
SELECT ALL CAST( - ( + col1 ) AS SIGNED ) * ( + col2 ) + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL CAST ( - ( + col1 ) AS INTEGER ) * ( + col2 ) + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5939
SELECT + tab0.col0 + CAST( + col1 AS SIGNED ) * col1 * - 54 + - col1 DIV col1 AS col0 FROM tab0
----
-399361
-447086
-508052
skipif mysql # not compatible
query I rowsort label-5939
SELECT + tab0.col0 + CAST ( + col1 AS INTEGER ) * col1 * - 54 + - col1 / col1 AS col0 FROM tab0
----
-399361
-447086
-508052
query I rowsort
SELECT ALL - 90 FROM tab1, tab0 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
query I rowsort
SELECT DISTINCT + + col0 + - 77 AS col1 FROM tab2 AS cor0
----
-70
1
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5942
SELECT - CAST( NULL AS SIGNED ) * + cor0.col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5942
SELECT - CAST ( NULL AS INTEGER ) * + cor0.col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 8 * col2 col2 FROM tab1 AS cor0
----
392
429
688
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab2 cor1, tab0, tab0 AS cor2
----
3645 values hashing to a5677c50b23f70287df35c2388a1c9bf
query I rowsort
SELECT - col1 + + col2 * col2 AS col2 FROM tab1
----
2890
3239
9203
query I rowsort
SELECT - col2 + 80 AS col2 FROM tab0 AS cor0
----
-2
47
79
query I rowsort
SELECT col1 * 32 * - col0 FROM tab2
----
-147264
-42976
-6944
onlyif mysql # use DIV operator for integer division
query I rowsort label-5948
SELECT col0 DIV + 87 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5948
SELECT col0 / + 87 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL - tab2.col1 + - col1 AS col1 FROM tab2
----
-118
-34
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5950
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 FROM tab0
----
NULL
query I rowsort
SELECT ALL - ( col1 ) + - col2 * + col0 FROM tab1
----
-188
-3658
-7693
query I rowsort
SELECT ALL - - cor0.col0 + + col0 + col0 * col0 FROM tab1 AS cor0
----
15
4224
6560
query I rowsort
SELECT col0 * - 67 AS col2 FROM tab1
----
-201
-4288
-5360
query I rowsort
SELECT ALL - 83 * ( tab2.col0 ) FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 5bab5d60bb60d58e078bddcf25fc0161
query I rowsort
SELECT - col2 * cor0.col2 + + col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 col1 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-5957
SELECT col1 DIV tab0.col1 + + ( + col1 ) DIV - col0 AS col1 FROM tab0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-5957
SELECT col1 / tab0.col1 + + ( + col1 ) / - col0 AS col1 FROM tab0
----
-1
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5958
SELECT DISTINCT + tab2.col0 DIV - col0 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT + tab2.col0 / - col0 FROM tab2
----
-1
query I rowsort
SELECT DISTINCT 51 AS col2 FROM tab2, tab0 AS cor0
----
51
query I rowsort
SELECT ALL + 40 FROM tab2, tab2 cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5961
SELECT + col1 * + CAST( NULL AS SIGNED ) * 69 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5961
SELECT + col1 * + CAST ( NULL AS INTEGER ) * 69 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + ( ( col2 ) ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col0 * + ( col1 + - cor0.col2 ) AS col1 FROM tab1 cor0
----
-3008
-6640
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-5964
SELECT ALL + col1 DIV 19 FROM tab2 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL + col1 / 19 FROM tab2 AS cor0
----
0
1
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5965
SELECT - + col0 * CAST( + 69 AS SIGNED ) + + col2 col2 FROM tab1 AS cor0
----
-153
-4359
-5424
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5965
SELECT - + col0 * CAST ( + 69 AS INTEGER ) + + col2 col2 FROM tab1 AS cor0
----
-153
-4359
-5424
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5966
SELECT + + col2 * + CAST( 28 * col0 AS SIGNED ) - + CAST( cor0.col0 + col1 AS SIGNED ) FROM tab2 AS cor0
----
5254
56647
83960
skipif mysql # not compatible
query I rowsort label-5966
SELECT + + col2 * + CAST ( 28 * col0 AS INTEGER ) - + CAST ( cor0.col0 + col1 AS INTEGER ) FROM tab2 AS cor0
----
5254
56647
83960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + 41 col1 FROM tab0 AS cor0
----
-45
-50
-56
query I rowsort
SELECT ALL + + col1 * + ( col1 * col1 ) FROM tab2 AS cor0
----
205379
29791
4913
query I rowsort
SELECT DISTINCT - col1 * - 54 + 14 AS col1 FROM tab2 AS cor0
----
1688
3200
932
query I rowsort
SELECT + col2 * - 12 FROM tab0 AS cor0
----
-12
-396
-984
query I rowsort
SELECT + col0 + + 65 * + col0 FROM tab1 AS cor0
----
198
4224
5280
query I rowsort
SELECT ALL col2 + 31 AS col1 FROM tab0 cor0
----
113
32
64
query I rowsort
SELECT + cor0.col0 * col2 + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT 34 AS col2 FROM tab1 AS cor0
----
34
34
34
query I rowsort
SELECT - col2 * col1 * col1 + ( - col2 ) FROM tab1 AS cor0
----
-16320
-36558
-5757
query I rowsort
SELECT - col2 + 13 * + col0 FROM tab0 AS cor0
----
1075
279
454
query I rowsort
SELECT - col2 * 23 + 37 FROM tab2
----
-561
-584
-837
query I rowsort
SELECT - col0 * ( col0 ) * col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-5979
SELECT - col0 DIV cor0.col2 + - cor0.col2 FROM tab1 AS cor0
----
-54
-58
-96
skipif mysql # not compatible
query I rowsort label-5979
SELECT - col0 / cor0.col2 + - cor0.col2 FROM tab1 AS cor0
----
-54
-58
-96
query I rowsort
SELECT ( 53 ) * col2 FROM tab2 cor0
----
1378
1431
2014
query I rowsort
SELECT ALL - ( cor0.col0 ) + col1 AS col2 FROM tab0 AS cor0
----
2
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + + col0 col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + 58 AS col1 FROM tab0 AS cor0
----
58
query I rowsort
SELECT DISTINCT 50 * col2 AS col2 FROM tab1 cor0
----
2700
2850
4800
query I rowsort
SELECT - + 76 * col1 + - cor0.col2 + - col1 FROM tab0 cor0
----
-6655
-7089
-7470
query I rowsort
SELECT DISTINCT - + ( col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT 19 + - col0 FROM tab1 AS cor0
----
-45
-61
16
query I rowsort
SELECT ALL col1 * col0 - + cor0.col1 * - col1 FROM tab1 AS cor0
----
1209
740
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-5989
SELECT DISTINCT - col1 DIV + cor0.col1 AS col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT - col1 / + cor0.col1 AS col2 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT ALL + 35 + col1 AS col0 FROM tab0 AS cor0
----
121
126
132
query I rowsort
SELECT + 64 + col2 * 33 FROM tab1 AS cor0
----
1846
1945
3232
query I rowsort
SELECT ALL + 38 * + col0 FROM tab1 AS cor0
----
114
2432
3040
query I rowsort
SELECT ALL - 84 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4
query I rowsort
SELECT + col2 * + 1 AS col2 FROM tab1
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5995
SELECT CAST( 60 AS SIGNED ) + + tab0.col1 * 13 AS col1 FROM tab0
----
1178
1243
1321
skipif mysql # not compatible
query I rowsort label-5995
SELECT CAST ( 60 AS INTEGER ) + + tab0.col1 * 13 AS col1 FROM tab0
----
1178
1243
1321
query I rowsort
SELECT ALL + tab1.col1 + + 87 + tab1.col2 FROM tab1
----
154
167
196
query I rowsort
SELECT DISTINCT + col2 + 81 FROM tab2
----
107
108
119
query I rowsort
SELECT - 68 FROM tab0, tab0 cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
query I rowsort
SELECT ALL - col2 * col1 * - col2 FROM tab0
----
611884
93654
97
query I rowsort
SELECT - + 10 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e
query I rowsort
SELECT ALL - col2 - - col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT tab0.col2 * 64 * col2 AS col0 FROM tab0
----
430336
64
69696
query I rowsort
SELECT DISTINCT col0 - 80 AS col0 FROM tab2
----
-1
-2
-73
query I rowsort
SELECT tab2.col0 + col2 * col1 * col1 AS col1 FROM tab2
----
11061
25954
90584
onlyif mysql # use DIV operator for integer division
query I rowsort label-6005
SELECT tab1.col2 * + col1 + ( - tab1.col2 ) - ( + tab1.col0 ) DIV - tab1.col1 FROM tab1
----
1158
1350
519
skipif mysql # not compatible
query I rowsort label-6005
SELECT tab1.col2 * + col1 + ( - tab1.col2 ) - ( + tab1.col0 ) / - tab1.col1 FROM tab1
----
1158
1350
519
query I rowsort
SELECT ALL + col1 * tab1.col0 + col0 * + 46 * col2 FROM tab1
----
168448
354320
7530
query I rowsort
SELECT + - col0 * col1 + + col0 + 22 * - col2 FROM tab2 cor0
----
-2100
-5096
-804
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6008
SELECT CAST( + col1 AS SIGNED ) + + col2 FROM tab1
----
109
67
80
skipif mysql # not compatible
query I rowsort label-6008
SELECT CAST ( + col1 AS INTEGER ) + + col2 FROM tab1
----
109
67
80
query I rowsort
SELECT + 26 * - 2 FROM tab0
----
-52
-52
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6010
SELECT - CAST( NULL AS DECIMAL ) + + 51 + col2 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6010
SELECT - CAST ( NULL AS REAL ) + + 51 + col2 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 61 + + col1 FROM tab1
----
-35
-48
-51
query I rowsort
SELECT - ( - 13 ) AS col2 FROM tab0
----
13
13
13
query I rowsort
SELECT ALL - cor0.col2 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + ( - col2 ) + col1 * col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT + - ( 39 ) FROM tab1 AS cor0
----
-39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - - 92 * cor0.col0 FROM tab0 AS cor0
----
2208
3220
8188
query I rowsort
SELECT ALL + + col1 * + 59 FROM tab1 cor0
----
1534
590
767
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6019
SELECT + CAST( - 89 AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
skipif mysql # not compatible
query I rowsort label-6019
SELECT + CAST ( - 89 AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
query I rowsort
SELECT cor0.col2 + - col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6021
SELECT ALL - cor0.col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL - cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6023
SELECT + - col0 DIV + ( - ( + col1 ) ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6023
SELECT + - col0 / + ( - ( + col1 ) ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col2 * col0 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6025
SELECT DISTINCT - + cor0.col1 * + CAST( NULL AS SIGNED ) * 1 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT - + cor0.col1 * + CAST ( NULL AS INTEGER ) * 1 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col2 + - 30 AS col2 FROM tab0
----
-112
-31
-63
query I rowsort
SELECT ( col2 + col2 ) FROM tab0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-6028
SELECT 96 DIV 50 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6028
SELECT 96 / 50 FROM tab2
----
1
1
1
query I rowsort
SELECT col1 * - ( + col1 ) * col1 + ( col0 + 17 ) AS col2 FROM tab0 cor0
----
-636015
-753465
-912621
query I rowsort
SELECT ALL 81 + - col0 * cor0.col2 AS col2 FROM tab1 cor0
----
-3567
-7599
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6031
SELECT CAST( + col1 + col2 AS SIGNED ) FROM tab0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-6031
SELECT CAST ( + col1 + col2 AS INTEGER ) FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT col2 * - col2 + + col0 * + col0 * + col2 AS col2 FROM tab2
----
157508
235714
594
onlyif mysql # use DIV operator for integer division
query I rowsort label-6033
SELECT ALL - - cor0.col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL - - cor0.col1 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6034
SELECT ALL + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL + CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col2 * 45 + cor0.col0 FROM tab0 AS cor0
----
1509
3779
80
query I rowsort
SELECT DISTINCT + 95 * col0 * - 52 FROM tab0 AS cor0
----
-118560
-172900
-439660
query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) * + col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6038
SELECT DISTINCT - col0 DIV + ( col1 ) + col2 * col1 col2 FROM tab2 AS cor0
----
1533
642
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6038
SELECT DISTINCT - col0 / + ( col1 ) + col2 * col1 col2 FROM tab2 AS cor0
----
1533
642
837
query I rowsort
SELECT DISTINCT + col1 * - ( col2 ) * - col1 + 19 FROM tab1 AS cor0
----
16243
36523
5719
query I rowsort
SELECT ALL + col2 + col1 + cor0.col1 * cor0.col2 FROM tab2 cor0
----
1619
701
895
query I rowsort
SELECT ALL col0 * 52 FROM tab2 AS cor0
----
364
4056
4108
onlyif mysql # use DIV operator for integer division
query I rowsort label-6042
SELECT DISTINCT - cor0.col2 * col1 + col2 DIV + col0 + col0 FROM tab0 AS cor0
----
-2813
-62
-7373
skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT - cor0.col2 * col1 + col2 / + col0 + col0 FROM tab0 AS cor0
----
-2813
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-6043
SELECT + 81 DIV col1 + + tab0.col1 AS col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6043
SELECT + 81 / col1 + + tab0.col1 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL - col1 + 88 + + col1 FROM tab2 AS cor0
----
88
88
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-6045
SELECT ALL - col0 + col1 DIV cor0.col0 FROM tab2 cor0
----
-3
-78
-79
skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL - col0 + col1 / cor0.col0 FROM tab2 cor0
----
-3
-78
-79
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 61a671f1b5048e339ad9838f68ebbba4
query I rowsort
SELECT + 59 + col1 AS col1 FROM tab2 AS cor0
----
118
76
90
query I rowsort
SELECT 18 + cor0.col0 FROM tab0 cor0
----
107
42
53
query I rowsort
SELECT DISTINCT + 41 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
41
query I rowsort
SELECT 30 * - 20 FROM tab1, tab0 AS cor0
----
9 values hashing to 4b1aec8986528614cad6dbc283d86860
onlyif mysql # use DIV operator for integer division
query I rowsort label-6051
SELECT - - col0 DIV - col1 + - 76 AS col2 FROM tab0 cor0
----
-76
-76
-76
skipif mysql # not compatible
query I rowsort label-6051
SELECT - - col0 / - col1 + - 76 AS col2 FROM tab0 cor0
----
-76
-76
-76
query I rowsort
SELECT cor0.col1 + - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL - col1 * col1 - ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + cor0.col2 * + ( 56 ) col1 FROM tab1 AS cor0
----
-3021
-3128
-5296
query I rowsort
SELECT cor0.col2 * + cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT DISTINCT + - 54 * col1 FROM tab0 AS cor0
----
-4644
-4914
-5238
onlyif mysql # use DIV operator for integer division
query I rowsort label-6057
SELECT + col2 + col2 DIV + col2 AS col1 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-6057
SELECT + col2 + col2 / + col2 AS col1 FROM tab0
----
2
34
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6058
SELECT ( col0 ) DIV col0 + - ( col0 ) FROM tab1
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-6058
SELECT ( col0 ) / col0 + - ( col0 ) FROM tab1
----
-2
-63
-79
query I rowsort
SELECT DISTINCT - col1 + + col0 * col1 FROM tab1
----
1027
52
630
query I rowsort
SELECT + col1 * col2 + 73 + - 37 AS col2 FROM tab1 AS cor0
----
1284
1440
606
query I rowsort
SELECT tab2.col2 * + 88 * + tab2.col0 FROM tab2, tab1 cor0
----
9 values hashing to 5f2bedb4ec6372d06bdc0f521a35a8b5
query I rowsort
SELECT ALL ( - col1 ) * - col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT - col2 * - col2 + - col2 * - 30 FROM tab2 cor0
----
1456
1539
2584
query I rowsort
SELECT ALL - 36 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1260
-3204
-864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6065
SELECT - ( - col2 ) + + CAST( - 28 * col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
-1458
-1539
-2592
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6065
SELECT - ( - col2 ) + + CAST ( - 28 * col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
-1458
-1539
-2592
query I rowsort
SELECT DISTINCT - + col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + - 71 FROM tab1 cor0
----
-71
-71
-71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + + col1 + 85 col1 FROM tab1 AS cor0
----
152
165
194
query I rowsort
SELECT DISTINCT col0 * col0 * col1 FROM tab1
----
234
40960
83200
query I rowsort
SELECT - tab2.col0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT col1 + col2 * col0 FROM tab1 AS cor0
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col2 col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT tab1.col0 * + col2 + tab1.col1 AS col1 FROM tab1
----
188
3658
7693
query I rowsort
SELECT + + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + cor0.col0 * - cor0.col0 * + col0 FROM tab2 cor0
----
-343
-474552
-493039
query I rowsort
SELECT + - col1 * col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - + col2 + + col0 * + col0 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT + 18 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
25
96
97
query I rowsort
SELECT tab2.col1 * - tab2.col1 AS col0 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT + ( col1 ) + + col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT - col0 * - cor0.col0 * col0 + col2 * col0 AS col0 FROM tab2 AS cor0
----
476580
496041
532
query I rowsort
SELECT 44 * cor0.col0 + col1 FROM tab1 AS cor0
----
158
2826
3533
query I rowsort
SELECT 47 * - col2 - col1 AS col1 FROM tab2 cor0
----
-1281
-1300
-1803
query I rowsort
SELECT + 49 * col1 FROM tab2
----
1519
2891
833
query I rowsort
SELECT ALL 34 * col1 FROM tab0
----
2924
3094
3298
onlyif mysql # use DIV operator for integer division
query I rowsort label-6086
SELECT DISTINCT col0 DIV col2 + col2 FROM tab0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT col0 / col2 + col2 FROM tab0
----
33
36
83
query I rowsort
SELECT col1 * col1 * - tab2.col0 + - col0 FROM tab2
----
-22910
-271596
-6734
query I rowsort
SELECT ALL - col2 - + tab0.col0 AS col0 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT col1 * col2 + - col1 FROM tab2
----
1475
629
806
query I rowsort
SELECT DISTINCT col0 * - col1 + + col0 AS col1 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT - col2 + - col2 FROM tab2 WHERE NULL > ( col1 / col0 + + col2 + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6092
SELECT ALL col2 DIV col1 + col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL col2 / col1 + col1 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT + col1 + tab1.col1 FROM tab1 WHERE NOT NULL > - col2 + col1
----
query I rowsort
SELECT - col0 * - col1 + - col2 AS col2 FROM tab2
----
1305
190
4576
query I rowsort
SELECT - col0 * col0 + col1 AS col2 FROM tab0
----
-1128
-490
-7830
onlyif mysql # use DIV operator for integer division
query I rowsort label-6096
SELECT + col2 * col2 + + col2 DIV col2 AS col2 FROM tab0
----
1090
2
6725
skipif mysql # not compatible
query I rowsort label-6096
SELECT + col2 * col2 + + col2 / col2 AS col2 FROM tab0
----
1090
2
6725
query I rowsort
SELECT + col1 - tab1.col2 * - col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT ( + col1 ) BETWEEN col2 AND ( tab2.col0 - col1 * col2 )
----
17
31
59
query I rowsort
SELECT + col0 + col2 * + col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL + col2 * col1 + col0 + - col2 * col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - col1 + col1 AS col1 FROM tab0
----
0
query I rowsort
SELECT - col1 * col1 AS col2 FROM tab1 WHERE - col2 * - col1 + + col2 NOT BETWEEN - col2 * col2 - col0 AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - col2 )
----
query I rowsort
SELECT + col1 * col0 * - col1 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL + tab2.col1 + - col1 * - col0 + + col2 FROM tab2
----
1398
275
4687
query I rowsort
SELECT DISTINCT - col2 * col1 + - col2 + - col0 FROM tab2
----
-1638
-763
-871
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 * tab0.col1 col1 FROM tab0
----
636056
753571
912673
query I rowsort
SELECT ALL col0 * tab2.col1 * - col1 AS col2 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NULL IN ( col2 / col1 )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 IN ( col1 + - col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT - col0 - col1 * + col1 * col1 AS col0 FROM tab0 AS cor0
----
-636080
-753660
-912708
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 IN ( col2 )
----
query I rowsort
SELECT ALL - tab0.col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT DISTINCT + col2 * - col1 + + col0 * + col1 + col0 AS col0 FROM tab2
----
-613
3146
776
query I rowsort
SELECT + tab1.col0 * col0 * - col1 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 WHERE NOT - col0 * col2 - col0 * col0 NOT IN ( - col2 + col1 * + tab1.col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6117
SELECT ALL col2 + + col1 * col0 DIV + col1 - col0 AS col1 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL col2 + + col1 * col0 / + col1 - col0 AS col1 FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6118
SELECT DISTINCT - col0 DIV - col1 col1 FROM tab1
----
0
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT - col0 / - col1 col1 FROM tab1
----
0
6
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col0 * col1 * tab0.col0 + tab0.col1 / col2 + tab0.col2 )
----
query I rowsort
SELECT + col0 * col1 - + col0 FROM tab2
----
1264
210
4524
query I rowsort
SELECT col0 + col1 - + cor0.col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT col0 * col0 * col1 AS col0 FROM tab2
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-6123
SELECT DISTINCT - col0 * col1 DIV + col0 AS col0 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT - col0 * col1 / + col0 AS col0 FROM tab2
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * cor0.col2 + col2 col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT - 44 - + cor0.col1 FROM tab2 AS cor0
----
-103
-61
-75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6126
SELECT ALL - col1 * col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL - col1 * col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col2 * col0 + + 39 AS col1 FROM tab0 AS cor0
----
-7259
-753
4
query I rowsort
SELECT ALL col2 * + col0 AS col0 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6129
SELECT ALL + - cor0.col0 + - cor0.col2 DIV + 87 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL + - cor0.col0 + - cor0.col2 / + 87 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6130
SELECT ALL - - col1 - col1 DIV 69 col1 FROM tab1 cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL - - col1 - col1 / 69 col1 FROM tab1 cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6131
SELECT ALL - CAST( NULL AS SIGNED ) * - 12 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL - CAST ( NULL AS INTEGER ) * - 12 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 89 + col2 * col2 AS col2 FROM tab0
----
1178
6813
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6133
SELECT DISTINCT + CAST( - 57 AS SIGNED ) FROM tab1
----
-57
skipif mysql # not compatible
query I rowsort label-6133
SELECT DISTINCT + CAST ( - 57 AS INTEGER ) FROM tab1
----
-57
query I rowsort
SELECT 0 + - col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL + + col1 + - col1 * - col2 AS col0 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT + col1 + - col2 * + tab0.col2 AS col2 FROM tab0
----
-1003
-6633
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6137
SELECT DISTINCT + col1 / CAST( NULL AS SIGNED ) + col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6137
SELECT DISTINCT + col1 / CAST ( NULL AS INTEGER ) + col2 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT + col2 + col2 * col0 AS col1 FROM tab0 cor0
----
36
7380
825
query I rowsort
SELECT ALL ( + 4 ) * - col1 * + 87 FROM tab1
----
-3480
-4524
-9048
query I rowsort
SELECT - ( ( - col1 ) ) + - 94 AS col1 FROM tab1 AS cor0
----
-68
-81
-84
query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL ( + 84 ) * - col2 AS col2 FROM tab1 AS cor0
----
-4536
-4788
-8064
onlyif mysql # use DIV operator for integer division
query I rowsort label-6143
SELECT ALL + + cor0.col0 + + cor0.col0 DIV - ( - cor0.col1 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 2f92c9c21cbe6cef6ac8b7cd380de2ef
skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL + + cor0.col0 + + cor0.col0 / - ( - cor0.col1 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 2f92c9c21cbe6cef6ac8b7cd380de2ef
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 95 col2 FROM tab1 AS cor0
----
-1235
-2470
-950
query I rowsort
SELECT ALL + - 88 * 39 AS col1 FROM tab2 AS cor0
----
-3432
-3432
-3432
query I rowsort
SELECT ALL + 44 * - col2 AS col0 FROM tab1 AS cor0
----
-2376
-2508
-4224
query I rowsort
SELECT 51 + col0 AS col1 FROM tab1 AS cor0
----
115
131
54
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0 CROSS JOIN tab1, tab0 cor1
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9
query I rowsort
SELECT DISTINCT + tab1.col0 AS col2 FROM tab1, tab2 AS cor0, tab2, tab2 AS cor1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6150
SELECT ALL - col2 * + col1 * + col0 + CAST( + col0 AS SIGNED ) DIV + cor0.col1 + - ( - ( + cor0.col1 ) ) AS col1 FROM tab0 cor0
----
-3298
-664027
-68026
skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL - col2 * + col1 * + col0 + CAST ( + col0 AS INTEGER ) / + cor0.col1 + - ( - ( + cor0.col1 ) ) AS col1 FROM tab0 cor0
----
-3298
-664027
-68026
query I rowsort
SELECT + col1 + - col1 + - cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT 34 * col0 FROM tab1 AS cor0
----
102
2176
2720
onlyif mysql # use DIV operator for integer division
query I rowsort label-6153
SELECT DISTINCT col0 * col2 DIV col1 AS col1 FROM tab1
----
364
590
6
skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT col0 * col2 / col1 AS col1 FROM tab1
----
364
590
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * cor0.col1 * - col2 col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT ( cor0.col0 ) + - ( - 71 + col2 ) FROM tab0 AS cor0
----
105
62
78
query I rowsort
SELECT - 9 * col1 * - 75 AS col1 FROM tab2 AS cor0
----
11475
20925
39825
query I rowsort
SELECT DISTINCT col1 * col2 * - ( - ( col2 ) ) FROM tab0
----
611884
93654
97
query I rowsort
SELECT DISTINCT - 11 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-11
query I rowsort
SELECT - + 37 FROM tab1 cor0
----
-37
-37
-37
query I rowsort
SELECT ALL col1 * ( col2 * col2 ) AS col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT DISTINCT col0 * + ( - col2 * + col0 ) + col2 * + col0 AS col1 FROM tab2 AS cor0
----
-1134
-156156
-234156
onlyif mysql # use DIV operator for integer division
query I rowsort label-6162
SELECT ALL - col0 + 54 * col1 + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
4623
4826
5205
skipif mysql # not compatible
query I rowsort label-6162
SELECT ALL - col0 + 54 * col1 + col1 / col0 AS col1 FROM tab0 AS cor0
----
4623
4826
5205
onlyif mysql # use DIV operator for integer division
query I rowsort label-6163
SELECT DISTINCT col2 DIV - col0 + col1 AS col2 FROM tab0 AS cor0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-6163
SELECT DISTINCT col2 / - col0 + col1 AS col2 FROM tab0 AS cor0
----
85
91
97
query I rowsort
SELECT - col2 * - ( 91 ) - + cor0.col0 FROM tab2 cor0
----
2288
2450
3379
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab1, tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + col2 + col2 + + col2 FROM tab0
----
246
3
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 + + ( + col1 ) * tab1.col1 col2 FROM tab1
----
157
265
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 34 col2 FROM tab2
----
-238
-2652
-2686
query I rowsort
SELECT ALL 68 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT + col2 + - col0 * - 5 FROM tab0 AS cor0
----
153
176
527
query I rowsort
SELECT col1 - + 18 * col2 * col2 AS col1 FROM tab2 cor0
----
-12109
-13091
-25975
query I rowsort
SELECT + cor0.col0 * + ( col1 ) * cor0.col1 - 50 AS col1 FROM tab0 AS cor0
----
177454
329265
736959
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 + - 65 col2 FROM tab0 cor0
----
-55
-55
-55
query I rowsort
SELECT - 60 * 30 FROM tab1 AS cor0
----
-1800
-1800
-1800
query I rowsort
SELECT ( cor0.col0 ) * col1 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - tab0.col0 + + tab0.col0 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + col1 * + tab0.col1 * col2 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT ALL col1 + col1 * - ( col1 ) FROM tab1
----
-156
-650
-90
query I rowsort
SELECT - col2 * 58 + - tab0.col0 * tab0.col0 + + 93 AS col1 FROM tab0
----
-1190
-12584
-2397
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6180
SELECT - CAST( col0 AS SIGNED ) + cor0.col2 FROM tab1 AS cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-6180
SELECT - CAST ( col0 AS INTEGER ) + cor0.col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT col2 * + col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-6182
SELECT ALL col1 * col1 DIV col0 + col1 * - 49 col1 FROM tab1
----
-1049
-489
-635
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL col1 * col1 / col0 + col1 * - 49 col1 FROM tab1
----
-1049
-489
-635
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6183
SELECT - tab2.col1 + + CAST( col0 AS SIGNED ) + col2 AS col1 FROM tab2
----
100
3
45
skipif mysql # not compatible
query I rowsort label-6183
SELECT - tab2.col1 + + CAST ( col0 AS INTEGER ) + col2 AS col1 FROM tab2
----
100
3
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6184
SELECT - cor0.col0 * CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-6184
SELECT - cor0.col0 * CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT cor0.col2 * - ( + col2 ) + cor0.col0 AS col0 FROM tab2 cor0
----
-1365
-598
-722
query I rowsort
SELECT - 69 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ca5f4bc365dc2c6b14187d6ffc83a01d
query I rowsort
SELECT DISTINCT - + 85 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + ( 77 ) * - cor0.col0 col0 FROM tab1 cor0
----
-285
-4985
-6256
query I rowsort
SELECT + col0 + ( - col0 + col0 ) AS col2 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6190
SELECT + col1 DIV - 53 + - col0 * col2 AS col2 FROM tab2
----
-189
-2029
-3002
skipif mysql # not compatible
query I rowsort label-6190
SELECT + col1 / - 53 + - col0 * col2 AS col2 FROM tab2
----
-189
-2029
-3002
query I rowsort
SELECT 89 - cor0.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 38960ef58dbdeb6ab8bb8642df8df7a3
query I rowsort
SELECT ALL 85 * 16 AS col1 FROM tab1
----
1360
1360
1360
onlyif mysql # use DIV operator for integer division
query I rowsort label-6193
SELECT DISTINCT ( 58 ) DIV - col2 FROM tab0
----
-1
-58
0
skipif mysql # not compatible
query I rowsort label-6193
SELECT DISTINCT ( 58 ) / - col2 FROM tab0
----
-1
-58
0
query I rowsort
SELECT ALL + col1 * cor0.col1 - 70 FROM tab2 AS cor0
----
219
3411
891
onlyif mysql # use DIV operator for integer division
query I rowsort label-6195
SELECT DISTINCT - + 93 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT - + 93 / col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT + ( col1 ) - - 9 * - col2 FROM tab2 cor0
----
-175
-212
-325
query I rowsort
SELECT - 43 * col2 AS col1 FROM tab2 AS cor0
----
-1118
-1161
-1634
query I rowsort
SELECT + 93 * - col1 FROM tab1
----
-1209
-2418
-930
query I rowsort
SELECT ALL tab0.col2 * 25 AS col1 FROM tab0
----
2050
25
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-6200
SELECT 77 DIV + cor0.col0 + - cor0.col1 * - 60 FROM tab2, tab0 AS cor0
----
9 values hashing to 3e894b04631e6cf82ebc3927d6203fd0
skipif mysql # not compatible
query I rowsort label-6200
SELECT 77 / + cor0.col0 + - cor0.col1 * - 60 FROM tab2, tab0 AS cor0
----
9 values hashing to 3e894b04631e6cf82ebc3927d6203fd0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6201
SELECT - - CAST( ( cor0.col2 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-6201
SELECT - - CAST ( ( cor0.col2 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT cor1.col0 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT 82 * col0 FROM tab2
----
574
6396
6478
query I rowsort
SELECT DISTINCT ( - 55 ) AS col0 FROM tab0
----
-55
query I rowsort
SELECT DISTINCT + 32 * - col2 * - col2 AS col1 FROM tab1
----
103968
294912
93312
query I rowsort
SELECT col2 + - col2 - - 6 AS col2 FROM tab1
----
6
6
6
query I rowsort
SELECT - 14 * - col2 + - ( 98 ) AS col1 FROM tab1 AS cor0
----
1246
658
700
onlyif mysql # use DIV operator for integer division
query I rowsort label-6208
SELECT - 56 * cor0.col0 DIV + col1 AS col0 FROM tab1 cor0
----
-344
-358
-6
skipif mysql # not compatible
query I rowsort label-6208
SELECT - 56 * cor0.col0 / + col1 AS col0 FROM tab1 cor0
----
-344
-358
-6
query I rowsort
SELECT 85 + col1 - 59 * col0 AS col2 FROM tab2 AS cor0
----
-297
-4458
-4559
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6210
SELECT 88 * + col1 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6210
SELECT 88 * + col1 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 41 * cor0.col1 col1 FROM tab1 AS cor0
----
1066
410
533
onlyif mysql # use DIV operator for integer division
query I rowsort label-6212
SELECT + 16 DIV + col1 AS col1 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6212
SELECT + 16 / + col1 AS col1 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT 47 - + col1 FROM tab1 AS cor0
----
21
34
37
query I rowsort
SELECT DISTINCT col2 * tab0.col2 * col2 - 1 AS col1 FROM tab0
----
0
35936
551367
query I rowsort
SELECT ALL - col2 + col0 - tab1.col1 AS col2 FROM tab1
----
-29
-3
-77
query I rowsort
SELECT DISTINCT 96 FROM tab2, tab0, tab2 AS cor0
----
96
query I rowsort
SELECT col1 + col1 - 48 FROM tab1
----
-22
-28
4
query I rowsort
SELECT DISTINCT - - col2 + - col0 * col2 * - cor0.col1 AS col1 FROM tab0 cor0
----
3396
664200
68145
query I rowsort
SELECT ALL - 9 + - col0 AS col0 FROM tab1 AS cor0
----
-12
-73
-89
query I rowsort
SELECT ALL - 64 + + col2 AS col0 FROM tab0
----
-31
-63
18
query I rowsort
SELECT - + col0 + + 95 FROM tab0 AS cor0
----
6
60
71
query I rowsort
SELECT - + col0 * col1 - col1 AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-6223
SELECT DISTINCT - col2 DIV CAST( + col0 * - cor0.col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT - col2 / CAST ( + col0 * - cor0.col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
0
query I rowsort
SELECT + col1 * 10 + col0 AS col0 FROM tab1 AS cor0
----
164
210
263
onlyif mysql # use DIV operator for integer division
query I rowsort label-6225
SELECT + + col0 DIV + col2 + + 18 + col0 FROM tab0 cor0
----
108
42
88
skipif mysql # not compatible
query I rowsort label-6225
SELECT + + col0 / + col2 + + 18 + col0 FROM tab0 cor0
----
108
42
88
query I rowsort
SELECT + - col1 * ( col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + - col1 * + 97 FROM tab0 AS cor0
----
-8342
-8827
-9409
query I rowsort
SELECT + cor0.col2 * - 96 - + cor0.col2 FROM tab2 AS cor0
----
-2522
-2619
-3686
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6229
SELECT ALL col0 + CAST( cor0.col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL col0 + CAST ( cor0.col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT col1 + ( 91 ) * - col1 + + col1 FROM tab0 AS cor0
----
-7654
-8099
-8633
query I rowsort
SELECT DISTINCT - col1 * + col0 * - cor0.col0 FROM tab0 cor0
----
118825
49536
720811
query I rowsort
SELECT ALL - - col0 * col0 + col2 AS col1 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT - + ( ( + cor0.col0 ) ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + col2 * 23 + col0 + col1 FROM tab1 AS cor0
----
1271
1385
2301
query I rowsort
SELECT ALL + ( col1 ) * col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
7420
8370
9444
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6236
SELECT ALL + 31 + 58 + col1 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL + 31 + 58 + col1 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * col2 * - col2 - col2 FROM tab2 AS cor0
----
17550
19656
54834
query I rowsort
SELECT 29 * cor0.col2 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
216398
2813
82302
query I rowsort
SELECT ALL + 82 + + 91 AS col0 FROM tab0 cor0
----
173
173
173
query I rowsort
SELECT ALL + 32 + - 45 FROM tab2 AS cor0
----
-13
-13
-13
query I rowsort
SELECT DISTINCT + 65 + + 92 * - col1 FROM tab2 AS cor0
----
-1499
-2787
-5363
query I rowsort
SELECT DISTINCT + 80 AS col2 FROM tab0 AS cor0
----
80
query I rowsort
SELECT ALL 75 * - col1 - cor0.col2 FROM tab0 cor0
----
-6483
-6907
-7276
query I rowsort
SELECT ALL - - col0 - - col2 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6245
SELECT DISTINCT CAST( col0 AS SIGNED ) + col1 AS col1 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-6245
SELECT DISTINCT CAST ( col0 AS INTEGER ) + col1 AS col1 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6246
SELECT col2 DIV col2 + col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-6246
SELECT col2 / col2 + col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT DISTINCT + 74 * - col2 * + col0 AS col2 FROM tab0 AS cor0
----
-2590
-540052
-58608
query I rowsort
SELECT DISTINCT - 96 + + col2 * - ( 19 ) + - col1 * + col0 FROM tab1 AS cor0
----
-1200
-1819
-2960
query I rowsort
SELECT cor0.col1 AS col0 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL 24 * + cor0.col1 FROM tab0 AS cor0
----
2064
2184
2328
query I rowsort
SELECT col0 * col1 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL + 7 AS col2 FROM tab2 AS cor0
----
7
7
7
query I rowsort
SELECT DISTINCT + + col2 + - 26 * ( col2 ) FROM tab0 AS cor0
----
-2050
-25
-825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + + 48 col0 FROM tab0 AS cor0
----
-34
15
47
query I rowsort
SELECT - - col0 + + 56 AS col2 FROM tab2 AS cor0
----
134
135
63
query I rowsort
SELECT DISTINCT col1 * 95 AS col0 FROM tab2 AS cor0
----
1615
2945
5605
query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6258
SELECT ALL + cor0.col2 + + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL + cor0.col2 + + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - col0 * ( col0 + + col0 ) FROM tab1 cor0
----
-12800
-18
-8192
query I rowsort
SELECT ALL col1 * 76 AS col1 FROM tab0 AS cor0
----
6536
6916
7372
query I rowsort
SELECT - - cor0.col0 * + cor0.col1 + - col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT + + cor0.col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + + col2 * + col1 + + col2 FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT col0 * ( + 69 ) + col0 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
672
7410
8453
query I rowsort
SELECT - + col1 * 71 + col2 AS col1 FROM tab0 AS cor0
----
-6073
-6379
-6886
query I rowsort
SELECT col2 + - 90 AS col1 FROM tab2 AS cor0
----
-52
-63
-64
query I rowsort
SELECT + col2 * - col1 + - col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT DISTINCT col0 * 31 FROM tab2 AS cor0
----
217
2418
2449
query I rowsort
SELECT ALL - - col2 + - 84 FROM tab2 AS cor0
----
-46
-57
-58
query I rowsort
SELECT ALL - + col0 * col1 - - col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + col2 * + col1 + cor0.col2 * - col0 FROM tab2 cor0
----
-2356
-494
648
onlyif mysql # use DIV operator for integer division
query I rowsort label-6272
SELECT ALL col2 * - col2 + + 36 * cor0.col0 DIV cor0.col1 FROM tab0 cor0
----
-1079
-6689
11
skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL col2 * - col2 + + 36 * cor0.col0 / cor0.col1 FROM tab0 cor0
----
-1079
-6689
11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6273
SELECT ALL + + col2 * 61 * - 65 + col1 * CAST( NULL AS SIGNED ) + 62 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL + + col2 * 61 * - 65 + col1 * CAST ( NULL AS INTEGER ) + 62 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * col2 - + cor0.col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT cor0.col0 FROM tab1, tab1 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT ALL + + 51 * cor0.col0 AS col0 FROM tab1 AS cor0
----
153
3264
4080
query I rowsort
SELECT ALL cor0.col0 + - 9 * col1 FROM tab2 AS cor0
----
-272
-453
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-6278
SELECT + col2 * col1 DIV col1 col2 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6278
SELECT + col2 * col1 / col1 col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT 92 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
query I rowsort
SELECT DISTINCT col2 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT 75 AS col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
75
query I rowsort
SELECT DISTINCT + 36 + col1 * col1 FROM tab2 AS cor0
----
325
3517
997
query I rowsort
SELECT + 65 + - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1183
-1339
-505
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6284
SELECT + 32 * col1 - - CAST( col1 * + col2 AS SIGNED ) FROM tab2 cor0
----
1190
1829
3422
skipif mysql # not compatible
query I rowsort label-6284
SELECT + 32 * col1 - - CAST ( col1 * + col2 AS INTEGER ) FROM tab2 cor0
----
1190
1829
3422
query I rowsort
SELECT DISTINCT - 39 - col2 AS col0 FROM tab1 AS cor0
----
-135
-93
-96
query I rowsort
SELECT - 59 FROM tab1, tab0 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
query I rowsort
SELECT 44 + 68 * col2 AS col1 FROM tab2
----
1812
1880
2628
query I rowsort
SELECT col2 + cor0.col2 - ( + col1 + col0 ) FROM tab0 AS cor0
----
-130
-16
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-6289
SELECT - col1 DIV col2 + col0 + + ( - col2 * col0 ) FROM tab1
----
-159
-3584
-7600
skipif mysql # not compatible
query I rowsort label-6289
SELECT - col1 / col2 + col0 + + ( - col2 * col0 ) FROM tab1
----
-159
-3584
-7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6290
SELECT DISTINCT - 20 + col2 * CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6290
SELECT DISTINCT - 20 + col2 * CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
query I rowsort
SELECT + col2 * col1 * col2 AS col2 FROM tab1
----
119808
32490
75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-6292
SELECT - 13 * tab1.col1 DIV - tab1.col0 + - col0 FROM tab1
----
-62
-78
109
skipif mysql # not compatible
query I rowsort label-6292
SELECT - 13 * tab1.col1 / - tab1.col0 + - col0 FROM tab1
----
-62
-78
109
onlyif mysql # use DIV operator for integer division
query I rowsort label-6293
SELECT 23 DIV col1 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6293
SELECT 23 / col1 FROM tab2
----
0
0
1
query I rowsort
SELECT - col0 * + cor0.col1 + 45 * + 66 AS col2 FROM tab0 AS cor0
----
-425
-5129
906
query I rowsort
SELECT + + 55 * col1 * - col0 - ( col0 * col2 ) AS col0 FROM tab1 AS cor0
----
-38848
-4452
-64880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 col2 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT + col2 + col1 + + col1 AS col1 FROM tab2
----
144
72
89
query I rowsort
SELECT + cor0.col0 * + 12 AS col2 FROM tab1 AS cor0
----
36
768
960
query I rowsort
SELECT ALL 91 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT ALL - col0 + + col1 * - col2 * - 82 AS col2 FROM tab1
----
102256
115125
46676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + cor0.col2 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 00ff93cbcc751be1393f9e1fd72170f8
query I rowsort
SELECT col2 * 77 FROM tab1 AS cor0
----
4158
4389
7392
query I rowsort
SELECT - + col1 - - col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL col2 * - tab1.col1 AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + col2 * col2 + - cor0.col2 FROM tab1 cor0
----
2862
3192
9120
query I rowsort
SELECT DISTINCT + 23 * + ( + col1 * 79 ) FROM tab2
----
107203
30889
56327
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab1 cor1, tab0, tab1 AS cor2
----
3645 values hashing to f9101173abc9e524c6310e6c0eeefb0c
query I rowsort
SELECT ALL + col0 + + 58 FROM tab2 AS cor0
----
136
137
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6309
SELECT CAST( NULL AS SIGNED ) + col0 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6309
SELECT CAST ( NULL AS INTEGER ) + col0 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 44 FROM tab0 cor0
----
44
44
44
query I rowsort
SELECT - - col1 * + col2 AS col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + + col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + - cor0.col0 + col1 - ( cor0.col0 ) * col2 FROM tab0 cor0
----
-7296
-730
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 + col0 * 39 col2 FROM tab1 AS cor0
----
2441
3065
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6315
SELECT - col2 + col0 * CAST( NULL AS SIGNED ) - + cor0.col1 * - col2 * + 12 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6315
SELECT - col2 + col0 * CAST ( NULL AS INTEGER ) - + cor0.col1 * - col2 * + 12 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 66 AS col0 FROM tab0 AS cor0
----
-66
query I rowsort
SELECT ( cor0.col1 ) * 48 FROM tab0 AS cor0
----
4128
4368
4656
query I rowsort
SELECT + cor0.col1 * cor0.col2 - - col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL + col0 - ( + tab2.col0 * ( - col1 ) ) FROM tab2
----
1422
224
4680
query I rowsort
SELECT - - col0 + + ( + col0 + cor0.col0 ) FROM tab1 AS cor0
----
192
240
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6321
SELECT ALL + cor0.col1 DIV col1 AS col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6321
SELECT ALL + cor0.col1 / col1 AS col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT - - ( - ( col1 ) ) - + col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT + col0 * 36 - col1 AS col2 FROM tab0 AS cor0
----
1163
3113
778
query I rowsort
SELECT ALL + 71 + - col1 FROM tab0 AS cor0
----
-15
-20
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6325
SELECT ALL col0 + col0 DIV + ( - 10 ) + - col1 AS col0 FROM tab1 AS cor0
----
-23
48
59
skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL col0 + col0 / + ( - 10 ) + - col1 AS col0 FROM tab1 AS cor0
----
-23
48
59
query I rowsort
SELECT 20 * col2 + 54 FROM tab1 AS cor0
----
1134
1194
1974
query I rowsort
SELECT DISTINCT ( 26 + col2 ) AS col0 FROM tab1
----
122
80
83
query I rowsort
SELECT ALL + col2 + + col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT - col1 + + col1 + col1 * 98 AS col1 FROM tab1 AS cor0
----
1274
2548
980
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - 28 * + col2 + CAST ( - 28 AS REAL ) + + col2 * col0 AS col0 FROM tab0 AS cor0
----
-160
-21
4974
query I rowsort
SELECT ALL + ( col0 ) + - ( col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6333
SELECT ALL - + 84 DIV - col1 FROM tab1 AS cor0
----
3
6
8
skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL - + 84 / - col1 FROM tab1 AS cor0
----
3
6
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * col0 + 89 col2 FROM tab1 cor0
----
1305
146
1609
onlyif mysql # use DIV operator for integer division
query I rowsort label-6335
SELECT ALL cor0.col0 DIV - col1 + ( - 14 ) * + col2 FROM tab2 AS cor0
----
-365
-378
-536
skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL cor0.col0 / - col1 + ( - 14 ) * + col2 FROM tab2 AS cor0
----
-365
-378
-536
onlyif mysql # use DIV operator for integer division
query I rowsort label-6336
SELECT ALL tab2.col1 DIV col0 - + tab2.col0 * + 21 AS col1 FROM tab2
----
-143
-1638
-1659
skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL tab2.col1 / col0 - + tab2.col0 * + 21 AS col1 FROM tab2
----
-143
-1638
-1659
query I rowsort
SELECT ALL col1 - col1 * - col1 * col1 FROM tab0
----
636142
753662
912770
query I rowsort
SELECT cor0.col2 * + 44 AS col2 FROM tab1 AS cor0
----
2376
2508
4224
query I rowsort
SELECT + - cor0.col1 * 7 AS col0 FROM tab2 cor0
----
-119
-217
-413
query I rowsort
SELECT - col1 * ( col2 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - col2 * col0 * + col0 FROM tab1 AS cor0
----
-233472
-486
-614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( tab2.col0 ) col2 FROM tab2
----
7
78
79
query I rowsort
SELECT 57 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5
query I rowsort
SELECT DISTINCT + 86 AS col2 FROM tab1, tab0 AS cor0
----
86
query I rowsort
SELECT - + col0 * + ( 52 * col0 ) FROM tab2 cor0
----
-2548
-316368
-324532
onlyif mysql # use DIV operator for integer division
query I rowsort label-6346
SELECT col0 DIV + 8 AS col0 FROM tab1 cor0
----
0
10
8
skipif mysql # not compatible
query I rowsort label-6346
SELECT col0 / + 8 AS col0 FROM tab1 cor0
----
0
10
8
query I rowsort
SELECT + 9 AS col2 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
query I rowsort
SELECT col1 * + col2 * - col0 + tab1.col1 * + ( + 43 ) FROM tab1
----
-3094
-36050
-99281
onlyif mysql # use DIV operator for integer division
query I rowsort label-6349
SELECT DISTINCT - col2 DIV 63 AS col1 FROM tab1
----
-1
0
skipif mysql # not compatible
query I rowsort label-6349
SELECT DISTINCT - col2 / 63 AS col1 FROM tab1
----
-1
0
query I rowsort
SELECT - col0 - col2 * tab1.col1 FROM tab1
----
-1328
-1407
-634
query I rowsort
SELECT + col0 + 68 AS col0 FROM tab1
----
132
148
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6352
SELECT DISTINCT + CAST( ( col1 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-6352
SELECT DISTINCT + CAST ( ( col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + + col2 * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT col0 * + col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT - col1 + + tab0.col2 AS col2 FROM tab0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6356
SELECT - col0 + 21 DIV tab1.col2 AS col0 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-6356
SELECT - col0 + 21 / tab1.col2 AS col0 FROM tab1
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6357
SELECT - tab1.col1 DIV ( 82 ) + - col0 AS col2 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-6357
SELECT - tab1.col1 / ( 82 ) + - col0 AS col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + 62 AS col0 FROM tab0 AS cor0
----
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 32 + + 11 * col0 col2 FROM tab0 AS cor0
----
232
353
947
onlyif mysql # use DIV operator for integer division
query I rowsort label-6360
SELECT cor0.col2 + col1 DIV col0 FROM tab1 AS cor0
----
57
62
96
skipif mysql # not compatible
query I rowsort label-6360
SELECT cor0.col2 + col1 / col0 FROM tab1 AS cor0
----
57
62
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6361
SELECT DISTINCT 1 DIV cor0.col1 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-6361
SELECT DISTINCT 1 / cor0.col1 FROM tab1 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6362
SELECT - ( - 15 ) DIV col2 AS col1 FROM tab0 AS cor0
----
0
0
15
skipif mysql # not compatible
query I rowsort label-6362
SELECT - ( - 15 ) / col2 AS col1 FROM tab0 AS cor0
----
0
0
15
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - col1 AS REAL ) FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT cor0.col0 * 95 AS col2 FROM tab0 cor0
----
2280
3325
8455
query I rowsort
SELECT DISTINCT + ( - col2 ) + col2 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - + 10 FROM tab1 AS cor0
----
-10
-10
-10
query I rowsort
SELECT + + ( - col1 ) * - col2 + + 63 * - col2 AS col2 FROM tab2 cor0
----
-104
-1748
-864
query I rowsort
SELECT ALL + - col0 + col0 * + col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT DISTINCT + + 71 FROM tab1 AS cor0
----
71
query I rowsort
SELECT - - cor0.col0 + col1 + 57 AS col0 FROM tab1 AS cor0
----
131
150
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-6371
SELECT DISTINCT - cor0.col1 DIV - cor0.col1 + ( - col1 ) * col1 col0 FROM tab0 AS cor0
----
-7395
-8280
-9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT - cor0.col1 / - cor0.col1 + ( - col1 ) * col1 col0 FROM tab0 AS cor0
----
-7395
-8280
-9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + col0 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 82 + col2 AS col1 FROM tab1 cor0
----
-25
-28
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-6374
SELECT + col0 + - col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
1
59
73
skipif mysql # not compatible
query I rowsort label-6374
SELECT + col0 + - col2 / + col1 AS col2 FROM tab1 AS cor0
----
1
59
73
query I rowsort
SELECT ALL col1 + + 2 AS col2 FROM tab2 AS cor0
----
19
33
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-6376
SELECT col1 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6376
SELECT col1 / cor0.col1 AS col2 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6377
SELECT DISTINCT cor2.col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 cor2
----
NULL
skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT cor2.col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 cor2
----
NULL
query I rowsort
SELECT ALL - - col2 + 19 * + ( + col1 ) AS col1 FROM tab2 AS cor0
----
1147
361
616
query I rowsort
SELECT ALL 19 + col2 * + col2 FROM tab0
----
1108
20
6743
onlyif mysql # use DIV operator for integer division
query I rowsort label-6380
SELECT DISTINCT 65 DIV - 63 col1 FROM tab1, tab0 cor0, tab1 cor1
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT 65 / - 63 col1 FROM tab1, tab0 cor0, tab1 cor1
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 + col1 + + 14 col0 FROM tab0
----
184
189
195
onlyif mysql # use DIV operator for integer division
query I rowsort label-6382
SELECT ALL - tab0.col1 * col1 + - col0 DIV col1 FROM tab0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-6382
SELECT ALL - tab0.col1 * col1 + - col0 / col1 FROM tab0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 col0 FROM tab1, tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 col2 FROM tab2
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6385
SELECT + col2 DIV - col1 AS col1 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-6385
SELECT + col2 / - col1 AS col1 FROM tab2
----
-2
0
0
query I rowsort
SELECT ALL col2 * + col0 + - ( + col0 ) FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT - 86 + - col0 FROM tab0 AS cor0
----
-110
-121
-175
query I rowsort
SELECT 44 * + col2 AS col2 FROM tab2
----
1144
1188
1672
query I rowsort
SELECT ALL col1 * col1 * col2 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT col1 + + ( 99 ) FROM tab1 AS cor0
----
109
112
125
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * cor0.col0 + 94 + - cor0.col2 col1 FROM tab2 AS cor0
----
1399
284
4670
query I rowsort
SELECT DISTINCT - col0 * 35 FROM tab0 AS cor0
----
-1225
-3115
-840
query I rowsort
SELECT - col1 + + cor0.col0 + col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + col2 + col1 * col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT - - col2 * - col0 * col0 AS col1 FROM tab2 AS cor0
----
-1323
-158184
-237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( - 7 ) * col0 col0 FROM tab0 AS cor0
----
-254
-342
-714
query I rowsort
SELECT col2 + 27 * 71 AS col1 FROM tab2 AS cor0
----
1943
1944
1955
query I rowsort
SELECT + - cor0.col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 * 11 AS col2 FROM tab1 AS cor0
----
-33
-704
-880
query I rowsort
SELECT + cor0.col1 + + ( - col1 ) + + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col1 + + col2 * 41 FROM tab0 AS cor0
----
138
1439
3453
query I rowsort
SELECT DISTINCT col2 * + col2 + col0 AS col0 FROM tab1
----
2919
3313
9296
query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 * col0 ) BETWEEN ( - col1 ) AND NULL
----
query I rowsort
SELECT ALL - col1 * + col1 * - col0 + + col1 * col1 FROM tab1
----
13689
2704
6500
query I rowsort
SELECT - tab2.col2 AS col0 FROM tab2 WHERE NOT col2 NOT IN ( tab2.col1 )
----
query I rowsort
SELECT + col0 - + col1 AS col2 FROM tab0
----
-2
-62
-62
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <> NULL
----
query I rowsort
SELECT + col2 + + col0 * + tab2.col2 FROM tab2
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 WHERE NOT NULL > NULL
----
query I rowsort
SELECT - tab2.col2 + - col2 * tab2.col0 FROM tab2
----
-2054
-216
-3040
query III rowsort
SELECT * FROM tab1 WHERE col2 <= - col1
----
query I rowsort
SELECT DISTINCT col2 + tab0.col1 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT - 64 * 93 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4519b44e0bf9e0b2682d7d3e95821723
onlyif mysql # use DIV operator for integer division
query I rowsort label-6414
SELECT DISTINCT - + col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
-3
0
skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT - + col2 / + col0 AS col1 FROM tab2 AS cor0
----
-3
0
query I rowsort
SELECT + ( col2 ) - - col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT 71 + + cor0.col1 FROM tab2 AS cor0
----
102
130
88
query I rowsort
SELECT 66 * col0 - + col0 FROM tab1 AS cor0
----
195
4160
5200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL + + 87 + col0 FROM tab2 AS cor0
----
165
166
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 64 + - col2 * + 20 col1 FROM tab1 AS cor0
----
-1144
-1204
-1984
query I rowsort
SELECT + col1 * - col1 AS col2 FROM tab1 WHERE NOT NULL IN ( - col0 * - col1 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( tab2.col0 )
----
query I rowsort
SELECT ALL - col0 + - col0 * - col2 FROM tab1
----
159
3584
7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-6424
SELECT - col2 * cor0.col0 DIV - col1 FROM tab1 AS cor0
----
364
590
6
skipif mysql # not compatible
query I rowsort label-6424
SELECT - col2 * cor0.col0 / - col1 FROM tab1 AS cor0
----
364
590
6
query I rowsort
SELECT - col1 * col2 + col1 * - col1 - col1 * col2 FROM tab2
----
-1581
-2635
-6549
query I rowsort
SELECT ( + col0 ) AS col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT + 81 + + col1 FROM tab0 AS cor0
----
167
172
178
query I rowsort
SELECT + col2 * + cor0.col1 * - cor0.col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT + + col2 * - 91 * cor0.col1 FROM tab1 cor0
----
-113568
-127764
-51870
query I rowsort
SELECT col0 - 29 AS col1 FROM tab0 AS cor0
----
-5
6
60
query I rowsort
SELECT DISTINCT - + col1 + col1 * - ( - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT + col0 * col0 * ( - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-262144
-27
-512000
query I rowsort
SELECT ALL - col0 + 57 * - 14 FROM tab0 AS cor0
----
-822
-833
-887
query I rowsort
SELECT - + ( col0 ) * col0 + ( - 22 ) FROM tab2 AS cor0
----
-6106
-6263
-71
query I rowsort
SELECT + col2 + col0 * + col1 AS col1 FROM tab1 cor0
----
1136
132
697
query I rowsort
SELECT + 26 + ( col2 ) AS col2 FROM tab0 AS cor0
----
108
27
59
query I rowsort
SELECT DISTINCT - 57 + - 85 FROM tab1, tab1 cor0
----
-142
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 162169e743caf7b1ab855c7985eb36ff
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6439
SELECT DISTINCT CAST( cor0.col1 AS SIGNED ) FROM tab1, tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT CAST ( cor0.col1 AS INTEGER ) FROM tab1, tab0 cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6440
SELECT CAST( col2 AS SIGNED ) FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-6440
SELECT CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT + - 99 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
8514
9009
9603
query I rowsort
SELECT + ( col1 ) * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - - cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT - 3 - col0 AS col0 FROM tab0
----
-27
-38
-92
query I rowsort
SELECT - + 8 AS col2 FROM tab1 AS cor0
----
-8
-8
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col1 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col2 * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL tab0.col1 + - col2 + - tab0.col0 FROM tab0
----
-80
29
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col1 col0 FROM tab0
----
2
62
query I rowsort
SELECT + + col1 * col1 - col0 * - col0 AS col1 FROM tab1 AS cor0
----
4196
6569
685
onlyif mysql # use DIV operator for integer division
query I rowsort label-6451
SELECT + - col0 DIV + col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6451
SELECT + - col0 / + col0 FROM tab0 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6452
SELECT DISTINCT - + col0 * col0 * + col1 + - col0 DIV + col0 FROM tab2 cor0
----
-106098
-1520
-358957
skipif mysql # not compatible
query I rowsort label-6452
SELECT DISTINCT - + col0 * col0 * + col1 + - col0 / + col0 FROM tab2 cor0
----
-106098
-1520
-358957
query I rowsort
SELECT DISTINCT col2 + col1 * + col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL + 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 * - col2 col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT 60 - - 65 FROM tab0
----
125
125
125
query I rowsort
SELECT + ( - tab1.col0 ) AS col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL - 31 + col2 FROM tab1
----
23
26
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-6459
SELECT DISTINCT + 65 DIV - col2 + col1 * - col1 + col1 * - col0 FROM tab0
----
-12869
-16380
-9461
skipif mysql # not compatible
query I rowsort label-6459
SELECT DISTINCT + 65 / - col2 + col1 * - col1 + col1 * - col0 FROM tab0
----
-12869
-16380
-9461
query I rowsort
SELECT DISTINCT col2 + + col2 + col1 * + col1 FROM tab2
----
1015
3533
365
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6461
SELECT + CAST( NULL AS SIGNED ) + - 37 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6461
SELECT + CAST ( NULL AS INTEGER ) + - 37 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT ALL - - CAST ( col2 AS REAL ) FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col0 AS REAL ) * + col0 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6464
SELECT DISTINCT 67 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT 67 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT - - col1 + col2 * col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL - - 30 * - col2 FROM tab1 AS cor0
----
-1620
-1710
-2880
onlyif mysql # use DIV operator for integer division
query I rowsort label-6467
SELECT - + 13 DIV + col1 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6467
SELECT - + 13 / + col1 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - 12 * col1 AS col2 FROM tab1 AS cor0
----
-120
-156
-312
query I rowsort
SELECT ALL + col0 * cor0.col1 + cor0.col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL + - 66 AS col0 FROM tab1 AS cor0
----
-66
-66
-66
query I rowsort
SELECT + col0 + col2 * + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL - 60 + col0 AS col0 FROM tab2 AS cor0
----
-53
18
19
query I rowsort
SELECT DISTINCT + 90 * cor0.col2 * - col2 FROM tab0 AS cor0
----
-605160
-90
-98010
query I rowsort
SELECT ALL - 15 AS col1 FROM tab2
----
-15
-15
-15
query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE col0 < NULL
----
query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6477
SELECT - tab0.col0 + tab0.col1 DIV col2 FROM tab0
----
-22
-88
62
skipif mysql # not compatible
query I rowsort label-6477
SELECT - tab0.col0 + tab0.col1 / col2 FROM tab0
----
-22
-88
62
query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
26
27
38
query I rowsort
SELECT DISTINCT - col0 * tab2.col2 + + col1 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT col2 * + col1 * + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT ALL + col2 * col1 * col1 + - cor0.col1 + - col2 AS col1 FROM tab2 AS cor0
----
10927
25889
90421
onlyif mysql # use DIV operator for integer division
query I rowsort label-6482
SELECT ALL col2 DIV - col1 + - col0 AS col2 FROM tab0 cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-6482
SELECT ALL col2 / - col1 + - col0 AS col2 FROM tab0 cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 * - col2 + tab1.col2 col1 FROM tab1
----
-2862
-3192
-9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-6484
SELECT - col0 DIV tab1.col2 AS col1 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6484
SELECT - col0 / tab1.col2 AS col1 FROM tab1
----
-1
0
0
query I rowsort
SELECT ALL col0 * + col2 * col1 + - col1 FROM tab1
----
36470
4186
99827
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 / + col2 col1 FROM tab0 WHERE NOT ( NULL ) <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6487
SELECT DISTINCT - col0 DIV + col2 - col2 * + col0 * + col2 AS col0 FROM tab1
----
-207937
-737280
-8748
skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT - col0 / + col2 - col2 * + col0 * + col2 AS col0 FROM tab1
----
-207937
-737280
-8748
query I rowsort
SELECT ALL tab1.col1 - - col2 AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT + col1 - - cor0.col0 FROM tab0 cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + col1 col1 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - cor0.col1 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 - + col0 * - col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT DISTINCT - - col1 * + col2 + col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL - col1 * + col1 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT - col2 + + col0 + + col0 AS col0 FROM tab2
----
-13
120
130
query I rowsort
SELECT ALL col1 * col0 - tab2.col0 AS col2 FROM tab2
----
1264
210
4524
query I rowsort
SELECT ALL + col2 + - col2 - tab2.col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + col1 * tab1.col2 - - col0 AS col1 FROM tab1
----
1328
1407
634
query I rowsort
SELECT - col0 * - col1 + tab0.col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT col1 - tab0.col2 * col1 AS col1 FROM tab0
----
-2752
-7371
0
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 - col1 col1 FROM tab0
----
-63
-84
-95
query I rowsort
SELECT DISTINCT col2 + col0 * col1 AS col0 FROM tab2
----
1381
244
4628
query I rowsort
SELECT ALL - - col2 * + col1 * col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT cor0.col0 * - cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT ALL - col2 / col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) < ( NULL ) OR + col1 + - col1 >= NULL
----
query I rowsort
SELECT + + ( - cor0.col0 ) * + cor0.col2 * - ( cor0.col0 ) FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT + + col2 * + col1 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT + 45 * + col1 + col2 FROM tab0 AS cor0
----
3903
4177
4366
query I rowsort
SELECT ( - col0 ) - + col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT cor0.col0 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT - + cor0.col1 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT 61 * 61 FROM tab1, tab0 cor0
----
9 values hashing to 6990a43aa0b98b70b5145a8550884a5e
query I rowsort
SELECT cor0.col2 - cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 48730a4f3ae72ef34da4083404b84d99
query I rowsort
SELECT - ( + col0 ) + - col0 FROM tab1 cor0
----
-128
-160
-6
query I rowsort
SELECT ALL + col0 + 81 FROM tab2 AS cor0
----
159
160
88
query I rowsort
SELECT DISTINCT - - cor0.col1 + 18 * col1 AS col2 FROM tab2 AS cor0
----
1121
323
589
query I rowsort
SELECT col2 * - col2 + + col0 AS col2 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT DISTINCT col2 + + 9 AS col0 FROM tab2 AS cor0
----
35
36
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6521
SELECT - CAST( NULL AS SIGNED ) * col1 + + col2 - - ( col0 ) 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-6521
SELECT - CAST ( NULL AS INTEGER ) * col1 + + col2 - - ( col0 ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-6523
SELECT col0 DIV col2 + - col2 FROM tab1 cor0
----
-54
-56
-96
skipif mysql # not compatible
query I rowsort label-6523
SELECT col0 / col2 + - col2 FROM tab1 cor0
----
-54
-56
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 1 * - 85 col2 FROM tab2 cor0
----
-85
query I rowsort
SELECT 95 + cor0.col2 - col0 * col0 AS col1 FROM tab2 AS cor0
----
-5963
-6108
73
query I rowsort
SELECT DISTINCT + col0 * col1 + ( col2 ) FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT + 8 + + col2 AS col0 FROM tab0 AS cor0
----
41
9
90
query I rowsort
SELECT ALL - col0 * + cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL col2 * + col0 + 60 + - col1 * col1 FROM tab1 AS cor0
----
-454
3608
7571
query I rowsort
SELECT - col0 + - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT ALL col0 * col2 + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-6532
SELECT DISTINCT tab1.col2 - 21 DIV 42 AS col0 FROM tab1, tab0 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT tab1.col2 - 21 / 42 AS col0 FROM tab1, tab0 AS cor0
----
54
57
96
query I rowsort
SELECT cor0.col1 + cor0.col2 * + 21 * col2 FROM tab0 AS cor0
----
118
141295
22955
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6534
SELECT + col0 * + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-6534
SELECT + col0 * + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL col0 * ( col1 ) FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6536
SELECT + col0 DIV - 58 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-6536
SELECT + col0 / - 58 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT ALL col1 + col2 * - 30 FROM tab1 AS cor0
----
-1594
-1700
-2867
query I rowsort
SELECT DISTINCT - - col1 * ( cor0.col2 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - cor0.col0 - + cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
-113
-124
-178
-48
-59
-70
query I rowsort
SELECT DISTINCT - - 65 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-6541
SELECT + + cor0.col1 * ( 4 ) DIV - col0 + - cor0.col0 FROM tab0 cor0
----
-38
-46
-93
skipif mysql # not compatible
query I rowsort label-6541
SELECT + + cor0.col1 * ( 4 ) / - col0 + - cor0.col0 FROM tab0 cor0
----
-38
-46
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6542
SELECT cor0.col2 + col1 DIV - cor0.col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6542
SELECT cor0.col2 + col1 / - cor0.col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - + col0 + + 91 * - col1 AS col0 FROM tab0 AS cor0
----
-7850
-8370
-8862
query I rowsort
SELECT + + cor1.col2 + + cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 73e5d3d4212c7c9c8f2e4a4f74108ae2
query I rowsort
SELECT - tab1.col0 * + col1 + col1 * - col1 FROM tab1
----
-1209
-740
-754
query I rowsort
SELECT 10 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab0 AS cor3
----
243 values hashing to 75ac55f1d3b666f2332e2c4bb542aa66
query I rowsort
SELECT - 13 * 81 FROM tab1 AS cor0
----
-1053
-1053
-1053
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col0 + col2 col0 FROM tab0 cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL + col1 + + cor0.col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6550
SELECT 80 + col1 DIV - col0 FROM tab0 AS cor0
----
77
78
79
skipif mysql # not compatible
query I rowsort label-6550
SELECT 80 + col1 / - col0 FROM tab0 AS cor0
----
77
78
79
query I rowsort
SELECT DISTINCT + - 32 * col1 + col2 * + col2 FROM tab0 AS cor0
----
-1663
-3103
3812
query I rowsort
SELECT - col2 * + col1 - - col0 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT + col0 * - col2 + + col2 * - col0 FROM tab2 cor0
----
-378
-4056
-6004
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6554
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6554
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - 27 * - tab0.col1 AS col2 FROM tab0
----
2322
2457
2619
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + cor0.col1 col1 FROM tab2 cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 + - col0 * - col2 col1 FROM tab0 AS cor0
----
14596
1584
70
query I rowsort
SELECT DISTINCT + 50 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
50
query I rowsort
SELECT ALL 19 AS col0 FROM tab0
----
19
19
19
query I rowsort
SELECT + 68 * col0 FROM tab1
----
204
4352
5440
query I rowsort
SELECT ( - 64 + - tab2.col1 * cor0.col1 ) FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to cb3dc39a0c92c061f3dd5f6557320a60
query I rowsort
SELECT - 58 + - cor1.col0 AS col0 FROM tab1, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 427b4cd07581364cfd9bea6d107d8c8e
query I rowsort
SELECT DISTINCT - tab0.col1 * - col2 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT 39 + col0 * col0 FROM tab1 AS cor0
----
4135
48
6439
query I rowsort
SELECT ALL + col2 * col0 - + col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-6566
SELECT + col0 * - col0 - + ( 86 ) * col1 DIV ( - tab2.col0 + + col0 * 48 ) FROM tab2
----
-57
-6085
-6241
skipif mysql # not compatible
query I rowsort label-6566
SELECT + col0 * - col0 - + ( 86 ) * col1 / ( - tab2.col0 + + col0 * 48 ) FROM tab2
----
-57
-6085
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-6567
SELECT - 98 DIV - cor0.col1 FROM tab2 AS cor0
----
1
3
5
skipif mysql # not compatible
query I rowsort label-6567
SELECT - 98 / - cor0.col1 FROM tab2 AS cor0
----
1
3
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-6568
SELECT DISTINCT + col2 * col1 DIV - 89 AS col0 FROM tab1 AS cor0
----
-14
-15
-6
skipif mysql # not compatible
query I rowsort label-6568
SELECT DISTINCT + col2 * col1 / - 89 AS col0 FROM tab1 AS cor0
----
-14
-15
-6
query I rowsort
SELECT DISTINCT col1 * 81 FROM tab0
----
6966
7371
7857
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6570
SELECT DISTINCT + CAST( NULL AS SIGNED ) * cor0.col2 * - cor0.col2 FROM tab2, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6570
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * cor0.col2 * - cor0.col2 FROM tab2, tab2 AS cor0
----
NULL
query I rowsort
SELECT + col0 + 12 * + col0 * + col1 FROM tab2 AS cor0
----
16195
2611
55302
query I rowsort
SELECT 40 + + col2 + col2 FROM tab1 AS cor0
----
148
154
232
query I rowsort
SELECT + - 12 + col0 * + col2 * col0 + col1 FROM tab1 cor0
----
233470
500
614401
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 60 ) + + col2 col1 FROM tab0 AS cor0
----
-27
-59
22
query I rowsort
SELECT - - 5 FROM tab0 AS cor0
----
5
5
5
query I rowsort
SELECT + 5 AS col2 FROM tab2 AS cor0
----
5
5
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6577
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6577
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ( + 1 ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT col2 * col1 * + 64 AS col2 FROM tab2
----
41344
53568
98176
query I rowsort
SELECT ALL + col2 + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT + - 59 AS col2 FROM tab1 AS cor0
----
-59
query I rowsort
SELECT 80 * - col1 + + col2 * + 67 + - cor0.col1 AS col1 FROM tab1 cor0
----
1512
3009
5379
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6583
SELECT ALL - CAST( NULL AS SIGNED ) * - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL - CAST ( NULL AS INTEGER ) * - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * - col2 + + col1 + col1 AS col0 FROM tab1 AS cor0
----
-110
-3628
-7654
query I rowsort
SELECT - + 2 + + col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1442
674
727
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6586
SELECT + CAST( - col1 AS SIGNED ) + + col0 * col2 FROM tab0
----
-62
706
7207
skipif mysql # not compatible
query I rowsort label-6586
SELECT + CAST ( - col1 AS INTEGER ) + + col0 * col2 FROM tab0
----
-62
706
7207
query I rowsort
SELECT DISTINCT + ( ( - col1 ) ) + col0 * - col2 + col0 AS col2 FROM tab2
----
-2009
-213
-2940
query I rowsort
SELECT ALL - 64 + - 47 * col1 AS col2 FROM tab0 cor0
----
-4106
-4341
-4623
query I rowsort
SELECT DISTINCT ( 59 ) + + cor0.col0 * col2 AS col0 FROM tab0 cor0
----
7357
851
94
query I rowsort
SELECT ALL + col2 * col1 + + col0 + - col0 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - 94 + col0 AS col1 FROM tab1
----
-14
-30
-91
query I rowsort
SELECT DISTINCT + col2 + + 41 * - col2 + - col0 AS col1 FROM tab2
----
-1087
-1118
-1599
query I rowsort
SELECT ALL + 84 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6594
SELECT CAST( NULL AS SIGNED ) FROM tab0, tab0 cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-6594
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
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 + col1 + 98 FROM tab2 AS cor0
----
115
129
157
query I rowsort
SELECT DISTINCT + col2 * col1 + - col1 * cor0.col1 + 0 FROM tab1 AS cor0
----
1079
470
728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6598
SELECT DISTINCT - CAST( + col2 AS SIGNED ) * + col0 + 0 * + col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * + col0 + 0 * + col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + cor0.col1 + + 12 FROM tab2, tab1 AS cor0
----
9 values hashing to 970cfcf355594cc92de8508314ff04f9
query I rowsort
SELECT - + col2 + col0 AS col0 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT ALL - ( + col2 ) * col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT cor0.col1 * col2 AS col1 FROM tab1 cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6603
SELECT ALL + - 92 DIV - col2 AS col2 FROM tab0 AS cor0
----
1
2
92
skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL + - 92 / - col2 AS col2 FROM tab0 AS cor0
----
1
2
92
query I rowsort
SELECT DISTINCT - + 70 + - col2 FROM tab2 AS cor0
----
-108
-96
-97
query I rowsort
SELECT DISTINCT + cor0.col1 * col0 * - ( + ( - col0 ) * - ( cor0.col1 ) ) FROM tab2 AS cor0
----
-1803649
-21178404
-47089
query I rowsort
SELECT 29 + - col0 * - 81 + - col1 FROM tab1 AS cor0
----
246
5203
6496
query I rowsort
SELECT ALL + + 47 AS col2 FROM tab0 AS cor0
----
47
47
47
query I rowsort
SELECT - col0 * col1 + - 5 AS col0 FROM tab0 AS cor0
----
-2069
-3400
-8104
onlyif mysql # use DIV operator for integer division
query I rowsort label-6609
SELECT ALL 35 DIV + col1 AS col1 FROM tab1 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL 35 / + col1 AS col1 FROM tab1 AS cor0
----
1
2
3
query I rowsort
SELECT - + col2 + + col0 * - 91 AS col1 FROM tab1 AS cor0
----
-327
-5881
-7376
query I rowsort
SELECT ALL 6 * - cor0.col1 FROM tab1 cor0
----
-156
-60
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6612
SELECT + ( - col0 ) DIV - CAST( col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-6612
SELECT + ( - col0 ) / - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
0
1
35
query I rowsort
SELECT tab0.col2 + + ( col2 ) AS col0 FROM tab0
----
164
2
66
query I rowsort
SELECT - 62 * col2 AS col1 FROM tab0 AS cor0
----
-2046
-5084
-62
query I rowsort
SELECT tab2.col1 + + col1 + col0 FROM tab2
----
113
196
69
query I rowsort
SELECT ALL - col2 + - col2 + - 32 AS col2 FROM tab0 cor0
----
-196
-34
-98
query I rowsort
SELECT col2 + + ( + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 13 * col0 col2 FROM tab2 AS cor0
----
1092
1106
98
query I rowsort
SELECT ALL - - col1 + - 76 FROM tab2 AS cor0
----
-17
-45
-59
query I rowsort
SELECT + cor0.col0 + - col1 * 20 AS col0 FROM tab0 AS cor0
----
-1696
-1731
-1905
query I rowsort
SELECT ALL + - col1 + ( col2 ) * col0 FROM tab2 AS cor0
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-6622
SELECT DISTINCT col1 DIV + ( col1 ) + + cor0.col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT col1 / + ( col1 ) + + cor0.col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT ALL - - col0 * col1 + 28 AS col1 FROM tab2 AS cor0
----
1371
245
4630
query I rowsort
SELECT DISTINCT + 92 * col0 FROM tab0
----
2208
3220
8188
query I rowsort
SELECT - col2 + ( + col2 ) * col1 FROM tab0 AS cor0
----
2805
7380
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6626
SELECT ALL cor0.col1 * CAST( NULL AS SIGNED ) + + col0 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL cor0.col1 * CAST ( NULL AS INTEGER ) + + col0 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * tab0.col1 - col0 AS col2 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT - col2 * col1 + - col0 FROM tab2 AS cor0
----
-1612
-725
-844
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to db9b93cf4fdd5de4106f0487a66ce0a5
query I rowsort
SELECT col0 * 25 * + col0 AS col2 FROM tab1
----
102400
160000
225
query I rowsort
SELECT - + ( + col2 ) + + ( 96 ) * col2 AS col1 FROM tab0 AS cor0
----
3135
7790
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * cor0.col1 col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT col0 * + 13 FROM tab1 AS cor0
----
1040
39
832
query I rowsort
SELECT DISTINCT 40 * col2 AS col2 FROM tab0
----
1320
3280
40
query I rowsort
SELECT col2 * - 78 AS col2 FROM tab1 AS cor0
----
-4212
-4446
-7488
onlyif mysql # use DIV operator for integer division
query I rowsort label-6636
SELECT ALL 32 DIV - tab2.col0 col1 FROM tab2
----
-4
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL 32 / - tab2.col0 col1 FROM tab2
----
-4
0
0
query I rowsort
SELECT - - 59 + + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-30
24
35
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 ALL - 74 AS col1 FROM tab1 cor0
----
-74
-74
-74
query I rowsort
SELECT + col0 + - 81 AS col1 FROM tab2 cor0
----
-2
-3
-74
query I rowsort
SELECT - col1 * ( - col0 ) * + col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6642
SELECT - col1 * + 20 + + cor0.col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6642
SELECT - col1 * + 20 + + cor0.col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( col1 ) * col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
119808
32490
75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-6644
SELECT 55 DIV + col0 + col2 * - 83 FROM tab1 cor0
----
-4464
-4731
-7968
skipif mysql # not compatible
query I rowsort label-6644
SELECT 55 / + col0 + col2 * - 83 FROM tab1 cor0
----
-4464
-4731
-7968
query I rowsort
SELECT ALL + col0 + + col1 * col2 AS col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT ALL + col1 + 15 FROM tab1
----
25
28
41
query I rowsort
SELECT 89 * + tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5974e541b41aea5f542ba94c62e331b6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 col1 FROM tab1, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 3abaf25c7c70ca51adcfa7c848319730
query I rowsort
SELECT DISTINCT - col2 + - cor0.col0 * col2 FROM tab0 AS cor0
----
-36
-7380
-825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 * 89 col1 FROM tab0 AS cor0
----
-7654
-8099
-8633
query I rowsort
SELECT - - col1 + - 59 FROM tab2 AS cor0
----
-28
-42
0
query I rowsort
SELECT ALL ( col1 ) + + col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + col1 * col1 - - col1 FROM tab1 cor0
----
110
182
702
query I rowsort
SELECT DISTINCT + - col1 * + col2 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT - - col1 + + col2 * col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL 81 + col2 * cor0.col1 FROM tab2 AS cor0
----
1615
727
918
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6657
SELECT DISTINCT - 72 / col2 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6657
SELECT DISTINCT - 72 / col2 + + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - 56 FROM tab2, tab2 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT + col2 * col2 + col0 * - 35 * + col1 AS col2 FROM tab0 AS cor0
----
-118824
-276741
-71151
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * + 92 + cor0.col0 col2 FROM tab1 AS cor0
----
279
5952
7440
query I rowsort
SELECT ALL + ( col2 ) * 45 + 35 + - col2 FROM tab0 AS cor0
----
1487
3643
79
query I rowsort
SELECT ALL + ( col0 ) * col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL - col1 - + 57 AS col2 FROM tab0
----
-143
-148
-154
query I rowsort
SELECT cor0.col1 * + col1 + ( - col1 ) + col2 AS col2 FROM tab2 AS cor0
----
310
3448
957
query I rowsort
SELECT + 98 * + col2 AS col2 FROM tab1 AS cor0
----
5292
5586
9408
query I rowsort
SELECT ALL + cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT + col2 * ( col1 ) AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT col0 * ( + 99 * col2 ) FROM tab1 cor0
----
16038
361152
760320
onlyif mysql # use DIV operator for integer division
query I rowsort label-6669
SELECT - - 10 DIV col1 + cor0.col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-6669
SELECT - - 10 / col1 + cor0.col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - - 48 * 85 AS col1 FROM tab2 AS cor0
----
4080
4080
4080
query I rowsort
SELECT ALL 52 * + cor0.col0 FROM tab0 AS cor0
----
1248
1820
4628
query I rowsort
SELECT DISTINCT ( 25 ) AS col0 FROM tab2, tab1 AS cor0
----
25
query I rowsort
SELECT - col2 * ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT 9 * cor0.col0 FROM tab2 AS cor0
----
63
702
711
query I rowsort
SELECT ALL col0 + 4 + 50 FROM tab0 AS cor0
----
143
78
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + - ( col0 ) col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + - cor0.col0 + - col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL - - cor0.col0 + col0 FROM tab2 cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + + col1 col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6680
SELECT ALL - - col2 * col1 DIV - 41 FROM tab2 AS cor0
----
-15
-20
-37
skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL - - col2 * col1 / - 41 FROM tab2 AS cor0
----
-15
-20
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 + + col2 col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT col1 * col0 * - 17 FROM tab1
----
-10880
-1326
-17680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6683
SELECT DISTINCT + - col1 + - col2 + - cor0.col1 DIV + cor0.col0 AS col2 FROM tab0 AS cor0
----
-100
-122
-174
skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT + - col1 + - col2 + - cor0.col1 / + cor0.col0 AS col2 FROM tab0 AS cor0
----
-100
-122
-174
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6684
SELECT ALL col2 * + col2 + - 64 + - col2 * + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1448
2615
7904
skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL col2 * + col2 + - 64 + - col2 * + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1448
2615
7904
onlyif mysql # use DIV operator for integer division
query I rowsort label-6685
SELECT DISTINCT + - col0 + col0 DIV col0 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT + - col0 + col0 / col0 FROM tab1 AS cor0
----
-2
-63
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6686
SELECT + col0 * CAST( + col1 AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81
skipif mysql # not compatible
query I rowsort label-6686
SELECT + col0 * CAST ( + col1 AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL - + col0 + 43 FROM tab1 AS cor0
----
-21
-37
40
query I rowsort
SELECT - - col0 * - col0 - ( col2 * + col2 ) FROM tab0 AS cor0
----
-1226
-14645
-1665
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6689
SELECT CAST( NULL AS SIGNED ) * 86 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6689
SELECT CAST ( NULL AS INTEGER ) * 86 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col2 * col0 + + col0 AS col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT ALL col0 * + col0 + + col0 FROM tab0
----
1260
600
8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6692
SELECT ALL + 77 * + col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL + 77 * + col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * col0 * col0 - col2 FROM tab0 AS cor0
----
-118826
-49569
-720893
query I rowsort
SELECT DISTINCT - ( col1 ) + + 11 * cor0.col1 + col0 AS col1 FROM tab0 cor0
----
1005
884
999
query I rowsort
SELECT + col0 * + col2 + col1 - col2 * col1 AS col0 FROM tab2
----
-617
2373
553
onlyif mysql # use DIV operator for integer division
query I rowsort label-6696
SELECT - cor0.col1 * - col0 + col0 DIV - col1 FROM tab2 AS cor0
----
1339
217
4601
skipif mysql # not compatible
query I rowsort label-6696
SELECT - cor0.col1 * - col0 + col0 / - col1 FROM tab2 AS cor0
----
1339
217
4601
query I rowsort
SELECT col2 - + col1 * + col2 * 43 FROM tab0
----
-122001
-320784
-4170
query I rowsort
SELECT - 68 * 26 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e8bbf87f86ed737449caab733f9f3671
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - col2 col1 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6700
SELECT - - ( + col0 ) * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6700
SELECT - - ( + col0 ) * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 67 + - col0 * 19 FROM tab2
----
-1415
-1434
-66
query I rowsort
SELECT ALL + cor0.col2 - cor0.col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - col1 * ( col1 ) * col1 + col2 FROM tab2 AS cor0
----
-205353
-29764
-4875
onlyif mysql # use DIV operator for integer division
query I rowsort label-6704
SELECT DISTINCT - + col1 DIV 20 + + ( + col0 ) FROM tab1 AS cor0
----
2
64
80
skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT - + col1 / 20 + + ( + col0 ) FROM tab1 AS cor0
----
2
64
80
query I rowsort
SELECT ALL col2 * - ( + col1 ) - - col0 * col2 FROM tab2 AS cor0
----
-648
2356
494
query I rowsort
SELECT ALL - 66 FROM tab2, tab1 cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 47 col0 FROM tab0 AS cor0
----
4042
4277
4559
query I rowsort
SELECT DISTINCT + col0 * - 37 AS col1 FROM tab1 cor0
----
-111
-2368
-2960
query I rowsort
SELECT col1 * + 24 - 22 FROM tab1 AS cor0
----
218
290
602
query I rowsort
SELECT ALL - - col1 * + col0 - col0 FROM tab0 AS cor0
----
2040
3360
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-6711
SELECT - - cor0.col1 DIV col1 - - col1 DIV col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6711
SELECT - - cor0.col1 / col1 - - col1 / col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT 68 + - ( + col0 ) AS col2 FROM tab2
----
-10
-11
61
query I rowsort
SELECT DISTINCT ( col1 ) * col2 + - 76 * col1 * col0 AS col1 FROM tab2 AS cor0
----
-101422
-15655
-348218
query I rowsort
SELECT - cor0.col0 * col0 * col0 AS col1 FROM tab2 AS cor0
----
-343
-474552
-493039
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 * - col1 col1 FROM tab2 AS cor0
----
1139
2077
3953
query I rowsort
SELECT DISTINCT - 68 * + col2 FROM tab2 cor0
----
-1768
-1836
-2584
query I rowsort
SELECT DISTINCT 99 * col0 * 34 FROM tab0 AS cor0
----
117810
299574
80784
query I rowsort
SELECT ALL 59 + - col0 FROM tab0 AS cor0
----
-30
24
35
query I rowsort
SELECT 34 * col2 FROM tab2 AS cor0
----
1292
884
918
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6720
SELECT ALL + - col2 * + col0 + CAST( col2 * + col0 AS SIGNED ) FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL + - col2 * + col0 + CAST ( col2 * + col0 AS INTEGER ) FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL + 3 * col1 * 4 AS col2 FROM tab2 AS cor0
----
204
372
708
onlyif mysql # use DIV operator for integer division
query I rowsort label-6722
SELECT + 20 DIV tab0.col2 + - tab0.col0 AS col2 FROM tab0
----
-15
-24
-89
skipif mysql # not compatible
query I rowsort label-6722
SELECT + 20 / tab0.col2 + - tab0.col0 AS col2 FROM tab0
----
-15
-24
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 col2 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT col1 * + 19 * + col2 AS col1 FROM tab2
----
12274
15903
29146
query I rowsort
SELECT - tab2.col0 + + ( 20 * + col0 ) FROM tab2
----
133
1482
1501
onlyif mysql # use DIV operator for integer division
query I rowsort label-6726
SELECT DISTINCT + cor0.col1 + col0 DIV col0 col2 FROM tab2 AS cor0
----
18
32
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT + cor0.col1 + col0 / col0 col2 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT ALL col1 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - col0 + col0 + + col1 * col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6729
SELECT ALL + cor0.col1 DIV col1 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL + cor0.col1 / col1 AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT - 14 + + col0 FROM tab0 AS cor0
----
10
21
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 + col1 col1 FROM tab1 AS cor0
----
44
47
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 * - col1 col0 FROM tab2 AS cor0
----
1190
2170
4130
query I rowsort
SELECT ALL + col1 * 2 + + cor0.col0 * + ( - col2 ) FROM tab0 AS cor0
----
-620
-7116
159
query I rowsort
SELECT col0 * ( - tab1.col0 ) AS col2 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT + col0 + col1 + + col2 AS col1 FROM tab2 AS cor0
----
134
163
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-6736
SELECT ALL + col2 DIV - col1 AS col0 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL + col2 / - col1 AS col0 FROM tab2 AS cor0
----
-2
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6737
SELECT ALL + col1 + + col0 * CAST( + col0 * - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1
-262134
-511987
skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL + col1 + + col0 * CAST ( + col0 * - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1
-262134
-511987
query I rowsort
SELECT DISTINCT - col0 + - col0 * - col2 AS col1 FROM tab0 cor0
----
0
7209
768
query I rowsort
SELECT ALL - - 19 * - col1 AS col1 FROM tab1 AS cor0
----
-190
-247
-494
onlyif mysql # use DIV operator for integer division
query I rowsort label-6740
SELECT DISTINCT col1 + col1 DIV + ( col0 + cor0.col2 * - 37 ) AS col1 FROM tab0 cor0
----
49
86
91
skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT col1 + col1 / + ( col0 + cor0.col2 * - 37 ) AS col1 FROM tab0 cor0
----
49
86
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-6741
SELECT DISTINCT + 36 DIV 3 AS col1 FROM tab1, tab1 AS cor0, tab2 cor1
----
12
skipif mysql # not compatible
query I rowsort label-6741
SELECT DISTINCT + 36 / 3 AS col1 FROM tab1, tab1 AS cor0, tab2 cor1
----
12
query I rowsort
SELECT DISTINCT - 29 * + col0 FROM tab0 cor0
----
-1015
-2581
-696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6743
SELECT + + 32 + + col1 * - CAST( col1 AS SIGNED ) + + col2 AS col2 FROM tab0 AS cor0
----
-7331
-8167
-9376
skipif mysql # not compatible
query I rowsort label-6743
SELECT + + 32 + + col1 * - CAST ( col1 AS INTEGER ) + + col2 AS col2 FROM tab0 AS cor0
----
-7331
-8167
-9376
query I rowsort
SELECT - + 1 + cor0.col0 FROM tab0 AS cor0
----
23
34
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 * - col0 + - col2 * 93 col2 FROM tab1 AS cor0
----
-5034
-5557
-9248
query I rowsort
SELECT ALL tab0.col0 - 21 * tab0.col0 AS col1 FROM tab0
----
-1780
-480
-700
query I rowsort
SELECT DISTINCT col0 * col2 - tab0.col0 AS col1 FROM tab0
----
0
7209
768
query I rowsort
SELECT - + cor0.col0 - col1 * ( + col1 ) FROM tab1 cor0
----
-164
-249
-679
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6749
SELECT 87 - col2 / + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6749
SELECT 87 - col2 / + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col1 + + col0 + + col1 AS col2 FROM tab1 AS cor0
----
106
55
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-6751
SELECT DISTINCT + col2 * col0 DIV cor0.col0 - + col2 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT + col2 * col0 / cor0.col0 - + col2 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + 59 * + col2 + col0 FROM tab0 AS cor0
----
1971
4927
94
query I rowsort
SELECT col1 * col0 - ( + ( - col0 ) + 69 ) AS col1 FROM tab1 AS cor0
----
1051
12
635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * - col0 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + ( + col0 ) AS col0 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6756
SELECT DISTINCT 94 + col2 DIV col0 AS col2 FROM tab2
----
94
97
skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT 94 + col2 / col0 AS col2 FROM tab2
----
94
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6757
SELECT ALL col2 * tab1.col2 * 85 + col1 DIV col1 AS col1 FROM tab1
----
247861
276166
783361
skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL col2 * tab1.col2 * 85 + col1 / col1 AS col1 FROM tab1
----
247861
276166
783361
query I rowsort
SELECT col2 * - tab2.col1 + 52 * - tab2.col0 FROM tab2
----
-1201
-4754
-5590
query I rowsort
SELECT + col1 + - 29 FROM tab2 cor0
----
-12
2
30
query I rowsort
SELECT col0 * col2 * + col1 + - col0 AS col1 FROM tab1 cor0
----
36416
4209
99760
query I rowsort
SELECT - col0 + cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT + col0 * + 37 AS col2 FROM tab1 AS cor0
----
111
2368
2960
query I rowsort
SELECT - col2 * - col1 - cor0.col0 AS col1 FROM tab1 cor0
----
1168
1401
506
query I rowsort
SELECT - col2 * 15 + - 89 * cor0.col1 * col1 FROM tab0 AS cor0
----
-658739
-738239
-837416
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL - col0 * 96 + + col2 FROM tab2 AS cor0
----
-645
-7462
-7546
onlyif mysql # use DIV operator for integer division
query I rowsort label-6767
SELECT ALL col2 + + col2 DIV 1 AS col1 FROM tab2
----
52
54
76
skipif mysql # not compatible
query I rowsort label-6767
SELECT ALL col2 + + col2 / 1 AS col1 FROM tab2
----
52
54
76
query I rowsort
SELECT + cor1.col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT tab0.col0 * + tab0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6770
SELECT ALL + + CAST( NULL AS SIGNED ) + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL + + CAST ( NULL AS INTEGER ) + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 86 * - col0 AS col1 FROM tab1 AS cor0
----
-258
-5504
-6880
query I rowsort
SELECT ALL col2 * + 48 AS col1 FROM tab1
----
2592
2736
4608
query I rowsort
SELECT - tab0.col0 * ( col0 ) AS col0 FROM tab0
----
-1225
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6774
SELECT - - col2 * - CAST( 78 AS SIGNED ) + col2 FROM tab1 AS cor0
----
-4158
-4389
-7392
skipif mysql # not compatible
query I rowsort label-6774
SELECT - - col2 * - CAST ( 78 AS INTEGER ) + col2 FROM tab1 AS cor0
----
-4158
-4389
-7392
query I rowsort
SELECT tab0.col0 + 3 * - col2 + col0 AS col2 FROM tab0
----
-51
-68
67
query I rowsort
SELECT - + col1 + 19 FROM tab0 AS cor0
----
-67
-72
-78
query I rowsort
SELECT + 52 FROM tab1, tab0 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT DISTINCT 72 * cor0.col1 FROM tab2 cor0
----
1224
2232
4248
query I rowsort
SELECT + 87 AS col2 FROM tab1
----
87
87
87
query I rowsort
SELECT - - ( - col1 ) + - 54 * 97 AS col1 FROM tab2 AS cor0
----
-5255
-5269
-5297
query I rowsort
SELECT + - 63 + col1 * - col1 FROM tab0 AS cor0
----
-7459
-8344
-9472
query I rowsort
SELECT + 86 * + col1 FROM tab2
----
1462
2666
5074
query I rowsort
SELECT DISTINCT tab2.col1 + - col2 + tab2.col0 FROM tab2
----
11
111
58
query I rowsort
SELECT - - col2 * col1 + col1 * ( - col2 ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col0 * col2 + + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL + ( col1 ) * + col1 + col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6787
SELECT ALL - CAST( + col1 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL - CAST ( + col1 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + + col0 - ( - col0 ) AS col1 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT ALL 14 + cor0.col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
1262
1418
584
query I rowsort
SELECT - col1 * col1 - col0 FROM tab1 cor0
----
-164
-249
-679
query I rowsort
SELECT + 83 + 94 AS col1 FROM tab0 AS cor0
----
177
177
177
query I rowsort
SELECT DISTINCT col2 * + col0 AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + + col2 * col2 + + col2 * 90 AS col0 FROM tab2 AS cor0
----
3016
3159
4864
query I rowsort
SELECT - 3 AS col0 FROM tab1 cor0
----
-3
-3
-3
query I rowsort
SELECT 24 + col1 FROM tab2 AS cor0
----
41
55
83
query I rowsort
SELECT ALL 63 - + 85 FROM tab2
----
-22
-22
-22
query I rowsort
SELECT ALL + col0 * + ( col0 + + col1 ) FROM tab0
----
16020
2640
4620
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + cor0.col0 col0 FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL col1 * - cor0.col2 * - 74 - + col0 FROM tab1 cor0
----
103893
42116
92272
query I rowsort
SELECT ALL - + col0 + - cor0.col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT - ( + 23 ) FROM tab2 AS cor0
----
-23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6803
SELECT + - CAST( NULL AS SIGNED ) + 41 col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6803
SELECT + - CAST ( NULL AS INTEGER ) + 41 col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( col0 ) + col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL - col2 + 99 * - col0 FROM tab2 cor0
----
-720
-7748
-7859
onlyif mysql # use DIV operator for integer division
query I rowsort label-6806
SELECT DISTINCT + ( col2 ) DIV + col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT + ( col2 ) / + col1 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6807
SELECT ALL - CAST( - 89 AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL - CAST ( - 89 AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT + col0 + - ( col1 + - col1 ) * ( + 69 ) * col0 FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + - col2 col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT - col2 * + 68 - col1 FROM tab1 AS cor0
----
-3698
-3886
-6541
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6811
SELECT + CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-6811
SELECT + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + 64 AS col2 FROM tab1 AS cor0
----
64
64
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-6813
SELECT DISTINCT cor0.col0 + + col0 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-6813
SELECT DISTINCT cor0.col0 + + col0 / cor0.col1 AS col2 FROM tab2 AS cor0
----
7
79
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 * + col0 ) col1 FROM tab1
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6815
SELECT CAST( NULL AS SIGNED ) FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6815
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - 33 * - 28 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to a9d842b475c503efc64bd7dd701a33f0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6817
SELECT + col2 DIV 76 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6817
SELECT + col2 / 76 FROM tab0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6818
SELECT col0 DIV 48 AS col0 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6818
SELECT col0 / 48 AS col0 FROM tab2
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
onlyif mysql # use DIV operator for integer division
query I rowsort label-6820
SELECT DISTINCT + - ( - 71 ) DIV cor0.col0 + - col1 FROM tab0 AS cor0
----
-84
-91
-95
skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT + - ( - 71 ) / cor0.col0 + - col1 FROM tab0 AS cor0
----
-84
-91
-95
query I rowsort
SELECT + 10 * + col1 FROM tab0 cor0
----
860
910
970
query I rowsort
SELECT - cor0.col0 * 27 FROM tab0 AS cor0
----
-2403
-648
-945
query I rowsort
SELECT ALL - col1 + + col1 * col1 AS col0 FROM tab2 cor0
----
272
3422
930
query I rowsort
SELECT DISTINCT + col0 + 5 AS col1 FROM tab1 AS cor0
----
69
8
85
query I rowsort
SELECT - 76 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0
query I rowsort
SELECT ALL + col0 + tab2.col1 * + tab2.col2 + tab2.col2 AS col2 FROM tab2
----
1638
763
871
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6827
SELECT ALL - ( col2 ) * + CAST( NULL AS DECIMAL ) + col1 + tab2.col2 * - col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL - ( col2 ) * + CAST ( NULL AS REAL ) + col1 + tab2.col2 * - col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + 74 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
query I rowsort
SELECT DISTINCT col1 + col0 + - col2 FROM tab0
----
131
77
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6830
SELECT col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6830
SELECT col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * + col0 - col1 FROM tab2 AS cor0
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-6832
SELECT DISTINCT - - col1 DIV - ( col1 ) FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT - - col1 / - ( col1 ) FROM tab0 AS cor0
----
-1
query I rowsort
SELECT - col1 * ( col1 ) AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + cor0.col0 * col1 + + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - col2 - - col0 * + col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT col1 * - col2 + + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT - - col2 * col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - - col2 * cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL col1 * - ( col2 * - col0 + col2 ) FROM tab2 cor0
----
118118
5022
50388
query I rowsort
SELECT ALL col0 * 29 AS col0 FROM tab0 AS cor0
----
1015
2581
696
query I rowsort
SELECT DISTINCT col2 + col2 * + ( col2 + - col1 ) AS col0 FROM tab1 AS cor0
----
1566
2736
8064
query I rowsort
SELECT col0 * + col1 + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6843
SELECT DISTINCT - col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT - col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col1 + ( - 72 ) FROM tab1 AS cor0
----
-46
-59
-62
query I rowsort
SELECT DISTINCT - cor1.col0 + cor0.col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
9 values hashing to 2689e3ba6de7ff1daca62260a4832077
query I rowsort
SELECT DISTINCT col2 + col0 * + col0 FROM tab2
----
6110
6279
76
query I rowsort
SELECT 29 * + col2 AS col0 FROM tab1
----
1566
1653
2784
query I rowsort
SELECT tab2.col2 * - 34 AS col1 FROM tab2
----
-1292
-884
-918
query I rowsort
SELECT + tab2.col2 * + tab2.col1 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT + + col1 * + 38 + + col0 FROM tab1 AS cor0
----
444
574
991
query I rowsort
SELECT + - col1 * col0 + - col2 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT - + tab2.col0 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to adaea38eae032c1639715f21831dd376
query I rowsort
SELECT ALL ( - ( - col2 ) ) AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL + col0 * col1 * col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL - 62 * + col1 FROM tab0
----
-5332
-5642
-6014
onlyif mysql # use DIV operator for integer division
query I rowsort label-6856
SELECT col0 + col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-6856
SELECT col0 + col1 / - col0 AS col2 FROM tab0 AS cor0
----
21
33
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6857
SELECT ALL + CAST( 91 AS SIGNED ) * - col1 * + col0 AS col1 FROM tab2 cor0
----
-122213
-19747
-418782
skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL + CAST ( 91 AS INTEGER ) * - col1 * + col0 AS col1 FROM tab2 cor0
----
-122213
-19747
-418782
query I rowsort
SELECT - + 26 * + 65 FROM tab1 AS cor0
----
-1690
-1690
-1690
query I rowsort
SELECT DISTINCT - - ( + 57 ) FROM tab0 cor0
----
57
query I rowsort
SELECT ALL ( 17 ) * + col2 AS col2 FROM tab0
----
1394
17
561
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6861
SELECT DISTINCT - 67 + col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT - 67 + col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - - 20 + col2 FROM tab0 AS cor0
----
102
21
53
query I rowsort
SELECT - col0 * - col2 + col2 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-6864
SELECT + + ( cor0.col2 ) DIV cor0.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-6864
SELECT + + ( cor0.col2 ) / cor0.col2 col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL cor0.col0 + col1 * col1 AS col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT col1 + + ( + tab0.col0 ) * 34 FROM tab0
----
1287
3117
902
query I rowsort
SELECT + - ( - col2 ) + ( col0 ) AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + 58 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
58
query I rowsort
SELECT ALL + ( col0 ) * - col2 FROM tab2
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6870
SELECT + - 7 DIV + col2 FROM tab0 AS cor0
----
-7
0
0
skipif mysql # not compatible
query I rowsort label-6870
SELECT + - 7 / + col2 FROM tab0 AS cor0
----
-7
0
0
query I rowsort
SELECT - ( + cor0.col1 ) * - col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - - col2 * col1 + - col0 * col1 FROM tab0 AS cor0
----
-3298
-637
774
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + cor0.col1 col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + + col2 * + ( col1 + col2 ) FROM tab0 AS cor0
----
14186
3927
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6875
SELECT ALL col1 + col0 DIV + col1 FROM tab1 AS cor0
----
16
19
26
skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL col1 + col0 / + col1 FROM tab1 AS cor0
----
16
19
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6876
SELECT + col0 + - 31 DIV ( + col0 ) AS col0 FROM tab2 AS cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-6876
SELECT + col0 + - 31 / ( + col0 ) AS col0 FROM tab2 AS cor0
----
3
78
79
query I rowsort
SELECT - cor0.col2 * + 92 + col1 * col0 FROM tab0 AS cor0
----
-972
3303
555
query I rowsort
SELECT + col2 + - ( col2 + col1 ) * + col1 FROM tab1 AS cor0
----
-1321
-2026
-613
query I rowsort
SELECT - + col2 - - col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + col0 * ( cor0.col0 ) FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL cor0.col0 * - ( col1 ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT 99 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT + 80 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1423
297
4682
query I rowsort
SELECT 31 * cor0.col2 FROM tab2 AS cor0
----
1178
806
837
query I rowsort
SELECT - ( cor0.col2 ) + + col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 - - col0 * + col0 AS col2 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6887
SELECT ALL - CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 61 + 42 FROM tab1 AS cor0
----
-19
-19
-19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT + col0 * + col1 * col2 + col2 * - col2 FROM tab1 cor0
----
1296
33231
90624
query I rowsort
SELECT ALL - + col0 + col0 + - col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL col2 * - 4 + col0 AS col2 FROM tab1
----
-164
-213
-304
query I rowsort
SELECT ALL + - cor0.col2 * cor1.col0 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ac8aba7baafe9bd6ceb7b5654f2c0b7
query I rowsort
SELECT + 81 * - col0 FROM tab1 AS cor0
----
-243
-5184
-6480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6895
SELECT ALL + - CAST( cor0.col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-6895
SELECT ALL + - CAST ( cor0.col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - + 26 FROM tab1 AS cor0
----
-26
query I rowsort
SELECT DISTINCT + 11 * - col0 FROM tab1 AS cor0
----
-33
-704
-880
query I rowsort
SELECT col1 * ( ( - col0 ) ) + col0 AS col1 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT col2 - - 77 * 94 FROM tab2
----
7264
7265
7276
query I rowsort
SELECT col0 * - 30 + tab1.col2 AS col0 FROM tab1
----
-1863
-2304
-36
query I rowsort
SELECT DISTINCT col0 * col0 + + col0 * tab2.col0 FROM tab2
----
12168
12482
98
query I rowsort
SELECT ALL + col0 + - 49 + - col1 FROM tab2 AS cor0
----
-30
-73
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 - 77 * + col1 col2 FROM tab2 AS cor0
----
-1230
-2380
-4465
query I rowsort
SELECT 19 * col0 + tab2.col1 FROM tab2
----
1518
1541
164
query I rowsort
SELECT - 0 * col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( 63 AS REAL ) * + col1 AS col1 FROM tab1 cor0
----
1638
630
819
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) * col2 col0 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6908
SELECT DISTINCT col1 * col2 + col1 DIV 52 - col0 AS col1 FROM tab2 AS cor0
----
1457
567
830
skipif mysql # not compatible
query I rowsort label-6908
SELECT DISTINCT col1 * col2 + col1 / 52 - col0 AS col1 FROM tab2 AS cor0
----
1457
567
830
query I rowsort
SELECT 55 * col1 * + col1 FROM tab0 AS cor0
----
406780
455455
517495
query I rowsort
SELECT ALL ( col0 ) + col2 * - col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT DISTINCT + + col0 + - col0 + col2 AS col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT cor0.col1 - ( + col1 * 83 ) FROM tab2 AS cor0
----
-1394
-2542
-4838
query I rowsort
SELECT DISTINCT col0 + - 90 + col2 AS col2 FROM tab1 cor0
----
-33
31
86
query I rowsort
SELECT + tab0.col1 - + col0 AS col0 FROM tab0
----
2
62
62
query I rowsort
SELECT col2 * - col2 * - col1 AS col1 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT 75 * - col0 FROM tab0 AS cor0
----
-1800
-2625
-6675
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6917
SELECT ALL - + 39 + col0 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL - + 39 + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 + col2 + - 19 * - 6 AS col0 FROM tab0 AS cor0
----
150
171
285
query I rowsort
SELECT col2 + - col2 * + 30 AS col2 FROM tab0 AS cor0
----
-2378
-29
-957
query I rowsort
SELECT - cor0.col2 * + col1 * 46 FROM tab0 AS cor0
----
-130548
-343252
-4462
query I rowsort
SELECT DISTINCT col2 + + 7 * + ( - col1 * col2 ) AS col2 FROM tab1 cor0
----
-3933
-8640
-9774
query I rowsort
SELECT ALL - + col1 * col1 + ( col1 * 95 + + col1 ) FROM tab0 AS cor0
----
-97
455
860
query I rowsort
SELECT ALL + col2 * - cor0.col2 + cor0.col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT DISTINCT + cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + col2 + col1 * + col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT DISTINCT + + col0 + ( - 36 ) AS col0 FROM tab2 AS cor0
----
-29
42
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-6927
SELECT + cor0.col2 DIV col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-6927
SELECT + cor0.col2 / col1 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT - - col2 * 3 AS col2 FROM tab0 AS cor0
----
246
3
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col1 col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - col0 * ( + col1 ) + col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT - - col1 * col1 + col1 * col2 FROM tab2 AS cor0
----
1798
5015
935
query I rowsort
SELECT DISTINCT - + col1 + 89 FROM tab1 AS cor0
----
63
76
79
query I rowsort
SELECT + col0 * ( + col2 ) + - col2 * + col1 * + col2 AS col1 FROM tab2 AS cor0
----
-21546
-22410
-37856
query I rowsort
SELECT ALL col1 + + ( cor0.col2 ) FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL col0 + - cor0.col0 * col1 AS col1 FROM tab2 cor0
----
-1264
-210
-4524
query I rowsort
SELECT - + cor0.col2 * col0 + col0 * + col0 + col1 FROM tab0 AS cor0
----
-130
1287
714
query I rowsort
SELECT DISTINCT - col0 * 36 AS col2 FROM tab0 AS cor0
----
-1260
-3204
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - col1 col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + col2 * + ( col2 ) * col2 AS col2 FROM tab2 AS cor0
----
17576
19683
54872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * cor0.col0 col2 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6941
SELECT DISTINCT + col0 * ( + 43 ) + col2 DIV + col2 FROM tab1 AS cor0
----
130
2753
3441
skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT + col0 * ( + 43 ) + col2 / + col2 FROM tab1 AS cor0
----
130
2753
3441
query I rowsort
SELECT DISTINCT - 84 + col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1450
562
753
onlyif mysql # use DIV operator for integer division
query I rowsort label-6943
SELECT 61 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
0
1
61
skipif mysql # not compatible
query I rowsort label-6943
SELECT 61 / cor0.col2 AS col2 FROM tab0 AS cor0
----
0
1
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-6944
SELECT ALL col1 DIV - 76 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL col1 / - 76 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6945
SELECT ALL - ( cor0.col2 ) + + col0 * col2 + - cor0.col2 DIV + 22 AS col0 FROM tab1 AS cor0
----
106
3589
7580
skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL - ( cor0.col2 ) + + col0 * col2 + - cor0.col2 / + 22 AS col0 FROM tab1 AS cor0
----
106
3589
7580
query I rowsort
SELECT DISTINCT 14 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
14
query I rowsort
SELECT DISTINCT 75 * col1 FROM tab1 cor0
----
1950
750
975
query I rowsort
SELECT + ( col2 ) * - 61 * - 80 AS col2 FROM tab1 AS cor0
----
263520
278160
468480
onlyif mysql # use DIV operator for integer division
query I rowsort label-6949
SELECT ALL + col0 + - cor0.col0 DIV + 85 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL + col0 + - cor0.col0 / + 85 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + - col1 * + col2 - 94 * + 94 AS col0 FROM tab2 AS cor0
----
-10370
-9482
-9673
query I rowsort
SELECT DISTINCT - cor0.col1 + - col0 - + col2 * - 13 AS col0 FROM tab1 AS cor0
----
1155
667
673
onlyif mysql # use DIV operator for integer division
query I rowsort label-6952
SELECT - col0 - col2 DIV col0 AS col2 FROM tab2 AS cor0
----
-10
-78
-79
skipif mysql # not compatible
query I rowsort label-6952
SELECT - col0 - col2 / col0 AS col2 FROM tab2 AS cor0
----
-10
-78
-79
query I rowsort
SELECT ALL - 36 * col0 - col1 AS col1 FROM tab1
----
-134
-2314
-2893
query I rowsort
SELECT 96 * + col0 + ( col0 ) * col0 + ( + col1 ) AS col2 FROM tab1
----
10250
14093
323
onlyif mysql # use DIV operator for integer division
query I rowsort label-6955
SELECT - 75 DIV + col2 AS col1 FROM tab1
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-6955
SELECT - 75 / + col2 AS col1 FROM tab1
----
-1
-1
0
query I rowsort
SELECT DISTINCT col0 * - ( col1 ) FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT 84 * - 53 FROM tab2, tab2 AS cor0
----
-4452
query I rowsort
SELECT + col2 * col1 - col1 * + 94 * col2 FROM tab2 cor0
----
-142662
-60078
-77841
query I rowsort
SELECT - 41 * - col1 AS col0 FROM tab1
----
1066
410
533
query I rowsort
SELECT ALL ( + col1 ) * col0 + 74 + - 71 AS col0 FROM tab2 AS cor0
----
1346
220
4605
query I rowsort
SELECT ( - col2 * ( col0 ) ) FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT col2 + - col1 * + col0 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT + - col1 * - ( + col2 + cor0.col0 ) FROM tab1 AS cor0
----
1210
1482
2288
query I rowsort
SELECT + - cor0.col0 * + 87 AS col2 FROM tab2 AS cor0
----
-609
-6786
-6873
query I rowsort
SELECT ALL cor1.col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT - col0 * col1 * + 22 FROM tab2 AS cor0
----
-101244
-29546
-4774
query I rowsort
SELECT ALL col2 + 38 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1331
3464
945
query I rowsort
SELECT ALL + col2 * 74 * 20 FROM tab2 AS cor0
----
38480
39960
56240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + 85 col0 FROM tab2 AS cor0
----
-47
-58
-59
query I rowsort
SELECT DISTINCT - col1 * - 50 AS col0 FROM tab0 AS cor0
----
4300
4550
4850
query I rowsort
SELECT ALL col1 * 6 AS col1 FROM tab2
----
102
186
354
onlyif mysql # use DIV operator for integer division
query I rowsort label-6972
SELECT cor0.col2 DIV 75 AS col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6972
SELECT cor0.col2 / 75 AS col0 FROM tab0 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6973
SELECT + - col1 DIV + 68 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6973
SELECT + - col1 / + 68 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col2 + - tab0.col1 AS col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT - col2 + - 94 FROM tab2
----
-120
-121
-132
query I rowsort
SELECT ALL + col0 * col1 + + col1 + tab0.col2 AS col1 FROM tab0
----
2183
3493
8272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 * col1 col1 FROM tab0
----
2150
2275
2425
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6978
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6978
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT 96 * col0 FROM tab2 AS cor0
----
672
7488
7584
query I rowsort
SELECT ALL + 57 * - col1 * - col2 AS col2 FROM tab0 AS cor0
----
161766
425334
5529
onlyif mysql # use DIV operator for integer division
query I rowsort label-6981
SELECT DISTINCT col2 DIV col0 AS col2 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT col2 / col0 AS col2 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT ALL + 3 * - col0 AS col0 FROM tab2 AS cor0
----
-21
-234
-237
onlyif mysql # use DIV operator for integer division
query I rowsort label-6983
SELECT - col0 + col0 DIV ( tab1.col2 ) col1 FROM tab1
----
-3
-63
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6983
SELECT - col0 + col0 / ( tab1.col2 ) col1 FROM tab1
----
-3
-63
-80
query I rowsort
SELECT 91 + col2 + - col1 AS col0 FROM tab2 AS cor0
----
112
58
87
query I rowsort
SELECT - + col0 * - col2 + col2 - col2 * - col0 FROM tab1 AS cor0
----
15456
378
7353
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6986
SELECT + tab1.col0 * col2 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6986
SELECT + tab1.col0 * col2 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - ( col0 ) + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + col2 * + col0 + + cor0.col2 + - col1 AS col0 FROM tab2 AS cor0
----
185
1995
3023
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6989
SELECT - col0 * + col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6989
SELECT - col0 * + col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6990
SELECT ( - col0 ) + + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6990
SELECT ( - col0 ) + + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * + 4 AS col2 FROM tab2 AS cor0
----
104
108
152
query I rowsort
SELECT + - ( - 56 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
onlyif mysql # use DIV operator for integer division
query I rowsort label-6993
SELECT tab1.col1 DIV 73 FROM tab1, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-6993
SELECT tab1.col1 / 73 FROM tab1, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-6994
SELECT - cor0.col0 DIV + col1 + col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6994
SELECT - cor0.col0 / + col1 + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - - col1 + + col0 * - 36 * col2 FROM tab2 AS cor0
----
-108055
-6773
-72949
query I rowsort
SELECT ALL + + 8 + col0 * col2 FROM tab0 cor0
----
43
7306
800
query I rowsort
SELECT + col1 + col2 * - cor0.col0 * 86 FROM tab1 AS cor0
----
-13906
-313718
-660467
query I rowsort
SELECT DISTINCT - + col0 + col2 + + 78 AS col2 FROM tab0 AS cor0
----
44
71
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-6999
SELECT DISTINCT + cor0.col0 + cor0.col2 - - col0 DIV 37 AS col0 FROM tab1 cor0
----
122
178
57
skipif mysql # not compatible
query I rowsort label-6999
SELECT DISTINCT + cor0.col0 + cor0.col2 - - col0 / 37 AS col0 FROM tab1 cor0
----
122
178
57
query I rowsort
SELECT ALL + col2 * col0 - + col1 AS col0 FROM tab0 AS cor0
----
-62
706
7207
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7001
SELECT - - ( col1 ) + CAST( NULL AS SIGNED ) * + col2 * + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7001
SELECT - - ( col1 ) + CAST ( NULL AS INTEGER ) * + col2 * + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 + col1 col0 FROM tab1 AS cor0
----
32
35
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT - 33 + col0 FROM tab0 cor0
----
-9
2
56
query I rowsort
SELECT ALL + ( - 48 ) + + col1 AS col1 FROM tab1
----
-22
-35
-38
query I rowsort
SELECT ALL 64 + col2 AS col2 FROM tab2 AS cor0
----
102
90
91
query I rowsort
SELECT ALL - ( col2 * col0 ) AS col0 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 19 col2 FROM tab1
----
-6
-9
7
query I rowsort
SELECT ALL ( + 47 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT DISTINCT col1 + + cor0.col1 * 26 FROM tab1 cor0
----
270
351
702
query I rowsort
SELECT DISTINCT + 32 - - col1 FROM tab2 AS cor0
----
49
63
91
query I rowsort
SELECT + 52 * + col2 AS col0 FROM tab1 AS cor0
----
2808
2964
4992
query I rowsort
SELECT - ( col1 ) + + 66 * - col2 AS col1 FROM tab1
----
-3590
-3772
-6349
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( 63 ) * col0 + + 19 + 75 col2 FROM tab0
----
-2111
-459680
-49802
query I rowsort
SELECT - 73 + + 80 + + col2 FROM tab1 AS cor0
----
103
61
64
query I rowsort
SELECT col2 * + 80 - + 99 AS col1 FROM tab0 AS cor0
----
-19
2541
6461
query I rowsort
SELECT cor0.col2 - + 75 FROM tab2 AS cor0
----
-37
-48
-49
query I rowsort
SELECT - 52 FROM tab1, tab2 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
query I rowsort
SELECT + 94 * col1 + col1 * - col0 * - 17 FROM tab0 AS cor0
----
146237
43172
66833
query I rowsort
SELECT ALL 97 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
onlyif mysql # use DIV operator for integer division
query I rowsort label-7021
SELECT DISTINCT + 56 DIV 91 + + col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT + 56 / 91 + + col2 FROM tab1
----
54
57
96
query I rowsort
SELECT col0 - + 88 * col0 AS col1 FROM tab0
----
-2088
-3045
-7743
query I rowsort
SELECT DISTINCT col2 + + ( cor0.col1 ) FROM tab1 AS cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7024
SELECT CAST( NULL AS SIGNED ) * - col2 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7024
SELECT CAST ( NULL AS INTEGER ) * - col2 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 35 - col2 col2 FROM tab1 cor0
----
-131
-89
-92
query I rowsort
SELECT ALL ( + col2 ) + col2 AS col1 FROM tab2
----
52
54
76
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2, tab0 AS cor1
----
3645 values hashing to 93ed44f621cc970f32b0cc9543b45262
query I rowsort
SELECT ALL - col0 * - ( + col1 * ( - 15 ) ) FROM tab2
----
-20145
-3255
-69030
query I rowsort
SELECT 9 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
query I rowsort
SELECT ALL 80 * - ( col1 ) AS col2 FROM tab0 AS cor0
----
-6880
-7280
-7760
query I rowsort
SELECT - - col0 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col0 * cor0.col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT - col2 * + cor0.col1 - col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT DISTINCT - - ( col2 ) + + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL + col2 * col2 + + col1 AS col2 FROM tab0 cor0
----
1175
6815
98
query I rowsort
SELECT ALL 75 AS col2 FROM tab0 AS cor0
----
75
75
75
query I rowsort
SELECT 74 * cor0.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to f9f7bef275cc40611befa51fb4c9271e
query I rowsort
SELECT DISTINCT col1 + + cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT - col1 + + col1 + + ( + col2 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - 96 + 48 FROM tab0, tab1 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c
query I rowsort
SELECT ALL 15 + - cor0.col1 FROM tab0 AS cor0
----
-71
-76
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 col1 FROM tab1
----
0
query I rowsort
SELECT 67 * col1 FROM tab0
----
5762
6097
6499
query I rowsort
SELECT ALL + cor0.col1 * ( + col2 ) * + col2 + cor0.col0 + col1 FROM tab2 AS cor0
----
22637
24644
40021
query I rowsort
SELECT + cor0.col1 * 93 AS col2 FROM tab2 AS cor0
----
1581
2883
5487
query I rowsort
SELECT ALL - col0 * col1 + 54 AS col0 FROM tab1 AS cor0
----
-24
-586
-986
query I rowsort
SELECT ( - col0 ) + col1 * - 5 FROM tab0 cor0
----
-454
-520
-544
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7048
SELECT - col0 * + col2 - cor0.col1 * CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-240
-4288
-8720
skipif mysql # not compatible
query I rowsort label-7048
SELECT - col0 * + col2 - cor0.col1 * CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-240
-4288
-8720
query I rowsort
SELECT ALL ( col1 ) + + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT + + cor0.col1 * + 84 + - col2 FROM tab2 AS cor0
----
1390
2577
4930
query I rowsort
SELECT ALL - col0 * + 86 FROM tab0 AS cor0
----
-2064
-3010
-7654
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7052
SELECT + CAST( col1 AS SIGNED ) - - col2 AS col0 FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-7052
SELECT + CAST ( col1 AS INTEGER ) - - col2 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - - col2 * col1 + + col1 + - col2 AS col2 FROM tab0 cor0
----
193
2891
7471
query I rowsort
SELECT DISTINCT + + 6 * col0 + cor0.col1 * - col0 FROM tab1 AS cor0
----
-256
-560
-60
query I rowsort
SELECT col1 + + 50 * - cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
-103114
-169653
-404859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 col2 FROM tab2 AS cor0
----
62
62
62
query I rowsort
SELECT DISTINCT col0 + - 29 * - col2 * tab0.col2 FROM tab0
----
195085
31605
64
query I rowsort
SELECT ALL col0 + ( + 54 + - col0 ) AS col1 FROM tab0
----
54
54
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-7059
SELECT - col2 DIV - 14 FROM tab2
----
1
1
2
skipif mysql # not compatible
query I rowsort label-7059
SELECT - col2 / - 14 FROM tab2
----
1
1
2
query I rowsort
SELECT DISTINCT col2 + + col2 - col0 AS col0 FROM tab1
----
105
112
50
query I rowsort
SELECT DISTINCT col1 * col1 * ( - col0 ) - 96 * - tab1.col1 FROM tab1
----
-12272
-5440
468
onlyif mysql # use DIV operator for integer division
query I rowsort label-7062
SELECT col2 DIV col1 + col1 * 16 * + col1 AS col0 FROM tab0 AS cor0
----
118336
132496
150544
skipif mysql # not compatible
query I rowsort label-7062
SELECT col2 / col1 + col1 * 16 * + col1 AS col0 FROM tab0 AS cor0
----
118336
132496
150544
onlyif mysql # use DIV operator for integer division
query I rowsort label-7063
SELECT col2 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-7063
SELECT col2 / cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT - cor0.col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT - - 94 * col1 AS col2 FROM tab2 cor0
----
1598
2914
5546
query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
80
query I rowsort
SELECT - col2 * + ( + col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + 55 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT - col2 * - 6 AS col1 FROM tab1 AS cor0
----
324
342
576
query I rowsort
SELECT - - 98 + + col1 AS col0 FROM tab0 AS cor0
----
184
189
195
query I rowsort
SELECT col2 + - cor0.col2 * col0 + 93 FROM tab0 AS cor0
----
-666
-7123
59
query I rowsort
SELECT ALL ( col0 ) + - col0 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT 50 + - 73 * col1 AS col1 FROM tab2 cor0
----
-1191
-2213
-4257
query I rowsort
SELECT DISTINCT + col1 + + col1 AS col0 FROM tab0 cor0
----
172
182
194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7075
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2, tab1, tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7075
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2, tab1, tab0 cor0
----
NULL
query I rowsort
SELECT 27 * 71 FROM tab2
----
1917
1917
1917
query I rowsort
SELECT DISTINCT 48 * - 87 FROM tab1
----
-4176
query I rowsort
SELECT - 98 * col1 AS col0 FROM tab2 cor0
----
-1666
-3038
-5782
query I rowsort
SELECT ALL 38 * ( + col0 ) AS col2 FROM tab2
----
266
2964
3002
query I rowsort
SELECT col1 * col0 * + col1 AS col2 FROM tab0
----
177504
329315
737009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7081
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * 27 FROM tab2, tab1, tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7081
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * 27 FROM tab2, tab1, tab1 cor0
----
NULL
query I rowsort
SELECT col1 * - 56 FROM tab0
----
-4816
-5096
-5432
onlyif mysql # use DIV operator for integer division
query I rowsort label-7083
SELECT ALL cor0.col2 DIV - cor0.col0 + ( + col1 ) AS col1 FROM tab0 AS cor0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL cor0.col2 / - cor0.col0 + ( + col1 ) AS col1 FROM tab0 AS cor0
----
85
91
97
query I rowsort
SELECT DISTINCT + 40 AS col1 FROM tab1 AS cor0
----
40
query I rowsort
SELECT DISTINCT 75 * + col0 FROM tab0 cor0
----
1800
2625
6675
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * + col0 col2 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7087
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7087
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL - 47 AS col1 FROM tab0
----
-47
-47
-47
query I rowsort
SELECT ALL col0 + - tab1.col2 AS col1 FROM tab1
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7090
SELECT ALL col0 * col1 + CAST( NULL AS SIGNED ) + - col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL col0 * col1 + CAST ( NULL AS INTEGER ) + - col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col2 + - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT 29 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT ALL col0 * col0 + col2 * ( col2 * - col1 ) FROM tab2
----
-18307
-22550
-33800
query I rowsort
SELECT 16 + col1 * + col0 AS col0 FROM tab0
----
2080
3411
8115
query I rowsort
SELECT ALL col2 * col0 + ( - tab0.col0 ) * col1 * - col1 AS col0 FROM tab0
----
178296
329350
744307
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7096
SELECT ALL - CAST( + col2 AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-7096
SELECT ALL - CAST ( + col2 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT 98 + 81 FROM tab2 AS cor0
----
179
179
179
query I rowsort
SELECT DISTINCT - + 26 AS col2 FROM tab1 AS cor0
----
-26
query I rowsort
SELECT ALL 1 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
query I rowsort
SELECT tab1.col2 * - 87 FROM tab1
----
-4698
-4959
-8352
query I rowsort
SELECT - tab0.col0 - 27 FROM tab0
----
-116
-51
-62
query I rowsort
SELECT ALL + 94 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT tab1.col0 + - 42 - col0 AS col0 FROM tab1
----
-42
-42
-42
query I rowsort
SELECT - 29 * 46 FROM tab2
----
-1334
-1334
-1334
query I rowsort
SELECT + col0 * cor0.col1 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT 33 + 78 FROM tab1 AS cor0
----
111
111
111
query I rowsort
SELECT + col0 * + col2 + + col1 + col1 FROM tab1
----
214
3668
7706
query I rowsort
SELECT col1 - + 78 * + col0 AS col0 FROM tab1 AS cor0
----
-208
-4982
-6227
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7109
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-7109
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + + col1 - + col0 * col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - 99 * col0 FROM tab0 AS cor0
----
-2376
-3465
-8811
query I rowsort
SELECT - + 36 * 71 FROM tab0 AS cor0
----
-2556
-2556
-2556
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 + col1 col1 FROM tab0
----
134
167
269
query I rowsort
SELECT - col0 * ( - tab2.col0 ) * + col1 + tab2.col2 FROM tab2
----
106135
1546
358982
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7115
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 80 * col2 col2 FROM tab0 AS cor0
----
-177
-2726
-6651
query I rowsort
SELECT DISTINCT + - col2 + + 88 AS col0 FROM tab0 AS cor0
----
55
6
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-7118
SELECT + - col1 DIV col2 + 7 + - col0 DIV col2 FROM tab1 AS cor0
----
6
7
7
skipif mysql # not compatible
query I rowsort label-7118
SELECT + - col1 / col2 + 7 + - col0 / col2 FROM tab1 AS cor0
----
6
7
7
query I rowsort
SELECT + - col1 * 52 + col1 AS col1 FROM tab1 AS cor0
----
-1326
-510
-663
query I rowsort
SELECT ALL + tab1.col1 + 88 + + 51 AS col0 FROM tab1
----
149
152
165
query I rowsort
SELECT - col1 * col0 * + 3 FROM tab0
----
-10185
-24297
-6192
query I rowsort
SELECT col1 + 28 FROM tab2
----
45
59
87
query I rowsort
SELECT cor0.col0 * + cor0.col2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c
query I rowsort
SELECT ALL + col0 + 59 * - col0 FROM tab1 AS cor0
----
-174
-3712
-4640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + 17 col2 FROM tab2 AS cor0
----
1003
289
527
query I rowsort
SELECT - col1 + + cor0.col2 + col1 * - col0 FROM tab0 AS cor0
----
-2117
-3491
-8108
query I rowsort
SELECT ALL + 54 AS col1 FROM tab0 AS cor0
----
54
54
54
query I rowsort
SELECT DISTINCT - + ( cor0.col2 ) + - col2 * col2 + + 13 FROM tab1 AS cor0
----
-2957
-3293
-9299
onlyif mysql # use DIV operator for integer division
query I rowsort label-7129
SELECT ALL + + col1 DIV col0 AS col2 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL + + col1 / col0 AS col2 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT - 81 + + 34 + col2 AS col0 FROM tab0 AS cor0
----
-14
-46
35
query I rowsort
SELECT ALL + + ( - col1 ) * - col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-7132
SELECT DISTINCT - - col0 DIV 52 AS col1 FROM tab0 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-7132
SELECT DISTINCT - - col0 / 52 AS col1 FROM tab0 cor0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7133
SELECT - col1 DIV col1 + + col1 + + col1 col2 FROM tab1 cor0
----
19
25
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7133
SELECT - col1 / col1 + + col1 + + col1 col2 FROM tab1 cor0
----
19
25
51
query I rowsort
SELECT DISTINCT + - col0 * col1 FROM tab2 cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7135
SELECT CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7135
SELECT CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7136
SELECT DISTINCT - col0 + col2 DIV 96 AS col2 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-7136
SELECT DISTINCT - col0 + col2 / 96 AS col2 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT - + col1 + - 70 FROM tab1 AS cor0
----
-80
-83
-96
query I rowsort
SELECT ALL 61 + - cor0.col0 FROM tab0 AS cor0
----
-28
26
37
query I rowsort
SELECT DISTINCT + 36 + col0 * cor0.col0 FROM tab0 AS cor0
----
1261
612
7957
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - col1 col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - - col0 + - cor0.col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT col0 * col1 - + ( - col2 ) FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL col0 + + col2 AS col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7144
SELECT + cor0.col1 + + cor0.col2 DIV + ( - col0 ) AS col2 FROM tab1 AS cor0
----
10
12
8
skipif mysql # not compatible
query I rowsort label-7144
SELECT + cor0.col1 + + cor0.col2 / + ( - col0 ) AS col2 FROM tab1 AS cor0
----
10
12
8
query I rowsort
SELECT DISTINCT + - col0 * - col1 + + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + + 80 FROM tab1 AS cor0
----
80
80
80
query I rowsort
SELECT ( col1 ) - + 72 FROM tab0 AS cor0
----
14
19
25
query I rowsort
SELECT + - 57 + col1 * + col1 AS col0 FROM tab1 AS cor0
----
112
43
619
query I rowsort
SELECT DISTINCT - cor0.col0 + col0 AS col0 FROM tab0 cor0
----
0
query I rowsort
SELECT + ( + col0 ) + col2 FROM tab2 cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7151
SELECT ALL cor0.col2 DIV col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL cor0.col2 / col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT ALL + - 20 * col0 FROM tab1 AS cor0
----
-1280
-1600
-60
query I rowsort
SELECT DISTINCT - col1 * col1 - ( ( - col0 ) ) AS col1 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT DISTINCT - tab2.col2 + - col2 * - 50 AS col1 FROM tab2
----
1274
1323
1862
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7155
SELECT col2 + + col0 + + CAST( col0 AS SIGNED ) * + tab0.col0 FROM tab0
----
1261
633
8092
skipif mysql # not compatible
query I rowsort label-7155
SELECT col2 + + col0 + + CAST ( col0 AS INTEGER ) * + tab0.col0 FROM tab0
----
1261
633
8092
query I rowsort
SELECT + ( + tab0.col2 ) + - col1 + tab0.col2 FROM tab0
----
-20
-95
73
query I rowsort
SELECT DISTINCT 20 * + tab0.col0 + col1 AS col2 FROM tab0
----
1871
566
797
query I rowsort
SELECT - 76 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
query I rowsort
SELECT + - col2 - + 60 FROM tab2 AS cor0
----
-86
-87
-98
query I rowsort
SELECT - col0 + - 60 - + col1 * col0 FROM tab0 AS cor0
----
-2148
-3490
-8248
query I rowsort
SELECT col1 + 60 * - col1 AS col0 FROM tab0 AS cor0
----
-5074
-5369
-5723
query I rowsort
SELECT 59 AS col2 FROM tab0
----
59
59
59
query I rowsort
SELECT col0 + - tab0.col1 AS col0 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + ( 51 ) + + cor0.col2 FROM tab0, tab1 AS cor0
----
105
108
147
query I rowsort
SELECT - cor0.col2 + 63 FROM tab0, tab0 AS cor0
----
9 values hashing to c526fd09f17e1f500877f5ebe067c973
query I rowsort
SELECT ALL col0 * - 26 FROM tab2 AS cor0
----
-182
-2028
-2054
query I rowsort
SELECT ALL col1 * col2 - ( col0 ) AS col0 FROM tab0 cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT 92 FROM tab2, tab2 AS cor0
----
92
query I rowsort
SELECT col1 + ( + 91 * - col0 ) AS col2 FROM tab1 AS cor0
----
-247
-5814
-7267
query I rowsort
SELECT DISTINCT + + col0 * col1 + - 31 * - col2 AS col0 FROM tab2 AS cor0
----
1054
2521
5408
query I rowsort
SELECT DISTINCT col0 + col2 + - col0 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL 41 * - col1 FROM tab0
----
-3526
-3731
-3977
query I rowsort
SELECT ALL + - 16 * ( - col2 ) AS col2 FROM tab1 AS cor0
----
1536
864
912
onlyif mysql # use DIV operator for integer division
query I rowsort label-7174
SELECT ALL + + ( - col2 ) DIV col1 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-7174
SELECT ALL + + ( - col2 ) / col1 FROM tab1 cor0
----
-2
-5
-7
query I rowsort
SELECT DISTINCT ( 81 ) * - col0 + ( - col1 ) FROM tab0 cor0
----
-2030
-2932
-7300
query I rowsort
SELECT + 19 * col0 FROM tab0 AS cor0
----
1691
456
665
query I rowsort
SELECT col0 * - cor0.col1 * cor0.col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col1 ) col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - + col2 * - col2 + cor0.col1 FROM tab2 AS cor0
----
1461
735
760
skipif mysql # not compatible
query I rowsort
SELECT ALL - 15 + - col0 + CAST ( + col1 AS REAL ) FROM tab2 AS cor0
----
-34
-77
9
query I rowsort
SELECT DISTINCT + col0 * - col2 + + 6 FROM tab1 cor0
----
-156
-3642
-7674
query I rowsort
SELECT DISTINCT - cor0.col2 - col0 * + ( col1 ) AS col1 FROM tab1 cor0
----
-1136
-132
-697
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( + col1 )
----
query I rowsort
SELECT + tab2.col0 * col1 + - col1 FROM tab2
----
1326
186
4543
query I rowsort
SELECT tab1.col1 AS col0 FROM tab1 WHERE NULL <= col2 * tab1.col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 col0 FROM tab2
----
55
58
85
query I rowsort
SELECT + tab1.col2 * col1 + col1 * + tab1.col1 FROM tab1
----
1417
2080
670
query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) IN ( + col0 / - col1 + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7189
SELECT col0 * col1 DIV - col1 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-7189
SELECT col0 * col1 / - col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT - col2 * - col1 * - tab2.col2 AS col0 FROM tab2
----
-22599
-24548
-39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 * + col1 + + col0 col0 FROM tab2
----
22910
271596
6734
query I rowsort
SELECT - col1 * col2 * + col1 + col2 / + col0 FROM tab0 WHERE - col0 IN ( + col1 )
----
query I rowsort
SELECT ALL - col1 + + col1 * tab0.col0 * col0 AS col1 FROM tab0
----
118728
49450
720720
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 - col1
----
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 * - col2 ) < + col1 / col1
----
query I rowsort
SELECT ALL + tab2.col0 + col0 FROM tab2
----
14
156
158
skipif mysql # not compatible
query I rowsort
SELECT ALL - 33 + col0 * + CAST ( - col0 AS REAL ) AS col1 FROM tab2
----
-6117
-6274
-82
query I rowsort
SELECT - col2 * col0 - 23 AS col1 FROM tab1
----
-185
-3671
-7703
query I rowsort
SELECT col2 * cor0.col1 - + col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT tab2.col0 * col1 + + col2 AS col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT col2 + col2 * + tab1.col2 AS col0 FROM tab1
----
2970
3306
9312
query I rowsort
SELECT - cor0.col0 - col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT + col0 + col1 * - cor0.col2 * - col2 FROM tab0 AS cor0
----
132
611973
93678
query I rowsort
SELECT DISTINCT + cor0.col0 * + cor0.col0 FROM tab1, tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT col2 * - col1 * + tab2.col0 + col2 FROM tab2 WHERE NOT NULL BETWEEN ( + col1 ) AND ( NULL )
----
query I rowsort
SELECT DISTINCT col0 * col1 FROM tab2 WHERE NULL IN ( + col1 * - col2 )
----
query I rowsort
SELECT DISTINCT tab2.col2 + + col0 * col2 AS col1 FROM tab2
----
2054
216
3040
query I rowsort
SELECT DISTINCT col0 + col1 + col1 FROM tab1
----
106
55
84
query I rowsort
SELECT ALL col0 + tab1.col1 + + tab1.col0 AS col1 FROM tab1
----
138
173
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-7210
SELECT ALL - col0 + col1 * col0 + tab0.col0 DIV col2 FROM tab0
----
2040
3395
8011
skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL - col0 + col1 * col0 + tab0.col0 / col2 FROM tab0
----
2040
3395
8011
query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE ( NULL ) <= ( - col0 )
----
query I rowsort
SELECT ALL col2 + + col1 + + col2 AS col2 FROM tab2
----
111
85
93
query I rowsort
SELECT DISTINCT tab1.col2 + + col2 + tab1.col1 FROM tab1
----
124
134
205
query I rowsort
SELECT ALL - tab0.col1 + - tab0.col1 + - col2 FROM tab0
----
-195
-205
-264
onlyif mysql # use DIV operator for integer division
query I rowsort label-7215
SELECT col2 DIV + col1 + + col2 FROM tab2
----
26
27
40
skipif mysql # not compatible
query I rowsort label-7215
SELECT col2 / + col1 + + col2 FROM tab2
----
26
27
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-7216
SELECT DISTINCT - col1 + + col0 DIV - col1 FROM tab2
----
-21
-31
-60
skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT - col1 + + col0 / - col1 FROM tab2
----
-21
-31
-60
query I rowsort
SELECT + col1 * col1 - - col1 FROM tab1
----
110
182
702
query I rowsort
SELECT DISTINCT tab0.col2 * col2 / + col1 FROM tab0 WHERE NOT NULL >= col0
----
query I rowsort
SELECT ALL col0 * col1 + tab2.col1 * col1 FROM tab2
----
1178
1632
8083
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * + tab2.col1 col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL - col1 + - col2 * - col0 AS col2 FROM tab2
----
158
1969
2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 * col0 col2 FROM tab2 WHERE col1 / col0 + + col0 * col1 > NULL
----
query I rowsort
SELECT - col0 * + col2 * col2 AS col2 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT col0 * - col1 + tab1.col0 * - col1 FROM tab1
----
-1280
-156
-2080
query I rowsort
SELECT + col1 * - col2 + + col1 * + col0 FROM tab2
----
-620
3068
697
query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE col1 + col2 / col0 <= ( NULL )
----
query I rowsort
SELECT col2 * + col0 * - col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ALL + 70 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT - - ( + ( cor0.col0 ) ) * - col1 - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * - col0 * + col1 + col2 + + col0 col0 FROM tab2 AS cor0
----
151970
44436
7195
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col1 AS REAL ) + - col0 AS col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT - col0 - + cor0.col2 * col2 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT ALL cor1.col2 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - 83 + + cor2.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 cor2
----
-48
-59
6
query I rowsort
SELECT DISTINCT 88 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
166
167
95
query I rowsort
SELECT 35 - + cor0.col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2029
-3360
-8064
query I rowsort
SELECT ALL + col2 + 45 FROM tab0 AS cor0
----
127
46
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7238
SELECT ALL + 0 * col0 + + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL + 0 * col0 + + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * col1 * + 35 + col1 * - col2 FROM tab0 AS cor0
----
118728
276003
69402
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7240
SELECT - cor0.col1 * - cor0.col1 + CAST( NULL AS DECIMAL ) 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-7240
SELECT - cor0.col1 * - cor0.col1 + CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 33 AS col0 FROM tab2
----
-33
-33
-33
query I rowsort
SELECT 15 + col2 + + 0 * + 69 * col1 AS col1 FROM tab0 AS cor0
----
16
48
97
query I rowsort
SELECT DISTINCT - 68 + col1 FROM tab0 AS cor0
----
18
23
29
query I rowsort
SELECT DISTINCT - 58 + col1 + - ( + 4 ) FROM tab2 AS cor0
----
-3
-31
-45
query I rowsort
SELECT ALL + 61 AS col2 FROM tab2 AS cor0
----
61
61
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - col2 col0 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7247
SELECT + 88 DIV ( col1 * + 21 + col1 ) AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7247
SELECT + 88 / ( col1 * + 21 + col1 ) AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * - 85 FROM tab2
----
-2210
-2295
-3230
query I rowsort
SELECT DISTINCT col1 * 93 FROM tab0 AS cor0
----
7998
8463
9021
query I rowsort
SELECT DISTINCT - - col2 * col1 + + 98 + col1 AS col2 FROM tab1 AS cor0
----
1359
1528
678
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7251
SELECT ALL - col0 * CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 34 * - tab2.col2 FROM tab2
----
-1292
-884
-918
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to a5677c50b23f70287df35c2388a1c9bf
query I rowsort
SELECT - + col1 + ( + col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 23 + col0 * tab1.col0 AS col0 FROM tab1
----
32
4119
6423
query I rowsort
SELECT 30 + - col1 FROM tab1
----
17
20
4
query I rowsort
SELECT ALL - 71 + + 97 FROM tab0
----
26
26
26
query I rowsort
SELECT 4 * col1 + col2 FROM tab1
----
148
158
97
query I rowsort
SELECT + ( - 60 ) - - cor0.col2 * + col1 AS col0 FROM tab0 AS cor0
----
2778
37
7402
query I rowsort
SELECT DISTINCT + + ( + 18 ) * + col2 FROM tab1 AS cor0
----
1026
1728
972
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 70 col0 FROM tab0 AS cor0
----
-2310
-5740
-70
query I rowsort
SELECT ALL + 38 + tab0.col2 * + col1 FROM tab0
----
135
2876
7500
query I rowsort
SELECT + col2 + col0 * col2 + col2 FROM tab0
----
37
7462
858
query I rowsort
SELECT ALL - 37 AS col1 FROM tab1 AS cor0
----
-37
-37
-37
query I rowsort
SELECT ALL - col1 - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT + col2 * + col2 + col2 * col1 AS col2 FROM tab1 AS cor0
----
10464
3819
4320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + cor0.col2 col1 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT + col2 * + col0 * col2 + col0 FROM tab2 AS cor0
----
114155
5110
52806
query I rowsort
SELECT DISTINCT + - 74 * + col1 FROM tab1 cor0
----
-1924
-740
-962
query I rowsort
SELECT col2 * col1 * - col0 + - col2 * cor0.col1 FROM tab1 AS cor0
----
-101088
-37050
-5616
query I rowsort
SELECT ALL 76 * col1 AS col1 FROM tab2 AS cor0
----
1292
2356
4484
query I rowsort
SELECT - col1 - + col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT + + cor0.col1 * - col2 * cor0.col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT 54 * 9 - - col0 AS col2 FROM tab2
----
493
564
565
query I rowsort
SELECT + tab1.col2 * col2 - tab1.col2 * - tab1.col2 FROM tab1
----
18432
5832
6498
onlyif mysql # use DIV operator for integer division
query I rowsort label-7276
SELECT ALL - 12 DIV + col0 - + col1 FROM tab1 cor0
----
-10
-13
-30
skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL - 12 / + col0 - + col1 FROM tab1 cor0
----
-10
-13
-30
query I rowsort
SELECT DISTINCT 12 * + col0 AS col1 FROM tab0 AS cor0
----
1068
288
420
query I rowsort
SELECT ALL + ( + cor0.col1 ) - col2 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT + 98 * col1 FROM tab0 AS cor0
----
8428
8918
9506
query I rowsort
SELECT ALL - 69 + + col0 * - col2 FROM tab1 cor0
----
-231
-3717
-7749
onlyif mysql # use DIV operator for integer division
query I rowsort label-7281
SELECT DISTINCT - col1 * col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
-15
-468
-8
skipif mysql # not compatible
query I rowsort label-7281
SELECT DISTINCT - col1 * col2 / + col0 AS col1 FROM tab1 AS cor0
----
-15
-468
-8
query I rowsort
SELECT ALL - col2 + - 6 AS col1 FROM tab0 AS cor0
----
-39
-7
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-7283
SELECT ALL + 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-7283
SELECT ALL + col1 / col2 col1 FROM tab0 AS cor0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( - col2 * - col1 ) col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL + col1 + - 23 * - 93 FROM tab2 AS cor0
----
2156
2170
2198
query I rowsort
SELECT DISTINCT - cor0.col1 * 57 + col2 FROM tab2 AS cor0
----
-1740
-3337
-931
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7287
SELECT - col2 + - CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-7287
SELECT - col2 + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT + col1 * - 52 AS col2 FROM tab1 AS cor0
----
-1352
-520
-676
query I rowsort
SELECT DISTINCT cor0.col2 * col0 + col0 + col1 * col0 * - col1 FROM tab0 AS cor0
----
-176688
-329245
-729622
query I rowsort
SELECT col2 * + 28 AS col2 FROM tab0 AS cor0
----
2296
28
924
query I rowsort
SELECT - col2 * + ( 1 ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT col0 + 28 * 28 * - col0 AS col1 FROM tab0 AS cor0
----
-18792
-27405
-69687
onlyif mysql # use DIV operator for integer division
query I rowsort label-7293
SELECT ALL - - col1 DIV col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL - - col1 / col0 FROM tab1 AS cor0
----
0
0
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7294
SELECT ALL CAST( NULL AS DECIMAL ) + - ( cor0.col2 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL CAST ( NULL AS REAL ) + - ( cor0.col2 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 * cor0.col0 col1 FROM tab1 AS cor0
----
234
4992
6240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - ( - col0 ) ) col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - col0 * 48 AS col1 FROM tab0 AS cor0
----
-1152
-1680
-4272
query I rowsort
SELECT ALL + 73 + 62 * - col1 FROM tab2 AS cor0
----
-1849
-3585
-981
query I rowsort
SELECT DISTINCT + cor0.col1 + col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT - + cor0.col0 * + col1 * + cor0.col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL + col1 + - col0 * + col2 FROM tab1 cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT + col0 * col2 + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL cor0.col2 * + col2 + + col0 + cor0.col2 FROM tab0 AS cor0
----
1146
37
6895
query I rowsort
SELECT DISTINCT - - col2 * - cor0.col1 + - col0 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT - col2 + - col1 * col2 * - tab1.col2 AS col0 FROM tab1
----
119712
32433
75762
query I rowsort
SELECT - col0 + - tab0.col2 AS col2 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 + + cor0.col1 FROM tab0 cor0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT + col1 * col1 + col0 AS col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT + col1 + - col2 * - col2 AS col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT col1 + - col0 * - col0 * cor0.col2 FROM tab1 AS cor0
----
233482
512
614413
query I rowsort
SELECT ALL col2 + col0 * col0 FROM tab2
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-7313
SELECT DISTINCT - col0 DIV col2 + - col2 FROM tab0
----
-33
-36
-83
skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT - col0 / col2 + - col2 FROM tab0
----
-33
-36
-83
query I rowsort
SELECT DISTINCT + col1 + tab0.col2 * col1 FROM tab0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * - col0 col1 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT - tab2.col1 * tab2.col0 AS col0 FROM tab2
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 * tab1.col0 + + col0 col0 FROM tab1 WHERE NOT NULL < NULL AND ( NULL ) NOT IN ( + tab1.col1 )
----
query I rowsort
SELECT ALL + col2 * + col1 + - col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT cor0.col2 * 5 + - ( - cor0.col0 + - 5 ) AS col0 FROM tab2 AS cor0
----
147
213
274
query I rowsort
SELECT + col2 + ( + col0 + + cor0.col2 ) * 9 AS col0 FROM tab0 AS cor0
----
1621
325
546
query I rowsort
SELECT + col0 * + col0 + - col2 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT + col0 - + 1 AS col1 FROM tab0 AS cor0
----
23
34
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-7323
SELECT + col1 + - cor0.col2 * 30 + col2 * cor0.col2 DIV ( col0 ) AS col1 FROM tab0 AS cor0
----
-2294
-859
67
skipif mysql # not compatible
query I rowsort label-7323
SELECT + col1 + - cor0.col2 * 30 + col2 * cor0.col2 / ( col0 ) AS col1 FROM tab0 AS cor0
----
-2294
-859
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7324
SELECT DISTINCT - + col1 + CAST( ( col2 ) AS SIGNED ) * col2 + col0 * col2 FROM tab1 AS cor0
----
16883
3052
6887
skipif mysql # not compatible
query I rowsort label-7324
SELECT DISTINCT - + col1 + CAST ( ( col2 ) AS INTEGER ) * col2 + col0 * col2 FROM tab1 AS cor0
----
16883
3052
6887
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7325
SELECT ALL ( col1 ) + - CAST( NULL AS DECIMAL ) * + col0 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL ( col1 ) + - CAST ( NULL AS REAL ) * + col0 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * col1 + - tab1.col1 AS col0 FROM tab1
----
1235
1378
560
query I rowsort
SELECT ALL - col0 * 88 FROM tab1 AS cor0
----
-264
-5632
-7040
query I rowsort
SELECT - tab2.col0 * - 64 * col0 AS col0 FROM tab2
----
3136
389376
399424
query I rowsort
SELECT DISTINCT ( + tab0.col0 ) FROM tab0, tab1 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col1 FROM tab0
----
54
54
54
query I rowsort
SELECT ALL 20 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to 8550664862df5be7a3d3f6037537d2d8
query I rowsort
SELECT + 96 * - col1 + + 14 FROM tab2 AS cor0
----
-1618
-2962
-5650
query I rowsort
SELECT DISTINCT tab0.col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
24
35
89
query I rowsort
SELECT DISTINCT + tab1.col1 * + 44 FROM tab0, tab1 cor0 CROSS JOIN tab1
----
1144
440
572
query I rowsort
SELECT DISTINCT tab0.col0 * + col2 AS col2 FROM tab0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7336
SELECT col0 * + col2 * + CAST( col2 AS SIGNED ) FROM tab0
----
26136
35
598436
skipif mysql # not compatible
query I rowsort label-7336
SELECT col0 * + col2 * + CAST ( col2 AS INTEGER ) FROM tab0
----
26136
35
598436
query I rowsort
SELECT 11 + col2 AS col2 FROM tab2
----
37
38
49
query I rowsort
SELECT + col2 - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL + 95 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT 21 * + tab0.col2 AS col2 FROM tab0
----
1722
21
693
query I rowsort
SELECT col1 * col0 * 5 FROM tab2
----
1085
23010
6715
query I rowsort
SELECT + 31 * cor0.col1 FROM tab2 AS cor0
----
1829
527
961
query I rowsort
SELECT ALL + + 26 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT - 69 + col0 * 53 * + col1 FROM tab1 AS cor0
----
33851
4065
55051
query I rowsort
SELECT 11 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT 72 AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-7348
SELECT ALL col0 * 96 DIV col1 + col0 AS col0 FROM tab2
----
204
28
525
skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL col0 * 96 / col1 + col0 AS col0 FROM tab2
----
204
28
525
query I rowsort
SELECT DISTINCT col0 * - ( 15 ) - col1 * + 57 AS col1 FROM tab2 AS cor0
----
-1872
-2154
-4533
onlyif mysql # use DIV operator for integer division
query I rowsort label-7350
SELECT ALL col0 DIV - col0 + col1 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL col0 / - col0 + col1 FROM tab2 AS cor0
----
16
30
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-7351
SELECT DISTINCT col0 + col0 + + col1 DIV + col0 AS col0 FROM tab1 cor0
----
128
14
160
skipif mysql # not compatible
query I rowsort label-7351
SELECT DISTINCT col0 + col0 + + col1 / + col0 AS col0 FROM tab1 cor0
----
128
14
160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 col2 FROM tab1, tab1 AS cor0
----
57
query I rowsort
SELECT - - col0 - ( col2 + col0 * col1 ) FROM tab0 AS cor0
----
-2073
-3361
-8092
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 - + col0 col1 FROM tab2 AS cor0
----
-14
-156
-158
onlyif mysql # use DIV operator for integer division
query I rowsort label-7355
SELECT + - cor0.col0 DIV - 27 + - col0 FROM tab0 AS cor0
----
-24
-34
-86
skipif mysql # not compatible
query I rowsort label-7355
SELECT + - cor0.col0 / - 27 + - col0 FROM tab0 AS cor0
----
-24
-34
-86
query I rowsort
SELECT ALL tab0.col1 * + col0 * tab0.col0 + + tab0.col2 AS col2 FROM tab0
----
118826
49569
720893
query I rowsort
SELECT - ( + ( + col1 ) ) - ( col2 ) AS col1 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT + col0 + col2 * col2 + + col0 * ( + col1 + - col1 ) AS col2 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT DISTINCT + 71 + + col1 AS col0 FROM tab2
----
102
130
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-7360
SELECT + cor0.col0 DIV 24 AS col0 FROM tab1 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-7360
SELECT + cor0.col0 / 24 AS col0 FROM tab1 AS cor0
----
0
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7361
SELECT + CAST( col0 AS SIGNED ) * col0 FROM tab1 AS cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-7361
SELECT + CAST ( col0 AS INTEGER ) * col0 FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 * col1 col1 FROM tab2 AS cor0
----
1360
2480
4720
query I rowsort
SELECT DISTINCT ( - col1 ) * 90 FROM tab2 AS cor0
----
-1530
-2790
-5310
onlyif mysql # use DIV operator for integer division
query I rowsort label-7364
SELECT + col1 + + col2 DIV 7 FROM tab2 AS cor0
----
22
34
62
skipif mysql # not compatible
query I rowsort label-7364
SELECT + col1 + + col2 / 7 FROM tab2 AS cor0
----
22
34
62
query I rowsort
SELECT ALL - - col1 - cor0.col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - + col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 34 * + cor0.col0 * col0 col0 FROM tab0 AS cor0
----
19584
269314
41650
query I rowsort
SELECT DISTINCT + + 35 AS col1 FROM tab2 AS cor0
----
35
query I rowsort
SELECT col1 + col1 * - ( - col2 ) * - col2 FROM tab1 AS cor0
----
-119795
-32480
-75790
query I rowsort
SELECT - ( + col0 ) - col1 AS col1 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT - 39 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e
query I rowsort
SELECT DISTINCT + ( 86 ) + + col1 AS col2 FROM tab1 AS cor0
----
112
96
99
query I rowsort
SELECT ALL - - col1 + col2 * col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT col1 + 63 * col2 AS col0 FROM tab1 AS cor0
----
3428
3601
6061
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 731e4a6549b312ba21c2e61ca9bede27
query I rowsort
SELECT - col1 + col1 * col0 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-7377
SELECT DISTINCT - + col2 + col0 DIV + col2 FROM tab0 AS cor0
----
-33
-81
34
skipif mysql # not compatible
query I rowsort label-7377
SELECT DISTINCT - + col2 + col0 / + col2 FROM tab0 AS cor0
----
-33
-81
34
query I rowsort
SELECT DISTINCT + - col2 + - col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT ( 89 ) FROM tab1, tab0 AS cor0
----
89
query I rowsort
SELECT - tab0.col0 * - col0 + col2 * col0 + col2 FROM tab0
----
1261
1401
15301
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7381
SELECT + CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7381
SELECT + CAST ( NULL AS INTEGER ) / col1 AS col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7382
SELECT + CAST( NULL AS SIGNED ) * - tab0.col2 col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7382
SELECT + CAST ( NULL AS INTEGER ) * - tab0.col2 col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 col1 FROM tab0
----
-2
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + cor0.col0 col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL col0 + - col0 * col2 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT ALL tab2.col0 * 32 FROM tab2
----
224
2496
2528
query I rowsort
SELECT ALL 78 * 14 FROM tab0
----
1092
1092
1092
onlyif mysql # use DIV operator for integer division
query I rowsort label-7388
SELECT DISTINCT - ( col1 ) DIV col2 AS col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-7388
SELECT DISTINCT - ( col1 ) / col2 AS col2 FROM tab1
----
0
query I rowsort
SELECT DISTINCT - col1 * - tab1.col1 * col0 + col0 + col1 * col1 FROM tab1
----
13769
2707
6564
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7390
SELECT ALL + col2 * CAST( - col1 AS SIGNED ) + + col0 col1 FROM tab2 AS cor0
----
-1456
-567
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL + col2 * CAST ( - col1 AS INTEGER ) + + col0 col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL + col2 * + col1 + - col1 * 46 AS col0 FROM tab2
----
-1180
-136
-589
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) - + col0 col2 FROM tab2
----
-19
-62
24
query I rowsort
SELECT + col1 * tab1.col1 FROM tab1
----
100
169
676
query I rowsort
SELECT DISTINCT - 83 AS col2 FROM tab0 AS cor0
----
-83
query I rowsort
SELECT - + 5 + + col0 AS col1 FROM tab2 AS cor0
----
2
73
74
query I rowsort
SELECT col1 * col1 + 68 AS col0 FROM tab2
----
1029
3549
357
onlyif mysql # use DIV operator for integer division
query I rowsort label-7397
SELECT ALL col2 DIV + col1 + - CAST( col2 * col1 AS SIGNED ) col2 FROM tab0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL col2 / + col1 + - CAST ( col2 * col1 AS INTEGER ) col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL col0 + + col2 * col1 AS col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT DISTINCT ( col0 ) + col0 AS col0 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL col0 * - 49 AS col2 FROM tab0 AS cor0
----
-1176
-1715
-4361
query I rowsort
SELECT ALL + + col0 * 19 FROM tab2 AS cor0
----
133
1482
1501
onlyif mysql # use DIV operator for integer division
query I rowsort label-7402
SELECT ALL - - cor0.col1 DIV + 23 AS col0 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL - - cor0.col1 / + 23 AS col0 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT ALL - + cor0.col0 * 92 + col1 FROM tab0 AS cor0
----
-2122
-3123
-8097
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7404
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) + 26 - + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) + 26 - + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + ( - col2 + + col0 ) FROM tab2 AS cor0
----
-47
26
3
query I rowsort
SELECT DISTINCT col2 * 94 FROM tab2 AS cor0
----
2444
2538
3572
query I rowsort
SELECT ALL - + col1 + - ( 66 ) AS col0 FROM tab2 cor0
----
-125
-83
-97
query I rowsort
SELECT DISTINCT col0 * col0 - col0 * - col2 AS col0 FROM tab0 AS cor0
----
1260
1368
15219
query I rowsort
SELECT ALL - col0 + + ( - col0 ) * cor0.col1 + ( - col0 + + col2 ) AS col2 FROM tab2 AS cor0
----
-1463
-204
-4732
query I rowsort
SELECT + + col1 + col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + + cor0.col2 * - 98 + + col1 FROM tab0 AS cor0
----
-1
-3148
-7945
onlyif mysql # use DIV operator for integer division
query I rowsort label-7412
SELECT ALL - col1 DIV - col1 + + 29 FROM tab2 AS cor0
----
30
30
30
skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL - col1 / - col1 + + 29 FROM tab2 AS cor0
----
30
30
30
query I rowsort
SELECT DISTINCT col0 * col2 * col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT col0 * + ( - col0 * col1 ) AS col1 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT ALL + - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + ( - 83 ) AS col1 FROM tab1 AS cor0
----
-83
-83
-83
query I rowsort
SELECT + col0 + - col0 * + col0 FROM tab0 AS cor0
----
-1190
-552
-7832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7418
SELECT + CAST( col2 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-7418
SELECT + CAST ( col2 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT tab2.col2 + - col1 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT cor0.col1 * 38 + - col0 AS col0 FROM tab2 cor0
----
1171
2164
567
query I rowsort
SELECT + cor0.col2 + col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT col0 + - col0 + + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + - col1 * cor0.col1 * 6 FROM tab2 AS cor0
----
-1734
-20886
-5766
query I rowsort
SELECT - + col2 * col2 * col2 + + 78 FROM tab2 AS cor0
----
-17498
-19605
-54794
query I rowsort
SELECT ALL + col0 * cor0.col2 + + col1 AS col1 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT 54 + + col2 * 94 AS col1 FROM tab0 AS cor0
----
148
3156
7762
query I rowsort
SELECT ALL - 13 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
onlyif mysql # use DIV operator for integer division
query I rowsort label-7428
SELECT ALL 94 DIV + tab1.col2 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL 94 / + tab1.col2 FROM tab1
----
0
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7429
SELECT DISTINCT + - col1 + col2 * col2 DIV - 3 FROM tab1 cor0
----
-1093
-3085
-998
skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT + - col1 + col2 * col2 / - 3 FROM tab1 cor0
----
-1093
-3085
-998
onlyif mysql # use DIV operator for integer division
query I rowsort label-7430
SELECT - 24 DIV - col0 - - ( - cor0.col1 + + col1 ) AS col1 FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-7430
SELECT - 24 / - col0 - - ( - cor0.col1 + + col1 ) AS col1 FROM tab1 cor0
----
0
0
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7431
SELECT + 95 DIV + col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-7431
SELECT + 95 / + col2 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT DISTINCT - - ( cor0.col1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT col1 * - col2 + cor0.col1 + 93 * col0 AS col1 FROM tab1 AS cor0
----
-1099
5392
6205
query I rowsort
SELECT + - 47 - col2 AS col1 FROM tab1 AS cor0
----
-101
-104
-143
query I rowsort
SELECT + 14 + + col1 AS col2 FROM tab0 AS cor0
----
100
105
111
query I rowsort
SELECT - 14 + - col2 + 95 * + col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
15945
64152
9429
query I rowsort
SELECT col1 * + col0 + tab1.col1 AS col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT ALL - 96 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539
onlyif mysql # use DIV operator for integer division
query I rowsort label-7439
SELECT ( 3 ) DIV col1 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7439
SELECT ( 3 ) / col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + 48 FROM tab2 cor0
----
48
48
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7441
SELECT CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7441
SELECT CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7442
SELECT ALL + 18 * + col0 + CAST( NULL AS SIGNED ) * - col2 * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL + 18 * + col0 + CAST ( NULL AS INTEGER ) * - col2 * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7443
SELECT + col1 * col0 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7443
SELECT + col1 * 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 + 68 * + col0 col0 FROM tab0 AS cor0
----
1632
2380
6052
onlyif mysql # use DIV operator for integer division
query I rowsort label-7445
SELECT - col1 - + col1 DIV + col0 FROM tab1 AS cor0
----
-10
-13
-34
skipif mysql # not compatible
query I rowsort label-7445
SELECT - col1 - + col1 / + col0 FROM tab1 AS cor0
----
-10
-13
-34
query I rowsort
SELECT 35 * col2 AS col0 FROM tab1
----
1890
1995
3360
query I rowsort
SELECT - tab1.col2 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0 CROSS JOIN tab0, tab0 cor1
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 * + col1 col2 FROM tab1
----
1040
2080
800
query I rowsort
SELECT ALL cor2.col1 * cor2.col2 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 3ae35e43650269e50e0523670632a909
onlyif mysql # use DIV operator for integer division
query I rowsort label-7451
SELECT col0 * - cor0.col0 DIV col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-7451
SELECT col0 * - cor0.col0 / col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab2.col2 col0 FROM tab2
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23
query I rowsort
SELECT - 1 FROM tab0, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
1
33
82
query I rowsort
SELECT ALL - 69 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7457
SELECT - cor1.col0 DIV + 10 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 864845a6744772ea2f087d7f24d6ac80
skipif mysql # not compatible
query I rowsort label-7457
SELECT - cor1.col0 / + 10 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 864845a6744772ea2f087d7f24d6ac80
query I rowsort
SELECT DISTINCT + ( - col2 ) * col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7459
SELECT CAST( + 16 AS SIGNED ) * col1 FROM tab2 AS cor0
----
272
496
944
skipif mysql # not compatible
query I rowsort label-7459
SELECT CAST ( + 16 AS INTEGER ) * col1 FROM tab2 AS cor0
----
272
496
944
query I rowsort
SELECT + cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + tab1.col2 * ( ( col0 ) ) * - 36 FROM tab1
----
-131328
-276480
-5832
query I rowsort
SELECT 0 + col1 AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT 8 * - col2 + - col1 AS col2 FROM tab1
----
-458
-466
-781
query I rowsort
SELECT DISTINCT - ( + col1 ) AS col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT col2 + - 36 * + col1 AS col1 FROM tab2
----
-1089
-2098
-574
query I rowsort
SELECT - 39 + + 6 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948
query I rowsort
SELECT ALL - col0 * 38 + - col1 FROM tab2 AS cor0
----
-297
-3019
-3023
query I rowsort
SELECT ALL - cor0.col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7469
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + 41 - col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT CAST ( NULL AS REAL ) * + 41 - col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - 89 + - col1 - - ( col2 + col2 ) AS col2 FROM tab0
----
-109
-16
-184
query I rowsort
SELECT ALL - 64 - tab0.col0 FROM tab0
----
-153
-88
-99
query I rowsort
SELECT DISTINCT - tab0.col2 * col1 - tab0.col2 * + col2 AS col1 FROM tab0
----
-14186
-3927
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7473
SELECT DISTINCT tab0.col2 DIV - col2 AS col2 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-7473
SELECT DISTINCT tab0.col2 / - col2 AS col2 FROM tab0
----
-1
query I rowsort
SELECT ( col2 ) * col2 AS col1 FROM tab2
----
1444
676
729
query I rowsort
SELECT - - col1 - - col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + + col2 * col2 * col0 AS col2 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT + + col2 * - col2 + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-2787
-5278
-946
onlyif mysql # use DIV operator for integer division
query I rowsort label-7478
SELECT - cor0.col1 * col0 + + 9 * col0 + - col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
-154
-3899
-628
skipif mysql # not compatible
query I rowsort label-7478
SELECT - cor0.col1 * col0 + + 9 * col0 + - col0 / - col1 AS col1 FROM tab2 AS cor0
----
-154
-3899
-628
query I rowsort
SELECT + + col0 * 55 FROM tab2 AS cor0
----
385
4290
4345
query I rowsort
SELECT - - col2 * - col1 + - col0 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT ALL - col0 - + col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL - col2 - + ( - cor0.col2 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col0 * col0 * - col0 FROM tab0 cor0
----
-13824
-42875
-704969
query I rowsort
SELECT 60 + col1 FROM tab0
----
146
151
157
query I rowsort
SELECT - col0 + 11 FROM tab1
----
-53
-69
8
query I rowsort
SELECT ( 44 ) * - col2 FROM tab0
----
-1452
-3608
-44
query I rowsort
SELECT ALL + - 18 FROM tab2 AS cor0
----
-18
-18
-18
query I rowsort
SELECT col1 + 54 * col0 FROM tab1 cor0
----
188
3466
4333
query I rowsort
SELECT col1 * col1 + - tab1.col1 * + col2 FROM tab1
----
-1079
-470
-728
query I rowsort
SELECT - 88 * + col0 + col1 AS col2 FROM tab1
----
-238
-5622
-7027
onlyif mysql # use DIV operator for integer division
query I rowsort label-7491
SELECT DISTINCT - col2 DIV + tab1.col2 AS col0 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT - col2 / + tab1.col2 AS col0 FROM tab1
----
-1
query I rowsort
SELECT DISTINCT 69 * cor0.col1 FROM tab2 cor0
----
1173
2139
4071
query I rowsort
SELECT ALL + - cor0.col0 * 88 FROM tab0 AS cor0
----
-2112
-3080
-7832
query I rowsort
SELECT - 56 * + col0 - + col2 * 58 * col2 FROM tab1 AS cor0
----
-169296
-192026
-539008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 + col0 col0 FROM tab2 AS cor0
----
-3
68
69
query I rowsort
SELECT col0 + + 65 AS col1 FROM tab0
----
100
154
89
query I rowsort
SELECT - col1 + tab2.col1 * - col1 AS col1 FROM tab2
----
-306
-3540
-992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7498
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 50 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 50 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - 57 * + col1 - - col2 FROM tab0 AS cor0
----
-4869
-5105
-5528
query I rowsort
SELECT ALL col2 * 79 + - cor0.col1 FROM tab1 AS cor0
----
4240
4493
7571
query I rowsort
SELECT DISTINCT + ( - 95 ) * col1 AS col0 FROM tab0 AS cor0
----
-8170
-8645
-9215
query I rowsort
SELECT col0 + col1 * + 43 + col2 FROM tab0
----
3755
4084
4207
query I rowsort
SELECT - col1 * 90 AS col1 FROM tab0
----
-7740
-8190
-8730
onlyif mysql # use DIV operator for integer division
query I rowsort label-7504
SELECT ALL col1 * tab0.col2 DIV + col0 - col1 DIV + ( col0 ) FROM tab0
----
0
115
82
skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL col1 * tab0.col2 / + col0 - col1 / + ( col0 ) FROM tab0
----
0
115
82
query I rowsort
SELECT - 46 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9
query I rowsort
SELECT + + col0 + + col2 * cor0.col0 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-7507
SELECT DISTINCT col1 DIV - col2 + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT col1 / - col2 + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - 21 * col2 + col0 AS col0 FROM tab0 AS cor0
----
-1633
-669
14
query I rowsort
SELECT ALL - 90 + - col1 AS col2 FROM tab2 AS cor0
----
-107
-121
-149
onlyif mysql # use DIV operator for integer division
query I rowsort label-7510
SELECT DISTINCT ( 32 ) DIV - cor0.col0 + - 44 FROM tab1 cor0
----
-44
-54
skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT ( 32 ) / - cor0.col0 + - 44 FROM tab1 cor0
----
-44
-54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7511
SELECT ALL + - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL + - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col2 + 95 AS col1 FROM tab2 AS cor0
----
121
122
133
query I rowsort
SELECT ALL - col1 + col0 + col2 AS col0 FROM tab2
----
100
3
45
query I rowsort
SELECT ALL - ( + 19 ) + col1 FROM tab2 AS cor0
----
-2
12
40
query I rowsort
SELECT DISTINCT + ( ( col0 ) ) * ( col0 ) FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT ALL + tab2.col0 + - ( - col0 ) + 25 AS col1 FROM tab2
----
181
183
39
query I rowsort
SELECT ALL 27 + ( - col0 ) * - ( 41 ) AS col2 FROM tab2
----
314
3225
3266
query I rowsort
SELECT ALL - 89 + + ( - col1 + - 83 ) * + col1 AS col0 FROM tab2
----
-1789
-3623
-8467
query I rowsort
SELECT - 61 * - 64 FROM tab2
----
3904
3904
3904
onlyif mysql # use DIV operator for integer division
query I rowsort label-7520
SELECT - col0 * col1 DIV col2 FROM tab1
----
-1
-10
-11
skipif mysql # not compatible
query I rowsort label-7520
SELECT - col0 * col1 / col2 FROM tab1
----
-1
-10
-11
onlyif mysql # use DIV operator for integer division
query I rowsort label-7521
SELECT + ( col2 ) DIV col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-7521
SELECT + ( col2 ) / col1 FROM tab1
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7522
SELECT + col1 DIV + 18 + + col0 AS col2 FROM tab1 AS cor0
----
4
64
80
skipif mysql # not compatible
query I rowsort label-7522
SELECT + col1 / + 18 + + col0 AS col2 FROM tab1 AS cor0
----
4
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7523
SELECT 21 DIV 79 AS col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7523
SELECT 21 / 79 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT + 68 FROM tab0, tab2 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7525
SELECT CAST( + 25 AS DECIMAL ) * + col0 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7525
SELECT CAST ( + 25 AS REAL ) * + col0 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col1 * - col1 + col1 * ( col2 ) FROM tab1 AS cor0
----
1079
470
728
query I rowsort
SELECT DISTINCT + col2 + cor0.col2 * - col0 * - col0 FROM tab0 AS cor0
----
1226
19041
649604
onlyif mysql # use DIV operator for integer division
query I rowsort label-7528
SELECT ALL - 25 DIV - col2 + - col0 FROM tab0 cor0
----
-10
-24
-89
skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL - 25 / - col2 + - col0 FROM tab0 cor0
----
-10
-24
-89
query I rowsort
SELECT DISTINCT + - 99 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-99
query I rowsort
SELECT col1 * + col0 * + col1 + + col1 AS col0 FROM tab0 AS cor0
----
177590
329412
737100
query I rowsort
SELECT + 61 + + col2 AS col2 FROM tab2 AS cor0
----
87
88
99
query I rowsort
SELECT + - col1 + + col2 * cor0.col0 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT col0 + 90 * + cor0.col0 * col1 AS col0 FROM tab0 cor0
----
185784
305585
728999
onlyif mysql # use DIV operator for integer division
query I rowsort label-7534
SELECT col2 DIV ( + col1 ) AS col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-7534
SELECT col2 / ( + col1 ) AS col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT + col0 * + ( - col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + + col2 * - 70 FROM tab1 cor0
----
-3780
-3990
-6720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7537
SELECT ALL + - col2 * CAST( NULL AS SIGNED ) * - col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL + - col2 * CAST ( NULL AS INTEGER ) * - col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * + 27 FROM tab2 AS cor0
----
1026
702
729
query I rowsort
SELECT DISTINCT - col0 * - 44 FROM tab0 AS cor0
----
1056
1540
3916
query I rowsort
SELECT - col1 * + ( col1 ) FROM tab2 AS cor0
----
-289
-3481
-961
query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NULL >= NULL
----
query I rowsort
SELECT - - 29 + col2 - col2 * col2 FROM tab1 AS cor0
----
-2833
-3163
-9091
query I rowsort
SELECT - 98 FROM tab1, tab1 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
query I rowsort
SELECT - + col1 * 42 AS col2 FROM tab1 AS cor0
----
-1092
-420
-546
query I rowsort
SELECT ALL + 22 + col0 * + col2 AS col2 FROM tab2 AS cor0
----
2050
211
3024
query I rowsort
SELECT col0 - - col2 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL + col0 + - col1 * col2 * - col2 FROM tab2
----
22606
24627
39962
onlyif mysql # use DIV operator for integer division
query I rowsort label-7548
SELECT DISTINCT - col1 DIV tab0.col2 - tab0.col2 col2 FROM tab0
----
-35
-83
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7548
SELECT DISTINCT - col1 / tab0.col2 - tab0.col2 col2 FROM tab0
----
-35
-83
-98
query I rowsort
SELECT col0 * + cor0.col1 * + col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT DISTINCT col0 * - col2 + col1 AS col0 FROM tab2
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-7551
SELECT DISTINCT col1 + - tab1.col1 DIV col0 AS col2 FROM tab1
----
10
13
18
skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT col1 + - tab1.col1 / col0 AS col2 FROM tab1
----
10
13
18
query I rowsort
SELECT + col0 - col2 AS col2 FROM tab0 WHERE ( col2 ) NOT BETWEEN + col0 * col2 AND col1
----
-9
34
7
query I rowsort
SELECT - tab0.col1 * tab0.col1 AS col0 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT + col1 + col2 * col1 AS col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT col1 FROM tab0 WHERE NOT col2 BETWEEN + col2 + col0 AND - col2
----
86
91
97
query I rowsort
SELECT DISTINCT tab0.col0 * - col0 + col2 AS col2 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT col0 + + tab1.col0 - col0 AS col0 FROM tab1
----
3
64
80
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 = ( NULL )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 ) = NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - col1 + col0 )
----
query I rowsort
SELECT DISTINCT col1 + col2 * + tab0.col2 FROM tab0
----
1175
6815
98
query I rowsort
SELECT + - col1 * - col1 * - col1 AS col1 FROM tab2 AS cor0
----
-205379
-29791
-4913
query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * - col2 + - col2 + col0 NOT IN ( - tab0.col2 / - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7564
SELECT ALL + tab2.col1 DIV + col0 AS col1 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL + tab2.col1 / + col0 AS col1 FROM tab2
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col1 * col1 * + col1 + - col0 * - col0 AS col2 FROM tab2 AS cor0
----
11154
211463
29840
query I rowsort
SELECT DISTINCT col1 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT col2 + + 19 AS col2 FROM tab1 AS cor0
----
115
73
76
query I rowsort
SELECT DISTINCT + col1 + 94 + 0 FROM tab1 AS cor0
----
104
107
120
query I rowsort
SELECT - cor0.col0 + + col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - + col2 + ( 85 + + col0 ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
13104
210
9479
query I rowsort
SELECT DISTINCT col0 + - ( + col2 ) * - col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-7573
SELECT cor0.col1 DIV col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7573
SELECT cor0.col1 / col1 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7574
SELECT + col1 * ( col1 ) DIV col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7574
SELECT + col1 * ( col1 ) / col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - + cor0.col0 * - 76 + ( + col2 ) AS col1 FROM tab1 AS cor0
----
282
4921
6176
onlyif mysql # use DIV operator for integer division
query I rowsort label-7576
SELECT col1 DIV + 38 + 87 + + col2 FROM tab2 AS cor0
----
114
114
125
skipif mysql # not compatible
query I rowsort label-7576
SELECT col1 / + 38 + 87 + + col2 FROM tab2 AS cor0
----
114
114
125
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 90 + - 25 col1 FROM tab1 AS cor0
----
4835
5105
8615
query I rowsort
SELECT DISTINCT - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT cor0.col1 * - col1 + + col2 + + col2 FROM tab0 AS cor0
----
-7330
-8117
-9407
query I rowsort
SELECT DISTINCT - col0 * 49 * + col1 FROM tab2 AS cor0
----
-10633
-225498
-65807
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) * - col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7582
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab2, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
NULL
skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab2, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
NULL
query I rowsort
SELECT ALL - 10 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e
query I rowsort
SELECT + col2 * 14 AS col0 FROM tab1
----
1344
756
798
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 1c1b1a313871216b88e662d7d3078b12
query I rowsort
SELECT col2 * - 11 AS col2 FROM tab1
----
-1056
-594
-627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7587
SELECT + col0 * - col0 - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7587
SELECT + col0 * - col0 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * col2 - col1 AS col0 FROM tab2 AS cor0
----
1427
617
698
onlyif mysql # use DIV operator for integer division
query I rowsort label-7589
SELECT DISTINCT 13 * - cor0.col2 - col1 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
-1067
-15
-432
skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT 13 * - cor0.col2 - col1 / cor0.col0 AS col1 FROM tab0 AS cor0
----
-1067
-15
-432
query I rowsort
SELECT ALL + col1 - col2 AS col0 FROM tab1 cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 * + col1 + col0 col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT - col0 * + col2 - col2 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT - col0 - + col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col0 * - col1 col2 FROM tab1
----
1136
132
697
query I rowsort
SELECT ALL col2 * col1 * + col1 + tab2.col0 FROM tab2
----
11061
25954
90584
query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT BETWEEN + col2 AND NULL
----
query I rowsort
SELECT ALL col0 + + col0 * + col0 FROM tab1
----
12
4160
6480
query I rowsort
SELECT DISTINCT - ( + col2 ) - + ( + col2 ) * + col0 AS col1 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT col1 + col0 * - 69 * + col1 + col2 AS col1 FROM tab2
----
-14915
-317453
-92612
query I rowsort
SELECT ALL + col0 + - col0 * tab0.col0 FROM tab0
----
-1190
-552
-7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col1 FROM tab0
----
3
3
3
query I rowsort
SELECT col2 + col0 * col0 * - col0 AS col0 FROM tab1
----
-262087
-511904
27
query I rowsort
SELECT DISTINCT col2 - col0 * col1 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT + col2 + cor0.col0 + ( + 85 * col1 ) FROM tab1 cor0
----
1281
2267
971
onlyif mysql # use DIV operator for integer division
query I rowsort label-7606
SELECT ALL cor0.col0 + + col2 DIV 77 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL cor0.col0 + + col2 / 77 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + - col0 - cor0.col1 * - ( cor0.col0 ) * - col0 AS col0 FROM tab2 AS cor0
----
-106176
-1526
-359034
query I rowsort
SELECT DISTINCT cor0.col1 * - col0 - col2 FROM tab1 AS cor0
----
-1136
-132
-697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7609
SELECT + col2 - - CAST( + 81 * + col1 + + col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
1432
2569
4864
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7609
SELECT + col2 - - CAST ( + 81 * + col1 + + col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
1432
2569
4864
query I rowsort
SELECT ALL col0 * ( col2 ) + + col0 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-7611
SELECT - + col0 * col0 DIV col2 - col1 * col0 AS col1 FROM tab0 cor0
----
-2081
-4620
-8195
skipif mysql # not compatible
query I rowsort label-7611
SELECT - + col0 * col0 / col2 - col1 * col0 AS col1 FROM tab0 cor0
----
-2081
-4620
-8195
query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 39 col1 FROM tab1 AS cor0
----
-36
25
41
query I rowsort
SELECT ALL - tab1.col0 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT DISTINCT + 0 * - col0 - - col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + 63 + + 13 AS col1 FROM tab0 AS cor0
----
76
76
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-7617
SELECT - col0 + + col2 DIV col1 AS col2 FROM tab2 AS cor0
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-7617
SELECT - col0 + + col2 / col1 AS col2 FROM tab2 AS cor0
----
-7
-77
-78
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query I rowsort
SELECT ( + 45 ) FROM tab0 AS cor0
----
45
45
45
query I rowsort
SELECT ALL - col1 * - cor0.col0 FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7621
SELECT ALL - cor0.col0 DIV - col0 + col2 AS col2 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL - cor0.col0 / - col0 + col2 AS col2 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT - 59 + + col2 * col2 AS col0 FROM tab0 cor0
----
-58
1030
6665
query I rowsort
SELECT DISTINCT - 98 * - col2 FROM tab2 AS cor0
----
2548
2646
3724
query I rowsort
SELECT - 96 * col0 AS col0 FROM tab0 cor0
----
-2304
-3360
-8544
query I rowsort
SELECT + cor0.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT + 81 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + 35 AS col0 FROM tab1 AS cor0
----
2951
3284
9251
query I rowsort
SELECT ALL col1 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-7629
SELECT DISTINCT cor0.col1 DIV - col0 AS col1 FROM tab2 cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT cor0.col1 / - col0 AS col1 FROM tab2 cor0
----
-4
0
query I rowsort
SELECT - - col1 * - col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT + col0 + 50 AS col2 FROM tab2 AS cor0
----
128
129
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col2 - - 41 col1 FROM tab1
----
34
57
92
query I rowsort
SELECT DISTINCT + col0 + - tab1.col0 - + col1 AS col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL + col1 * 70 AS col2 FROM tab2 AS cor0
----
1190
2170
4130
query I rowsort
SELECT + col0 * 18 - col0 AS col1 FROM tab0 cor0
----
1513
408
595
query I rowsort
SELECT + - col2 * 78 + + col1 FROM tab2 AS cor0
----
-1969
-2075
-2947
query I rowsort
SELECT + cor0.col2 * - 76 AS col1 FROM tab2 AS cor0
----
-1976
-2052
-2888
onlyif mysql # use DIV operator for integer division
query I rowsort label-7638
SELECT + 56 DIV col2 AS col2 FROM tab0
----
0
1
56
skipif mysql # not compatible
query I rowsort label-7638
SELECT + 56 / col2 AS col2 FROM tab0
----
0
1
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-7639
SELECT ALL - col2 DIV - col1 + - col2 * col0 AS col1 FROM tab1
----
-160
-3643
-7673
skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL - col2 / - col1 + - col2 * col0 AS col1 FROM tab1
----
-160
-3643
-7673
query I rowsort
SELECT ALL - col2 * - col1 + ( - tab2.col2 * - col1 ) + col0 AS col2 FROM tab2
----
1371
1681
3146
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7641
SELECT ALL col1 - col1 * - CAST( NULL AS SIGNED ) * + tab2.col2 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL col1 - col1 * - CAST ( NULL AS INTEGER ) * + tab2.col2 AS col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7642
SELECT DISTINCT - tab1.col1 DIV + col0 + col1 * - col1 + - tab1.col1 AS col2 FROM tab1
----
-110
-182
-710
skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT - tab1.col1 / + col0 + col1 * - col1 + - tab1.col1 AS col2 FROM tab1
----
-110
-182
-710
query I rowsort
SELECT - 33 + col0 + + col0 FROM tab0
----
145
15
37
query I rowsort
SELECT - col0 - - col2 * cor0.col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT + col1 - + col2 * - cor0.col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT - - col0 * col0 + col2 AS col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT + col0 * col0 * - col1 AS col2 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT - col1 * col2 - - col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL col2 + col0 * col0 + col0 * col1 AS col2 FROM tab0
----
16102
2673
4621
query I rowsort
SELECT col0 * + col0 * + tab2.col0 AS col0 FROM tab2
----
343
474552
493039
query I rowsort
SELECT ALL col1 - - col1 * tab1.col1 * col0 AS col0 FROM tab1 WHERE NOT - col0 * + col0 > NULL AND NOT NULL > + col0
----
query I rowsort
SELECT - col2 * - tab1.col1 AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + col0 + 91 AS col2 FROM tab0
----
115
126
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 * col1 col2 FROM tab0 cor0
----
2924
3094
3298
onlyif mysql # use DIV operator for integer division
query I rowsort label-7655
SELECT + tab1.col1 DIV - col1 + - col0 AS col0 FROM tab1
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-7655
SELECT + tab1.col1 / - col1 + - col0 AS col0 FROM tab1
----
-4
-65
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7656
SELECT CAST( - col1 + col1 AS SIGNED ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7656
SELECT CAST ( - col1 + col1 AS INTEGER ) FROM tab0
----
0
0
0
query I rowsort
SELECT + col2 * 68 FROM tab0
----
2244
5576
68
query I rowsort
SELECT ( + ( - col2 ) * - col0 + - col2 ) AS col0 FROM tab1
----
108
3591
7584
query I rowsort
SELECT ( col0 ) + tab0.col0 * col1 * col2 AS col2 FROM tab0
----
3430
664207
68136
query I rowsort
SELECT ALL - ( col0 ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - col1 * cor0.col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + 64 + + col0 + cor0.col1 * col2 * + cor0.col2 FROM tab1 AS cor0
----
119952
32618
75883
query I rowsort
SELECT + col0 + cor0.col2 * - col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL + col1 + cor0.col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7665
SELECT + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7665
SELECT + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - ( cor0.col1 ) + + 9 FROM tab2 AS cor0
----
-22
-50
-8
query I rowsort
SELECT DISTINCT + 61 + + col1 + - col0 AS col0 FROM tab0 AS cor0
----
123
63
query I rowsort
SELECT ALL - col0 * col2 * ( - col2 ) - - col2 FROM tab0 AS cor0
----
26169
36
598518
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7669
SELECT DISTINCT ( + col0 ) + CAST( NULL AS SIGNED ) + - 74 / col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT ( + col0 ) + CAST ( NULL AS INTEGER ) + - 74 / col1 FROM tab1 cor0
----
NULL
query I rowsort
SELECT col1 * 61 AS col0 FROM tab0
----
5246
5551
5917
query I rowsort
SELECT - col2 * col0 + 93 FROM tab1 cor0
----
-3555
-69
-7587
onlyif mysql # use DIV operator for integer division
query I rowsort label-7672
SELECT + col2 + col2 DIV - col0 FROM tab0 AS cor0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-7672
SELECT + col2 + col2 / - col0 FROM tab0 AS cor0
----
1
32
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 * col0 col2 FROM tab1 cor0
----
-2048
-2560
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7674
SELECT ALL - col2 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL - col2 * + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * + 32 AS col0 FROM tab2
----
1216
832
864
query I rowsort
SELECT + cor0.col2 - col1 AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT cor0.col2 * ( 30 ) - + col1 AS col0 FROM tab2 AS cor0
----
1123
721
779
query I rowsort
SELECT - + cor0.col2 + + ( col1 ) * - col1 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT + 10 FROM tab1, tab2 cor0, tab2, tab0 AS cor1
----
81 values hashing to bf75e71325a06683558cf93fd725ad16
query I rowsort
SELECT - ( col0 ) * col0 FROM tab0 cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-7681
SELECT ALL ( col0 ) DIV col0 + + ( col1 ) FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL ( col0 ) / col0 + + ( col1 ) FROM tab0
----
87
92
98
query I rowsort
SELECT - 46 FROM tab1, tab1 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
onlyif mysql # use DIV operator for integer division
query I rowsort label-7683
SELECT ALL + - cor0.col2 DIV + 67 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL + - cor0.col2 / + 67 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 6 + col0 * col2 + + col2 FROM tab0
----
42
7386
831
query I rowsort
SELECT - col2 + col1 * col0 AS col0 FROM tab0 cor0
----
2031
3394
8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 11 + 65 * - col0 col2 FROM tab0
----
-1549
-2264
-5774
query I rowsort
SELECT DISTINCT col1 * + col2 * + col2 AS col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT DISTINCT + ( col0 ) * + cor0.col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT 19 - + col1 FROM tab2 AS cor0
----
-12
-40
2
query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-7691
SELECT ALL - 26 DIV - col1 AS col1 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL - 26 / - col1 AS col1 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT + cor0.col0 - + col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL - 27 * + col2 AS col2 FROM tab0 AS cor0
----
-2214
-27
-891
query I rowsort
SELECT ( 37 ) + + col0 FROM tab0 AS cor0
----
126
61
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-7695
SELECT DISTINCT + col0 DIV - col0 col2 FROM tab1 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT + col0 / - col0 col2 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT - col2 * col1 * 0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT 40 * col0 AS col0 FROM tab0 AS cor0
----
1400
3560
960
query I rowsort
SELECT DISTINCT 35 + col2 * col2 AS col0 FROM tab2 cor0
----
1479
711
764
query I rowsort
SELECT ALL - ( + col1 ) * + cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL - 84 - - col0 AS col1 FROM tab1
----
-20
-4
-81
query I rowsort
SELECT ALL cor0.col0 + - 28 FROM tab1, tab0 AS cor0
----
9 values hashing to fc52db160d90fe52ad5ec7504058ba89
query I rowsort
SELECT DISTINCT + + col2 + col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - + 79 * col1 AS col0 FROM tab0 AS cor0
----
-6794
-7189
-7663
query I rowsort
SELECT DISTINCT + col1 * col0 + col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL + + cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 + col2 col0 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT + col0 + + col2 * 1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT col1 * cor0.col1 * + 23 FROM tab0 cor0
----
170108
190463
216407
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7709
SELECT - col1 * ( 15 * col1 + CAST( - ( - col1 ) AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-118336
-132496
-150544
skipif mysql # not compatible
query I rowsort label-7709
SELECT - col1 * ( 15 * col1 + CAST ( - ( - col1 ) AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-118336
-132496
-150544
query I rowsort
SELECT ALL + col2 + + col0 + 49 FROM tab0 AS cor0
----
106
220
85
query I rowsort
SELECT DISTINCT + - 82 FROM tab1 AS cor0
----
-82
query I rowsort
SELECT 79 * col1 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
1360
2480
4720
query I rowsort
SELECT DISTINCT col0 + - 92 AS col2 FROM tab0 AS cor0
----
-3
-57
-68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7714
SELECT + CAST( 4 AS SIGNED ) + col1 * 42 FROM tab1 cor0
----
1096
424
550
skipif mysql # not compatible
query I rowsort label-7714
SELECT + CAST ( 4 AS INTEGER ) + col1 * 42 FROM tab1 cor0
----
1096
424
550
onlyif mysql # use DIV operator for integer division
query I rowsort label-7715
SELECT ALL + col2 + + col0 DIV - col1 FROM tab1 AS cor0
----
51
54
90
skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL + col2 + + col0 / - col1 FROM tab1 AS cor0
----
51
54
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7716
SELECT DISTINCT col1 DIV 73 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-7716
SELECT DISTINCT col1 / 73 FROM tab0
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7717
SELECT + CAST( NULL AS SIGNED ) * 36 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7717
SELECT + CAST ( NULL AS INTEGER ) * 36 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-7718
SELECT DISTINCT col1 DIV - 95 AS col2 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-7718
SELECT DISTINCT col1 / - 95 AS col2 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7719
SELECT col1 - col1 DIV ( col1 * col0 ) FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7719
SELECT col1 - col1 / ( col1 * col0 ) FROM tab1
----
10
13
26
query I rowsort
SELECT col0 * + 54 + 46 AS col2 FROM tab1
----
208
3502
4366
query I rowsort
SELECT DISTINCT + col0 * col0 + - col1 * - col2 FROM tab1
----
1413
4666
7648
query I rowsort
SELECT DISTINCT - col1 * + col1 * - tab2.col2 + col2 FROM tab2
----
11020
25974
90532
query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
86
91
97
query I rowsort
SELECT - 45 FROM tab2, tab1 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba
query I rowsort
SELECT DISTINCT cor0.col0 * + col2 * - col0 - - col2 FROM tab1 AS cor0
----
-233415
-432
-614304
query I rowsort
SELECT + cor0.col1 * col2 + - col1 AS col1 FROM tab0 cor0
----
0
2752
7371
query I rowsort
SELECT + cor0.col0 - + col1 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + col2 + 49 AS col2 FROM tab2 AS cor0
----
75
76
87
query I rowsort
SELECT DISTINCT col1 + ( - col1 ) AS col1 FROM tab2
----
0
query I rowsort
SELECT DISTINCT - + col1 + col1 * col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT ALL + col2 * 70 FROM tab0 AS cor0
----
2310
5740
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7732
SELECT DISTINCT + cor0.col0 + - CAST( + col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7732
SELECT DISTINCT + cor0.col0 + - CAST ( + col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT - cor0.col2 * 76 + col2 * cor0.col2 FROM tab1 AS cor0
----
-1083
-1188
1920
query I rowsort
SELECT + col0 * - col1 - cor0.col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT col1 + cor0.col2 + - 57 AS col0 FROM tab2 AS cor0
----
-2
1
28
query I rowsort
SELECT ( - col2 ) * col2 + - 85 FROM tab1
----
-3001
-3334
-9301
query I rowsort
SELECT cor0.col2 * + 53 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9813e4ee7aa6e0f69346868405acacd1
query I rowsort
SELECT ALL 2 * col0 AS col2 FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 25 * cor0.col2 + + cor0.col1 * col0 col1 FROM tab1 AS cor0
----
-1272
-1360
-785
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7740
SELECT - + CAST( col2 AS SIGNED ) * col1 FROM tab1 cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-7740
SELECT - + CAST ( col2 AS INTEGER ) * col1 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-7741
SELECT DISTINCT + cor0.col2 DIV col1 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT + cor0.col2 / col1 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT 55 * col1 AS col0 FROM tab1 AS cor0
----
1430
550
715
query I rowsort
SELECT ALL - + col1 + cor0.col0 - + 25 FROM tab2 cor0
----
-49
-6
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - - col1 + col1 * col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT ALL 16 * + col1 * + col1 AS col1 FROM tab2 AS cor0
----
15376
4624
55696
onlyif mysql # use DIV operator for integer division
query I rowsort label-7747
SELECT 27 + - col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
26
26
26
skipif mysql # not compatible
query I rowsort label-7747
SELECT 27 + - col0 / + col0 AS col0 FROM tab0 AS cor0
----
26
26
26
query I rowsort
SELECT DISTINCT + + 57 * col2 AS col2 FROM tab2 AS cor0
----
1482
1539
2166
query I rowsort
SELECT DISTINCT + col2 * col1 + + ( cor0.col0 * + col2 ) FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT DISTINCT 43 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
43
query I rowsort
SELECT ALL - 85 * + col2 AS col0 FROM tab1
----
-4590
-4845
-8160
query I rowsort
SELECT ALL + 30 + 72 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ee94a7029b1f2955f26d8b1cdd1a4587
query I rowsort
SELECT - 65 * col1 AS col1 FROM tab1 AS cor0
----
-1690
-650
-845
query I rowsort
SELECT - + cor0.col2 + 34 * col2 FROM tab2 AS cor0
----
1254
858
891
query I rowsort
SELECT - col1 + 16 FROM tab2 AS cor0
----
-1
-15
-43
query I rowsort
SELECT cor0.col1 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7757
SELECT CAST( NULL AS DECIMAL ) + - 87 * cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7757
SELECT CAST ( NULL AS REAL ) + - 87 * cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7758
SELECT ALL - col1 + col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-84
-90
0
skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL - col1 + col1 / col2 AS col2 FROM tab0 AS cor0
----
-84
-90
0
query I rowsort
SELECT + - ( col2 ) * col0 + ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT + - col2 * - 80 FROM tab0 AS cor0
----
2640
6560
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col2 col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col1 * + col2 + - col1 FROM tab0
----
-194
-2924
-7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7763
SELECT ALL tab1.col0 * col0 * ( col1 ) + CAST( NULL AS DECIMAL ) * - 5 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL tab1.col0 * col0 * ( col1 ) + CAST ( NULL AS REAL ) * - 5 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + col2 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7765
SELECT ALL col2 + - CAST( NULL AS SIGNED ) * col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) * col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + cor1.col1 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL - ( - tab2.col1 ) FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT tab2.col0 AS col1 FROM tab2, tab0 AS cor0, tab0, tab1 AS cor1
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7769
SELECT ALL CAST( NULL AS SIGNED ) / tab1.col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL CAST ( NULL AS INTEGER ) / tab1.col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + 85 * - col0 FROM tab1 AS cor0
----
-252
-5376
-6720
query I rowsort
SELECT DISTINCT + ( - col2 ) FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + 98 + - col1 * col1 FROM tab1 AS cor0
----
-2
-578
-71
query I rowsort
SELECT - + 48 + - col1 FROM tab2 AS cor0
----
-107
-65
-79
query I rowsort
SELECT + 36 AS col0 FROM tab0
----
36
36
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col1 FROM tab0, tab0 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT - + col2 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT col1 * 79 AS col1 FROM tab1 AS cor0
----
1027
2054
790
query I rowsort
SELECT DISTINCT + cor0.col0 * - 11 FROM tab0 AS cor0
----
-264
-385
-979
query I rowsort
SELECT + - cor0.col2 * + 97 AS col1 FROM tab0 AS cor0
----
-3201
-7954
-97
query I rowsort
SELECT - 83 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843
onlyif mysql # use DIV operator for integer division
query I rowsort label-7781
SELECT DISTINCT cor0.col0 DIV ( cor0.col2 ) + - col1 FROM tab1 cor0
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-7781
SELECT DISTINCT cor0.col0 / ( cor0.col2 ) + - col1 FROM tab1 cor0
----
-13
-26
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7782
SELECT col0 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7782
SELECT col0 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * 47 * col2 FROM tab0 AS cor0
----
133386
350714
4559
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * 38 col2 FROM tab2 AS cor0
----
1368
1368
1368
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7785
SELECT ALL CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - 28 + col0 * col1 + + 7 FROM tab2 cor0
----
1322
196
4581
query I rowsort
SELECT - 10 FROM tab0, tab2 cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e
query I rowsort
SELECT DISTINCT - 22 AS col2 FROM tab2 AS cor0
----
-22
query I rowsort
SELECT + col2 + + 23 * col2 AS col0 FROM tab0 cor0
----
1968
24
792
query I rowsort
SELECT + ( + col2 ) + col0 * + ( - 80 ) + col0 AS col2 FROM tab0 AS cor0
----
-1863
-2764
-6949
onlyif mysql # use DIV operator for integer division
query I rowsort label-7791
SELECT ( + 92 ) DIV + col1 + - ( - ( - col1 ) ) FROM tab0 AS cor0
----
-85
-90
-97
skipif mysql # not compatible
query I rowsort label-7791
SELECT ( + 92 ) / + col1 + - ( - ( - col1 ) ) FROM tab0 AS cor0
----
-85
-90
-97
query I rowsort
SELECT ALL col2 + ( + 70 + + tab2.col1 ) * - ( - ( col2 ) ) FROM tab2
----
2754
3344
3380
query I rowsort
SELECT ALL tab1.col1 AS col0 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT col0 + 83 * col2 FROM tab1
----
4485
4795
8048
query I rowsort
SELECT DISTINCT col2 - col2 * + col2 AS col0 FROM tab1
----
-2862
-3192
-9120
query I rowsort
SELECT ALL + + col2 * - col0 + cor0.col2 AS col1 FROM tab1 cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT - 90 + + col1 FROM tab1 AS cor0
----
-64
-77
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7798
SELECT ALL + ( col0 ) DIV - 81 + - 2 AS col2 FROM tab1 AS cor0
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-7798
SELECT ALL + ( col0 ) / - 81 + - 2 AS col2 FROM tab1 AS cor0
----
-2
-2
-2
query I rowsort
SELECT DISTINCT + col0 * + col1 + - col0 - + col2 FROM tab2 AS cor0
----
1226
183
4498
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col1 FROM tab2 AS cor0
----
65
65
65
query I rowsort
SELECT + ( 61 ) AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55
onlyif mysql # use DIV operator for integer division
query I rowsort label-7802
SELECT DISTINCT + 41 * + col2 DIV col2 AS col0 FROM tab0
----
41
skipif mysql # not compatible
query I rowsort label-7802
SELECT DISTINCT + 41 * + col2 / col2 AS col0 FROM tab0
----
41
query I rowsort
SELECT ALL + 27 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT DISTINCT 56 AS col2 FROM tab1, tab1 AS cor0, tab2 cor1
----
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 col0 FROM tab0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7806
SELECT + 85 DIV col2 AS col1 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-7806
SELECT + 85 / col2 AS col1 FROM tab1 AS cor0
----
0
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7807
SELECT + + col0 DIV - col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7807
SELECT + + col0 / - col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT col1 - - col0 AS col2 FROM tab1
----
29
74
93
query I rowsort
SELECT + 99 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT DISTINCT - - col2 - cor0.col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL col1 * 15 AS col1 FROM tab1 cor0
----
150
195
390
onlyif mysql # use DIV operator for integer division
query I rowsort label-7812
SELECT col1 * col2 DIV tab1.col0 + col1 AS col0 FROM tab1
----
18
28
494
skipif mysql # not compatible
query I rowsort label-7812
SELECT col1 * col2 / tab1.col0 + col1 AS col0 FROM tab1
----
18
28
494
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 100c625e45715c20368551989514ba64
query I rowsort
SELECT 49 + col2 AS col2 FROM tab0
----
131
50
82
query I rowsort
SELECT + tab0.col1 * - col0 + col0 * col2 + col2 * - tab0.col1 FROM tab0
----
-3457
-4110
-8263
query I rowsort
SELECT DISTINCT 62 AS col1 FROM tab0, tab1 AS cor0
----
62
query I rowsort
SELECT DISTINCT + + cor0.col0 + col1 FROM tab0 AS cor0
----
110
132
180
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to da83d3eeaeb9e24a3cb14bb7058757dd
query I rowsort
SELECT ALL - col0 * - 23 * cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
147213
233
94218
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7820
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7820
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col1 + 86 * col1 * - cor0.col1 FROM tab1 AS cor0
----
-14547
-58162
-8610
query I rowsort
SELECT DISTINCT + col2 + ( - cor0.col0 ) * col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL cor0.col2 + + ( col1 ) FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT col1 * - col2 * - col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT - col0 * 14 AS col1 FROM tab2 cor0
----
-1092
-1106
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7826
SELECT ALL + + col1 - col2 DIV col1 FROM tab2 AS cor0
----
15
31
59
skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL + + col1 - col2 / col1 FROM tab2 AS cor0
----
15
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-7827
SELECT + col1 DIV + 58 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7827
SELECT + col1 / + 58 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - col1 * col1 + + ( + col0 ) * + col0 FROM tab0 AS cor0
----
-360
-6820
-8184
query I rowsort
SELECT ALL - col2 * ( col2 * - cor0.col0 ) FROM tab2 AS cor0
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-7830
SELECT DISTINCT col1 * 12 DIV + col0 AS col2 FROM tab2 AS cor0
----
2
53
9
skipif mysql # not compatible
query I rowsort label-7830
SELECT DISTINCT col1 * 12 / + col0 AS col2 FROM tab2 AS cor0
----
2
53
9
query I rowsort
SELECT ALL - cor0.col2 * ( 56 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cb8a0ac72febb9645e00483e47d601ec
query I rowsort
SELECT DISTINCT col2 + 67 * + tab2.col2 FROM tab2
----
1768
1836
2584
query I rowsort
SELECT ALL + 14 + - col1 * col0 FROM tab1 AS cor0
----
-1026
-626
-64
query I rowsort
SELECT + 30 + - col1 * + cor0.col1 AS col0 FROM tab0 cor0
----
-7366
-8251
-9379
query I rowsort
SELECT ALL - - col1 - - cor0.col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - ( col0 ) * col1 + col1 * col2 AS col2 FROM tab1 AS cor0
----
-70
1326
208
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7837
SELECT DISTINCT - CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-7837
SELECT DISTINCT - CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - 17 + 80 AS col2 FROM tab0 AS cor0
----
63
63
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7839
SELECT + - CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-7839
SELECT + - CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - + col0 + + col0 + + col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + + 58 * col2 AS col0 FROM tab0 cor0
----
1914
4756
58
query I rowsort
SELECT - cor0.col1 * - col2 + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT + + 30 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-34
-50
27
query I rowsort
SELECT DISTINCT cor0.col0 * - cor0.col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - 57 * + cor0.col0 + + cor0.col0 FROM tab1 AS cor0
----
-168
-3584
-4480
onlyif mysql # use DIV operator for integer division
query I rowsort label-7846
SELECT ALL + + 3 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL + + 3 / + col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col0 * 83 + col0 FROM tab1
----
252
5376
6720
query I rowsort
SELECT DISTINCT - col1 * col1 + - ( + col1 ) FROM tab1 cor0
----
-110
-182
-702
query I rowsort
SELECT - col0 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7850
SELECT + + CAST( NULL AS SIGNED ) * col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7850
SELECT + + CAST ( NULL AS INTEGER ) * col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * - 40 AS col2 FROM tab1 AS cor0
----
-1040
-400
-520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7852
SELECT + + CAST( NULL AS SIGNED ) / col1 col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7852
SELECT + + CAST ( NULL AS INTEGER ) / col1 col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + 77 AS col1 FROM tab1 AS cor0
----
141
157
80
query I rowsort
SELECT col0 * + 7 AS col0 FROM tab2 AS cor0
----
49
546
553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - ( + col1 ) ) col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + + col0 * 0 + ( + col2 * - col1 ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT 4 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
4
query I rowsort
SELECT ALL ( 39 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT DISTINCT col1 + - col2 * col2 FROM tab0
----
-1003
-6633
96
query I rowsort
SELECT - col1 + + tab1.col2 * - col2 FROM tab1
----
-2942
-3259
-9229
query I rowsort
SELECT + 66 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7862
SELECT + CAST( NULL AS DECIMAL ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7862
SELECT + CAST ( NULL AS REAL ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col2 + ( 7 ) AS col0 FROM tab2
----
33
34
45
query I rowsort
SELECT - + col0 * + 76 AS col2 FROM tab0 AS cor0
----
-1824
-2660
-6764
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * 63 col0 FROM tab2 AS cor0
----
1638
1701
2394
onlyif mysql # use DIV operator for integer division
query I rowsort label-7866
SELECT - + col1 DIV - col1 AS col0 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7866
SELECT - + col1 / - col1 AS col0 FROM tab2 cor0
----
1
1
1
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab2 cor1, tab1, tab1 AS cor2
----
3645 values hashing to ca91d1f523a87017f672304548e91a77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + - 7 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
query I rowsort
SELECT DISTINCT + 38 + - ( + col1 ) + + ( col1 ) AS col2 FROM tab0 AS cor0
----
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 87 * 69 col2 FROM tab0 AS cor0
----
-6003
-6003
-6003
query I rowsort
SELECT - col0 + 84 AS col0 FROM tab1 AS cor0
----
20
4
81
skipif mysql # not compatible
query I rowsort
SELECT col2 * - col1 + col2 * + CAST ( col1 + col0 AS REAL ) AS col2 FROM tab0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7874
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
NULL
skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
NULL
query I rowsort
SELECT + cor1.col2 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT 69 + 1 * + col1 AS col2 FROM tab1 AS cor0
----
79
82
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * col2 - + cor0.col0 col0 FROM tab2 cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT + tab0.col0 AS col1 FROM tab0, tab2 AS cor0
----
24
35
89
query I rowsort
SELECT - col2 * - cor0.col1 * col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT + + 55 - - col1 AS col2 FROM tab0 AS cor0
----
141
146
152
query I rowsort
SELECT + cor0.col0 + + col0 * + col1 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7882
SELECT ( + col0 ) / - ( col1 ) + + cor0.col0 * - CAST( NULL AS SIGNED ) - + col2 * - col0 * + 70 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7882
SELECT ( + col0 ) / - ( col1 ) + + cor0.col0 * - CAST ( NULL AS INTEGER ) - + col2 * - col0 * + 70 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col2 + - cor0.col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT 83 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3
query I rowsort
SELECT + cor0.col1 - col1 * - col2 AS col2 FROM tab1 cor0
----
1261
1430
580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7886
SELECT - - cor0.col2 * CAST( NULL AS DECIMAL ) * - col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7886
SELECT - - cor0.col2 * CAST ( NULL AS REAL ) * - col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col2 * - cor0.col1 + + 64 AS col2 FROM tab2 cor0
----
1598
710
901
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col2 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col2 + + cor0.col2 * - col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT - - cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-7891
SELECT ALL - col0 * - col1 DIV + ( + ( + tab2.col1 ) ) + col2 AS col1 FROM tab2
----
104
117
34
skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL - col0 * - col1 / + ( + ( + tab2.col1 ) ) + col2 AS col1 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL ( + col1 ) * - ( tab1.col1 ) + tab1.col2 * col0 FROM tab1
----
-514
3548
7511
query I rowsort
SELECT - - col1 + ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * 39 FROM tab2 cor0
----
273
3042
3081
query I rowsort
SELECT + col1 + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL + col1 + + tab0.col0 AS col0 FROM tab0
----
110
132
180
query I rowsort
SELECT col2 - col0 * - col1 AS col1 FROM tab2
----
1381
244
4628
query I rowsort
SELECT + 85 * + tab2.col0 + + col0 FROM tab2
----
602
6708
6794
query I rowsort
SELECT DISTINCT + col0 * - 57 * - tab1.col1 AS col0 FROM tab1
----
36480
4446
59280
onlyif mysql # use DIV operator for integer division
query I rowsort label-7900
SELECT - ( col2 ) DIV col1 AS col2 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-7900
SELECT - ( col2 ) / col1 AS col2 FROM tab2
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 col0 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 * + col2 col2 FROM tab1
----
-2754
-2907
-4896
query I rowsort
SELECT - - 27 + 41 * col1 FROM tab2 AS cor0
----
1298
2446
724
query I rowsort
SELECT - ( - cor0.col1 ) * - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - - col0 * + cor0.col2 * col1 FROM tab1 AS cor0
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + col0 * col1 col0 FROM tab2 cor0
----
1264
210
4524
query I rowsort
SELECT ALL ( + col0 ) + + 80 * col0 AS col2 FROM tab2 AS cor0
----
567
6318
6399
query I rowsort
SELECT col0 + col1 - + col2 AS col1 FROM tab0 AS cor0
----
131
77
98
query I rowsort
SELECT ALL + 63 * - col0 FROM tab1 AS cor0
----
-189
-4032
-5040
onlyif mysql # use DIV operator for integer division
query I rowsort label-7910
SELECT + - cor0.col0 + col1 DIV - cor0.col0 FROM tab2 AS cor0
----
-11
-78
-79
skipif mysql # not compatible
query I rowsort label-7910
SELECT + - cor0.col0 + col1 / - cor0.col0 FROM tab2 AS cor0
----
-11
-78
-79
query I rowsort
SELECT + col2 * cor0.col1 + cor0.col1 AS col1 FROM tab0 cor0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 col2 FROM tab2
----
14
14
14
query I rowsort
SELECT DISTINCT ( 78 ) * col1 FROM tab0
----
6708
7098
7566
query I rowsort
SELECT + tab1.col0 AS col0 FROM tab1, tab2, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7915
SELECT col2 + + col2 - CAST( NULL AS SIGNED ) * 60 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-7915
SELECT col2 + + col2 - CAST ( NULL AS INTEGER ) * 60 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + - col1 + + col0 AS col1 FROM tab0 AS cor0
----
-148
-159
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-7917
SELECT DISTINCT - - 97 + col1 DIV col1 FROM tab0 AS cor0
----
98
skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT - - 97 + col1 / col1 FROM tab0 AS cor0
----
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7918
SELECT + cor0.col2 * + CAST( col1 AS SIGNED ) col1 FROM tab2 cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7918
SELECT + cor0.col2 * + CAST ( col1 AS INTEGER ) col1 FROM tab2 cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-7919
SELECT - col1 DIV ( 3 + col2 * + col1 ) AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7919
SELECT - col1 / ( 3 + col2 * + col1 ) AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7920
SELECT - col0 * ( - cor0.col2 ) DIV + col0 AS col1 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7920
SELECT - col0 * ( - cor0.col2 ) / + col0 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT col1 + col2 * + tab1.col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT - 71 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a
query I rowsort
SELECT 33 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
query I rowsort
SELECT DISTINCT - col2 * col2 * + col2 FROM tab1 AS cor0
----
-157464
-185193
-884736
query I rowsort
SELECT ALL col0 * 19 + col0 AS col1 FROM tab2 AS cor0
----
140
1560
1580
query I rowsort
SELECT ALL col0 + + col1 + col0 FROM tab1 cor0
----
138
173
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7927
SELECT DISTINCT CAST( - ( col2 ) AS SIGNED ) + - cor0.col2 FROM tab1 AS cor0
----
-108
-114
-192
skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT CAST ( - ( col2 ) AS INTEGER ) + - cor0.col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT DISTINCT - 2 AS col0 FROM tab2 AS cor0
----
-2
query I rowsort
SELECT DISTINCT + 52 * cor0.col0 * + col0 FROM tab1 AS cor0
----
212992
332800
468
query I rowsort
SELECT ALL - cor0.col0 + 34 AS col0 FROM tab1 AS cor0
----
-30
-46
31
query I rowsort
SELECT DISTINCT - - 30 * + col1 AS col1 FROM tab2 AS cor0
----
1770
510
930
onlyif mysql # use DIV operator for integer division
query I rowsort label-7932
SELECT ALL + + col0 DIV ( - col0 ) + + cor0.col2 * col1 * col0 + - col2 FROM tab2 AS cor0
----
119625
50995
5831
skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL + + col0 / ( - col0 ) + + cor0.col2 * col1 * col0 + - col2 FROM tab2 AS cor0
----
119625
50995
5831
query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + + 57 + cor0.col2 AS col2 FROM tab1 cor0
----
111
114
153
query I rowsort
SELECT ALL - col2 + - 22 AS col1 FROM tab0
----
-104
-23
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-7936
SELECT ALL - col0 DIV col1 + col1 FROM tab1
----
26
4
7
skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL - col0 / col1 + col1 FROM tab1
----
26
4
7
query I rowsort
SELECT DISTINCT + col2 * col0 + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL col0 * col2 * + col1 + - col0 FROM tab2
----
119574
50955
5852
query I rowsort
SELECT ALL + col2 + col0 * - col2 + col0 AS col2 FROM tab0
----
-7127
-735
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7940
SELECT DISTINCT + ( col0 ) * + col2 + col0 * 22 DIV + col0 col0 FROM tab2 AS cor0
----
2050
211
3024
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT + ( col0 ) * + col2 + col0 * 22 / + col0 col0 FROM tab2 AS cor0
----
2050
211
3024
onlyif mysql # use DIV operator for integer division
query I rowsort label-7941
SELECT - 35 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-7941
SELECT - 35 / col0 AS col0 FROM tab0 AS cor0
----
-1
-1
0
query I rowsort
SELECT + col1 * - 67 AS col0 FROM tab1 AS cor0
----
-1742
-670
-871
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 col1 FROM tab0 AS cor0
----
9
9
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7944
SELECT + col2 + + col0 DIV col2 FROM tab1 AS cor0
----
54
58
96
skipif mysql # not compatible
query I rowsort label-7944
SELECT + col2 + + col0 / col2 FROM tab1 AS cor0
----
54
58
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7945
SELECT - CAST( NULL AS SIGNED ) + - tab1.col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7945
SELECT - CAST ( NULL AS INTEGER ) + - tab1.col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ( 74 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT DISTINCT col1 * - 48 + col0 FROM tab0 AS cor0
----
-4104
-4279
-4621
query I rowsort
SELECT - col0 + col0 * + col2 AS col2 FROM tab0 cor0
----
0
7209
768
query I rowsort
SELECT ALL col1 + - tab1.col0 + + 65 * + col1 AS col2 FROM tab1
----
1713
596
778
query I rowsort
SELECT DISTINCT + col2 + + col2 AS col1 FROM tab1
----
108
114
192
query I rowsort
SELECT + col0 * col1 + + 62 AS col2 FROM tab1 AS cor0
----
1102
140
702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7952
SELECT + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7952
SELECT + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * 57 * col0 AS col0 FROM tab0 AS cor0
----
1995
415986
45144
query I rowsort
SELECT ALL cor0.col2 * + 98 AS col0 FROM tab1 AS cor0
----
5292
5586
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * col0 col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT + + col2 + ( col0 ) AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + col0 * col1 - col2 AS col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT DISTINCT col1 + + col2 * - col2 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT ALL + col2 + + col0 * + cor0.col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL col1 * col2 + + col0 * col2 * col1 AS col2 FROM tab0 cor0
----
3492
671580
70950
query I rowsort
SELECT - ( - 9 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT DISTINCT - ( - col1 ) FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT - 97 + col1 * + 51 AS col1 FROM tab0 cor0
----
4289
4544
4850
onlyif mysql # use DIV operator for integer division
query I rowsort label-7964
SELECT + 50 DIV + col0 + 71 AS col1 FROM tab2 AS cor0
----
71
71
78
skipif mysql # not compatible
query I rowsort label-7964
SELECT + 50 / + col0 + 71 AS col1 FROM tab2 AS cor0
----
71
71
78
query I rowsort
SELECT - cor0.col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL - - col2 * col1 + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT cor0.col0 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f
query I rowsort
SELECT ALL cor0.col2 * 45 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to eae64f59553d7a7cfe8e0ee0e4b6c4d7
query I rowsort
SELECT DISTINCT - + col1 * - col2 + + col2 * 51 FROM tab0 AS cor0
----
11644
148
4521
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7970
SELECT CAST( NULL AS SIGNED ) * col1 - col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7970
SELECT CAST ( NULL AS INTEGER ) * col1 - col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col0 + - 24 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to 45072204cf3f52f4c70f55f2c1de3e68
query I rowsort
SELECT DISTINCT - ( col0 ) + col0 AS col0 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7973
SELECT - col0 + - col0 * + col2 + CAST( - 94 AS SIGNED ) DIV col0 AS col0 FROM tab1 AS cor0
----
-196
-3713
-7761
skipif mysql # not compatible
query I rowsort label-7973
SELECT - col0 + - col0 * + col2 + CAST ( - 94 AS INTEGER ) / col0 AS col0 FROM tab1 AS cor0
----
-196
-3713
-7761
query I rowsort
SELECT ALL + 99 + 52 FROM tab1 AS cor0
----
151
151
151
query I rowsort
SELECT + - 49 + - 8 * - col1 FROM tab2 cor0
----
199
423
87
query I rowsort
SELECT ALL col1 * col0 * col1 - + col2 FROM tab0
----
177471
329314
736927
query I rowsort
SELECT ALL - 6 + 63 * + col1 FROM tab2
----
1065
1947
3711
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 + + tab0.col0 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 661d72d5ba2e99bddf766076e396d5cd
query I rowsort
SELECT ALL 75 + + col2 * col2 AS col0 FROM tab0
----
1164
6799
76
query I rowsort
SELECT DISTINCT tab2.col1 + 14 AS col0 FROM tab2
----
31
45
73
query I rowsort
SELECT ALL + 40 * - col0 FROM tab0
----
-1400
-3560
-960
query I rowsort
SELECT + 39 + + tab2.col0 FROM tab2
----
117
118
46
query I rowsort
SELECT ALL - ( 55 ) AS col2 FROM tab1 AS cor0
----
-55
-55
-55
query I rowsort
SELECT DISTINCT 95 AS col2 FROM tab0, tab2 AS cor0
----
95
query I rowsort
SELECT ALL - ( + col1 ) + - col1 FROM tab0
----
-172
-182
-194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7986
SELECT CAST( col2 AS SIGNED ) * - col1 + 88 * tab2.col2 * - tab2.col0 + col2 col1 FROM tab2
----
-17442
-179972
-264784
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7986
SELECT CAST ( col2 AS INTEGER ) * - col1 + 88 * tab2.col2 * - tab2.col0 + col2 col1 FROM tab2
----
-17442
-179972
-264784
query I rowsort
SELECT 93 + col1 AS col0 FROM tab1
----
103
106
119
query I rowsort
SELECT ALL 35 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT ALL col2 + - 35 AS col1 FROM tab0
----
-2
-34
47
query I rowsort
SELECT DISTINCT + 53 FROM tab1, tab1 AS cor0
----
53
query I rowsort
SELECT DISTINCT - ( + col0 ) AS col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT - cor0.col0 + col2 + ( cor0.col2 ) FROM tab2 AS cor0
----
-26
-3
47
query I rowsort
SELECT ALL tab0.col2 * 53 FROM tab0
----
1749
4346
53
query I rowsort
SELECT DISTINCT col1 * + 23 FROM tab0
----
1978
2093
2231
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7995
SELECT DISTINCT - col2 + CAST( - col2 AS SIGNED ) * + col2 * 52 FROM tab0 AS cor0
----
-349730
-53
-56661
skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT - col2 + CAST ( - col2 AS INTEGER ) * + col2 * 52 FROM tab0 AS cor0
----
-349730
-53
-56661
query I rowsort
SELECT DISTINCT + col1 + - col1 + cor0.col2 * - col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + col2 * + 48 + col2 * + col0 FROM tab2 AS cor0
----
1485
3276
4826
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7998
SELECT DISTINCT CAST( 17 AS SIGNED ) AS col2 FROM tab1, tab0 cor0
----
17
skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT CAST ( 17 AS INTEGER ) AS col2 FROM tab1, tab0 cor0
----
17
query I rowsort
SELECT - col0 * cor0.col2 + - col2 * + 7 FROM tab0 AS cor0
----
-1023
-42
-7872
query I rowsort
SELECT col1 * - 92 + col0 FROM tab1 AS cor0
----
-1116
-2389
-856
query I rowsort
SELECT - col1 * + 0 - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT col2 * + col2 - col1 * + col2 FROM tab1 AS cor0
----
1512
2679
7968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 63 * ( - col2 ) + - col2 * - 94 col2 FROM tab0 AS cor0
----
1023
2542
31
query I rowsort
SELECT + col2 - + 51 FROM tab0 AS cor0
----
-18
-50
31
query I rowsort
SELECT + 62 * + col0 FROM tab0 AS cor0
----
1488
2170
5518
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8006
SELECT CAST( NULL AS SIGNED ) * col2 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8006
SELECT CAST ( NULL AS INTEGER ) * col2 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8007
SELECT + ( + 62 ) DIV + col0 + col1 * - col0 FROM tab1 AS cor0
----
-1040
-58
-640
skipif mysql # not compatible
query I rowsort label-8007
SELECT + ( + 62 ) / + col0 + col1 * - col0 FROM tab1 AS cor0
----
-1040
-58
-640
onlyif mysql # use DIV operator for integer division
query I rowsort label-8008
SELECT + - 1 DIV + 12 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8008
SELECT + - 1 / + 12 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + ( ( col0 ) ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT col0 * + 47 AS col2 FROM tab0 AS cor0
----
1128
1645
4183
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8011
SELECT DISTINCT ( col0 ) + col0 + CAST( NULL AS SIGNED ) / - cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8011
SELECT DISTINCT ( col0 ) + col0 + CAST ( NULL AS INTEGER ) / - cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT 7 * tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 7bcb737992bdbc23d5f8dc97c9eb0231
query I rowsort
SELECT DISTINCT 38 AS col2 FROM tab2, tab1 AS cor0
----
38
query I rowsort
SELECT + ( ( + col1 ) ) AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT ( - 71 ) - - col1 AS col1 FROM tab0
----
15
20
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8016
SELECT 67 DIV tab2.col0 + - col1 FROM tab2
----
-17
-22
-59
skipif mysql # not compatible
query I rowsort label-8016
SELECT 67 / tab2.col0 + - col1 FROM tab2
----
-17
-22
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 - col2 col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT - - ( col2 ) * - col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT - 99 * col1 FROM tab1
----
-1287
-2574
-990
onlyif mysql # use DIV operator for integer division
query I rowsort label-8020
SELECT + - 93 DIV col0 + col2 * cor0.col0 FROM tab1 AS cor0
----
131
3647
7679
skipif mysql # not compatible
query I rowsort label-8020
SELECT + - 93 / col0 + col2 * cor0.col0 FROM tab1 AS cor0
----
131
3647
7679
query I rowsort
SELECT + col2 + col1 + + ( 3 ) * col2 * - ( - col1 * col1 ) FROM tab2
----
271603
33001
77899
query I rowsort
SELECT - col1 * - 37 + col0 AS col1 FROM tab1 AS cor0
----
434
561
965
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 8d4d13f65f86e1b26b6004a6bdc662b3
query I rowsort
SELECT cor0.col0 + + 23 FROM tab1 AS cor0
----
103
26
87
query I rowsort
SELECT DISTINCT col2 + - ( + 29 ) * - col1 FROM tab0 AS cor0
----
2527
2721
2814
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8026
SELECT DISTINCT - col1 * + cor0.col2 * + col2 + + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT - col1 * + cor0.col2 * + col2 + + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
query I rowsort
SELECT col2 + 10 FROM tab2 AS cor0
----
36
37
48
query I rowsort
SELECT 54 * col1 FROM tab2
----
1674
3186
918
query I rowsort
SELECT ALL - col0 * - col1 + - col2 * - cor0.col1 AS col1 FROM tab2 cor0
----
1054
1989
6136
query I rowsort
SELECT DISTINCT + - col2 - ( 33 ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
-1156
-3019
-825
query I rowsort
SELECT DISTINCT - cor0.col2 + col1 * col2 + col0 AS col2 FROM tab1 AS cor0
----
1232
1353
577
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 - col1 col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT - col2 + + ( col2 + col1 ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + col1 * col0 * + 33 AS col0 FROM tab2 cor0
----
151866
44319
7161
query I rowsort
SELECT DISTINCT + cor0.col2 * + 36 AS col0 FROM tab0 AS cor0
----
1188
2952
36
query I rowsort
SELECT - tab2.col1 + - col0 + tab2.col2 FROM tab2
----
-11
-111
-58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8037
SELECT col1 * CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8037
SELECT col1 * CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 79 FROM tab1, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
onlyif mysql # use DIV operator for integer division
query I rowsort label-8039
SELECT ALL col2 DIV 98 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL col2 / 98 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 11 AS col0 FROM tab1, tab0 AS cor0
----
-11
query I rowsort
SELECT ALL cor0.col0 * 33 FROM tab2 AS cor0
----
231
2574
2607
query I rowsort
SELECT ALL - col2 + 15 FROM tab1 AS cor0
----
-39
-42
-81
query I rowsort
SELECT + + col0 * - 99 * + 5 AS col0 FROM tab1 AS cor0
----
-1485
-31680
-39600
query I rowsort
SELECT cor0.col1 + + cor0.col1 * col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
16237
36530
5710
query I rowsort
SELECT DISTINCT col1 * + cor0.col0 * col2 + - 33 * col2 AS col2 FROM tab2 AS cor0
----
118794
4968
49780
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) + - col0 col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + - 44 AS col2 FROM tab0 AS cor0
----
-44
-44
-44
query I rowsort
SELECT DISTINCT col1 * + col1 + col0 * + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-233372
-614231
190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 47 col1 FROM tab2 AS cor0
----
125
126
54
query I rowsort
SELECT DISTINCT - col1 - - col1 * + col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL + col2 + - col1 * - col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL - + 8 * - ( col0 ) + ( 64 ) * col2 - + col2 AS col2 FROM tab1 AS cor0
----
3426
4103
6688
onlyif mysql # use DIV operator for integer division
query I rowsort label-8054
SELECT ALL + col1 DIV + 43 + 11 * + col2 AS col2 FROM tab0
----
13
365
904
skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL + col1 / + 43 + 11 * + col2 AS col2 FROM tab0
----
13
365
904
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 col0 FROM tab1
----
29
74
93
query I rowsort
SELECT 4 * ( col0 ) FROM tab2 AS cor0
----
28
312
316
query I rowsort
SELECT col2 * tab1.col2 + - ( col2 ) FROM tab1
----
2862
3192
9120
query I rowsort
SELECT - + col1 + col1 * + cor0.col1 * 69 FROM tab0 AS cor0
----
510238
571298
649124
query I rowsort
SELECT ALL 93 + - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1351
-583
-636
onlyif mysql # use DIV operator for integer division
query I rowsort label-8060
SELECT DISTINCT - cor0.col1 DIV col0 AS col0 FROM tab0 cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT - cor0.col1 / col0 AS col0 FROM tab0 cor0
----
-1
-2
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-8061
SELECT + 29 DIV col0 FROM tab1 AS cor0
----
0
0
9
skipif mysql # not compatible
query I rowsort label-8061
SELECT + 29 / col0 FROM tab1 AS cor0
----
0
0
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - cor0.col2 ) + + 95 col1 FROM tab0 AS cor0
----
13
62
94
query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT - cor0.col0 * col0 - col1 FROM tab2 cor0
----
-6143
-6258
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * + col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT 72 + + col0 FROM tab0 AS cor0
----
107
161
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8067
SELECT - col2 * col2 + - CAST( NULL AS SIGNED ) * - col1 + col2 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-8067
SELECT - col2 * col2 + - CAST ( NULL AS INTEGER ) * - col1 + col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 - + col0 AS col1 FROM tab2 cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 11 col2 FROM tab0 AS cor0
----
11
query I rowsort
SELECT ALL 9 AS col0 FROM tab1 AS cor0
----
9
9
9
query I rowsort
SELECT ALL + col2 * - col2 * col1 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT - ( - col2 ) * + cor0.col1 AS col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL - cor0.col1 + - col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT col1 + + col0 + col1 FROM tab2 AS cor0
----
113
196
69
query I rowsort
SELECT ALL col1 - + col2 * - 3 AS col0 FROM tab1
----
181
188
301
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8076
SELECT ALL - - col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL - - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * + col2 + 48 + col1 FROM tab0 AS cor0
----
-658
-7159
110
query I rowsort
SELECT ( col1 ) * + 2 AS col0 FROM tab0
----
172
182
194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8079
SELECT ALL - CAST( ( - col0 ) AS SIGNED ) + 43 FROM tab2
----
121
122
50
skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL - CAST ( ( - col0 ) AS INTEGER ) + 43 FROM tab2
----
121
122
50
query I rowsort
SELECT ALL + col2 * col1 + tab1.col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT ALL 95 * + tab1.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 31ae8f0718e1a2c26a084408e1a85a58
query I rowsort
SELECT + 25 * - col2 FROM tab0
----
-2050
-25
-825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8083
SELECT + CAST( NULL AS DECIMAL ) + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8083
SELECT + CAST ( NULL AS REAL ) + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 + col2 + - cor0.col2 * - ( col1 * - col1 ) AS col1 FROM tab2 AS cor0
----
-10961
-25951
-90539
query I rowsort
SELECT DISTINCT 12 + + 29 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
41
query I rowsort
SELECT DISTINCT + 66 * col0 + ( col2 ) AS col1 FROM tab2 AS cor0
----
489
5174
5252
query I rowsort
SELECT DISTINCT + - cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - cor0.col1 + col1 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + 23 * col0 * + col1 + col0 AS col2 FROM tab2 AS cor0
----
105924
30968
4998
query I rowsort
SELECT ALL + 68 * - col1 AS col2 FROM tab1 AS cor0
----
-1768
-680
-884
onlyif mysql # use DIV operator for integer division
query I rowsort label-8091
SELECT ALL 30 DIV col1 AS col1 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL 30 / col1 AS col1 FROM tab2
----
0
0
1
query I rowsort
SELECT ALL 53 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8093
SELECT + - 50 * col2 + CAST( NULL AS SIGNED ) * + 73 * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8093
SELECT + - 50 * col2 + CAST ( NULL AS INTEGER ) * + 73 * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( + col0 ) * col1 + col1 FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT 21 * col2 + + 35 FROM tab1 AS cor0
----
1169
1232
2051
query I rowsort
SELECT DISTINCT + 29 FROM tab0, tab0 AS cor0
----
29
query I rowsort
SELECT col2 * - ( ( col2 ) ) * - 66 AS col2 FROM tab2 AS cor0
----
44616
48114
95304
query I rowsort
SELECT ALL + + col2 + - ( col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT DISTINCT col1 * - 50 + tab0.col0 * col1 AS col0 FROM tab0
----
-1455
-2236
3549
query I rowsort
SELECT DISTINCT + col1 + 99 FROM tab2 AS cor0
----
116
130
158
query I rowsort
SELECT DISTINCT + cor0.col0 + ( + col0 ) FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT col2 * 41 FROM tab1 cor0
----
2214
2337
3936
query I rowsort
SELECT + col2 + ( col2 ) * + col1 FROM tab2 AS cor0
----
1560
684
864
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab0 AS cor1, tab2, tab2 cor2
----
3645 values hashing to f8426cd4d01ba96a72d7348574fbbc8e
onlyif mysql # use DIV operator for integer division
query I rowsort label-8106
SELECT ( 50 ) * col0 DIV col1 - cor0.col2 AS col2 FROM tab2 AS cor0
----
-16
194
40
skipif mysql # not compatible
query I rowsort label-8106
SELECT ( 50 ) * col0 / col1 - cor0.col2 AS col2 FROM tab2 AS cor0
----
-16
194
40
query I rowsort
SELECT ALL cor0.col2 + 72 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 343af8049d2e5c4b0973462fda5b85f4
query I rowsort
SELECT ALL - col0 * + 87 + col2 AS col1 FROM tab1 AS cor0
----
-207
-5511
-6864
query I rowsort
SELECT ALL + ( + col1 ) * col0 + + cor0.col0 - - 81 FROM tab0 AS cor0
----
2169
3511
8269
query I rowsort
SELECT ALL col2 + 25 + col1 AS col1 FROM tab1 AS cor0
----
105
134
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 - - 91 col1 FROM tab2
----
108
122
150
query I rowsort
SELECT - + ( 94 ) * + col2 AS col2 FROM tab0 AS cor0
----
-3102
-7708
-94
query I rowsort
SELECT - col0 * col2 + col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8114
SELECT + CAST( 45 AS SIGNED ) * + col0 FROM tab1 cor0
----
135
2880
3600
skipif mysql # not compatible
query I rowsort label-8114
SELECT + CAST ( 45 AS INTEGER ) * + col0 FROM tab1 cor0
----
135
2880
3600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8115
SELECT + - CAST( - col0 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-8115
SELECT + - CAST ( - col0 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - col2 * + ( + col2 + col2 ) FROM tab2 AS cor0
----
-1352
-1458
-2888
onlyif mysql # use DIV operator for integer division
query I rowsort label-8117
SELECT - cor0.col2 DIV 24 FROM tab1 AS cor0
----
-2
-2
-4
skipif mysql # not compatible
query I rowsort label-8117
SELECT - cor0.col2 / 24 FROM tab1 AS cor0
----
-2
-2
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8118
SELECT + - 17 + - col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
-18
-18
-18
skipif mysql # not compatible
query I rowsort label-8118
SELECT + - 17 + - col1 / + col1 AS col1 FROM tab0 AS cor0
----
-18
-18
-18
onlyif mysql # use DIV operator for integer division
query I rowsort label-8119
SELECT DISTINCT 27 DIV col2 AS col1 FROM tab0 cor0
----
0
27
skipif mysql # not compatible
query I rowsort label-8119
SELECT DISTINCT 27 / col2 AS col1 FROM tab0 cor0
----
0
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-8120
SELECT DISTINCT col0 DIV + col2 col1 FROM tab1 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8120
SELECT DISTINCT col0 / + col2 col1 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT - + col0 - col1 * 6 FROM tab2 AS cor0
----
-181
-193
-432
query I rowsort
SELECT ALL + 89 AS col0 FROM tab2 cor0
----
89
89
89
query I rowsort
SELECT + tab1.col0 * - ( - tab1.col0 + 29 ) FROM tab1
----
-78
2240
4080
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to d10b928ceb6690f7c98bfe77a5adfcac
query I rowsort
SELECT + col0 * + ( - 20 ) FROM tab0 AS cor0
----
-1780
-480
-700
query I rowsort
SELECT ALL 65 AS col0 FROM tab0
----
65
65
65
query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
24
35
89
query I rowsort
SELECT DISTINCT - 66 AS col0 FROM tab2, tab0 cor0
----
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8129
SELECT ALL + col1 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL + col1 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab1 AS cor1, tab1, tab2 cor2
----
3645 values hashing to 4406ccc71f02ae9c1e947ffcd89b0db7
query I rowsort
SELECT + 18 - cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 2bd0737ea0ee7a4425c4310c6dcc4dcc
onlyif mysql # use DIV operator for integer division
query I rowsort label-8132
SELECT 5 DIV - col2 AS col0 FROM tab0 AS cor0
----
-5
0
0
skipif mysql # not compatible
query I rowsort label-8132
SELECT 5 / - col2 AS col0 FROM tab0 AS cor0
----
-5
0
0
query I rowsort
SELECT ALL + ( - col2 ) * - col1 AS col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL - - 49 * - col0 AS col0 FROM tab0 AS cor0
----
-1176
-1715
-4361
query I rowsort
SELECT - 67 * col1 AS col2 FROM tab2 cor0
----
-1139
-2077
-3953
query I rowsort
SELECT DISTINCT - - ( + col0 ) * + col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + col0 + + col2 * - tab0.col2 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT ALL col0 * col1 + - col0 AS col2 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT ALL 20 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8140
SELECT ALL + col2 * - col1 + + col0 DIV 8 AS col1 FROM tab1
----
-1238
-1404
-562
skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL + col2 * - col1 + + col0 / 8 AS col1 FROM tab1
----
-1238
-1404
-562
query I rowsort
SELECT DISTINCT - cor0.col0 * ( ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col1 FROM tab1
----
10
10
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-8143
SELECT DISTINCT + tab1.col0 DIV - col1 FROM tab1
----
-6
0
skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT + tab1.col0 / - col1 FROM tab1
----
-6
0
query I rowsort
SELECT DISTINCT - 72 FROM tab0, tab2, tab0 AS cor0
----
-72
query I rowsort
SELECT ALL + 12 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6
query I rowsort
SELECT DISTINCT - 7 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8147
SELECT ALL + CAST( NULL AS SIGNED ) * 12 + col1 + + col1 / 43 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL + CAST ( NULL AS INTEGER ) * 12 + col1 + + col1 / 43 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 54 + ( - col2 + col1 ) FROM tab1 AS cor0
----
-29
26
7
query I rowsort
SELECT ALL ( + 7 ) + + col2 FROM tab1 cor0
----
103
61
64
query I rowsort
SELECT + 45 - + 19 AS col2 FROM tab1 AS cor0
----
26
26
26
query I rowsort
SELECT DISTINCT - col2 - 29 FROM tab2
----
-55
-56
-67
query I rowsort
SELECT col1 * col0 - - col0 AS col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT + tab1.col0 - 46 FROM tab1
----
-43
18
34
query I rowsort
SELECT ALL tab2.col0 * tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0
query I rowsort
SELECT ALL + tab2.col1 * - col2 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8157
SELECT ALL CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ( - col2 ) + - col0 * col0 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT - 68 * ( col0 * 34 ) + 52 FROM tab2 AS cor0
----
-16132
-180284
-182596
query I rowsort
SELECT + + 41 + - 4 - + col1 FROM tab2 cor0
----
-22
20
6
skipif mysql # not compatible
query I rowsort
SELECT + - col0 * - col1 + cor0.col1 + CAST ( col1 AS REAL ) AS col0 FROM tab1 AS cor0
----
1066
130
660
onlyif mysql # use DIV operator for integer division
query I rowsort label-8162
SELECT ALL + - col1 DIV ( + col0 ) + - col1 * cor0.col0 FROM tab1 cor0
----
-1040
-640
-86
skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL + - col1 / ( + col0 ) + - col1 * cor0.col0 FROM tab1 cor0
----
-1040
-640
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col1 FROM tab2 AS cor0
----
-30
-30
-30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8164
SELECT - ( - 6 ) + + col0 * CAST( - cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
-1337
-211
-4596
skipif mysql # not compatible
query I rowsort label-8164
SELECT - ( - 6 ) + + col0 * CAST ( - cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
-1337
-211
-4596
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 + 26 col0 FROM tab2
----
104
105
33
query I rowsort
SELECT ALL + ( 44 ) * + col1 + tab0.col2 FROM tab0
----
3817
4086
4269
query I rowsort
SELECT col1 * 45 + + col1 + - 75 * + 52 AS col1 FROM tab2
----
-1186
-2474
-3118
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8168
SELECT DISTINCT - CAST( NULL AS SIGNED ) - col2 AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-8168
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - col2 AS col1 FROM tab2
----
NULL
query I rowsort
SELECT col2 + - 87 FROM tab2
----
-49
-60
-61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8170
SELECT + col1 - col2 * - col2 / + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8170
SELECT + col1 - col2 * - col2 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 - - cor0.col1 * col1 col0 FROM tab1 AS cor0
----
20
596
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * cor0.col1 + col2 col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT - - ( cor0.col2 ) * - cor0.col1 + col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - 17 - col2 * - col0 AS col1 FROM tab2 cor0
----
172
2011
2985
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to fb3687512d3714969d7c6afc5561ed79
query I rowsort
SELECT DISTINCT - col2 * + col2 + + cor0.col2 * ( cor0.col0 * col0 + 4 ) FROM tab0 AS cor0
----
1228
18051
643126
query I rowsort
SELECT ALL + 77 + 38 * - col2 * - 5 AS col2 FROM tab1
----
10337
10907
18317
onlyif mysql # use DIV operator for integer division
query I rowsort label-8178
SELECT ALL 57 * + col1 + + col2 DIV 59 AS col2 FROM tab1 cor0
----
1482
570
742
skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL 57 * + col1 + + col2 / 59 AS col2 FROM tab1 cor0
----
1482
570
742
query I rowsort
SELECT DISTINCT ( + cor0.col2 ) * col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - col0 * col2 + + 20 FROM tab1 cor0
----
-142
-3628
-7660
query I rowsort
SELECT + col2 - - col0 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - 65 + + col0 AS col1 FROM tab1 cor0
----
-1
-62
15
query I rowsort
SELECT - col0 * - col0 + 0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL - col1 - + col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT - col2 + + col0 + - col2 FROM tab2 AS cor0
----
-47
26
3
query I rowsort
SELECT - 12 + + col0 * + col2 AS col2 FROM tab1 AS cor0
----
150
3636
7668
query I rowsort
SELECT + col1 - + 40 * col2 FROM tab0
----
-1234
-3189
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 * - col0 + - 59 col2 FROM tab0 AS cor0
----
-2363
-3419
-8603
query I rowsort
SELECT - ( - col0 ) * - col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT - ( 34 * col2 ) AS col2 FROM tab0
----
-1122
-2788
-34
query I rowsort
SELECT col2 + col0 + - tab2.col1 * 67 FROM tab2
----
-1022
-2043
-3849
onlyif mysql # use DIV operator for integer division
query I rowsort label-8192
SELECT DISTINCT + 68 - cor0.col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
68
72
skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT + 68 - cor0.col1 / - col0 AS col0 FROM tab2 AS cor0
----
68
72
query I rowsort
SELECT + + col1 * - col2 + 96 AS col0 FROM tab1 cor0
----
-1152
-1308
-474
query I rowsort
SELECT ALL 20 + col2 * - ( ( col1 ) ) FROM tab1 AS cor0
----
-1228
-1384
-550
query I rowsort
SELECT + - col2 - col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8196
SELECT ALL col0 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL col0 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col0 * col0 FROM tab0 AS cor0
----
13824
42875
704969
query I rowsort
SELECT ALL + col2 + 20 AS col0 FROM tab2 AS cor0
----
46
47
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-8199
SELECT DISTINCT + col2 + - col0 DIV - col1 FROM tab1 cor0
----
102
54
63
skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT + col2 + - col0 / - col1 FROM tab1 cor0
----
102
54
63
query I rowsort
SELECT col0 + + col2 * + col2 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT col0 * + col2 + col0 FROM tab2 AS cor0
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-8202
SELECT - cor0.col1 DIV + 41 col1 FROM tab0 AS cor0
----
-2
-2
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8202
SELECT - cor0.col1 / + 41 col1 FROM tab0 AS cor0
----
-2
-2
-2
query I rowsort
SELECT ALL - cor0.col0 + + col1 * col2 AS col2 FROM tab1 AS cor0
----
1168
1401
506
onlyif mysql # use DIV operator for integer division
query I rowsort label-8204
SELECT DISTINCT col0 + - col1 * 4 DIV cor0.col1 FROM tab2 AS cor0
----
3
74
75
skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT col0 + - col1 * 4 / cor0.col1 FROM tab2 AS cor0
----
3
74
75
skipif mysql # not compatible
query I rowsort
SELECT - - col2 / - CAST ( col2 AS REAL ) FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - - col0 * - 10 AS col0 FROM tab0 AS cor0
----
-240
-350
-890
query I rowsort
SELECT ALL col0 + - 18 AS col1 FROM tab0 cor0
----
17
6
71
query I rowsort
SELECT ALL - col2 + + cor0.col2 * 32 AS col1 FROM tab1 AS cor0
----
1674
1767
2976
query I rowsort
SELECT - col2 * 61 AS col2 FROM tab2 AS cor0
----
-1586
-1647
-2318
query I rowsort
SELECT DISTINCT + col2 * 92 AS col0 FROM tab2 AS cor0
----
2392
2484
3496
query I rowsort
SELECT DISTINCT + col0 * + 45 - + col2 FROM tab0 AS cor0
----
1047
1574
3923
query I rowsort
SELECT - - col0 * 49 FROM tab2 AS cor0
----
343
3822
3871
query I rowsort
SELECT + 83 * - col0 FROM tab0 AS cor0
----
-1992
-2905
-7387
query I rowsort
SELECT ALL 10 + col1 * col2 - 27 AS col1 FROM tab2 AS cor0
----
1517
629
820
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8215
SELECT ALL + - cor1.col1 + + CAST( NULL AS SIGNED ) / 76 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0, tab1 cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45
skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL + - cor1.col1 + + CAST ( NULL AS INTEGER ) / 76 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0, tab1 cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45
onlyif mysql # use DIV operator for integer division
query I rowsort label-8216
SELECT + col0 DIV ( 19 ) + col2 FROM tab2 AS cor0
----
27
30
42
skipif mysql # not compatible
query I rowsort label-8216
SELECT + col0 / ( 19 ) + col2 FROM tab2 AS cor0
----
27
30
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-8217
SELECT - col1 + - tab2.col1 + col0 DIV + ( col0 ) AS col0 FROM tab2
----
-117
-33
-61
skipif mysql # not compatible
query I rowsort label-8217
SELECT - col1 + - tab2.col1 + col0 / + ( col0 ) AS col0 FROM tab2
----
-117
-33
-61
query I rowsort
SELECT tab1.col2 + + tab1.col0 + col1 * col2 FROM tab1
----
1424
1461
691
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 * cor0.col2 col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT - col0 - + 34 AS col0 FROM tab0 AS cor0
----
-123
-58
-69
query I rowsort
SELECT ALL col2 * tab2.col0 * - col0 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT 57 + - col1 FROM tab1
----
31
44
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 + - ( col0 ) * tab0.col2 col2 FROM tab0
----
164
2046
62
query I rowsort
SELECT col0 * col2 * - col0 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT col1 * 49 AS col1 FROM tab0
----
4214
4459
4753
query I rowsort
SELECT DISTINCT col0 + col0 + col1 AS col2 FROM tab1
----
138
173
32
query I rowsort
SELECT - col1 * 8 AS col2 FROM tab2 cor0
----
-136
-248
-472
query I rowsort
SELECT col0 * - col2 - 91 * col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-29301
-318799
-87640
query I rowsort
SELECT ALL cor0.col1 * + 52 + - col1 * col1 + - ( - col0 ) AS col1 FROM tab1 AS cor0
----
484
587
679
query I rowsort
SELECT ALL col0 * 62 AS col2 FROM tab0 AS cor0
----
1488
2170
5518
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8231
SELECT - col1 - - CAST( + col2 AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
1475
629
806
skipif mysql # not compatible
query I rowsort label-8231
SELECT - col1 - - CAST ( + col2 AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT - 17 + - 40 AS col2 FROM tab1 AS cor0
----
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8233
SELECT - col2 DIV + ( col1 ) + - ( 32 ) FROM tab0 AS cor0
----
-32
-32
-32
skipif mysql # not compatible
query I rowsort label-8233
SELECT - col2 / + ( col1 ) + - ( 32 ) FROM tab0 AS cor0
----
-32
-32
-32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - ( cor0.col1 ) + col2 * + 56 col2 FROM tab1 cor0
----
1620
2622
4128
query I rowsort
SELECT + ( cor0.col2 ) + + col2 AS col1 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-8236
SELECT DISTINCT + col1 + - col0 DIV + col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT + col1 + - col0 / + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - 21 + + col2 FROM tab0 AS cor0
----
-20
12
61
query I rowsort
SELECT cor0.col0 + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 13a45e994f0549dd29e84599a57026d0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col0 FROM tab2 cor0
----
65
65
65
query I rowsort
SELECT DISTINCT cor0.col1 + + col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - + 38 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-12
-25
-28
query I rowsort
SELECT ALL ( + tab1.col1 ) FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT cor0.col0 + + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to d994d266bacb99d3939b70b2c7903ce8
query I rowsort
SELECT ALL 9 * col2 + ( - 23 + cor0.col0 * col0 ) FROM tab1 AS cor0
----
4586
472
7241
query I rowsort
SELECT 13 + - cor0.col0 FROM tab0 AS cor0
----
-11
-22
-76
query I rowsort
SELECT - + 54 * col2 AS col1 FROM tab2 AS cor0
----
-1404
-1458
-2052
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8247
SELECT cor0.col2 * + col2 / + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8247
SELECT cor0.col2 * + col2 / + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + - col2 * - 65 * cor0.col2 AS col1 FROM tab1 AS cor0
----
189540
211185
599040
query I rowsort
SELECT col2 + + 27 * - 34 AS col1 FROM tab1 AS cor0
----
-822
-861
-864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8251
SELECT DISTINCT + CAST( + cor0.col2 AS SIGNED ) * col1 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-8251
SELECT DISTINCT + CAST ( + cor0.col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT 41 AS col2 FROM tab2
----
41
query I rowsort
SELECT - 19 * col0 + col0 + col2 AS col1 FROM tab0 AS cor0
----
-1520
-399
-629
query I rowsort
SELECT col2 * + col2 + col0 + col1 FROM tab2 AS cor0
----
1540
767
813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 * - cor0.col1 col2 FROM tab1 cor0
----
1168
1401
506
query I rowsort
SELECT - + 79 FROM tab1 AS cor0
----
-79
-79
-79
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 10 AS REAL ) * - col2 FROM tab1 AS cor0
----
540
570
960
query I rowsort
SELECT - 31 + + col2 * + ( + 26 ) AS col2 FROM tab2 cor0
----
645
671
957
query I rowsort
SELECT + ( - 21 * - col0 ) + col2 FROM tab2
----
1664
1697
174
query I rowsort
SELECT - - 32 + + col2 * - 46 FROM tab1 AS cor0
----
-2452
-2590
-4384
query I rowsort
SELECT - cor0.col0 * col1 + ( - col0 + col2 ) FROM tab2 cor0
----
-1384
-197
-4654
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) * col0 col0 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-8263
SELECT DISTINCT + col0 DIV - tab1.col2 FROM tab1
----
-1
0
skipif mysql # not compatible
query I rowsort label-8263
SELECT DISTINCT + col0 / - tab1.col2 FROM tab1
----
-1
0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0, tab2 cor2
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff
query I rowsort
SELECT col0 * col0 * col0 + + col1 AS col0 FROM tab0 AS cor0
----
13910
42972
705060
query I rowsort
SELECT - col0 * - 28 AS col1 FROM tab2 AS cor0
----
196
2184
2212
onlyif mysql # use DIV operator for integer division
query I rowsort label-8267
SELECT col2 + + ( - ( col2 ) ) + col1 DIV - col0 AS col2 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-8267
SELECT col2 + + ( - ( col2 ) ) + col1 / - col0 AS col2 FROM tab1
----
-8
0
0
query I rowsort
SELECT DISTINCT + col2 * 60 FROM tab1 AS cor0
----
3240
3420
5760
onlyif mysql # use DIV operator for integer division
query I rowsort label-8269
SELECT + cor0.col1 DIV + 84 + - col1 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-8269
SELECT + cor0.col1 / + 84 + - col1 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT DISTINCT col1 + 45 AS col0 FROM tab1 AS cor0
----
55
58
71
query I rowsort
SELECT DISTINCT - col0 * cor0.col0 * - col2 - - col1 FROM tab1 cor0
----
233482
512
614413
query I rowsort
SELECT + + col2 * ( col0 ) - col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT ALL - + col0 * + col0 - 94 FROM tab2 AS cor0
----
-143
-6178
-6335
query I rowsort
SELECT col0 + - 32 FROM tab1 AS cor0
----
-29
32
48
query I rowsort
SELECT + cor0.col1 - + 21 AS col0 FROM tab2 AS cor0
----
-4
10
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8276
SELECT DISTINCT + col1 * CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT + col1 * CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1040
640
78
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 * col0 * 52 + + cor0.col1 col1 FROM tab1 AS cor0
----
213002
332813
494
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 18 col0 FROM tab2 cor0
----
1062
306
558
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8280
SELECT DISTINCT + CAST( + ( - col1 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT + CAST ( + ( - col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 73 + col0 col2 FROM tab2 AS cor0
----
151
152
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8282
SELECT ALL - col0 DIV col1 + cor0.col0 FROM tab2 AS cor0
----
7
75
77
skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL - col0 / col1 + cor0.col0 FROM tab2 AS cor0
----
7
75
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + ( col1 ) * - 79 col1 FROM tab1 AS cor0
----
-1040
-2080
-800
query I rowsort
SELECT ALL col0 * 66 - col0 FROM tab2 cor0
----
455
5070
5135
query I rowsort
SELECT 2 * 23 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT DISTINCT 59 + + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
148
83
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-8287
SELECT - 51 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8287
SELECT - 51 / col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col0 FROM tab1, tab1 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT DISTINCT + + 73 * col2 * + col1 AS col0 FROM tab2 AS cor0
----
111982
47158
61101
query I rowsort
SELECT col2 * + col0 * + col0 AS col2 FROM tab1 cor0
----
233472
486
614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-8291
SELECT DISTINCT + + col2 DIV col2 AS col2 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT + + col2 / col2 AS col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT ALL cor0.col1 * - 45 FROM tab2, tab2 AS cor0
----
9 values hashing to e4d5c63cd450f2b33efe605cd738029d
query I rowsort
SELECT ALL + 13 * col1 + - col0 AS col1 FROM tab1 AS cor0
----
335
66
89
query I rowsort
SELECT - col0 + + 8 AS col0 FROM tab2 AS cor0
----
-70
-71
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8295
SELECT ALL - col0 + col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL - col0 + col1 / - col1 AS col0 FROM tab1 AS cor0
----
-4
-65
-81
query I rowsort
SELECT DISTINCT + + col2 + ( col0 + col0 ) FROM tab0 cor0
----
260
71
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 - col1 * - col1 * col1 col0 FROM tab2 cor0
----
205438
29822
4930
query I rowsort
SELECT DISTINCT 58 * + col1 AS col1 FROM tab1
----
1508
580
754
query I rowsort
SELECT - col2 * - tab0.col0 - ( - 56 * col1 ) FROM tab0
----
12394
5467
5608
query I rowsort
SELECT + tab1.col1 * + col2 * 63 + 80 FROM tab1
----
35990
78704
88532
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8301
SELECT + col2 * col0 - CAST( - 81 AS SIGNED ) * col2 AS col0 FROM tab1
----
15456
4536
8265
skipif mysql # not compatible
query I rowsort label-8301
SELECT + col2 * col0 - CAST ( - 81 AS INTEGER ) * col2 AS col0 FROM tab1
----
15456
4536
8265
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * 42 col1 FROM tab2 AS cor0
----
1302
2478
714
query I rowsort
SELECT 96 * 19 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d8592de5cd74423e812334e1dab8549a
query I rowsort
SELECT + 70 * - tab0.col2 + - 61 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ac578cafb64b5d1df458cbb2ad784359
query I rowsort
SELECT col0 + - col0 + col1 * col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL - col1 + 24 * 24 + col1 FROM tab0
----
576
576
576
query I rowsort
SELECT DISTINCT - col1 + col0 * 12 FROM tab2
----
53
877
931
query I rowsort
SELECT - tab0.col2 * - tab0.col1 + 29 FROM tab0
----
126
2867
7491
query I rowsort
SELECT col0 * ( col0 * col1 ) + ( - col1 ) + - col2 AS col2 FROM tab2
----
106042
1461
358871
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT col2 + - 38 + 48 AS col2 FROM tab2
----
36
37
48
query I rowsort
SELECT DISTINCT - col1 * col2 + + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT + col1 * + 47 FROM tab1 AS cor0
----
1222
470
611
query I rowsort
SELECT ALL + col0 + col1 + col2 * col1 FROM tab0
----
229
2948
7642
query I rowsort
SELECT 7 + col1 AS col1 FROM tab0
----
104
93
98
query I rowsort
SELECT ALL col1 + + 45 FROM tab0
----
131
136
142
onlyif mysql # use DIV operator for integer division
query I rowsort label-8317
SELECT ALL + col0 DIV + 62 + col0 AS col1 FROM tab2
----
7
79
80
skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL + col0 / + 62 + col0 AS col1 FROM tab2
----
7
79
80
query I rowsort
SELECT - ( col2 ) * + tab0.col0 - col1 FROM tab0
----
-132
-7389
-878
onlyif mysql # use DIV operator for integer division
query I rowsort label-8319
SELECT DISTINCT + 65 * col2 DIV - cor0.col0 + + col1 AS col2 FROM tab2 AS cor0
----
-14
-219
38
skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT + 65 * col2 / - cor0.col0 + + col1 AS col2 FROM tab2 AS cor0
----
-14
-219
38
query I rowsort
SELECT ALL ( col2 ) + + col0 * - 31 * - col2 FROM tab2 AS cor0
----
5886
62894
93100
query I rowsort
SELECT - 24 + cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
165
2004
2978
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8322
SELECT + ( tab2.col0 * CAST( NULL AS SIGNED ) ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8322
SELECT + ( tab2.col0 * CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - col1 + - col2 + + col0 AS col1 FROM tab2 AS cor0
----
-51
-7
24
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL + 31 + col2 * cor0.col1 + + col2 FROM tab2 cor0
----
1591
715
895
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 94 col1 FROM tab1 cor0
----
94
94
94
query I rowsort
SELECT DISTINCT col1 + cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-8328
SELECT DISTINCT + + cor0.col0 + + cor0.col0 DIV + col1 col2 FROM tab2 AS cor0
----
7
79
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT + + cor0.col0 + + cor0.col0 / + col1 col2 FROM tab2 AS cor0
----
7
79
83
query I rowsort
SELECT ALL - col0 + col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT - col1 * col0 + + col1 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-8331
SELECT DISTINCT col2 DIV col1 AS col0 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT col2 / col1 AS col0 FROM tab0 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8332
SELECT + col1 + cor0.col0 DIV + col1 FROM tab1 AS cor0
----
16
19
26
skipif mysql # not compatible
query I rowsort label-8332
SELECT + col1 + cor0.col0 / + col1 FROM tab1 AS cor0
----
16
19
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8333
SELECT DISTINCT 47 DIV + col1 + col2 FROM tab2 cor0
----
26
28
40
skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT 47 / + col1 + col2 FROM tab2 cor0
----
26
28
40
query I rowsort
SELECT DISTINCT - col1 + - col2 + - 15 AS col0 FROM tab0 AS cor0
----
-113
-134
-188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) + - ( + col2 ) col2 FROM tab2 AS cor0
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + col1 col1 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT - + 51 FROM tab0 cor0
----
-51
-51
-51
query I rowsort
SELECT + col2 * + ( + cor0.col1 * 7 + 32 ) AS col0 FROM tab0 AS cor0
----
20922
54858
711
query I rowsort
SELECT ALL - 7 * + col1 AS col0 FROM tab2
----
-119
-217
-413
query I rowsort
SELECT + 34 * + col2 AS col0 FROM tab2 AS cor0
----
1292
884
918
onlyif mysql # use DIV operator for integer division
query I rowsort label-8341
SELECT col1 DIV ( col1 ) 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-8341
SELECT col1 / ( col1 ) col2 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8342
SELECT DISTINCT - CAST( col2 AS SIGNED ) * - col0 FROM tab1
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * - col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + col0 * + 67 + 43 * - col2 * col0 + 8 * - col0 * - col0 FROM tab1 AS cor0
----
-119808
-273680
-6693
query I rowsort
SELECT col0 + ( + col1 * col0 ) + + 16 AS col2 FROM tab1 AS cor0
----
1136
720
97
query I rowsort
SELECT - col1 + 37 * 41 AS col1 FROM tab2 AS cor0
----
1458
1486
1500
onlyif mysql # use DIV operator for integer division
query I rowsort label-8346
SELECT DISTINCT + col2 + col0 DIV col2 FROM tab0 AS cor0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT + col2 + col0 / col2 FROM tab0 AS cor0
----
33
36
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 * + 10 FROM tab2 AS cor0
----
-260
-270
-380
query I rowsort
SELECT 87 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
query I rowsort
SELECT + + col1 * ( col2 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + col2 * col1 + + col2 * col1 AS col1 FROM tab2
----
1292
1674
3068
onlyif mysql # use DIV operator for integer division
query I rowsort label-8352
SELECT DISTINCT tab0.col0 DIV + col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-8352
SELECT DISTINCT tab0.col0 / + col1 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 65 * - cor0.col1 col1 FROM tab1 AS cor0
----
-41600
-5070
-67600
onlyif mysql # use DIV operator for integer division
query I rowsort label-8354
SELECT ALL col0 DIV 59 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL col0 / 59 FROM tab2
----
0
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8355
SELECT + col0 + 16 * col2 DIV 73 FROM tab0 AS cor0
----
106
31
35
skipif mysql # not compatible
query I rowsort label-8355
SELECT + col0 + 16 * col2 / 73 FROM tab0 AS cor0
----
106
31
35
query I rowsort
SELECT DISTINCT - ( - col0 ) + + col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT ( 84 ) * col2 FROM tab1 AS cor0
----
4536
4788
8064
skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( col0 AS REAL ) / + col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT cor0.col1 + 19 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-102
-1423
-1484
query I rowsort
SELECT ALL - + ( - cor0.col1 ) + + col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT DISTINCT - - 80 * - col2 + col0 + col2 AS col1 FROM tab0 cor0
----
-2583
-44
-6389
query I rowsort
SELECT - col0 * 28 FROM tab2
----
-196
-2184
-2212
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) FROM tab2, tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col2 * 19 AS col0 FROM tab2
----
494
513
722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 73 + col1 ) col2 FROM tab1
----
-47
-60
-63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8366
SELECT + col2 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8366
SELECT + col2 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 * - cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + cor0.col1 + col2 + col1 AS col1 FROM tab2 AS cor0
----
144
72
89
query I rowsort
SELECT cor0.col2 - - col2 * col2 AS col1 FROM tab2 AS cor0
----
1482
702
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-8370
SELECT DISTINCT - col1 + col2 * col1 + - col2 DIV - cor0.col0 FROM tab0 AS cor0
----
0
2753
7371
skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT - col1 + col2 * col1 + - col2 / - cor0.col0 FROM tab0 AS cor0
----
0
2753
7371
onlyif mysql # use DIV operator for integer division
query I rowsort label-8371
SELECT DISTINCT + col0 + + tab1.col1 + + tab1.col0 DIV + col1 AS col0 FROM tab1
----
29
80
99
skipif mysql # not compatible
query I rowsort label-8371
SELECT DISTINCT + col0 + + tab1.col1 + + tab1.col0 / + col1 AS col0 FROM tab1
----
29
80
99
query I rowsort
SELECT + col0 - col2 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL + col2 + col0 AS col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL + col2 + col0 + - col0 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + col1 * + cor0.col2 AS col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT col0 - + col1 * col0 AS col0 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT + col2 * col2 + + col2 AS col1 FROM tab0
----
1122
2
6806
query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
-34
1065
6635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 - - col1 col0 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL col0 * col1 + + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2609
-2838
-8176
query I rowsort
SELECT DISTINCT col2 - + col2 * col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL col0 * - col1 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL - col2 * - col1 + col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT col0 * + col1 AS col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - + col2 - col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-8387
SELECT DISTINCT + + col0 DIV col2 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT + + col0 / col2 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT + - col0 * + cor0.col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-262144
-27
-512000
query I rowsort
SELECT ALL - 87 * col2 AS col0 FROM tab0 cor0
----
-2871
-7134
-87
query I rowsort
SELECT + tab1.col0 FROM tab1 WHERE ( NULL ) NOT IN ( col1 )
----
query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT ( NULL ) IN ( col0 * - col0 )
----
query I rowsort
SELECT 39 - + 22 FROM tab0, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
onlyif mysql # use DIV operator for integer division
query I rowsort label-8393
SELECT DISTINCT - col1 + col1 DIV ( - ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT - col1 + col1 / ( - ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - + 56 + - col1 AS col1 FROM tab2 AS cor0
----
-115
-73
-87
query I rowsort
SELECT - col1 * - col1 + col0 AS col2 FROM tab1
----
164
249
679
query I rowsort
SELECT col1 * + tab2.col1 + + col1 AS col2 FROM tab2
----
306
3540
992
query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 ) NOT IN ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT + col1 * col0 + col2 + + col2 FROM tab0
----
2130
3397
8263
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) <= col1
----
query I rowsort
SELECT ALL + col2 + col1 * col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT col2 * + col1 AS col1 FROM tab0 WHERE NOT ( - col1 * col2 ) NOT IN ( + tab0.col0 * col2 / + col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 + - col1 col0 FROM tab2
----
1326
186
4543
query I rowsort
SELECT - col0 FROM tab2 WHERE NULL NOT IN ( - tab2.col2 * col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + tab0.col0 + + col1 col2 FROM tab0
----
134
167
269
query I rowsort
SELECT ALL + col0 + col2 + + col2 FROM tab1
----
111
178
272
query I rowsort
SELECT ALL - col2 * + tab0.col2 * col0 AS col1 FROM tab0
----
-26136
-35
-598436
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - col0 * col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 + col0 - - col0 col0 FROM tab2
----
182
196
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 * - col1 col0 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT ALL col2 + tab0.col0 + col2 FROM tab0
----
253
37
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-8411
SELECT + col1 DIV col2 + - col0 col0 FROM tab1
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8411
SELECT + col1 / col2 + - col0 col0 FROM tab1
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8412
SELECT DISTINCT - col2 + + col2 + - col0 DIV + col0 col0 FROM tab2
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT - col2 + + col2 + - col0 / + col0 col0 FROM tab2
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 * col0 col1 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT - col1 * col2 - col2 FROM tab0 WHERE NULL = ( NULL )
----
query I rowsort
SELECT DISTINCT + col0 * + col0 * - col2 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT + col1 + + tab2.col1 - col0 * - tab2.col0 FROM tab2
----
111
6202
6275
query I rowsort
SELECT DISTINCT col1 * col2 + - tab2.col1 FROM tab2
----
1475
629
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 * - col0 col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ALL col2 * tab2.col2 * - col1 + + col0 AS col0 FROM tab2
----
-22592
-24469
-39806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 * col1 * col0 col0 FROM tab1
----
13600
2031
6464
query I rowsort
SELECT + col0 * tab2.col2 * - tab2.col2 AS col0 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT - col1 + + col0 * + col2 + + col2 * col1 / col0 AS col2 FROM tab2 WHERE col1 BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8423
SELECT - col1 + tab1.col2 DIV - col2 AS col1 FROM tab1
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-8423
SELECT - col1 + tab1.col2 / - col2 AS col1 FROM tab1
----
-11
-14
-27
query I rowsort
SELECT ALL col1 * + tab1.col2 + + col1 FROM tab1
----
1261
1430
580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8425
SELECT + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8425
SELECT + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - ( - col0 ) col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT - 71 * col1 FROM tab0 AS cor0
----
-6106
-6461
-6887
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * 0 * + col1 col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL - + ( - cor0.col1 ) AS col2 FROM tab2 cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8430
SELECT - 70 + - col0 + + col2 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8430
SELECT - 70 + - col0 + + col2 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - tab2.col2 * 35 FROM tab2
----
-1330
-910
-945
query I rowsort
SELECT - col1 - col2 * - col2 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT - col0 + + 77 AS col0 FROM tab1 AS cor0
----
-3
13
74
query I rowsort
SELECT + col0 + 17 FROM tab2
----
24
95
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8435
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 31 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 31 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT col1 - + cor0.col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col0 col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ( + col1 ) + - col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL tab0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL + 34 * col0 FROM tab1
----
102
2176
2720
query I rowsort
SELECT 28 + col2 * cor0.col0 * - col1 + + col2 * col1 * col0 AS col0 FROM tab1 AS cor0
----
28
28
28
query I rowsort
SELECT + col0 + + col0 + col1 FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT - col0 * cor0.col2 + - col2 + col2 * + col1 * col2 FROM tab1 AS cor0
----
112032
28785
75600
query I rowsort
SELECT + - col0 + col1 * - col0 AS col1 FROM tab1 cor0
----
-1120
-704
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-8445
SELECT - col2 DIV + col1 - col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8445
SELECT - col2 / + col1 - col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL 58 * col0 FROM tab2
----
406
4524
4582
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8447
SELECT ALL CAST( col2 AS SIGNED ) AS col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL CAST ( col2 AS INTEGER ) AS col2 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT col2 * cor0.col1 + col2 FROM tab1 AS cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * col1 col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - + col2 * col2 * cor0.col0 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT 82 * col1 AS col1 FROM tab1
----
1066
2132
820
query I rowsort
SELECT - + col1 * + col1 FROM tab1 cor0
----
-100
-169
-676
query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL NOT IN ( col0 ) ) AND col0 IN ( tab1.col0 * - col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8454
SELECT ALL - ( - tab0.col2 ) DIV - col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL - ( - tab0.col2 ) / - col2 FROM tab0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8455
SELECT ALL col2 + col1 DIV col1 + col2 FROM tab1
----
109
115
193
skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL col2 + col1 / col1 + col2 FROM tab1
----
109
115
193
query I rowsort
SELECT + cor1.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL + - ( 21 ) + col1 + cor0.col2 FROM tab0 cor0
----
152
77
98
query I rowsort
SELECT + col2 * 71 FROM tab0
----
2343
5822
71
query I rowsort
SELECT + 22 * col2 AS col1 FROM tab0
----
1804
22
726
onlyif mysql # use DIV operator for integer division
query I rowsort label-8460
SELECT DISTINCT + col0 * col1 - col1 DIV - col0 FROM tab1
----
1040
640
86
skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT + col0 * col1 - col1 / - col0 FROM tab1
----
1040
640
86
query I rowsort
SELECT - ( + ( col1 ) ) + + col2 + col1 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT - 81 * + 5 FROM tab2
----
-405
-405
-405
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8463
SELECT ALL CAST( col0 AS SIGNED ) col0 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL CAST ( col0 AS INTEGER ) col0 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8464
SELECT ALL + ( col2 ) DIV col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL + ( col2 ) / col2 FROM tab1
----
1
1
1
query I rowsort
SELECT - col1 * 37 AS col0 FROM tab2 AS cor0
----
-1147
-2183
-629
query I rowsort
SELECT + ( 51 ) + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2787
-46
-7411
query I rowsort
SELECT - ( + 33 ) - col2 FROM tab2 AS cor0
----
-59
-60
-71
query I rowsort
SELECT ALL 29 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8469
SELECT ALL col1 + col2 DIV col0 FROM tab2 AS cor0
----
17
34
59
skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL col1 + col2 / col0 FROM tab2 AS cor0
----
17
34
59
query I rowsort
SELECT - + 64 AS col0 FROM tab1 AS cor0
----
-64
-64
-64
query I rowsort
SELECT DISTINCT - - 66 AS col1 FROM tab1 AS cor0
----
66
query I rowsort
SELECT ALL + 35 AS col2 FROM tab1 cor0
----
35
35
35
query I rowsort
SELECT ALL - 77 + col1 * + col1 AS col1 FROM tab2 AS cor0
----
212
3404
884
query I rowsort
SELECT DISTINCT - 44 * col1 AS col1 FROM tab2 cor0
----
-1364
-2596
-748
query I rowsort
SELECT - - col0 * + 61 FROM tab0 AS cor0
----
1464
2135
5429
query I rowsort
SELECT ALL + 63 * col1 FROM tab2 AS cor0
----
1071
1953
3717
query I rowsort
SELECT DISTINCT 76 * + col2 FROM tab0 AS cor0
----
2508
6232
76
query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 + cor0.col1 col0 FROM tab0, tab2 cor0
----
22
36
64
query I rowsort
SELECT 98 FROM tab2, tab2 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT DISTINCT col1 + - 6 + - 11 FROM tab0
----
69
74
80
query I rowsort
SELECT ALL col0 * - ( col0 ) * col2 + + col2 AS col1 FROM tab1
----
-233415
-432
-614304
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
3645 values hashing to 5a114c3d024b82b28eeddb04849c8215
query I rowsort
SELECT + ( + 87 ) AS col0 FROM tab0 AS cor0
----
87
87
87
query I rowsort
SELECT - 77 * cor0.col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
118118
49742
64449
query I rowsort
SELECT DISTINCT - + 73 * col1 FROM tab2 AS cor0
----
-1241
-2263
-4307
onlyif mysql # use DIV operator for integer division
query I rowsort label-8487
SELECT ALL - 92 DIV col1 AS col2 FROM tab0 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL - 92 / col1 AS col2 FROM tab0 AS cor0
----
-1
-1
0
query I rowsort
SELECT ALL + col0 * + 32 FROM tab2
----
224
2496
2528
onlyif mysql # use DIV operator for integer division
query I rowsort label-8489
SELECT - - col0 + + CAST( - col2 AS SIGNED ) * + col0 DIV col0 FROM tab0 AS cor0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-8489
SELECT - - col0 + + CAST ( - col2 AS INTEGER ) * + col0 / col0 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8490
SELECT + + col1 * CAST( NULL AS SIGNED ) + + ( cor0.col1 + - col0 * col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8490
SELECT + + col1 * CAST ( NULL AS INTEGER ) + + ( cor0.col1 + - col0 * col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 + 34 * + col2 FROM tab1 AS cor0
----
1839
2002
3344
query I rowsort
SELECT - 65 * + col2 FROM tab0 AS cor0
----
-2145
-5330
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-8493
SELECT - col0 * col0 DIV ( col2 ) FROM tab0
----
-1225
-17
-96
skipif mysql # not compatible
query I rowsort label-8493
SELECT - col0 * col0 / ( col2 ) FROM tab0
----
-1225
-17
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8494
SELECT col1 DIV + 89 + - col1 FROM tab0
----
-86
-90
-96
skipif mysql # not compatible
query I rowsort label-8494
SELECT col1 / + 89 + - col1 FROM tab0
----
-86
-90
-96
query I rowsort
SELECT 80 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT ALL - col1 * 27 * 75 + - col1 + - col1 FROM tab2
----
-119593
-34459
-62837
query I rowsort
SELECT DISTINCT + col2 * - ( col1 * col1 ) AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT ALL - col2 * cor0.col1 + + cor0.col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL col2 * + 91 AS col1 FROM tab0 AS cor0
----
3003
7462
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + ( - col1 + + cor0.col2 ) col2 FROM tab1 cor0
----
1512
2679
7968
query I rowsort
SELECT + col2 * - 45 AS col1 FROM tab2
----
-1170
-1215
-1710
query I rowsort
SELECT cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT + col0 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1523
736
754
skipif mysql # not compatible
query I rowsort
SELECT ALL + + col0 * CAST ( + col0 + col1 AS REAL ) * col1 FROM tab2 AS cor0
----
128928
630474
8246
query I rowsort
SELECT col1 + + ( - col1 + - col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT 73 * 26 FROM tab2, tab2 AS cor0
----
1898
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col0 - - 68 col2 FROM tab2 cor0
----
117
6152
6309
query I rowsort
SELECT DISTINCT - + 98 * col0 FROM tab0 cor0
----
-2352
-3430
-8722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8509
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8510
SELECT + CAST( col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-8510
SELECT + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT + 16 * + col1 AS col0 FROM tab1 AS cor0
----
160
208
416
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8512
SELECT ALL + CAST( NULL AS DECIMAL ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL + CAST ( NULL AS REAL ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + ( cor0.col2 ) * col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT cor0.col1 * col0 + - col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017
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 + tab0.col1 + + tab0.col1 AS col0 FROM tab0
----
172
182
194
query I rowsort
SELECT DISTINCT col0 + - col1 + + col2 * col0 * + col0 AS col1 FROM tab2
----
1299
158203
237220
query I rowsort
SELECT 13 + 60 * - col1 AS col2 FROM tab2 AS cor0
----
-1007
-1847
-3527
query I rowsort
SELECT - ( 95 ) AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c
query I rowsort
SELECT ALL + - 17 - - col0 FROM tab2 cor0
----
-10
61
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + col0 ) * + 0 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 53 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
query I rowsort
SELECT - + 38 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2052
-2166
-3648
query I rowsort
SELECT ALL cor0.col1 * + col2 + col1 FROM tab2 AS cor0
----
1593
663
868
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab0 cor1, tab0, tab2 AS cor2
----
3645 values hashing to fa0488bdae83f58c7ffa92505e928570
query I rowsort
SELECT 42 * cor0.col0 * + 8 FROM tab2 AS cor0
----
2352
26208
26544
query I rowsort
SELECT + col1 + - col1 * col0 * col1 FROM tab2 AS cor0
----
-22814
-271459
-6696
query I rowsort
SELECT DISTINCT col1 - col2 * - col2 AS col0 FROM tab0
----
1175
6815
98
query I rowsort
SELECT ALL + col2 + 34 FROM tab0 AS cor0
----
116
35
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8530
SELECT ALL + cor0.col1 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL + cor0.col1 + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col0 * 97 * col2 + col1 * 26 FROM tab0 AS cor0
----
5917
710272
79060
query I rowsort
SELECT ALL 5 + + col0 + col2 AS col0 FROM tab1
----
126
181
62
query I rowsort
SELECT DISTINCT 99 * + col2 + + 2 FROM tab1
----
5348
5645
9506
query I rowsort
SELECT - ( + col0 ) * - col2 + tab0.col2 + - col0 AS col2 FROM tab0
----
1
7291
801
query I rowsort
SELECT ALL - 15 FROM tab2, tab2 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2
query I rowsort
SELECT + - ( + col2 ) * - 6 FROM tab2 cor0
----
156
162
228
onlyif mysql # use DIV operator for integer division
query I rowsort label-8537
SELECT - col1 + + col0 DIV ( + col0 + + col2 ) FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8537
SELECT - col1 + + col0 / ( + col0 + + col2 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL tab1.col0 + + col2 * + 97 + - col0 FROM tab1
----
5238
5529
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 + + col2 col2 FROM tab1
----
109
112
151
query I rowsort
SELECT DISTINCT + 97 AS col0 FROM tab2, tab0 AS cor0
----
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 93 col0 FROM tab0
----
117
128
182
query I rowsort
SELECT ALL - col0 + 96 * col0 FROM tab0 AS cor0
----
2280
3325
8455
query I rowsort
SELECT DISTINCT col2 + + ( - col1 ) * - col1 AS col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT + col2 * col2 + + col2 FROM tab0 AS cor0
----
1122
2
6806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 * + col2 col1 FROM tab0 cor0
----
0
1056
6642
query I rowsort
SELECT - 72 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6
query I rowsort
SELECT + + ( cor0.col1 ) - + col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT col1 + + cor0.col0 + - cor0.col2 * ( col0 + + col1 ) FROM tab1 AS cor0
----
-1537
-4144
-8835
query I rowsort
SELECT DISTINCT + col2 * 27 AS col0 FROM tab0
----
2214
27
891
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8550
SELECT DISTINCT - CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + + col2 + - cor0.col2 + - col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL col1 * - 81 FROM tab1 AS cor0
----
-1053
-2106
-810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8553
SELECT + - ( col1 ) * - col2 - CAST( + cor0.col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1152
1350
513
skipif mysql # not compatible
query I rowsort label-8553
SELECT + - ( col1 ) * - col2 - CAST ( + cor0.col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT + + col0 * cor0.col2 - cor0.col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT - ( + 19 ) * col1 + col0 * - 24 * - col2 FROM tab0 cor0
----
-1003
173423
17374
onlyif mysql # use DIV operator for integer division
query I rowsort label-8556
SELECT col2 DIV - ( col1 ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8556
SELECT col2 / - ( col1 ) FROM tab0
----
0
0
0
query I rowsort
SELECT + - 85 + + 89 * - col0 FROM tab2 AS cor0
----
-7027
-708
-7116
query I rowsort
SELECT - ( - 11 ) FROM tab2 AS cor0
----
11
11
11
query I rowsort
SELECT DISTINCT - ( + 50 ) FROM tab1
----
-50
query I rowsort
SELECT + 89 + col2 AS col1 FROM tab2
----
115
116
127
query I rowsort
SELECT DISTINCT + 27 FROM tab0
----
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-8562
SELECT 47 DIV 99 col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8562
SELECT 47 / 99 col2 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8563
SELECT ALL CAST( + col0 AS SIGNED ) - col2 * + ( 7 ) FROM tab0
----
-207
-485
28
skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL CAST ( + col0 AS INTEGER ) - col2 * + ( 7 ) FROM tab0
----
-207
-485
28
query I rowsort
SELECT DISTINCT col2 * - col0 - + col2 AS col2 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT - 88 FROM tab1, tab0 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to 00f4aded8ec5b6d9904061ce3da09e20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8566
SELECT + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8566
SELECT + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8567
SELECT ALL - col2 * + col1 + col0 DIV + col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL - col2 * + col1 + col0 / + col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + ( - col0 ) + + col0 AS col1 FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT + - 22 FROM tab2 AS cor0
----
-22
query I rowsort
SELECT + + ( - col1 ) - col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT DISTINCT + - col2 + col0 + ( - 45 ) * - col0 FROM tab0 AS cor0
----
1071
1609
4012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + - 86 col2 FROM tab2 AS cor0
----
-1620
-732
-923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8573
SELECT - - 32 * col0 - CAST( col1 + col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
16
1981
2451
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8573
SELECT - - 32 * col0 - CAST ( col1 + col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
16
1981
2451
query I rowsort
SELECT ALL ( + col0 ) * tab1.col1 * tab1.col1 AS col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT ALL - - col0 * + cor0.col0 - ( + 39 + col1 * + col2 ) AS col2 FROM tab2 AS cor0
----
-827
4511
5556
query I rowsort
SELECT - col2 * - col1 + + 56 FROM tab0 AS cor0
----
153
2894
7518
query I rowsort
SELECT DISTINCT + - col1 + col0 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT 2 + - cor0.col0 FROM tab0 AS cor0
----
-22
-33
-87
query I rowsort
SELECT DISTINCT + 26 + col2 AS col1 FROM tab1 AS cor0
----
122
80
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8580
SELECT col0 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8580
SELECT col0 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col0 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT + col2 * col1 * + col0 AS col2 FROM tab2 AS cor0
----
119652
51034
5859
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab1, tab0 cor1
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521
onlyif mysql # use DIV operator for integer division
query I rowsort label-8584
SELECT ALL ( - col1 ) DIV col0 - col2 * - col0 AS col2 FROM tab0 AS cor0
----
33
7297
789
skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL ( - col1 ) / col0 - col2 * - col0 AS col2 FROM tab0 AS cor0
----
33
7297
789
query I rowsort
SELECT DISTINCT + - ( + col2 ) + - col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL + + 40 + 6 * - col0 AS col1 FROM tab2 cor0
----
-2
-428
-434
query I rowsort
SELECT DISTINCT - col2 - cor0.col2 * + col0 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT - 70 * - 48 FROM tab1, tab0 AS cor0
----
3360
query I rowsort
SELECT + col2 * + col0 + - ( - cor0.col1 ) * - col2 AS col1 FROM tab1 AS cor0
----
-1242
3078
6432
query I rowsort
SELECT DISTINCT col2 * - cor0.col2 + + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT + col0 * + col2 + + ( + col2 * - col2 ) AS col1 FROM tab1 AS cor0
----
-1536
-2754
399
query I rowsort
SELECT DISTINCT 7 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-182
-70
-91
query I rowsort
SELECT DISTINCT col2 * col2 * 23 + cor0.col2 FROM tab0 AS cor0
----
154734
24
25080
query I rowsort
SELECT - cor0.col0 + - cor0.col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT - 89 + + col0 FROM tab1 AS cor0
----
-25
-86
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8596
SELECT + col0 + - col0 DIV ( col2 ) AS col2 FROM tab1 AS cor0
----
3
63
80
skipif mysql # not compatible
query I rowsort label-8596
SELECT + col0 + - col0 / ( col2 ) AS col2 FROM tab1 AS cor0
----
3
63
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8597
SELECT ALL 81 DIV + 35 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
skipif mysql # not compatible
query I rowsort label-8597
SELECT ALL 81 / + 35 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT ALL 50 FROM tab2, tab2 AS cor0, tab1 cor1, tab0, tab1 AS cor2
----
243 values hashing to b834e2084022ca341153dd05ef833c6b
query I rowsort
SELECT DISTINCT + col0 + + col0 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-48
64
71
query I rowsort
SELECT ALL - col1 * col2 * 63 + col1 AS col1 FROM tab2 cor0
----
-40681
-52700
-96583
query I rowsort
SELECT ALL - 98 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f
query I rowsort
SELECT + - 69 * cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31122a861f184117a041b1db992c35ef
query I rowsort
SELECT ALL tab2.col1 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 31 ) * cor0.col1 col1 FROM tab1 AS cor0
----
-310
-403
-806
query I rowsort
SELECT ALL cor0.col0 * - 94 + - col1 * 4 AS col2 FROM tab0 AS cor0
----
-2600
-3678
-8730
onlyif mysql # use DIV operator for integer division
query I rowsort label-8606
SELECT DISTINCT - 56 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-56
0
skipif mysql # not compatible
query I rowsort label-8606
SELECT DISTINCT - 56 / col2 AS col0 FROM tab0 AS cor0
----
-1
-56
0
query I rowsort
SELECT + - col0 - - col1 * - cor0.col2 FROM tab1 cor0
----
-1328
-1407
-634
query I rowsort
SELECT - 99 - + col2 AS col1 FROM tab0 AS cor0
----
-100
-132
-181
query I rowsort
SELECT ALL + + ( + col0 ) + col0 FROM tab0 AS cor0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - tab0.col2 col2 FROM tab0
----
164
2
66
query I rowsort
SELECT ALL 27 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT ALL + col1 + col2 + + tab0.col2 FROM tab0
----
152
255
99
query I rowsort
SELECT + col0 + col0 + + tab1.col0 FROM tab1
----
192
240
9
query I rowsort
SELECT - tab2.col2 + 51 FROM tab2
----
13
24
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 + col2 col2 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT col0 + - col0 - + col2 AS col0 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + tab0.col2 AS col2 FROM tab0, tab2 cor0
----
1
33
82
query I rowsort
SELECT + col2 + col0 - col1 AS col0 FROM tab2
----
100
3
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8619
SELECT CAST( - col1 AS SIGNED ) * col2 - col0 AS col0 FROM tab1
----
-1328
-1407
-634
skipif mysql # not compatible
query I rowsort label-8619
SELECT CAST ( - col1 AS INTEGER ) * col2 - col0 AS col0 FROM tab1
----
-1328
-1407
-634
query I rowsort
SELECT + col1 + col0 + col1 AS col0 FROM tab1
----
106
55
84
query I rowsort
SELECT - tab1.col1 + - 25 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c86dc111045fc3ff496b2af86235f962
onlyif mysql # use DIV operator for integer division
query I rowsort label-8622
SELECT ( + 17 ) * - cor0.col2 + col0 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
-1626
-918
-963
skipif mysql # not compatible
query I rowsort label-8622
SELECT ( + 17 ) * - cor0.col2 + col0 / cor0.col1 AS col0 FROM tab1 AS cor0
----
-1626
-918
-963
query I rowsort
SELECT + + col0 - - 92 FROM tab1 AS cor0
----
156
172
95
query I rowsort
SELECT ALL 41 FROM tab2, tab2 cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT DISTINCT col2 + - 67 + - col0 * - 89 AS col0 FROM tab0
----
2102
3049
7936
query I rowsort
SELECT ALL + ( col0 ) + - col0 + - ( - 7 ) * col1 AS col0 FROM tab0
----
602
637
679
query I rowsort
SELECT DISTINCT tab0.col2 AS col0 FROM tab1, tab2 cor0 CROSS JOIN tab0, tab2, tab1 AS cor1
----
1
33
82
query I rowsort
SELECT ALL - col2 * - col1 + + col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT + 47 * + cor0.col2 FROM tab2 AS cor0
----
1222
1269
1786
onlyif mysql # use DIV operator for integer division
query I rowsort label-8630
SELECT ( + col2 ) + - col2 DIV 34 FROM tab0
----
1
33
80
skipif mysql # not compatible
query I rowsort label-8630
SELECT ( + col2 ) + - col2 / 34 FROM tab0
----
1
33
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8631
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 + - col2 AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8631
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 + - col2 AS col2 FROM tab1
----
NULL
query I rowsort
SELECT - + cor0.col1 * col0 + col1 + col0 FROM tab2 AS cor0
----
-1247
-179
-4465
query I rowsort
SELECT - col1 * - col0 * col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT + - cor0.col0 * col0 + col0 * + 78 FROM tab0 AS cor0
----
-979
1296
1505
query I rowsort
SELECT col2 * tab0.col1 * + 73 AS col0 FROM tab0
----
207174
544726
7081
query I rowsort
SELECT ALL - 48 + col0 * + 47 + ( - col0 ) FROM tab0 cor0
----
1056
1562
4046
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 45 + col1 * + col2 * - col1 col1 FROM tab1 cor0
----
-16269
-36549
-5745
query I rowsort
SELECT + tab2.col1 - 45 * tab2.col1 AS col1 FROM tab2
----
-1364
-2596
-748
query I rowsort
SELECT ALL 92 FROM tab2, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT + col2 + col0 * col2 * col2 AS col0 FROM tab1
----
207993
737376
8802
onlyif mysql # use DIV operator for integer division
query I rowsort label-8641
SELECT ALL col1 + + cor0.col2 * col1 DIV col1 FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL col1 + + cor0.col2 * col1 / col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + + cor0.col1 * - col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - 71 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-71
query I rowsort
SELECT + + 74 * col2 FROM tab2 AS cor0
----
1924
1998
2812
query I rowsort
SELECT DISTINCT + col0 * 77 AS col1 FROM tab0 AS cor0
----
1848
2695
6853
query I rowsort
SELECT ALL - col2 * col2 + + col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT ALL + 30 + col2 * - col0 FROM tab2 AS cor0
----
-159
-1998
-2972
query I rowsort
SELECT ALL + col1 - + 93 * - col1 FROM tab0 AS cor0
----
8084
8554
9118
query I rowsort
SELECT + - 80 + col2 AS col0 FROM tab2 AS cor0
----
-42
-53
-54
query I rowsort
SELECT - col1 * - 87 AS col2 FROM tab0 AS cor0
----
7482
7917
8439
query I rowsort
SELECT DISTINCT 30 + col1 AS col2 FROM tab2 AS cor0
----
47
61
89
query I rowsort
SELECT ALL - col1 * + col1 + col2 + 12 FROM tab0 AS cor0
----
-7351
-8187
-9396
query I rowsort
SELECT ALL - ( ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT ( 28 ) + col2 AS col1 FROM tab2 cor0
----
54
55
66
query I rowsort
SELECT DISTINCT 1 + 99 AS col1 FROM tab1 AS cor0
----
100
query I rowsort
SELECT ALL col2 * - 18 AS col1 FROM tab1
----
-1026
-1728
-972
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8657
SELECT + + CAST( - col1 AS SIGNED ) FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8657
SELECT + + CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ALL 72 + col2 AS col1 FROM tab1 AS cor0
----
126
129
168
query I rowsort
SELECT DISTINCT + 97 AS col2 FROM tab2 AS cor0
----
97
query I rowsort
SELECT col2 * + col1 - - 66 AS col2 FROM tab1 cor0
----
1314
1470
636
query I rowsort
SELECT + col2 + 88 FROM tab0 AS cor0
----
121
170
89
query I rowsort
SELECT - col0 + + col2 - + col1 * + cor0.col0 FROM tab2 AS cor0
----
-1384
-197
-4654
query I rowsort
SELECT + 62 + 79 AS col2 FROM tab0 cor0
----
141
141
141
query I rowsort
SELECT ALL + col0 * ( - col1 ) AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL - tab2.col0 * 47 AS col0 FROM tab2
----
-329
-3666
-3713
query I rowsort
SELECT - - 81 * col0 AS col2 FROM tab0 AS cor0
----
1944
2835
7209
query I rowsort
SELECT ALL + ( - 7 ) FROM tab0
----
-7
-7
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8668
SELECT CAST( ( + tab1.col0 ) AS SIGNED ) FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8668
SELECT CAST ( ( + tab1.col0 ) AS INTEGER ) FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col1 FROM tab0
----
40
40
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8670
SELECT + CAST( col2 AS SIGNED ) * + col0 FROM tab1
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-8670
SELECT + CAST ( col2 AS INTEGER ) * + col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + 40 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT - + 63 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5
query I rowsort
SELECT + + 96 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT DISTINCT 89 * + col0 + col1 FROM tab0 AS cor0
----
2222
3212
8012
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8675
SELECT - + col0 + + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8675
SELECT - + col0 + + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 AS cor0, tab1 cor1
----
972 values hashing to 635619591835474e6aa6acdff4ab166c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 * col0 ) col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT col2 + - col0 + col1 AS col2 FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT ALL - 55 FROM tab2, tab1 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3
query I rowsort
SELECT ALL - cor0.col0 * + 69 FROM tab0, tab1 AS cor0
----
9 values hashing to 3c2cf32686a3cf51d385ede68cdd5694
query I rowsort
SELECT - - col0 * + 35 FROM tab0 cor0
----
1225
3115
840
query I rowsort
SELECT ( 10 ) FROM tab2, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + ( col0 ) col2 FROM tab2 cor0
----
0
query I rowsort
SELECT ALL + col2 + - cor0.col0 * + col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8685
SELECT DISTINCT - + col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8685
SELECT DISTINCT - + col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - col2 * - ( col2 ) * + cor0.col2 + - 88 - + col1 FROM tab0 AS cor0
----
-184
35763
551189
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( col2 ) col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - col1 * ( 22 ) FROM tab0 cor0
----
-1892
-2002
-2134
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8689
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 * + col1 AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 * + col1 AS col2 FROM tab0
----
NULL
query I rowsort
SELECT + ( + 54 ) * col0 FROM tab2 AS cor0
----
378
4212
4266
query I rowsort
SELECT - col1 - - 71 * col2 FROM tab2
----
1787
1886
2681
query I rowsort
SELECT - + col2 + ( col2 ) * - 79 + 18 FROM tab2 AS cor0
----
-2062
-2142
-3022
onlyif mysql # use DIV operator for integer division
query I rowsort label-8693
SELECT ( - 62 ) * col0 DIV + 94 + + col0 AS col0 FROM tab1 AS cor0
----
2
22
28
skipif mysql # not compatible
query I rowsort label-8693
SELECT ( - 62 ) * col0 / + 94 + + col0 AS col0 FROM tab1 AS cor0
----
2
22
28
query I rowsort
SELECT + + col2 * - 72 FROM tab0 AS cor0
----
-2376
-5904
-72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8695
SELECT + CAST( 4 AS SIGNED ) + col1 + ( + col2 ) * - col2 FROM tab2 AS cor0
----
-1423
-613
-694
skipif mysql # not compatible
query I rowsort label-8695
SELECT + CAST ( 4 AS INTEGER ) + col1 + ( + col2 ) * - col2 FROM tab2 AS cor0
----
-1423
-613
-694
query I rowsort
SELECT + ( - col1 ) * col2 + + 58 AS col2 FROM tab1 AS cor0
----
-1190
-1346
-512
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 + + col2 col0 FROM tab2 AS cor0
----
-8
-9
3
query I rowsort
SELECT + col2 * col1 + - col1 * ( + col0 ) FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT + + ( + col1 ) * cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL col0 * col0 + + col2 + col0 FROM tab0 AS cor0
----
1261
633
8092
query I rowsort
SELECT ALL 71 + cor0.col1 AS col1 FROM tab1 AS cor0
----
81
84
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 + 97 col1 FROM tab2, tab2 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT DISTINCT col1 * - tab2.col1 + col1 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT tab1.col2 * col2 - - col1 AS col2 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT DISTINCT col0 * - tab2.col1 - tab2.col1 * - col0 AS col0 FROM tab2
----
0
query I rowsort
SELECT DISTINCT col2 + + tab2.col1 FROM tab2
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-8707
SELECT ALL col1 + - col2 DIV col0 AS col0 FROM tab0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL col1 + - col2 / col0 AS col0 FROM tab0
----
85
91
97
query I rowsort
SELECT + col1 * col1 + col2 * col1 AS col1 FROM tab1
----
1417
2080
670
query I rowsort
SELECT - tab0.col2 + col2 * col0 * col2 FROM tab0
----
26103
34
598354
query I rowsort
SELECT ALL - col0 + - col0 + col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 * col2 - + col1 col1 FROM tab1 AS cor0
----
190
3695
7763
query I rowsort
SELECT col0 * - cor0.col2 - - col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT - - cor0.col2 + col2 - - col1 AS col2 FROM tab1 AS cor0
----
124
134
205
query I rowsort
SELECT col0 * col1 * col1 + - col1 AS col2 FROM tab2
----
22814
271459
6696
onlyif mysql # use DIV operator for integer division
query I rowsort label-8715
SELECT ALL + col2 * col0 + col1 DIV - col2 FROM tab0
----
-62
7297
790
skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL + col2 * col0 + col1 / - col2 FROM tab0
----
-62
7297
790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 * + col1 col0 FROM tab0
----
7363
8199
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-8717
SELECT + - col0 + cor0.col2 DIV + col0 + - col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
-23
-88
0
skipif mysql # not compatible
query I rowsort label-8717
SELECT + - col0 + cor0.col2 / + col0 + - col0 / - col2 AS col0 FROM tab0 AS cor0
----
-23
-88
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8718
SELECT - col2 DIV col0 AS col1 FROM tab2 cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-8718
SELECT - col2 / col0 AS col1 FROM tab2 cor0
----
-3
0
0
query I rowsort
SELECT DISTINCT - col0 * + col2 * col0 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT - col2 * - col1 + + col1 FROM tab0 AS cor0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 + - col0 * col1 col2 FROM tab1 AS cor0
----
-70
1326
208
onlyif mysql # use DIV operator for integer division
query I rowsort label-8722
SELECT - + col2 DIV + col2 + - col1 + cor0.col2 FROM tab1 AS cor0
----
27
46
82
skipif mysql # not compatible
query I rowsort label-8722
SELECT - + col2 / + col2 + - col1 + cor0.col2 FROM tab1 AS cor0
----
27
46
82
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8724
SELECT + col2 + tab0.col2 * + col0 - col2 DIV col0 FROM tab0
----
36
7380
824
skipif mysql # not compatible
query I rowsort label-8724
SELECT + col2 + tab0.col2 * + col0 - col2 / col0 FROM tab0
----
36
7380
824
query I rowsort
SELECT DISTINCT + - col1 + + cor0.col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - col2 * col1 + - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT col0 * + col2 + + col0 FROM tab0 AS cor0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col2 col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL - + col2 * col1 - - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT 58 * + col1 + cor0.col0 FROM tab0 cor0
----
5012
5367
5661
query I rowsort
SELECT ALL + 88 + col2 * col0 AS col2 FROM tab2 AS cor0
----
2116
277
3090
query I rowsort
SELECT - 69 AS col0 FROM tab2 cor0
----
-69
-69
-69
query I rowsort
SELECT + col0 * - cor0.col0 * + cor0.col2 AS col0 FROM tab1 cor0
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT + 94 * col2 FROM tab2 AS cor0
----
2444
2538
3572
query I rowsort
SELECT ALL + - 43 + col1 FROM tab1 AS cor0
----
-17
-30
-33
query I rowsort
SELECT + + 47 * + cor0.col2 FROM tab1 cor0
----
2538
2679
4512
query I rowsort
SELECT - - 45 * - col1 FROM tab1 AS cor0
----
-1170
-450
-585
onlyif mysql # use DIV operator for integer division
query I rowsort label-8738
SELECT ALL 2 DIV - col0 - - col2 DIV col0 AS col1 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL 2 / - col0 - - col2 / col0 AS col1 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT - + 24 + col0 AS col1 FROM tab2 AS cor0
----
-17
54
55
query I rowsort
SELECT DISTINCT 91 * - col2 AS col2 FROM tab0 cor0
----
-3003
-7462
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + - col2 * - cor0.col0 * + col2 col1 FROM tab0 AS cor0
----
132
26222
598527
query I rowsort
SELECT + - ( col1 ) * - col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - - 34 * - col0 FROM tab2 AS cor0
----
-238
-2652
-2686
onlyif mysql # use DIV operator for integer division
query I rowsort label-8744
SELECT + col2 - + col0 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
54
56
96
skipif mysql # not compatible
query I rowsort label-8744
SELECT + col2 - + col0 / cor0.col2 AS col1 FROM tab1 AS cor0
----
54
56
96
query I rowsort
SELECT - col1 - col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT + col2 + + tab1.col2 * tab1.col2 * + col1 AS col2 FROM tab1
----
119904
32547
75870
query I rowsort
SELECT ALL + col2 + + col1 AS col1 FROM tab2 WHERE NOT - col0 IN ( col2 * - col1 + - col1 )
----
55
58
85
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 NOT IN ( + tab1.col0 )
----
query I rowsort
SELECT col2 - tab1.col0 * - col1 FROM tab1
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-8751
SELECT ALL + tab0.col0 DIV col0 + + col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL + tab0.col0 / col0 + + col1 FROM tab0
----
87
92
98
query I rowsort
SELECT ALL - col1 * - col2 * - tab0.col2 + col2 AS col0 FROM tab0
----
-611802
-93621
-96
query I rowsort
SELECT DISTINCT + col0 + col1 FROM tab1 WHERE ( NULL ) <> + col0 + col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8754
SELECT ALL col1 + tab1.col1 DIV col0 AS col0 FROM tab1
----
10
13
34
skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL col1 + tab1.col1 / col0 AS col0 FROM tab1
----
10
13
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-8755
SELECT tab0.col1 DIV + col1 AS col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8755
SELECT tab0.col1 / + col1 AS col1 FROM tab0
----
1
1
1
query I rowsort
SELECT - col1 * + tab2.col0 AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT + col0 + + col2 * + col2 - col1 AS col2 FROM tab0
----
-61
1027
6722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - tab1.col0 col1 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT tab2.col0 * col0 * col1 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT DISTINCT + col0 + col1 + col2 FROM tab2
----
134
163
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-8761
SELECT + col1 * tab0.col0 DIV col2 + col2 AS col2 FROM tab0
----
180
3396
95
skipif mysql # not compatible
query I rowsort label-8761
SELECT + col1 * tab0.col0 / col2 + col2 AS col2 FROM tab0
----
180
3396
95
query I rowsort
SELECT - col0 + col2 * + col0 FROM tab1
----
159
3584
7600
query I rowsort
SELECT ALL col0 * - col2 + - tab0.col0 * - col0 FROM tab0
----
-216
1190
623
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) <> col1 * col0 * col0
----
query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * col0 NOT IN ( - col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) <= ( NULL )
----
query I rowsort
SELECT DISTINCT - tab1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
-3
-64
-80
query I rowsort
SELECT ALL + col0 * - col0 + + col2 * + col0 * col2 + col1 AS col1 FROM tab0
----
-1093
25646
590606
onlyif mysql # use DIV operator for integer division
query I rowsort label-8769
SELECT ALL col1 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL col1 / cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1 cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT - col0 * - col2 FROM tab1 WHERE NOT NULL NOT IN ( col2 * col0 + tab1.col0 * + col2 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > ( NULL )
----
query I rowsort
SELECT ALL + col2 + + col1 + col2 AS col1 FROM tab2
----
111
85
93
query I rowsort
SELECT DISTINCT col0 + + col2 + + col0 FROM tab0
----
260
71
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col0 col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT ( - col0 ) > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col0 col1 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8778
SELECT DISTINCT col1 DIV col0 col0 FROM tab1 cor0
----
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT col1 / col0 col0 FROM tab1 cor0
----
0
8
query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 > col0 * col1 + + col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT col0 * + col1 + + col0 * col0 AS col0 FROM tab1 AS cor0 WHERE col2 * col0 + col1 * col1 * col1 IN ( col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8781
SELECT DISTINCT col2 + + col0 DIV col0 AS col2 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort label-8781
SELECT DISTINCT col2 + + col0 / col0 AS col2 FROM tab2
----
27
28
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 col1 FROM tab2 AS cor0
----
1444
676
729
query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8784
SELECT CAST( + 17 AS SIGNED ) AS col1 FROM tab0
----
17
17
17
skipif mysql # not compatible
query I rowsort label-8784
SELECT CAST ( + 17 AS INTEGER ) AS col1 FROM tab0
----
17
17
17
query I rowsort
SELECT - 78 + col0 FROM tab0 AS cor0
----
-43
-54
11
query I rowsort
SELECT - + col0 + + col0 * ( col0 + + col0 ) AS col0 FROM tab2 AS cor0
----
12090
12403
91
query I rowsort
SELECT ALL - ( + 23 * + col2 ) FROM tab1
----
-1242
-1311
-2208
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 * col0 col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT col0 + + col2 * + col1 * + col1 AS col2 FROM tab0 AS cor0
----
244092
679131
9444
query I rowsort
SELECT + col2 + + ( col2 ) + - col1 AS col2 FROM tab2 AS cor0
----
-7
23
59
query I rowsort
SELECT - col2 * - 40 AS col1 FROM tab1 AS cor0
----
2160
2280
3840
query I rowsort
SELECT + col1 + col2 * - col2 FROM tab0
----
-1003
-6633
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8793
SELECT + col1 + + 48 DIV - col0 FROM tab0
----
84
91
96
skipif mysql # not compatible
query I rowsort label-8793
SELECT + col1 + + 48 / - col0 FROM tab0
----
84
91
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8794
SELECT - CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8794
SELECT - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT col2 * ( col0 ) AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT col2 * ( - 10 * + col1 ) AS col0 FROM tab2
----
-15340
-6460
-8370
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 + - 36 col0 FROM tab2, tab1 AS cor0
----
-22
query I rowsort
SELECT DISTINCT - 93 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-93
query I rowsort
SELECT DISTINCT 77 * col1 FROM tab2 AS cor0
----
1309
2387
4543
query I rowsort
SELECT + ( + col2 ) * + col0 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 46 col2 FROM tab2 AS cor0
----
46
46
46
query I rowsort
SELECT DISTINCT - + cor0.col1 * - col0 FROM tab2 AS cor0
----
1343
217
4602
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 7ccb6e2515d95809a8c30b73a5cf5f46
query I rowsort
SELECT ALL 22 FROM tab2 cor0
----
22
22
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 41 * ( col2 ) col0 FROM tab0 AS cor0
----
1353
3362
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-8806
SELECT DISTINCT cor0.col1 DIV - cor0.col2 AS col1 FROM tab1, tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-8806
SELECT DISTINCT cor0.col1 / - cor0.col2 AS col1 FROM tab1, tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT DISTINCT + col1 + + col2 * col0 AS col0 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8808
SELECT ALL - CAST( ( col0 ) AS SIGNED ) FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL - CAST ( ( col0 ) AS INTEGER ) FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL ( col2 ) * + col1 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8810
SELECT - ( 54 ) DIV + col0 + + tab2.col2 FROM tab2
----
20
26
38
skipif mysql # not compatible
query I rowsort label-8810
SELECT - ( 54 ) / + col0 + + tab2.col2 FROM tab2
----
20
26
38
query I rowsort
SELECT col0 + ( col0 ) AS col2 FROM tab0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 + col2 col1 FROM tab0
----
106
155
74
query I rowsort
SELECT - + col1 * + col1 AS col0 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL ( + cor0.col2 ) * col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL 66 * tab2.col1 FROM tab2
----
1122
2046
3894
query I rowsort
SELECT - col0 * - col2 * - tab2.col2 AS col1 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT ALL ( 16 ) * tab0.col0 FROM tab0
----
1424
384
560
query I rowsort
SELECT 93 FROM tab1, tab1 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 + 98 col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e030ccd5e519624b5f7cde7dac68eeab
query I rowsort
SELECT ALL - tab2.col2 * + col0 * - 89 AS col0 FROM tab2
----
16821
180492
267178
query I rowsort
SELECT ALL - col2 + col1 AS col0 FROM tab0 cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8822
SELECT DISTINCT + col0 DIV + 44 + 17 AS col0 FROM tab0 AS cor0
----
17
19
skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT + col0 / + 44 + 17 AS col0 FROM tab0 AS cor0
----
17
19
query I rowsort
SELECT DISTINCT - + cor0.col0 + + col0 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - col2 - - col1 AS col0 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8825
SELECT ALL col0 DIV - 80 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL col0 / - 80 FROM tab1 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8826
SELECT col1 + col2 - - 85 DIV - col0 FROM tab1
----
108
52
66
skipif mysql # not compatible
query I rowsort label-8826
SELECT col1 + col2 - - 85 / - col0 FROM tab1
----
108
52
66
query I rowsort
SELECT ALL col2 - col0 * + 84 FROM tab1
----
-198
-5319
-6624
query I rowsort
SELECT - cor0.col1 * - cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba
query I rowsort
SELECT DISTINCT + col1 - - col1 * col1 * col0 AS col0 FROM tab0
----
177590
329412
737100
onlyif mysql # use DIV operator for integer division
query I rowsort label-8830
SELECT ALL tab2.col0 DIV - col1 + col0 * - col2 + col2 col1 FROM tab2
----
-162
-2003
-2968
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL tab2.col0 / - col1 + col0 * - col2 + col2 col1 FROM tab2
----
-162
-2003
-2968
query I rowsort
SELECT DISTINCT - + col2 * 68 + col0 * col0 * col0 FROM tab1 AS cor0
----
-3645
258268
505472
onlyif mysql # use DIV operator for integer division
query I rowsort label-8832
SELECT DISTINCT - col2 DIV - col2 + - 75 * - col2 FROM tab0 AS cor0
----
2476
6151
76
skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT - col2 / - col2 + - 75 * - col2 FROM tab0 AS cor0
----
2476
6151
76
query I rowsort
SELECT col2 * col0 + - col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8834
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8834
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8835
SELECT - + col1 + - CAST( NULL AS DECIMAL ) * - col1 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8835
SELECT - + col1 + - CAST ( NULL AS REAL ) * - col1 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 * CAST ( - col2 AS REAL ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + - col0 * - ( cor0.col0 ) * - col0 FROM tab2 AS cor0
----
-343
-474552
-493039
query I rowsort
SELECT cor0.col0 * 8 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to aa230b83ed76b55dfbb20a7efc76e827
onlyif mysql # use DIV operator for integer division
query I rowsort label-8839
SELECT + col2 + - col1 DIV col1 AS col1 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-8839
SELECT + col2 + - col1 / col1 AS col1 FROM tab1
----
53
56
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-8840
SELECT DISTINCT tab2.col2 DIV 79 col2 FROM tab2, tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT tab2.col2 / 79 col2 FROM tab2, tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT col2 + - 98 * - col2 + col2 FROM tab2
----
2600
2700
3800
onlyif mysql # use DIV operator for integer division
query I rowsort label-8842
SELECT - + cor0.col2 DIV + ( col2 ) 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-8842
SELECT - + cor0.col2 / + ( col2 ) col0 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8843
SELECT ALL - col2 DIV ( + col2 ) AS col0 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL - col2 / ( + col2 ) AS col0 FROM tab1 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * 89 + cor0.col2 col0 FROM tab1 AS cor0
----
-4752
-5016
-8448
query I rowsort
SELECT + col0 * - 38 + + col0 FROM tab0 AS cor0
----
-1295
-3293
-888
query I rowsort
SELECT DISTINCT + + col2 + - cor0.col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + - col1 - 90 AS col2 FROM tab1 AS cor0
----
-100
-103
-116
query I rowsort
SELECT ALL - col0 + 53 FROM tab1 AS cor0
----
-11
-27
50
query I rowsort
SELECT DISTINCT - - col1 * 75 + + col2 * + col0 FROM tab2 AS cor0
----
2514
4277
6453
onlyif mysql # use DIV operator for integer division
query I rowsort label-8850
SELECT DISTINCT col2 DIV - cor0.col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT col2 / - cor0.col2 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT DISTINCT - - cor0.col0 + - 32 FROM tab1 AS cor0
----
-29
32
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-8852
SELECT DISTINCT col2 DIV + 91 + + col2 AS col1 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT col2 / + 91 + + col2 AS col1 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + + col1 col2 FROM tab1
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-8854
SELECT DISTINCT - 24 DIV col0 + - col1 - col0 * col1 col2 FROM tab1 AS cor0
----
-1053
-112
-650
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8854
SELECT DISTINCT - 24 / col0 + - col1 - col0 * col1 col2 FROM tab1 AS cor0
----
-1053
-112
-650
query I rowsort
SELECT ALL + + 13 FROM tab1 AS cor0
----
13
13
13
query I rowsort
SELECT + col0 * + 63 FROM tab1 cor0
----
189
4032
5040
query I rowsort
SELECT ( - 73 ) * + col1 * + 92 AS col1 FROM tab0 AS cor0
----
-577576
-611156
-651452
query I rowsort
SELECT ALL + + ( - cor0.col0 ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + col1 + - col0 * col2 AS col0 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8860
SELECT + CAST( NULL AS DECIMAL ) * col2 + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8860
SELECT + CAST ( NULL AS REAL ) * col2 + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * + col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - 76 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-76
query I rowsort
SELECT ALL + - 68 + col0 * - 63 + + col1 FROM tab2 AS cor0
----
-478
-4923
-5028
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col2 col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT col2 * col0 + + 64 FROM tab0 AS cor0
----
7362
856
99
query I rowsort
SELECT ALL + - col0 * cor0.col0 * 94 + + 87 AS col0 FROM tab2 AS cor0
----
-4519
-571809
-586567
query I rowsort
SELECT DISTINCT col1 * + col1 + ( col2 ) + + col0 AS col1 FROM tab1 AS cor0
----
221
345
733
query I rowsort
SELECT ALL cor0.col0 * + ( cor0.col1 ) FROM tab0, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - col1 ) * ( + col1 ) col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL 98 + cor0.col0 - ( - 92 ) FROM tab2 AS cor0
----
197
268
269
onlyif mysql # use DIV operator for integer division
query I rowsort label-8871
SELECT - - col0 DIV col0 + + 64 + + col0 * col1 FROM tab0 cor0
----
2129
3460
8164
skipif mysql # not compatible
query I rowsort label-8871
SELECT - - col0 / col0 + + 64 + + col0 * col1 FROM tab0 cor0
----
2129
3460
8164
query I rowsort
SELECT + 96 * - col0 AS col1 FROM tab2 AS cor0
----
-672
-7488
-7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * - col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + 80 + col0 + col1 AS col2 FROM tab0 AS cor0
----
190
212
260
query I rowsort
SELECT + + 77 AS col0 FROM tab2 AS cor0
----
77
77
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 - - col1 col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT ( cor0.col1 ) + - 58 * - col2 FROM tab2 AS cor0
----
1567
1597
2221
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8878
SELECT ALL - - ( + col0 ) * - CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL - - ( + col0 ) * - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8879
SELECT DISTINCT + col1 + + col1 DIV cor0.col0 col1 FROM tab2 AS cor0
----
17
35
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8879
SELECT DISTINCT + col1 + + col1 / cor0.col0 col1 FROM tab2 AS cor0
----
17
35
59
query I rowsort
SELECT ALL + ( col2 ) * col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1
-35937
-551368
onlyif mysql # use DIV operator for integer division
query I rowsort label-8881
SELECT DISTINCT cor0.col0 DIV col0 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT cor0.col0 / col0 FROM tab0 AS cor0
----
1
query I rowsort
SELECT - - 14 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT - tab1.col1 + - col1 AS col0 FROM tab1
----
-20
-26
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8884
SELECT ALL + CAST( + cor0.col1 AS SIGNED ) * + cor0.col0 col2 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL + CAST ( + cor0.col1 AS INTEGER ) * + cor0.col0 col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL 30 FROM tab1 AS cor0
----
30
30
30
query I rowsort
SELECT ALL - ( + 99 ) AS col1 FROM tab2 cor0
----
-99
-99
-99
query I rowsort
SELECT DISTINCT - + ( cor0.col1 ) * + cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - ( - 68 ) AS col2 FROM tab2 AS cor0
----
68
68
68
query I rowsort
SELECT + 66 * 73 * col2 + 51 * - col1 * cor0.col0 FROM tab1 AS cor0
----
241986
256194
409488
query I rowsort
SELECT DISTINCT - 45 - col2 * - col0 FROM tab2 AS cor0
----
144
1983
2957
query I rowsort
SELECT ALL ( - col2 ) + cor0.col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL + 80 + - col1 FROM tab2
----
21
49
63
query I rowsort
SELECT ALL ( + col1 ) + col1 FROM tab2
----
118
34
62
query I rowsort
SELECT + col1 + col0 * col0 FROM tab1 AS cor0
----
35
4106
6413
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8895
SELECT - CAST( + col2 AS SIGNED ) * + tab0.col1 - - 8 FROM tab0
----
-2830
-7454
-89
skipif mysql # not compatible
query I rowsort label-8895
SELECT - CAST ( + col2 AS INTEGER ) * + tab0.col1 - - 8 FROM tab0
----
-2830
-7454
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8896
SELECT ALL 61 * + col0 * + col0 + 64 DIV + col0 col2 FROM tab0
----
35138
483181
74726
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL 61 * + col0 * + col0 + 64 / + col0 col2 FROM tab0
----
35138
483181
74726
query I rowsort
SELECT ALL 42 FROM tab2, tab2 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query I rowsort
SELECT DISTINCT 21 FROM tab2, tab1, tab1 AS cor0
----
21
query I rowsort
SELECT col0 * - 4 AS col2 FROM tab1
----
-12
-256
-320
query I rowsort
SELECT + 45 * col1 * + col0 FROM tab1 AS cor0
----
28800
3510
46800
query I rowsort
SELECT + 31 * - 36 FROM tab1 AS cor0
----
-1116
-1116
-1116
query I rowsort
SELECT ALL + ( cor0.col1 ) + - cor0.col2 AS col2 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8903
SELECT CAST( - col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8903
SELECT CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - + 19 * col1 + + col1 FROM tab2 AS cor0
----
-1062
-306
-558
query I rowsort
SELECT ALL + 26 * - col2 FROM tab0
----
-2132
-26
-858
query I rowsort
SELECT - 95 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13
query I rowsort
SELECT col1 + col0 * col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + + 81 * col2 - + col0 FROM tab2 AS cor0
----
2028
2180
2999
query I rowsort
SELECT DISTINCT ( - col1 ) + 69 AS col2 FROM tab0 AS cor0
----
-17
-22
-28
onlyif mysql # use DIV operator for integer division
query I rowsort label-8910
SELECT DISTINCT + ( col2 ) * cor0.col1 DIV col0 - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-6641
-971
1
skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT + ( col2 ) * cor0.col1 / col0 - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-6641
-971
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8911
SELECT + col0 DIV + col0 + - col2 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-8911
SELECT + col0 / + col0 + - col2 FROM tab1 AS cor0
----
-53
-56
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-8912
SELECT + col2 DIV + 7 + col2 col2 FROM tab0 AS cor0
----
1
37
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8912
SELECT + col2 / + 7 + col2 col2 FROM tab0 AS cor0
----
1
37
93
query I rowsort
SELECT col2 * - col2 + + 3 FROM tab0 AS cor0
----
-1086
-6721
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8914
SELECT + + col2 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-8914
SELECT + + col2 / col0 AS col1 FROM tab2 AS cor0
----
0
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( + 14 ) col1 FROM tab1 AS cor0
----
-40
-43
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8916
SELECT + col2 * - col2 + col1 * col0 DIV col0 FROM tab2 AS cor0
----
-1427
-617
-698
skipif mysql # not compatible
query I rowsort label-8916
SELECT + col2 * - col2 + col1 * col0 / col0 FROM tab2 AS cor0
----
-1427
-617
-698
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0, tab1 cor2
----
3645 values hashing to b8435223668db186a5012e4112253f28
query I rowsort
SELECT - col0 * - ( + col2 ) AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL + tab2.col0 + 54 * + ( + tab2.col0 ) AS col1 FROM tab2
----
385
4290
4345
query I rowsort
SELECT DISTINCT + cor0.col1 * 42 AS col1 FROM tab2 AS cor0
----
1302
2478
714
onlyif mysql # use DIV operator for integer division
query I rowsort label-8921
SELECT - - col1 DIV - col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8921
SELECT - - col1 / - col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - ( + col1 ) col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL ( col0 ) * col1 - cor0.col0 AS col0 FROM tab2 cor0
----
1264
210
4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8924
SELECT DISTINCT CAST( 96 AS SIGNED ) + col0 * 9 AS col0 FROM tab1 cor0
----
123
672
816
skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT CAST ( 96 AS INTEGER ) + col0 * 9 AS col0 FROM tab1 cor0
----
123
672
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 + col2 col2 FROM tab2 AS cor0
----
-26
-3
47
query I rowsort
SELECT - 35 + col0 AS col1 FROM tab2 AS cor0
----
-28
43
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + 75 col2 FROM tab0 AS cor0
----
110
164
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 + col0 col1 FROM tab2 AS cor0
----
-70
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 * + col0 + + cor0.col0 col1 FROM tab0 AS cor0
----
-1368
-1995
-5073
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8930
SELECT DISTINCT - ( + col1 ) * - cor0.col0 + + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
2097
3396
8181
skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT - ( + col1 ) * - cor0.col0 + + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) + - col1 col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL - - ( + col2 ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT col1 + + 86 FROM tab1
----
112
96
99
query I rowsort
SELECT DISTINCT col0 * + 71 + col0 + - col1 AS col0 FROM tab1
----
190
4598
5747
onlyif mysql # use DIV operator for integer division
query I rowsort label-8935
SELECT DISTINCT - col0 * ( col0 ) + - col1 * 27 DIV - ( + col1 ) AS col0 FROM tab2
----
-22
-6057
-6214
skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT - col0 * ( col0 ) + - col1 * 27 / - ( + col1 ) AS col0 FROM tab2
----
-22
-6057
-6214
query I rowsort
SELECT - col0 + col1 * 96 - + col2 FROM tab0
----
8199
8565
9276
query I rowsort
SELECT DISTINCT col1 * - 56 FROM tab2
----
-1736
-3304
-952
query I rowsort
SELECT ALL - col1 + + col0 * - col1 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT - cor0.col1 * + col0 AS col2 FROM tab2 cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8940
SELECT col2 DIV + col0 col1 FROM tab0 cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8940
SELECT col2 / + col0 col1 FROM tab0 cor0
----
0
0
1
query I rowsort
SELECT - 80 + col1 FROM tab1 AS cor0
----
-54
-67
-70
query I rowsort
SELECT ALL + ( 13 ) FROM tab0
----
13
13
13
query I rowsort
SELECT DISTINCT + ( col1 ) * col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL + ( - col2 ) * col2 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT - 59 * + col2 FROM tab1
----
-3186
-3363
-5664
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8946
SELECT - cor0.col0 * col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8946
SELECT - cor0.col0 * col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * col2 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT col1 + col0 * col2 - 90 FROM tab2
----
130
1997
2929
onlyif mysql # use DIV operator for integer division
query I rowsort label-8949
SELECT DISTINCT col0 + + col2 DIV cor0.col0 col0 FROM tab1 cor0
----
21
64
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT col0 + + col2 / cor0.col0 col0 FROM tab1 cor0
----
21
64
81
query I rowsort
SELECT DISTINCT + 53 + col1 FROM tab1 AS cor0
----
63
66
79
query I rowsort
SELECT + col2 + + col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-4039
-6304
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8952
SELECT ALL - + ( - ( col2 ) ) / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL - + ( - ( col2 ) ) / 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-8953
SELECT ALL - 21 * - col2 + + col1 DIV 99 AS col2 FROM tab0 AS cor0
----
1722
21
693
skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL - 21 * - col2 + + col1 / 99 AS col2 FROM tab0 AS cor0
----
1722
21
693
query I rowsort
SELECT + ( + 93 ) FROM tab1 cor0
----
93
93
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-8955
SELECT ALL - 83 * 28 + col2 * 99 DIV + col2 FROM tab0 cor0
----
-2225
-2225
-2225
skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL - 83 * 28 + col2 * 99 / + col2 FROM tab0 cor0
----
-2225
-2225
-2225
query I rowsort
SELECT + col0 + + 46 AS col0 FROM tab0
----
135
70
81
query I rowsort
SELECT + + 94 FROM tab1 AS cor0
----
94
94
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-8958
SELECT + col0 * tab0.col2 * col2 + + col0 DIV - tab0.col0 AS col2 FROM tab0
----
26135
34
598435
skipif mysql # not compatible
query I rowsort label-8958
SELECT + col0 * tab0.col2 * col2 + + col0 / - tab0.col0 AS col2 FROM tab0
----
26135
34
598435
query I rowsort
SELECT DISTINCT + ( col1 + - col1 ) * + tab2.col2 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8960
SELECT + col0 DIV 74 + - col2 AS col0 FROM tab1
----
-54
-57
-95
skipif mysql # not compatible
query I rowsort label-8960
SELECT + col0 / 74 + - col2 AS col0 FROM tab1
----
-54
-57
-95
query I rowsort
SELECT DISTINCT + col2 * col2 AS col1 FROM tab0 cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort
SELECT + + cor0.col1 * + CAST ( col1 AS REAL ) + col2 AS col0 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT ( - tab0.col0 ) AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-24
-35
-89
query I rowsort
SELECT col2 + + 60 + + 21 FROM tab1 AS cor0
----
135
138
177
query I rowsort
SELECT ALL + + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - + col0 * ( col0 ) AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + - cor0.col0 + col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + col0 * ( col1 + + col2 ) AS col0 FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT ALL + col2 + - col2 * col2 * + col0 + - col1 FROM tab2 AS cor0
----
-114055
-5107
-52761
query I rowsort
SELECT + col1 + col1 - 88 FROM tab2
----
-26
-54
30
query I rowsort
SELECT + col2 + + tab0.col2 FROM tab0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8972
SELECT tab0.col1 * + tab0.col2 * + CAST( col2 * col1 AS SIGNED ) AS col2 FROM tab0
----
55681444
8054244
9409
skipif mysql # not compatible
query I rowsort label-8972
SELECT tab0.col1 * + tab0.col2 * + CAST ( col2 * col1 AS INTEGER ) AS col2 FROM tab0
----
55681444
8054244
9409
query I rowsort
SELECT - 16 + col1 + ( - tab0.col1 ) FROM tab0
----
-16
-16
-16
query I rowsort
SELECT DISTINCT + col0 * + tab1.col2 * col1 FROM tab1
----
36480
4212
99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8975
SELECT DISTINCT col0 + - CAST( - col0 AS SIGNED ) * - col2 + + col0 col0 FROM tab2
----
-175
-1872
-2844
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8975
SELECT DISTINCT col0 + - CAST ( - col0 AS INTEGER ) * - col2 + + col0 col0 FROM tab2
----
-175
-1872
-2844
query I rowsort
SELECT DISTINCT - col2 * ( + col2 + col1 ) * - col2 AS col0 FROM tab2
----
42282
57460
79420
query I rowsort
SELECT - col1 + - 11 + col2 FROM tab0 AS cor0
----
-107
-20
-64
query I rowsort
SELECT + - col2 + - cor0.col0 + col1 * col0 AS col2 FROM tab2 cor0
----
1226
183
4498
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8979
SELECT DISTINCT col1 * CAST( + 6 AS SIGNED ) * - cor0.col1 FROM tab2 AS cor0
----
-1734
-20886
-5766
skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT col1 * CAST ( + 6 AS INTEGER ) * - cor0.col1 FROM tab2 AS cor0
----
-1734
-20886
-5766
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + + col2 * - col1 col2 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT - col1 + - col2 * - 28 * - col0 FROM tab1
----
-102154
-215053
-4562
onlyif mysql # use DIV operator for integer division
query I rowsort label-8982
SELECT - col0 + col1 DIV + 71 + cor0.col0 AS col2 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8982
SELECT - col0 + col1 / + 71 + cor0.col0 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL + ( 52 ) FROM tab1, tab0 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT - + cor0.col1 + col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT DISTINCT 67 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
67
query I rowsort
SELECT DISTINCT - cor0.col0 + + col2 + - col1 FROM tab1 AS cor0
----
-17
25
3
query I rowsort
SELECT col1 * - col2 * 49 AS col2 FROM tab2
----
-31654
-41013
-75166
query I rowsort
SELECT DISTINCT - col1 + col0 * + cor0.col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT ALL + - 66 FROM tab2 AS cor0
----
-66
-66
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-8990
SELECT + - col1 DIV col2 + col0 AS col1 FROM tab0 AS cor0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-8990
SELECT + - col1 / col2 + col0 AS col1 FROM tab0 AS cor0
----
-62
22
88
query I rowsort
SELECT 41 * + col1 FROM tab2 AS cor0
----
1271
2419
697
query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab0 AS cor2
----
13122 values hashing to b41e7334b05e7a79371493a844611749
query I rowsort
SELECT ALL + 35 AS col1 FROM tab0
----
35
35
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 79 ) col0 FROM tab1 AS cor0
----
79
79
79
query I rowsort
SELECT + - ( 68 ) * + col1 * 56 + col1 FROM tab2 AS cor0
----
-118017
-224613
-64719
onlyif mysql # use DIV operator for integer division
query I rowsort label-8996
SELECT + 32 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8996
SELECT + 32 / - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT - 41 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70
query I rowsort
SELECT DISTINCT - + col1 - + col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + + col1 + + col2 * + col0 AS col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL - - 2 * + col1 AS col2 FROM tab1 AS cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 32 * + col2 + + 90 col0 FROM tab1 AS cor0
----
1818
1914
3162
query I rowsort
SELECT ALL + col0 * col1 + - cor0.col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT DISTINCT - col1 + col0 * - 74 FROM tab1 AS cor0
----
-248
-4746
-5933
onlyif mysql # use DIV operator for integer division
query I rowsort label-9004
SELECT DISTINCT + + 84 * col1 + + col1 * - 13 + col1 DIV 27 AS col1 FROM tab1 AS cor0
----
1846
710
923
skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT + + 84 * col1 + + col1 * - 13 + col1 / 27 AS col1 FROM tab1 AS cor0
----
1846
710
923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 + + 37 * + ( + col1 ) col1 FROM tab1 AS cor0
----
-3278
-7199
800
query I rowsort
SELECT - col0 + + col1 * + col0 - col1 * 35 * col2 AS col0 FROM tab1 AS cor0
----
-19374
-42720
-49065
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - 4 col2 FROM tab2 cor0
----
3
74
75
query I rowsort
SELECT - cor0.col0 + col0 * + col1 + + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-1560
-4977
161
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9009
SELECT 52 + cor0.col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9009
SELECT 52 + cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 72 * col1 + ( col0 ) AS col2 FROM tab2 AS cor0
----
-1145
-2225
-4170
query I rowsort
SELECT + ( - col2 ) * ( + col0 ) + + col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT 25 + col0 * ( col0 ) AS col2 FROM tab1 cor0
----
34
4121
6425
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col1 FROM tab2 AS cor0
----
-50
-50
-50
query I rowsort
SELECT DISTINCT + - 15 + + col0 * - col0 FROM tab0 AS cor0
----
-1240
-591
-7936
query I rowsort
SELECT ALL - 44 * + col0 FROM tab2 AS cor0
----
-308
-3432
-3476
query I rowsort
SELECT + 9 + + col1 * col1 FROM tab0 AS cor0
----
7405
8290
9418
onlyif mysql # use DIV operator for integer division
query I rowsort label-9017
SELECT ALL + 9 DIV + 45 AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL + 9 / + 45 AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9018
SELECT + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9018
SELECT + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - cor0.col0 * ( - col1 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT 36 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c
query I rowsort
SELECT col0 + col0 * col2 * tab0.col1 - col2 FROM tab0
----
3429
664125
68103
skipif mysql # not compatible
query I rowsort
SELECT + col0 * col2 + CAST ( - col1 AS REAL ) + + col0 FROM tab1 AS cor0
----
139
3702
7747
query I rowsort
SELECT - col0 * + col1 * 33 AS col0 FROM tab0 AS cor0
----
-112035
-267267
-68112
query I rowsort
SELECT - cor2.col1 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8
query I rowsort
SELECT + 20 + tab2.col0 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 147781a9387d237fe4f8a375ec5c47bb
query I rowsort
SELECT DISTINCT - 91 + col0 - - tab2.col0 * + ( col0 ) FROM tab2
----
-35
6071
6229
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9027
SELECT - CAST( NULL AS DECIMAL ) - - col1 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9027
SELECT - CAST ( NULL AS REAL ) - - col1 AS col0 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9028
SELECT CAST( + col1 AS SIGNED ) + + col2 + - col2 * - tab1.col2 AS col0 FROM tab1
----
2996
3316
9325
skipif mysql # not compatible
query I rowsort label-9028
SELECT CAST ( + col1 AS INTEGER ) + + col2 + - col2 * - tab1.col2 AS col0 FROM tab1
----
2996
3316
9325
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 14 * + tab0.col1 ) col2 FROM tab0
----
1204
1274
1358
query I rowsort
SELECT - ( - col2 ) - col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - - cor0.col2 * + ( - cor0.col0 * ( col1 ) + + cor0.col1 * col1 ) FROM tab2 AS cor0
----
-29146
-40052
20088
query I rowsort
SELECT - 83 + + col2 AS col0 FROM tab1 AS cor0
----
-26
-29
13
query I rowsort
SELECT + ( 19 ) - col2 AS col0 FROM tab0 AS cor0
----
-14
-63
18
query I rowsort
SELECT DISTINCT - + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9035
SELECT - CAST( 34 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-34
-34
-34
skipif mysql # not compatible
query I rowsort label-9035
SELECT - CAST ( 34 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-34
-34
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9036
SELECT CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9036
SELECT CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - 65 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23
query I rowsort
SELECT + - col0 + col0 * 98 FROM tab2 AS cor0
----
679
7566
7663
query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 col0 FROM tab2
----
-21
33
4
query I rowsort
SELECT DISTINCT - col1 * col0 + + col1 FROM tab1 AS cor0
----
-1027
-52
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col0 col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - - 67 * + col2 - cor0.col1 FROM tab0 AS cor0
----
-30
2125
5403
query I rowsort
SELECT cor1.col2 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT ALL + col0 * + 59 * col2 + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7344
39332
422301
query I rowsort
SELECT DISTINCT col0 * col1 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL cor1.col1 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT col0 * + col0 * col0 FROM tab1 cor0
----
262144
27
512000
query I rowsort
SELECT + 87 * - col1 * - cor0.col0 FROM tab1 AS cor0
----
55680
6786
90480
onlyif mysql # use DIV operator for integer division
query I rowsort label-9050
SELECT ALL + ( - col2 ) DIV cor0.col2 + 9 AS col0 FROM tab1 AS cor0
----
8
8
8
skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL + ( - col2 ) / cor0.col2 + 9 AS col0 FROM tab1 AS cor0
----
8
8
8
query I rowsort
SELECT + 1 AS col2 FROM tab2 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) col1 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9053
SELECT ALL + 5 * col2 + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL + 5 * col2 + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 * ( - col1 * 68 ) AS col0 FROM tab0 AS cor0
----
192984
507416
6596
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col1 * cor0.col1 + col2 col2 FROM tab1 AS cor0
----
16320
36558
5757
onlyif mysql # use DIV operator for integer division
query I rowsort label-9056
SELECT ALL + - col0 * 31 - cor0.col0 DIV + col2 col1 FROM tab1 AS cor0
----
-1985
-2480
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL + - col0 * 31 - cor0.col0 / + col2 col1 FROM tab1 AS cor0
----
-1985
-2480
-93
query I rowsort
SELECT DISTINCT ( + 33 ) + - col2 AS col2 FROM tab1 AS cor0
----
-21
-24
-63
query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) AS col2 FROM tab1 cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9059
SELECT DISTINCT + + ( 94 ) + + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT + + ( 94 ) + + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL + - ( 83 ) AS col0 FROM tab1 AS cor0
----
-83
-83
-83
query I rowsort
SELECT + col0 - ( 0 ) FROM tab2
----
7
78
79
query I rowsort
SELECT ALL col0 * + 27 + cor0.col0 FROM tab1 AS cor0
----
1792
2240
84
query I rowsort
SELECT + + 34 + col0 AS col1 FROM tab2 AS cor0
----
112
113
41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9064
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 + col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9064
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 + col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + 61 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55
query I rowsort
SELECT - 76 * - col0 AS col1 FROM tab0
----
1824
2660
6764
query I rowsort
SELECT DISTINCT - col2 + + col1 * - 37 FROM tab1 AS cor0
----
-1016
-427
-577
query I rowsort
SELECT ALL 35 * - col0 AS col0 FROM tab1
----
-105
-2240
-2800
query I rowsort
SELECT ALL - 58 FROM tab1
----
-58
-58
-58
query I rowsort
SELECT 79 * - cor0.col0 FROM tab0 AS cor0
----
-1896
-2765
-7031
query I rowsort
SELECT DISTINCT cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 col1 FROM tab0 cor0
----
-82
query I rowsort
SELECT DISTINCT - + 12 - - col0 * 68 * col1 FROM tab1 cor0
----
43508
5292
70708
query I rowsort
SELECT ALL - cor0.col1 * - col2 AS col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - + col1 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 90 AS col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
query I rowsort
SELECT ALL + col2 * col1 + col2 FROM tab1 cor0
----
1344
1458
627
query I rowsort
SELECT ALL + cor0.col1 * col0 * col0 + + col1 + - col1 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9079
SELECT col1 + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
20
26
52
skipif mysql # not compatible
query I rowsort label-9079
SELECT col1 + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL - cor0.col1 * + col2 + col1 + - col0 FROM tab1 AS cor0
----
-1315
-1381
-624
query I rowsort
SELECT ALL + - col0 + - col1 * 65 FROM tab0 AS cor0
----
-5614
-6004
-6340
onlyif mysql # use DIV operator for integer division
query I rowsort label-9082
SELECT + - col0 DIV col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9082
SELECT + - col0 / col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL tab0.col0 * - col1 + + col1 FROM tab0
----
-1978
-3298
-8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-9084
SELECT DISTINCT 7 * col2 DIV + 81 + - col1 AS col0 FROM tab0
----
-84
-97
skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT 7 * col2 / + 81 + - col1 AS col0 FROM tab0
----
-84
-97
query I rowsort
SELECT ALL col1 + col2 * 2 FROM tab2
----
111
85
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
query I rowsort
SELECT + + 42 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9088
SELECT ALL CAST( NULL AS SIGNED ) + + cor0.col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL CAST ( NULL AS INTEGER ) + + cor0.col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9089
SELECT ALL - - CAST( col2 AS SIGNED ) * col0 - cor0.col2 FROM tab2 AS cor0
----
162
2002
2964
skipif mysql # not compatible
query I rowsort label-9089
SELECT ALL - - CAST ( col2 AS INTEGER ) * col0 - cor0.col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL + ( col2 ) * cor0.col2 + col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT + + 98 + - col2 FROM tab2 AS cor0
----
60
71
72
query I rowsort
SELECT DISTINCT - - cor0.col1 + 46 * cor0.col0 FROM tab0 cor0
----
1190
1707
4185
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9093
SELECT - CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9093
SELECT - CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 55 * - cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
35530
46035
84370
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 - col0 col2 FROM tab0 AS cor0
----
-131
-77
-98
skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( 80 AS REAL ) + + col0 AS col2 FROM tab0 AS cor0
----
104
115
169
query I rowsort
SELECT ALL + - col2 * - cor0.col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT 80 * + col2 * - col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2765
-583751
-63336
query I rowsort
SELECT + ( col1 ) * col2 + 39 FROM tab2 AS cor0
----
1573
685
876
onlyif mysql # use DIV operator for integer division
query I rowsort label-9100
SELECT DISTINCT cor0.col1 * col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
-268
-308
-93
skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT cor0.col1 * col1 / - col0 AS col0 FROM tab0 AS cor0
----
-268
-308
-93
query I rowsort
SELECT ALL 59 + + ( + col1 ) FROM tab0 AS cor0
----
145
150
156
query I rowsort
SELECT ALL + + ( - 83 ) + + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1451
563
754
query I rowsort
SELECT + + col0 + 83 FROM tab0 AS cor0
----
107
118
172
onlyif mysql # use DIV operator for integer division
query I rowsort label-9104
SELECT - ( 20 ) * col2 + + col1 DIV + ( - col2 * col1 ) - ( - col2 ) FROM tab0 AS cor0
----
-1558
-20
-627
skipif mysql # not compatible
query I rowsort label-9104
SELECT - ( 20 ) * col2 + + col1 / + ( - col2 * col1 ) - ( - col2 ) FROM tab0 AS cor0
----
-1558
-20
-627
query I rowsort
SELECT 59 * - ( col2 ) FROM tab2
----
-1534
-1593
-2242
query I rowsort
SELECT - - col2 * + col0 * col2 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT col0 + ( - col0 ) * + 28 + + 58 AS col1 FROM tab0
----
-2345
-590
-887
query I rowsort
SELECT - 47 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
query I rowsort
SELECT + ( cor0.col1 ) * - ( - 90 ) FROM tab1 AS cor0
----
1170
2340
900
query I rowsort
SELECT + - col1 * - cor0.col0 + 38 AS col2 FROM tab0 AS cor0
----
2102
3433
8137
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 + + col0 + - col2 * - 88 col1 FROM tab2 AS cor0
----
2379
2396
3436
query I rowsort
SELECT DISTINCT 70 + - col1 FROM tab1
----
44
57
60
query I rowsort
SELECT + ( + col0 ) * + 86 AS col2 FROM tab2 AS cor0
----
602
6708
6794
query I rowsort
SELECT + ( - 76 ) + col2 FROM tab1
----
-19
-22
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-9115
SELECT DISTINCT col1 + + col2 DIV + col2 AS col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT col1 + + col2 / + col2 AS col1 FROM tab1
----
11
14
27
query I rowsort
SELECT DISTINCT + 80 + ( - col0 * - col1 ) + 34 FROM tab1
----
1154
192
754
query I rowsort
SELECT DISTINCT 17 * ( - col1 ) + 98 * col1 AS col0 FROM tab2
----
1377
2511
4779
query I rowsort
SELECT 20 * + col1 FROM tab2
----
1180
340
620
onlyif mysql # use DIV operator for integer division
query I rowsort label-9119
SELECT + col1 DIV col1 + + ( 42 * - col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
-3644
-3903
-4074
skipif mysql # not compatible
query I rowsort label-9119
SELECT + col1 / col1 + + ( 42 * - col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
-3644
-3903
-4074
query I rowsort
SELECT DISTINCT + + 35 * + col2 FROM tab0 AS cor0
----
1155
2870
35
query I rowsort
SELECT DISTINCT col2 * col1 * - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-132
-611973
-93678
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - ( - 38 ) * + cor0.col2 col0 FROM tab2 AS cor0
----
-1047
-1057
-1461
query I rowsort
SELECT - col2 * col2 + + col0 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT DISTINCT col0 * - cor0.col2 + - col1 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT - 63 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5
query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
-7
-78
-79
query I rowsort
SELECT ALL - 20 * cor0.col2 FROM tab2 AS cor0
----
-520
-540
-760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9128
SELECT ALL CAST( NULL AS SIGNED ) + - tab1.col0 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL CAST ( NULL AS INTEGER ) + - tab1.col0 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - ( + 28 ) FROM tab1 AS cor0
----
-28
-28
-28
query I rowsort
SELECT ALL - col1 * + ( col1 ) AS col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT - 1 * + col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT col0 - col1 * + col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT + + cor0.col0 * + col2 - col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL + col2 * - 55 AS col2 FROM tab2 AS cor0
----
-1430
-1485
-2090
skipif mysql # not compatible
query I rowsort
SELECT - col1 + + CAST ( - 86 AS REAL ) AS col2 FROM tab0 AS cor0
----
-172
-177
-183
skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( 56 AS REAL ) * col1 FROM tab1 AS cor0
----
-1456
-560
-728
onlyif mysql # use DIV operator for integer division
query I rowsort label-9137
SELECT DISTINCT col1 DIV - col1 FROM tab1 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT col1 / - col1 FROM tab1 cor0
----
-1
query I rowsort
SELECT - 16 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-102
-107
-113
query I rowsort
SELECT + 40 AS col0 FROM tab0, tab1 cor0, tab1 cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
query I rowsort
SELECT - - 15 * + col1 AS col2 FROM tab0 AS cor0
----
1290
1365
1455
query I rowsort
SELECT DISTINCT ( col2 + - col0 ) * col1 FROM tab1
----
-70
1326
208
query I rowsort
SELECT ALL - 23 AS col0 FROM tab2
----
-23
-23
-23
query I rowsort
SELECT DISTINCT + 65 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
65
query I rowsort
SELECT col2 - + tab2.col2 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT + col1 + col1 * 87 FROM tab2
----
1496
2728
5192
query I rowsort
SELECT col2 + + 74 AS col0 FROM tab1
----
128
131
170
query I rowsort
SELECT 71 * - 43 FROM tab1, tab1 AS cor0
----
9 values hashing to 1da6a0d71dac8b051e092916580e7a23
onlyif mysql # use DIV operator for integer division
query I rowsort label-9148
SELECT - col1 - col2 * tab0.col1 DIV col0 AS col0 FROM tab0
----
-174
-204
-99
skipif mysql # not compatible
query I rowsort label-9148
SELECT - col1 - col2 * tab0.col1 / col0 AS col0 FROM tab0
----
-174
-204
-99
query I rowsort
SELECT ALL col0 + + ( 17 ) * col2 FROM tab0 AS cor0
----
1483
52
585
query I rowsort
SELECT ALL + col1 + cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT ALL - + col0 * col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT col0 + - col0 * - col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT + col2 + 92 * 53 FROM tab2
----
4902
4903
4914
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 64 col2 FROM tab1 AS cor0
----
3456
3648
6144
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 * - col2 + tab0.col1 * + 56 col0 FROM tab0
----
5464
5872
7720
query I rowsort
SELECT + ( 63 ) * + col1 + - 44 AS col1 FROM tab2
----
1027
1909
3673
query I rowsort
SELECT 11 + - col0 + tab1.col0 FROM tab1
----
11
11
11
query I rowsort
SELECT DISTINCT tab0.col1 + - 20 AS col2 FROM tab0
----
66
71
77
query I rowsort
SELECT DISTINCT - ( + col1 * + col0 ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - 84 * + col1 FROM tab1
----
-1092
-2184
-840
query I rowsort
SELECT + 69 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9162
SELECT + ( 57 ) DIV col1 + - ( + col2 ) FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-9162
SELECT + ( 57 ) / col1 + - ( + col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - 75 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
1
33
82
query I rowsort
SELECT DISTINCT col0 + col2 * col1 FROM tab0
----
132
2862
7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - 7 + + col1 FROM tab0 AS cor0
----
79
84
90
query I rowsort
SELECT ALL - - 79 * col1 + col2 FROM tab1 cor0
----
1123
2108
847
query I rowsort
SELECT - - col0 * - col0 * - 54 + cor0.col2 AS col1 FROM tab2 AS cor0
----
2673
328562
337052
onlyif mysql # use DIV operator for integer division
query I rowsort label-9170
SELECT + col1 + - col1 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-9170
SELECT + col1 + - col1 / cor0.col2 AS col1 FROM tab0 AS cor0
----
0
84
90
query I rowsort
SELECT 5 FROM tab2 AS cor0
----
5
5
5
query I rowsort
SELECT ALL col2 * cor0.col0 + 99 FROM tab1 AS cor0
----
261
3747
7779
query I rowsort
SELECT ALL 6 + col2 AS col0 FROM tab1 AS cor0
----
102
60
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9174
SELECT ALL + - cor0.col2 * col0 + CAST( 92 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1936
-2910
-97
skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL + - cor0.col2 * col0 + CAST ( 92 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1936
-2910
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * col2 + col2 col0 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL 65 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1690
1755
2470
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
81 values hashing to b10451aa7e22bfd12577dc60d18d9396
query I rowsort
SELECT ALL col2 * - col0 + - col0 * col1 AS col0 FROM tab0
----
-15397
-2856
-3430
query I rowsort
SELECT - col0 * - col2 * - col1 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT col2 + - 3 * - col1 + 25 FROM tab0
----
316
317
380
onlyif mysql # use DIV operator for integer division
query I rowsort label-9181
SELECT ALL tab0.col0 DIV col0 col0 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL tab0.col0 / col0 col0 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT col0 * col1 * + tab2.col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT ALL - + col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + 64 - col1 AS col2 FROM tab0 AS cor0
----
-22
-27
-33
query I rowsort
SELECT DISTINCT 71 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-9186
SELECT col0 DIV 58 + + tab1.col0 col0 FROM tab1
----
3
65
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9186
SELECT col0 / 58 + + tab1.col0 col0 FROM tab1
----
3
65
81
query I rowsort
SELECT col2 + ( col2 ) AS col2 FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT - - tab2.col1 FROM tab2, tab0, tab0 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT tab2.col1 + ( 29 * - col0 ) FROM tab2
----
-172
-2203
-2274
query I rowsort
SELECT + col2 + 62 FROM tab2
----
100
88
89
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
7
78
79
query I rowsort
SELECT DISTINCT - col1 + - 65 * col0 AS col2 FROM tab2 AS cor0
----
-486
-5129
-5152
query I rowsort
SELECT + + col0 + col2 AS col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + ( 12 ) * col0 * - ( - cor0.col1 ) AS col1 FROM tab2 AS cor0
----
16116
2604
55224
query I rowsort
SELECT ALL - + cor0.col2 * ( col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + 80 * col1 AS col0 FROM tab2 AS cor0
----
1360
2480
4720
onlyif mysql # use DIV operator for integer division
query I rowsort label-9198
SELECT ALL + ( - col0 ) + col1 DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
-21
-33
-88
skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL + ( - col0 ) + col1 / + cor0.col0 AS col1 FROM tab0 AS cor0
----
-21
-33
-88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9199
SELECT CAST( NULL AS SIGNED ) / cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9199
SELECT CAST ( NULL AS INTEGER ) / cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col0 * - col1 + + col1 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT - ( - cor0.col0 ) * col1 + ( col1 + col2 ) * - col2 AS col0 FROM tab0 cor0
----
-1863
-6087
3297
query I rowsort
SELECT ALL - ( - 61 ) FROM tab2 AS cor0
----
61
61
61
query I rowsort
SELECT ALL + - col2 * - col0 + - col1 FROM tab0 AS cor0
----
-62
706
7207
onlyif mysql # use DIV operator for integer division
query I rowsort label-9204
SELECT col2 + col2 DIV cor0.col1 FROM tab2 AS cor0
----
26
27
40
skipif mysql # not compatible
query I rowsort label-9204
SELECT col2 + col2 / cor0.col1 FROM tab2 AS cor0
----
26
27
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9205
SELECT DISTINCT col2 + - cor0.col0 * col2 * CAST( + 23 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-176544
-3672
-83847
skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT col2 + - cor0.col0 * col2 * CAST ( + 23 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-176544
-3672
-83847
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 * - col2 col2 FROM tab0 AS cor0
----
-1722
-21
-693
query I rowsort
SELECT ALL + 24 + col0 AS col0 FROM tab2 AS cor0
----
102
103
31
query I rowsort
SELECT DISTINCT + - col0 * + col1 - - col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT - + col1 + col1 * - col2 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT 64 * - col1 FROM tab2 AS cor0
----
-1088
-1984
-3776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 70 + col1 col1 FROM tab0 AS cor0
----
16
21
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-9212
SELECT - + col0 + - col0 DIV col0 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-9212
SELECT - + col0 + - col0 / col0 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT ALL col1 * - 11 FROM tab1
----
-110
-143
-286
query I rowsort
SELECT 33 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT + cor0.col1 * col1 - - col2 * col1 AS col2 FROM tab2 AS cor0
----
1798
5015
935
query I rowsort
SELECT - col2 * - col1 + col1 AS col0 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT 70 - - col0 FROM tab0 AS cor0
----
105
159
94
query I rowsort
SELECT 58 * + col0 + + cor0.col2 FROM tab0 AS cor0
----
1425
2031
5244
query I rowsort
SELECT DISTINCT cor1.col1 + 43 AS col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
102
60
74
query I rowsort
SELECT ALL ( - col0 ) * col1 AS col1 FROM tab1
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9221
SELECT DISTINCT - CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT - CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT + col0 * col1 * + col0 + col1 AS col0 FROM tab1 cor0
----
260
40970
83213
query I rowsort
SELECT DISTINCT + col1 * - col0 + col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT - - col1 * + 44 AS col1 FROM tab0 AS cor0
----
3784
4004
4268
query I rowsort
SELECT ALL - col0 * col1 * 3 FROM tab2 AS cor0
----
-13806
-4029
-651
query I rowsort
SELECT - - col2 + + col0 * + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ( col1 ) * tab2.col0 * - tab2.col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT + col2 * + ( 42 + col0 ) AS col2 FROM tab2
----
1323
3120
4598
query I rowsort
SELECT DISTINCT 28 FROM tab0, tab2 cor0
----
28
query I rowsort
SELECT - + 64 * col1 + + col1 AS col1 FROM tab1 AS cor0
----
-1638
-630
-819
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * cor0.col2 + col1 col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT 18 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab0.col1 col0 FROM tab0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + - 50 col1 FROM tab0 cor0
----
-139
-74
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col1 + + 8 col1 FROM tab2 cor0
----
-13
12
41
query I rowsort
SELECT DISTINCT tab0.col0 FROM tab0, tab1, tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col1 FROM tab0
----
42
42
42
query I rowsort
SELECT tab0.col2 + + 27 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 35c232c55075de3b68b22e5cbfdeeebe
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 62 col1 FROM tab2
----
434
4836
4898
query I rowsort
SELECT DISTINCT col1 + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT - col1 * 18 FROM tab2 AS cor0
----
-1062
-306
-558
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9242
SELECT ALL + col1 + CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
20
26
52
skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL + col1 + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9243
SELECT DISTINCT + + col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT + + col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col1 * - 11 FROM tab0 cor0
----
-1001
-1067
-946
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * 7 col2 FROM tab2 AS cor0
----
119
217
413
query I rowsort
SELECT - col0 + 24 * + 35 FROM tab1 AS cor0
----
760
776
837
query I rowsort
SELECT DISTINCT + col0 * + tab1.col0 AS col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT col0 + - col0 + tab2.col1 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT - col2 * col1 + - col1 + col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT col1 * + col1 + col1 * + col2 AS col2 FROM tab1
----
1417
2080
670
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < ( + col2 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col0 AND NULL
----
query I rowsort
SELECT col0 * - col2 + + col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT + col1 * - tab1.col0 * col1 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT ALL col2 * col2 + col0 * + col2 FROM tab0
----
14022
1881
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 col1 FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT + col2 + + col0 * + col0 FROM tab1
----
4153
63
6496
query I rowsort
SELECT DISTINCT - col1 + + tab0.col2 AS col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT col2 + col1 * + col1 FROM tab2 WHERE NULL NOT IN ( col2 * + col1 * + col0 )
----
query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT ( col2 + col1 ) NOT IN ( - col1 + col0 * - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9261
SELECT DISTINCT col1 * col1 + + col1 DIV - col2 FROM tab0
----
7394
8280
9312
skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT col1 * col1 + + col1 / - col2 FROM tab0
----
7394
8280
9312
query I rowsort
SELECT DISTINCT - col1 * tab1.col0 AS col0 FROM tab1
----
-1040
-640
-78
query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 * col0 + - col2 * col2 ) <= NULL
----
query I rowsort
SELECT - col1 * + col1 * col0 AS col1 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT - col1 * tab2.col1 * tab2.col0 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT 43 * - col1 AS col2 FROM tab2 cor0
----
-1333
-2537
-731
query I rowsort
SELECT ALL + + 54 AS col2 FROM tab2 cor0
----
54
54
54
query I rowsort
SELECT DISTINCT - cor0.col2 + + col2 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - - 56 + - col2 AS col0 FROM tab2 AS cor0
----
18
29
30
query I rowsort
SELECT + tab1.col2 AS col1 FROM tab1 WHERE NOT + col1 <> NULL
----
query I rowsort
SELECT ALL col1 * + col0 + col0 AS col1 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT - 99 * - col2 * + col1 + col1 * - col2 AS col0 FROM tab2 AS cor0
----
150332
63308
82026
query I rowsort
SELECT ALL + cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9274
SELECT - col2 DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9274
SELECT - col2 / + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col1 * col0 + - col1 AS col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT + - cor0.col0 + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7372
8192
9374
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - cor0.col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - + cor0.col2 + col0 * + ( + col1 ) FROM tab2 cor0
----
1305
190
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL col0 * + col1 + 65 + - cor0.col1 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
1274
805
819
query I rowsort
SELECT DISTINCT + 54 FROM tab2 cor0
----
54
query I rowsort
SELECT ALL - 80 * col2 AS col2 FROM tab1 AS cor0
----
-4320
-4560
-7680
query I rowsort
SELECT - 60 + - col2 AS col2 FROM tab2 AS cor0
----
-86
-87
-98
query I rowsort
SELECT DISTINCT - 53 - - col0 * col0 FROM tab1 AS cor0
----
-44
4043
6347
query I rowsort
SELECT DISTINCT + + col1 * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 col2 FROM tab2
----
-14
query I rowsort
SELECT DISTINCT - 60 * + col0 FROM tab0
----
-1440
-2100
-5340
query I rowsort
SELECT ALL + col1 * col1 + ( col1 ) * col2 FROM tab0 AS cor0
----
10234
15743
9506
query I rowsort
SELECT ALL + col2 * col1 + 96 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1092
-390
0
query I rowsort
SELECT DISTINCT col1 - + col2 AS col2 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ALL - 49 * col0 AS col2 FROM tab2 AS cor0
----
-343
-3822
-3871
onlyif mysql # use DIV operator for integer division
query I rowsort label-9293
SELECT DISTINCT - 43 + - col0 * - col1 + + col2 DIV col2 FROM tab0 AS cor0
----
2022
3353
8057
skipif mysql # not compatible
query I rowsort label-9293
SELECT DISTINCT - 43 + - col0 * - col1 + + col2 / col2 FROM tab0 AS cor0
----
2022
3353
8057
query I rowsort
SELECT DISTINCT 83 + + 54 FROM tab2, tab1 cor0
----
137
query I rowsort
SELECT DISTINCT + col2 * col0 + col2 * col0 FROM tab1 AS cor0
----
15360
324
7296
onlyif mysql # use DIV operator for integer division
query I rowsort label-9296
SELECT ALL col2 DIV col1 + + col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9296
SELECT ALL col2 / col1 + + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + col2 + col1 * ( - col1 ) - ( + col2 + cor0.col0 ) FROM tab2 cor0
----
-3559
-368
-968
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9298
SELECT CAST( NULL AS SIGNED ) * cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9298
SELECT CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-9299
SELECT tab1.col1 + col0 DIV col1 FROM tab1
----
16
19
26
skipif mysql # not compatible
query I rowsort label-9299
SELECT tab1.col1 + col0 / col1 FROM tab1
----
16
19
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9300
SELECT 6 * col0 DIV cor0.col0 FROM tab0 cor0
----
6
6
6
skipif mysql # not compatible
query I rowsort label-9300
SELECT 6 * col0 / cor0.col0 FROM tab0 cor0
----
6
6
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9301
SELECT + - CAST( NULL AS SIGNED ) * - 40 * + col2 - col1 * - 71 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9301
SELECT + - CAST ( NULL AS INTEGER ) * - 40 * + col2 - col1 * - 71 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 13 * + col1 AS col2 FROM tab1 AS cor0
----
130
169
338
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 * col2 col1 FROM tab1 AS cor0
----
2646
2793
4704
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9304
SELECT DISTINCT - + CAST( + 50 AS SIGNED ) + cor0.col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1393
-267
-4652
skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT - + CAST ( + 50 AS INTEGER ) + cor0.col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1393
-267
-4652
query I rowsort
SELECT + 67 * 98 FROM tab1 AS cor0
----
6566
6566
6566
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 col2 FROM tab1
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) * - col2 + 45 + + col2 * col1 col0 FROM tab1
----
45
45
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9308
SELECT CAST( col0 AS SIGNED ) - tab1.col1 * - ( col1 ) FROM tab1
----
164
249
679
skipif mysql # not compatible
query I rowsort label-9308
SELECT CAST ( col0 AS INTEGER ) - tab1.col1 * - ( col1 ) FROM tab1
----
164
249
679
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to f655b6f4c5b9ff73813030f2822ea1fd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( col0 ) ) col2 FROM tab1 cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 * col1 col1 FROM tab1 AS cor0
----
1586
610
793
query I rowsort
SELECT - - 72 * - col2 * col0 + col2 FROM tab0 AS cor0
----
-2519
-525374
-56991
query I rowsort
SELECT DISTINCT - 73 FROM tab1, tab0 cor0
----
-73
query I rowsort
SELECT + - cor0.col1 * + col1 FROM tab2 cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-9315
SELECT + + col1 DIV ( col2 * col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9315
SELECT + + col1 / ( col2 * col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * 46 * - 87 FROM tab1 AS cor0
----
-12006
-256128
-320160
query I rowsort
SELECT 95 - - cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9bacac79dde20ab939355a58755ed6e3
query I rowsort
SELECT ALL + col0 + - ( ( + col2 ) ) FROM tab0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9319
SELECT col1 + CAST( NULL AS SIGNED ) * - ( tab1.col1 ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9319
SELECT col1 + CAST ( NULL AS INTEGER ) * - ( tab1.col1 ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * col1 + ( col1 ) + 62 FROM tab1
----
1323
1492
642
query I rowsort
SELECT col0 + - 70 + + col2 FROM tab0
----
-13
-34
101
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9322
SELECT ALL - + col2 * CAST( col0 AS SIGNED ) * col2 FROM tab0 AS cor0
----
-26136
-35
-598436
skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL - + col2 * CAST ( col0 AS INTEGER ) * col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT col0 * ( - 36 ) FROM tab0 AS cor0
----
-1260
-3204
-864
query I rowsort
SELECT ALL - - col1 * + 35 FROM tab1 AS cor0
----
350
455
910
query I rowsort
SELECT ALL - col1 + col0 * col1 * - col0 AS col0 FROM tab0
----
-118922
-49622
-720902
query I rowsort
SELECT DISTINCT - 58 + - col2 AS col1 FROM tab1
----
-112
-115
-154
query I rowsort
SELECT - + 83 + col1 FROM tab1 cor0
----
-57
-70
-73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9328
SELECT ALL - CAST( ( col0 ) AS SIGNED ) + col2 * + col0 col0 FROM tab2
----
182
1950
2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL - CAST ( ( col0 ) AS INTEGER ) + col2 * + col0 col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT - 40 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 01aad4539198a6509248e086869f90a6
query I rowsort
SELECT 33 - 65 AS col0 FROM tab0
----
-32
-32
-32
query I rowsort
SELECT DISTINCT + 52 AS col1 FROM tab1, tab0 AS cor0
----
52
query I rowsort
SELECT DISTINCT + 14 * cor0.col1 AS col2 FROM tab0 AS cor0
----
1204
1274
1358
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( cor0.col0 ) col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + 13 * - col1 FROM tab1 AS cor0
----
-130
-169
-338
query I rowsort
SELECT ALL - + col2 + cor0.col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9336
SELECT ( - col2 ) + - 1 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-9336
SELECT ( - col2 ) + - 1 / cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + cor0.col0 * col0 col0 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT DISTINCT 99 AS col0 FROM tab1 AS cor0
----
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-9339
SELECT + - 69 DIV col2 FROM tab0 AS cor0
----
-2
-69
0
skipif mysql # not compatible
query I rowsort label-9339
SELECT + - 69 / col2 FROM tab0 AS cor0
----
-2
-69
0
query I rowsort
SELECT ALL + col1 + - col2 * - 22 FROM tab2 AS cor0
----
625
631
853
onlyif mysql # use DIV operator for integer division
query I rowsort label-9341
SELECT DISTINCT col0 * - col0 DIV - col0 AS col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT col0 * - col0 / - col0 AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT tab1.col2 * 26 AS col2 FROM tab1, tab1 AS cor0
----
1404
1482
2496
query I rowsort
SELECT ALL + cor0.col2 * - cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9344
SELECT + cor0.col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9344
SELECT + cor0.col0 + 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-9345
SELECT - col2 + - CAST( cor0.col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-104
-117
-34
skipif mysql # not compatible
query I rowsort label-9345
SELECT - col2 + - CAST ( cor0.col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-9346
SELECT cor0.col0 DIV - col0 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9346
SELECT cor0.col0 / - col0 FROM tab2 cor0
----
-1
-1
-1
query I rowsort
SELECT ALL 10 - 22 AS col2 FROM tab1 AS cor0
----
-12
-12
-12
onlyif mysql # use DIV operator for integer division
query I rowsort label-9348
SELECT ALL - - col1 * - col1 + + col0 DIV col2 FROM tab1 AS cor0
----
-169
-676
-99
skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL - - col1 * - col1 + + col0 / col2 FROM tab1 AS cor0
----
-169
-676
-99
query I rowsort
SELECT ALL - ( col0 ) + - col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9350
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + col1 * cor0.col0 col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9350
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + col1 * cor0.col0 col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT col2 * - 54 * - col0 - + cor0.col0 AS col1 FROM tab0 AS cor0
----
1855
394003
42744
onlyif mysql # use DIV operator for integer division
query I rowsort label-9352
SELECT DISTINCT + + 90 - - col0 DIV col2 FROM tab1 AS cor0
----
90
91
skipif mysql # not compatible
query I rowsort label-9352
SELECT DISTINCT + + 90 - - col0 / col2 FROM tab1 AS cor0
----
90
91
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2, tab1 AS cor1, tab0 AS cor2
----
13122 values hashing to 38cc14d3166edc24395af45320f6ab76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col1 * - 3 ) col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 28219ce1218029eaae0c8dd6dcd274db
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9355
SELECT DISTINCT - - 19 * col1 + - col1 * CAST( - 88 AS SIGNED ) AS col2 FROM tab0 cor0
----
10379
9202
9737
skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT - - 19 * col1 + - col1 * CAST ( - 88 AS INTEGER ) AS col2 FROM tab0 cor0
----
10379
9202
9737
onlyif mysql # use DIV operator for integer division
query I rowsort label-9356
SELECT + + col2 + - col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-9356
SELECT + + col2 + - col0 / + col0 AS col2 FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT ( 13 ) * col1 FROM tab0 AS cor0
----
1118
1183
1261
onlyif mysql # use DIV operator for integer division
query I rowsort label-9358
SELECT + + col0 DIV + col1 + col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9358
SELECT + + col0 / + col1 + col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9359
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) * tab2.col2 / col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) * tab2.col2 / col1 FROM tab2
----
NULL
query I rowsort
SELECT - col0 * col0 + col1 * - col1 * - col1 FROM tab1 AS cor0
----
-3096
-4203
17567
onlyif mysql # use DIV operator for integer division
query I rowsort label-9361
SELECT - - col1 DIV + col2 - + col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-9361
SELECT - - col1 / + col2 - + col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT 26 + - col1 FROM tab0 AS cor0
----
-60
-65
-71
query I rowsort
SELECT 21 * - col2 FROM tab1
----
-1134
-1197
-2016
query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0, tab2 cor0, tab1, tab1 AS cor1
----
1
33
82
query I rowsort
SELECT + col0 * - 41 FROM tab2 cor0
----
-287
-3198
-3239
query I rowsort
SELECT DISTINCT + ( 4 ) FROM tab2 AS cor0
----
4
query I rowsort
SELECT DISTINCT + col2 + - col2 * col2 * col0 AS col0 FROM tab1 AS cor0
----
-207879
-737184
-8694
query I rowsort
SELECT 96 * col1 + col2 AS col0 FROM tab2 AS cor0
----
1670
3003
5690
query I rowsort
SELECT DISTINCT 21 + - col2 * col2 * col2 FROM tab2 AS cor0
----
-17555
-19662
-54851
query I rowsort
SELECT ALL + cor0.col0 + - cor0.col1 * - col1 AS col1 FROM tab0 cor0
----
7420
8370
9444
query I rowsort
SELECT + 73 FROM tab0, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT - 16 - col2 * col1 FROM tab1
----
-1264
-1420
-586
query I rowsort
SELECT + ( col0 ) * col1 * - col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9374
SELECT CAST( 32 AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
320
416
832
skipif mysql # not compatible
query I rowsort label-9374
SELECT CAST ( 32 AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
320
416
832
query I rowsort
SELECT + - cor0.col1 * + 13 AS col2 FROM tab0 AS cor0
----
-1118
-1183
-1261
query I rowsort
SELECT ( col0 ) * - col2 AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT + col1 * cor0.col1 - 51 AS col2 FROM tab2 AS cor0
----
238
3430
910
onlyif mysql # use DIV operator for integer division
query I rowsort label-9378
SELECT ALL + col1 DIV col1 - - col2 AS col1 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL + col1 / col1 - - col2 AS col1 FROM tab0
----
2
34
83
query I rowsort
SELECT - - col1 + + col1 * 51 + col1 FROM tab0 AS cor0
----
4558
4823
5141
query I rowsort
SELECT ALL col1 + col2 * col0 FROM tab2
----
2087
220
3019
query I rowsort
SELECT col1 * - 18 + 3 * col1 AS col2 FROM tab2 AS cor0
----
-255
-465
-885
onlyif mysql # use DIV operator for integer division
query I rowsort label-9382
SELECT + col1 * - ( - 38 ) + col0 DIV + col2 + tab0.col0 FROM tab0
----
3292
3548
3756
skipif mysql # not compatible
query I rowsort label-9382
SELECT + col1 * - ( - 38 ) + col0 / + col2 + tab0.col0 FROM tab0
----
3292
3548
3756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( - ( - col2 ) * ( - 22 ) ) col1 FROM tab1 cor0
----
-1162
-1244
-2099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + col2 col1 FROM tab2 cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-9385
SELECT ALL col1 + + col1 DIV + 3 FROM tab1 AS cor0
----
13
17
34
skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL col1 + + col1 / + 3 FROM tab1 AS cor0
----
13
17
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 + cor0.col0 col2 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT col1 * + col1 - col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT ALL + col0 * 86 * + col2 + col1 FROM tab2 AS cor0
----
16285
174467
258189
query I rowsort
SELECT DISTINCT - col1 * col2 - col1 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT + col2 * - cor0.col0 + - col1 FROM tab2 AS cor0
----
-2087
-220
-3019
skipif mysql # not compatible
query I rowsort
SELECT ALL cor0.col2 + - 37 * 63 + col2 * CAST ( col1 * col2 AS REAL ) FROM tab2 cor0
----
20295
22255
37579
query I rowsort
SELECT - - col1 + ( - cor0.col2 + + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - cor0.col2 + 37 * - col2 FROM tab2 AS cor0
----
-1026
-1444
-988
query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9395
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9395
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL col0 * + col1 - col0 AS col0 FROM tab1 AS cor0
----
576
75
960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9397
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL 45 * - col0 * - cor0.col2 FROM tab2 AS cor0
----
135090
8505
91260
query I rowsort
SELECT - col1 + 89 * + col1 * cor0.col1 FROM tab0 AS cor0
----
658158
736918
837304
onlyif mysql # use DIV operator for integer division
query I rowsort label-9400
SELECT 77 DIV - col1 col2 FROM tab2 cor0
----
-1
-2
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9400
SELECT 77 / - col1 col2 FROM tab2 cor0
----
-1
-2
-4
query I rowsort
SELECT DISTINCT col0 + + 32 * col0 FROM tab2 AS cor0
----
231
2574
2607
query I rowsort
SELECT ALL + + 82 + col0 FROM tab0 AS cor0
----
106
117
171
query I rowsort
SELECT 74 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT DISTINCT 37 FROM tab2, tab0 AS cor0
----
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 7 * - col1 + - col0 col0 FROM tab2 AS cor0
----
210
335
40
query I rowsort
SELECT DISTINCT col0 * - col0 - col0 * col2 FROM tab0 cor0
----
-1260
-1368
-15219
query I rowsort
SELECT DISTINCT + col1 + + col1 + - col2 AS col1 FROM tab1 AS cor0
----
-2
-37
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 * 68 col1 FROM tab0 AS cor0
----
5762
6097
6499
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9409
SELECT col0 * - col2 + - CAST( col0 AS SIGNED ) * tab0.col0 AS col2 FROM tab0
----
-1260
-1368
-15219
skipif mysql # not compatible
query I rowsort label-9409
SELECT col0 * - col2 + - CAST ( col0 AS INTEGER ) * tab0.col0 AS col2 FROM tab0
----
-1260
-1368
-15219
query I rowsort
SELECT col0 * col0 * col2 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT DISTINCT 51 * col2 AS col1 FROM tab0 AS cor0
----
1683
4182
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT ALL col2 - + col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - + cor0.col2 - ( + 46 ) * + col0 AS col2 FROM tab1 AS cor0
----
-192
-3001
-3776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9415
SELECT - + col2 + - CAST( NULL AS SIGNED ) / - 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-9415
SELECT - + col2 + - CAST ( NULL AS INTEGER ) / - col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + cor0.col0 * - col0 + 34 FROM tab1 AS cor0
----
-4062
-6366
25
query I rowsort
SELECT - col1 - - 67 AS col1 FROM tab1 AS cor0
----
41
54
57
query I rowsort
SELECT col1 + - 88 FROM tab2 AS cor0
----
-29
-57
-71
query I rowsort
SELECT ALL + col0 * tab1.col1 * tab1.col1 AS col2 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT ALL - 43 + - 48 * - col2 AS col2 FROM tab0 AS cor0
----
1541
3893
5
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 + col2 + - col2 FROM tab2 cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + cor0.col0 col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT cor0.col0 + + cor0.col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL 53 + col2 + + col2 AS col2 FROM tab0 AS cor0
----
119
217
55
query I rowsort
SELECT ALL - col1 * 48 AS col0 FROM tab2 AS cor0
----
-1488
-2832
-816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9426
SELECT - + CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9426
SELECT - + CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 4 + col0 AS col0 FROM tab0 AS cor0
----
28
39
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-9428
SELECT + col0 * col2 DIV 58 FROM tab2 AS cor0
----
3
34
51
skipif mysql # not compatible
query I rowsort label-9428
SELECT + col0 * col2 / 58 FROM tab2 AS cor0
----
3
34
51
query I rowsort
SELECT DISTINCT cor1.col2 * 44 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
2376
2508
4224
onlyif mysql # use DIV operator for integer division
query I rowsort label-9430
SELECT + + col2 * col0 DIV + col0 col2 FROM tab0 cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9430
SELECT + + col2 * col0 / + col0 col2 FROM tab0 cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 + + col2 ) col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col1 * 9 AS col2 FROM tab2 AS cor0
----
153
279
531
query I rowsort
SELECT - col2 - + 69 AS col0 FROM tab1 AS cor0
----
-123
-126
-165
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9434
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9434
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL col2 - col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - col1 + - col2 * col1 AS col2 FROM tab2 cor0
----
-1593
-663
-868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( col2 ) col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - cor0.col2 * 74 FROM tab1 AS cor0
----
-3996
-4218
-7104
query I rowsort
SELECT ALL 80 + col2 FROM tab1
----
134
137
176
query I rowsort
SELECT ALL 72 + + col2 FROM tab0
----
105
154
73
query I rowsort
SELECT + cor0.col2 * - ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT + col1 * + col0 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT 3 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + + ( - 22 ) col2 FROM tab1 AS cor0
----
-102
-25
-86
query I rowsort
SELECT DISTINCT col1 * - 41 + col2 FROM tab0 AS cor0
----
-3493
-3649
-3976
query I rowsort
SELECT tab2.col2 * 51 + col0 * - col0 AS col2 FROM tab2
----
-4303
-4758
1328
query I rowsort
SELECT + 89 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to bb5bb13eab35a33bb4641905f5e7c9b6
query I rowsort
SELECT - 85 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a
query I rowsort
SELECT DISTINCT + 69 FROM tab0, tab1 cor0
----
69
query I rowsort
SELECT - tab1.col0 * - col1 * + 94 FROM tab1
----
60160
7332
97760
query I rowsort
SELECT col1 * - 75 FROM tab2
----
-1275
-2325
-4425
query I rowsort
SELECT DISTINCT 86 * col0 AS col2 FROM tab2
----
602
6708
6794
query I rowsort
SELECT DISTINCT - 35 + 52 * col0 AS col0 FROM tab0
----
1213
1785
4593
query I rowsort
SELECT + ( col1 ) * + col1 * col2 AS col1 FROM tab1
----
16224
36504
5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-9457
SELECT ALL 95 DIV + col2 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL 95 / + col2 FROM tab1
----
0
1
1
query I rowsort
SELECT - col1 * + col2 + - col0 AS col1 FROM tab1
----
-1328
-1407
-634
onlyif mysql # use DIV operator for integer division
query I rowsort label-9459
SELECT tab0.col2 + col2 DIV + ( col0 ) + + col2 AS col2 FROM tab0
----
164
2
67
skipif mysql # not compatible
query I rowsort label-9459
SELECT tab0.col2 + col2 / + ( col0 ) + + col2 AS col2 FROM tab0
----
164
2
67
query I rowsort
SELECT ( tab1.col0 + col0 ) AS col1 FROM tab1
----
128
160
6
query I rowsort
SELECT DISTINCT + - cor0.col0 + - col1 FROM tab1 cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 1 * 87 col0 FROM tab1 AS cor0
----
1131
2262
870
query I rowsort
SELECT col2 - 60 * - col1 AS col1 FROM tab2 AS cor0
----
1058
1887
3566
query I rowsort
SELECT col1 * - col1 - + col1 AS col0 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT + col1 * - col2 + 70 * - col1 * 36 AS col0 FROM tab1 AS cor0
----
-25770
-34008
-66924
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9466
SELECT - - col0 + - CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9466
SELECT - - col0 + - CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * + 52 AS col0 FROM tab2 AS cor0
----
-1612
-3068
-884
query I rowsort
SELECT col0 + - 15 + + col0 AS col1 FROM tab1 cor0
----
-9
113
145
query I rowsort
SELECT col1 - - col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + col1 * 3 FROM tab2 AS cor0
----
177
51
93
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 773bb916e463ebc075d701108532badb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 * tab2.col2 col1 FROM tab2
----
-1406
-962
-999
query I rowsort
SELECT + tab2.col2 * + cor0.col0 AS col0 FROM tab2, tab0 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to d995c781f6c224af98e23e798efa8aed
query I rowsort
SELECT + + 3 FROM tab0, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT - + cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - col1 * col0 + + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT DISTINCT - cor0.col1 + - col0 + col0 * + col1 AS col2 FROM tab0 cor0
----
1954
3263
7919
query I rowsort
SELECT + 24 * tab0.col1 FROM tab0
----
2064
2184
2328
query I rowsort
SELECT col2 + col0 * 23 AS col0 FROM tab2 AS cor0
----
1820
1855
188
query I rowsort
SELECT ALL cor0.col0 + ( col1 + col1 ) FROM tab1 cor0
----
106
55
84
query I rowsort
SELECT - col2 * + ( + col2 ) * col1 + + ( + col0 ) FROM tab2 cor0
----
-22592
-24469
-39806
query I rowsort
SELECT DISTINCT + cor0.col1 - col1 * - cor0.col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT ALL + col2 * - col1 * cor0.col2 FROM tab2 AS cor0
----
-22599
-24548
-39884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9484
SELECT DISTINCT - col2 * + col1 + - CAST( + col2 AS SIGNED ) AS col1 FROM tab0
----
-2871
-7544
-98
skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT - col2 * + col1 + - CAST ( + col2 AS INTEGER ) AS col1 FROM tab0
----
-2871
-7544
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9485
SELECT DISTINCT col0 DIV col0 + - col0 * col0 AS col0 FROM tab1
----
-4095
-6399
-8
skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT col0 / col0 + - col0 * col0 AS col0 FROM tab1
----
-4095
-6399
-8
query I rowsort
SELECT col2 + + col1 + + col2 FROM tab0
----
152
255
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9487
SELECT - + CAST( + 84 AS SIGNED ) * - col2 col1 FROM tab0 AS cor0
----
2772
6888
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9487
SELECT - + CAST ( + 84 AS INTEGER ) * - col2 col1 FROM tab0 AS cor0
----
2772
6888
84
query I rowsort
SELECT + + 21 + - col1 * col1 FROM tab2 AS cor0
----
-268
-3460
-940
query I rowsort
SELECT DISTINCT - 83 * 9 + col0 AS col2 FROM tab1 AS cor0
----
-667
-683
-744
query I rowsort
SELECT DISTINCT 75 * - cor0.col1 FROM tab1 cor0
----
-1950
-750
-975
query I rowsort
SELECT DISTINCT + 3 - - 29 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-287
-374
-751
onlyif mysql # use DIV operator for integer division
query I rowsort label-9492
SELECT DISTINCT - - col1 * - col2 + col1 DIV + 29 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-9492
SELECT DISTINCT - - col1 * - col2 + col1 / + 29 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + ( col0 ) AS col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT - 18 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-126
-1404
-1422
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9495
SELECT - CAST( NULL AS SIGNED ) + - 55 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9495
SELECT - CAST ( NULL AS INTEGER ) + - 55 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col0 ) + col0 * ( 2 ) col2 FROM tab0 AS cor0
----
105
267
72
query I rowsort
SELECT ALL col0 + + col1 + col1 * col0 FROM tab2 cor0
----
1439
255
4739
query I rowsort
SELECT col0 * 36 AS col2 FROM tab2
----
252
2808
2844
query I rowsort
SELECT - 21 * + col1 FROM tab1
----
-210
-273
-546
query I rowsort
SELECT DISTINCT + ( col0 * - tab2.col2 ) FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - col1 * - col0 * col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT DISTINCT 92 AS col1 FROM tab0, tab2, tab0 cor0
----
92
query I rowsort
SELECT DISTINCT - 24 * col0 AS col1 FROM tab0 AS cor0
----
-2136
-576
-840
skipif mysql # not compatible
query I rowsort
SELECT + + col2 * + col1 + + CAST ( 18 AS REAL ) - cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
-3060
-6414
1260
query I rowsort
SELECT - cor0.col0 + - col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - + col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + ( col1 ) * col2 AS col2 FROM tab2
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9508
SELECT + CAST( - col0 AS SIGNED ) + col2 FROM tab0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-9508
SELECT + CAST ( - col0 AS INTEGER ) + col2 FROM tab0
----
-34
-7
9
query I rowsort
SELECT 74 + + 43 * + col0 AS col1 FROM tab0
----
1106
1579
3901
query I rowsort
SELECT ALL + 91 + - col0 FROM tab2
----
12
13
84
query I rowsort
SELECT - 86 + col2 * - 56 FROM tab0 AS cor0
----
-142
-1934
-4678
onlyif mysql # use DIV operator for integer division
query I rowsort label-9512
SELECT - - col2 DIV cor0.col1 - - col0 AS col0 FROM tab0 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9512
SELECT - - col2 / cor0.col1 - - col0 AS col0 FROM tab0 cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9513
SELECT + ( col1 ) + - cor0.col0 DIV col1 AS col1 FROM tab1 AS cor0
----
26
4
7
skipif mysql # not compatible
query I rowsort label-9513
SELECT + ( col1 ) + - cor0.col0 / col1 AS col1 FROM tab1 AS cor0
----
26
4
7
query I rowsort
SELECT DISTINCT + + col0 * col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL 87 AS col0 FROM tab1 cor0
----
87
87
87
query I rowsort
SELECT DISTINCT col0 * - col1 - ( ( - cor0.col1 ) ) FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - col0 - cor0.col0 * col1 * 92 AS col0 FROM tab1 AS cor0
----
-58944
-7179
-95760
onlyif mysql # use DIV operator for integer division
query I rowsort label-9518
SELECT ALL - col2 DIV + col1 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-9518
SELECT ALL - col2 / + col1 FROM tab1 cor0
----
-2
-5
-7
query I rowsort
SELECT + col2 + - cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT col0 * col1 - ( + col0 ) FROM tab1 cor0
----
576
75
960
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 9d97dc3cb0a2d1eacd2afa977bf02f33
query I rowsort
SELECT DISTINCT ( - 13 ) AS col1 FROM tab2, tab2 AS cor0
----
-13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * ( col2 ) col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL col0 + 10 AS col0 FROM tab0 AS cor0
----
34
45
99
query I rowsort
SELECT ALL + col2 * ( 5 * - col1 ) + + col2 AS col2 FROM tab1 cor0
----
-2793
-6144
-6966
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9526
SELECT ALL - cor0.col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL - cor0.col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * col0 * + col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT - col0 + + 51 FROM tab2 AS cor0
----
-27
-28
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-9529
SELECT DISTINCT + ( col0 ) + col2 DIV CAST( col1 + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
4
64
81
skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT + ( col0 ) + col2 / CAST ( col1 + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
4
64
81
query I rowsort
SELECT DISTINCT 76 + + 47 * col1 * 73 AS col1 FROM tab0 AS cor0
----
295142
312297
332883
query I rowsort
SELECT DISTINCT - 23 * - 82 FROM tab0
----
1886
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9532
SELECT ALL - CAST( NULL AS SIGNED ) * + ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL - CAST ( NULL AS INTEGER ) * + ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( - ( - col1 ) AS REAL ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + ( + 87 ) * + col1 * - 38 AS col0 FROM tab0 AS cor0
----
-284316
-300846
-320682
onlyif mysql # use DIV operator for integer division
query I rowsort label-9535
SELECT + ( + col2 ) DIV cor0.col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9535
SELECT + ( + col2 ) / cor0.col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT ( col0 ) + - col2 * - 30 FROM tab1 AS cor0
----
1623
1774
2960
onlyif mysql # use DIV operator for integer division
query I rowsort label-9537
SELECT ( 80 ) DIV col1 FROM tab1 AS cor0
----
3
6
8
skipif mysql # not compatible
query I rowsort label-9537
SELECT ( 80 ) / col1 FROM tab1 AS cor0
----
3
6
8
query I rowsort
SELECT ALL - ( - 14 ) FROM tab1 AS cor0
----
14
14
14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9539
SELECT + - CAST( NULL AS DECIMAL ) * - 68 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9539
SELECT + - CAST ( NULL AS REAL ) * - 68 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 67 + col1 * - col0 FROM tab0
----
-2131
-3462
-8166
query I rowsort
SELECT ALL + ( - col1 ) * - col1 + col0 + col1 AS col1 FROM tab2 AS cor0
----
3618
385
999
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + col0 col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL + cor0.col2 + col0 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL + 88 + col2 FROM tab2 AS cor0
----
114
115
126
onlyif mysql # use DIV operator for integer division
query I rowsort label-9545
SELECT DISTINCT cor0.col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-9545
SELECT DISTINCT cor0.col1 / + col1 AS col1 FROM tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 col1 FROM tab1
----
72
query I rowsort
SELECT DISTINCT - 81 * col2 FROM tab2 cor0
----
-2106
-2187
-3078
query I rowsort
SELECT DISTINCT col1 * + col2 * + tab0.col1 FROM tab0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-9549
SELECT DISTINCT col0 DIV + tab1.col2 AS col1 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT col0 / + tab1.col2 AS col1 FROM tab1
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9550
SELECT ALL col1 * col0 DIV - col2 FROM tab1 AS cor0
----
-1
-10
-11
skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL col1 * col0 / - col2 FROM tab1 AS cor0
----
-1
-10
-11
query I rowsort
SELECT cor0.col1 * + 3 - col1 AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT + - col0 * - 92 + - col1 FROM tab2 AS cor0
----
613
7117
7251
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9553
SELECT ALL + CAST( NULL AS SIGNED ) + tab2.col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL + CAST ( NULL AS INTEGER ) + tab2.col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 61 + tab2.col1 * - tab2.col1 AS col0 FROM tab2
----
-228
-3420
-900
query I rowsort
SELECT ALL + + col2 * col0 + + cor0.col0 * col2 * + col0 FROM tab1 AS cor0
----
237120
622080
648
query I rowsort
SELECT col2 * + col2 - col1 AS col2 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT + + 15 * - ( cor0.col2 ) + col2 AS col1 FROM tab2 AS cor0
----
-364
-378
-532
query I rowsort
SELECT ALL + + 13 AS col1 FROM tab2 AS cor0
----
13
13
13
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
3
64
80
query I rowsort
SELECT + 3 + cor0.col0 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1037
-637
-75
query I rowsort
SELECT col2 * + col0 + col1 - + col1 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col0 * - col1 + col2 - + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-13
1380
304
query I rowsort
SELECT + ( - col0 ) + col2 * + col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT - ( col0 ) * - col2 - col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT ALL + 46 + col0 AS col0 FROM tab1
----
110
126
49
query I rowsort
SELECT 50 + col0 * col2 FROM tab2
----
2078
239
3052
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9567
SELECT ALL CAST( NULL AS SIGNED ) / - tab0.col2 + col1 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL CAST ( NULL AS INTEGER ) / - tab0.col2 + col1 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 87 * + tab2.col0 + col2 FROM tab2
----
636
6812
6911
query I rowsort
SELECT - col1 * cor0.col0 - + col2 FROM tab0 cor0
----
-2097
-3396
-8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-9570
SELECT + col2 DIV - col1 + col2 AS col1 FROM tab1 AS cor0
----
52
52
89
skipif mysql # not compatible
query I rowsort label-9570
SELECT + col2 / - col1 + col2 AS col1 FROM tab1 AS cor0
----
52
52
89
query I rowsort
SELECT + col2 FROM tab0 WHERE ( NULL ) BETWEEN col0 / + col1 + + col0 / - col0 AND NULL
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 ) <> NULL
----
query I rowsort
SELECT DISTINCT + col1 * - col0 + tab0.col1 * - tab0.col0 FROM tab0
----
-16198
-4128
-6790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + tab0.col2 col2 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9575
SELECT col2 - + tab1.col1 DIV - col0 AS col2 FROM tab1
----
57
62
96
skipif mysql # not compatible
query I rowsort label-9575
SELECT col2 - + tab1.col1 / - col0 AS col2 FROM tab1
----
57
62
96
query I rowsort
SELECT DISTINCT - col0 + - tab2.col1 * col1 AS col0 FROM tab2
----
-3559
-368
-968
query III rowsort
SELECT * FROM tab0 WHERE ( + col0 ) BETWEEN ( NULL ) AND ( - col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 - col0 * + col2 col0 FROM tab1
----
-3008
-6640
-84
query I rowsort
SELECT DISTINCT col0 + + col1 * col0 - - col1 AS col1 FROM tab1
----
107
1133
714
onlyif mysql # use DIV operator for integer division
query I rowsort label-9580
SELECT DISTINCT - col1 * - col2 + tab0.col0 DIV col2 col2 FROM tab0
----
132
2838
7463
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9580
SELECT DISTINCT - col1 * - col2 + tab0.col0 / col2 col2 FROM tab0
----
132
2838
7463
query I rowsort
SELECT ALL + col2 * col1 + - col0 * - col2 FROM tab0
----
132
14760
3630
query I rowsort
SELECT ALL tab1.col1 * + tab1.col0 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9583
SELECT - col1 + col2 DIV + col0 FROM tab0
----
-85
-91
-97
skipif mysql # not compatible
query I rowsort label-9583
SELECT - col1 + col2 / + col0 FROM tab0
----
-85
-91
-97
query I rowsort
SELECT ALL col2 * - col0 * col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT - - col2 + - col2 * col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL - col1 * tab0.col1 + + ( col2 ) - col2 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT col1 + col0 - col0 FROM tab2
----
17
31
59
query I rowsort
SELECT - col0 * + col0 + col0 FROM tab0
----
-1190
-552
-7832
query I rowsort
SELECT - ( + 60 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
query I rowsort
SELECT DISTINCT + tab1.col1 + - 1 - - col1 FROM tab1
----
19
25
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-9591
SELECT tab1.col1 DIV - tab1.col0 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-9591
SELECT tab1.col1 / - tab1.col0 FROM tab1
----
-8
0
0
query I rowsort
SELECT ALL - col2 - - col2 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + col1 + + ( + col1 ) FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL - - col1 - + col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + ( 85 ) + col0 FROM tab1 AS cor0
----
149
165
88
query I rowsort
SELECT 19 + + col2 + + cor0.col1 FROM tab0 AS cor0
----
117
138
192
query I rowsort
SELECT DISTINCT + + col2 + + 56 * col2 AS col1 FROM tab0 AS cor0
----
1881
4674
57
query I rowsort
SELECT - cor0.col0 + - 34 * col2 * col0 FROM tab2 AS cor0
----
-102147
-6433
-69030
query I rowsort
SELECT - col0 + col0 * + col0 AS col2 FROM tab0 cor0
----
1190
552
7832
query I rowsort
SELECT + + ( + col2 ) + col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT col0 * 96 FROM tab0 AS cor0
----
2304
3360
8544
query I rowsort
SELECT ALL - ( + cor0.col0 ) + + col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT 82 * + col2 AS col1 FROM tab1 AS cor0
----
4428
4674
7872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( ( col1 ) ) col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - cor0.col2 * - 35 AS col2 FROM tab2 cor0
----
1330
910
945
query I rowsort
SELECT DISTINCT - + 36 AS col2 FROM tab0 AS cor0
----
-36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9607
SELECT cor0.col0 + - col1 * CAST( NULL AS SIGNED ) 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-9607
SELECT cor0.col0 + - col1 * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9608
SELECT + - col0 * col1 * - CAST( + ( - col0 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956
skipif mysql # not compatible
query I rowsort label-9608
SELECT + - col0 * col1 * - CAST ( + ( - col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT ALL 34 AS col0 FROM tab2 AS cor0
----
34
34
34
query I rowsort
SELECT DISTINCT - col0 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT - + 82 + - col0 AS col1 FROM tab2 AS cor0
----
-160
-161
-89
query I rowsort
SELECT - 47 + col0 * + col1 AS col0 FROM tab1 cor0
----
31
593
993
onlyif mysql # use DIV operator for integer division
query I rowsort label-9613
SELECT col2 + col2 DIV col0 FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-9613
SELECT col2 + col2 / col0 FROM tab2 AS cor0
----
26
30
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9614
SELECT ALL col1 DIV col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL col1 / col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + cor0.col0 * 89 AS col1 FROM tab2 cor0
----
623
6942
7031
query I rowsort
SELECT DISTINCT - col2 + 47 * - col0 FROM tab2 AS cor0
----
-356
-3692
-3751
query I rowsort
SELECT - 93 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 + + 30 col0 FROM tab1 cor0
----
2946
3279
9246
query I rowsort
SELECT DISTINCT - col0 * + cor0.col0 + ( cor0.col0 ) * + col0 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9620
SELECT ALL col1 + CAST( 47 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
106
64
78
skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL col1 + CAST ( 47 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
106
64
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9621
SELECT ALL col0 DIV + 64 + + col1 AS col1 FROM tab0 AS cor0
----
86
92
97
skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL col0 / + 64 + + col1 AS col1 FROM tab0 AS cor0
----
86
92
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9622
SELECT DISTINCT col1 - - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9622
SELECT DISTINCT col1 - - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col2 * + ( - ( + col0 ) ) + + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL - col1 * ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9625
SELECT col2 * - CAST( - col1 + col0 AS SIGNED ) FROM tab1 AS cor0
----
-3078
-6432
1242
skipif mysql # not compatible
query I rowsort label-9625
SELECT col2 * - CAST ( - col1 + col0 AS INTEGER ) FROM tab1 AS cor0
----
-3078
-6432
1242
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 31 + 98 + - col1 col2 FROM tab0 AS cor0
----
1086
2766
756
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9627
SELECT DISTINCT col1 + + CAST( + col2 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-1475
-629
-806
skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT col1 + + CAST ( + col2 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL cor1.col1 * cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to c3fd7ac1d848da6e54fad73fc607f7da
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
1
33
82
query I rowsort
SELECT 62 + col0 * - col2 FROM tab1
----
-100
-3586
-7618
query I rowsort
SELECT DISTINCT - 20 * + col1 FROM tab2 AS cor0
----
-1180
-340
-620
query I rowsort
SELECT ALL 30 + + col0 AS col1 FROM tab0 AS cor0
----
119
54
65
query I rowsort
SELECT DISTINCT - 69 + - col2 * col2 + ( - col2 * col1 ) FROM tab2
----
-1635
-2159
-2279
query I rowsort
SELECT col1 * - 50 - col1 AS col2 FROM tab0 AS cor0
----
-4386
-4641
-4947
query I rowsort
SELECT + ( - col2 ) + col2 + 61 AS col0 FROM tab0 cor0
----
61
61
61
query I rowsort
SELECT - 84 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4
query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col0 FROM tab0, tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL 30 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT DISTINCT col1 + col1 * + col2 * 68 AS col0 FROM tab1 AS cor0
----
38770
84877
95498
onlyif mysql # use DIV operator for integer division
query I rowsort label-9640
SELECT + ( col2 ) * - col0 + - col1 DIV - col1 FROM tab2 cor0
----
-188
-2027
-3001
skipif mysql # not compatible
query I rowsort label-9640
SELECT + ( col2 ) * - col0 + - col1 / - col1 FROM tab2 cor0
----
-188
-2027
-3001
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9641
SELECT - 33 * - cor0.col0 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9641
SELECT - 33 * - cor0.col0 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + ( col0 ) + 69 * + col2 AS col0 FROM tab0 AS cor0
----
2253
34
5569
onlyif mysql # use DIV operator for integer division
query I rowsort label-9643
SELECT + 49 - col0 DIV CAST( + col0 AS SIGNED ) FROM tab2 cor0
----
48
48
48
skipif mysql # not compatible
query I rowsort label-9643
SELECT + 49 - col0 / CAST ( + col0 AS INTEGER ) FROM tab2 cor0
----
48
48
48
query I rowsort
SELECT ALL 60 + + 46 AS col2 FROM tab2
----
106
106
106
query I rowsort
SELECT ALL + 32 FROM tab2, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9646
SELECT DISTINCT + CAST( + col2 * - col1 AS SIGNED ) + - col1 FROM tab1
----
-1261
-1430
-580
skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT + CAST ( + col2 * - col1 AS INTEGER ) + - col1 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT - ( tab0.col0 ) + + tab0.col2 * 20 FROM tab0
----
-15
1551
636
onlyif mysql # use DIV operator for integer division
query I rowsort label-9648
SELECT 31 DIV col1 FROM tab1
----
1
2
3
skipif mysql # not compatible
query I rowsort label-9648
SELECT 31 / col1 FROM tab1
----
1
2
3
query I rowsort
SELECT - 37 * - 83 AS col2 FROM tab2
----
3071
3071
3071
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9650
SELECT DISTINCT ( - 28 ) * + col0 + CAST( NULL AS SIGNED ) * + col0 col0 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT ( - 28 ) * + col0 + CAST ( NULL AS INTEGER ) * + col0 col0 FROM tab0
----
NULL
query I rowsort
SELECT + ( col2 ) * 49 AS col0 FROM tab2
----
1274
1323
1862
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + + 67 col2 FROM tab0
----
100
149
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 * - ( - ( col0 ) ) + - col1 col2 FROM tab0 AS cor0
----
-97
682
7118
query I rowsort
SELECT - + col0 + - col2 * - col1 FROM tab2 cor0
----
1456
567
830
query I rowsort
SELECT - 86 * + col1 * + 19 AS col0 FROM tab2 cor0
----
-27778
-50654
-96406
query I rowsort
SELECT cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL - - col1 + cor0.col0 FROM tab2 AS cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 * col0 + - col0 * col1 col0 FROM tab1 AS cor0
----
-108
-1280
-1840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * cor0.col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT 55 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
55
query I rowsort
SELECT + - ( - 63 ) * - col1 FROM tab2 AS cor0
----
-1071
-1953
-3717
query I rowsort
SELECT ALL - col0 + - cor0.col0 * ( col0 ) FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT DISTINCT + - col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - 67 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3
----
243 values hashing to edc6365768311692c0b7f6431e312d5c
query I rowsort
SELECT ALL + col2 * col1 + col0 - 1 AS col1 FROM tab0 AS cor0
----
131
2861
7550
query I rowsort
SELECT ALL col2 * 73 FROM tab1
----
3942
4161
7008
query I rowsort
SELECT col1 * tab0.col0 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - 71 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to ac364708ef97c5cf80f126fc088b952e
query I rowsort
SELECT + + 30 * col2 AS col0 FROM tab2 AS cor0
----
1140
780
810
query I rowsort
SELECT + - col0 * 11 AS col0 FROM tab2 AS cor0
----
-77
-858
-869
query I rowsort
SELECT - 41 * - tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 30409c9b11b13673f59fbfbf006e10df
query I rowsort
SELECT + 59 + col1 AS col2 FROM tab1
----
69
72
85
query I rowsort
SELECT ALL ( - ( + tab2.col0 ) ) FROM tab2
----
-7
-78
-79
query I rowsort
SELECT col0 + col1 * cor0.col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - 32 * 31 FROM tab1 AS cor0
----
-992
-992
-992
onlyif mysql # use DIV operator for integer division
query I rowsort label-9676
SELECT - + col2 DIV col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-9676
SELECT - + col2 / col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9677
SELECT 82 DIV col2 + - col0 - + col1 AS col0 FROM tab0 AS cor0
----
-108
-179
-50
skipif mysql # not compatible
query I rowsort label-9677
SELECT 82 / col2 + - col0 - + col1 AS col0 FROM tab0 AS cor0
----
-108
-179
-50
query I rowsort
SELECT - 2 * col2 - col0 FROM tab1 AS cor0
----
-111
-178
-272
query I rowsort
SELECT ALL ( col1 ) * + col1 * + cor0.col2 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT - + 22 * - col1 FROM tab1 AS cor0
----
220
286
572
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 * col0 col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT - col0 + col2 * col0 * col2 AS col2 FROM tab2 cor0
----
113997
5096
52650
query I rowsort
SELECT + cor0.col2 AS col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL 91 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT DISTINCT 18 * + col0 FROM tab0 AS cor0
----
1602
432
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-9686
SELECT ALL - col2 + col0 DIV - col0 AS col1 FROM tab0 cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL - col2 + col0 / - col0 AS col1 FROM tab0 cor0
----
-2
-34
-83
query I rowsort
SELECT DISTINCT - cor0.col1 - col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT + col0 + - 67 FROM tab0 AS cor0
----
-32
-43
22
query I rowsort
SELECT ALL ( - tab0.col2 * + tab0.col2 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 42bf3b8f2bb865dbe16abdf6d3d647fc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9690
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL CAST ( NULL AS REAL ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col1 + - 35 FROM tab2 AS cor0
----
-18
-4
24
query I rowsort
SELECT DISTINCT - col1 + - col2 * + ( + col1 ) AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT ALL 43 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT col0 * col1 - 22 FROM tab2
----
1321
195
4580
query I rowsort
SELECT DISTINCT col2 * - col0 * - col0 AS col0 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT cor0.col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 col2 FROM tab0, tab2 AS cor0
----
59
query I rowsort
SELECT col2 - + ( col1 ) AS col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT 79 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT ALL col1 * - cor0.col1 * col2 + - col0 + + col1 AS col1 FROM tab2 AS cor0
----
-11044
-25923
-90525
query I rowsort
SELECT DISTINCT + - col1 * + col2 + ( col0 ) + + 12 * 2 * + col2 FROM tab2 AS cor0
----
-182
-832
345
onlyif mysql # use DIV operator for integer division
query I rowsort label-9702
SELECT ALL - cor0.col0 DIV 73 - - 99 * col2 FROM tab2 AS cor0
----
2573
2673
3761
skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL - cor0.col0 / 73 - - 99 * col2 FROM tab2 AS cor0
----
2573
2673
3761
query I rowsort
SELECT col0 + + col1 * - tab1.col0 AS col2 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT DISTINCT + col0 + col0 * - col0 AS col2 FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT + 48 + col1 + - col2 AS col2 FROM tab2
----
27
52
81
query I rowsort
SELECT DISTINCT - col2 + + 32 FROM tab0
----
-1
-50
31
query I rowsort
SELECT ALL ( col0 ) + + col2 FROM tab1
----
121
176
57
query I rowsort
SELECT - 61 * - col1 AS col1 FROM tab1
----
1586
610
793
query I rowsort
SELECT DISTINCT + ( + col2 ) * + col2 AS col1 FROM tab0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-9710
SELECT col0 DIV 67 col1 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9710
SELECT col0 / 67 col1 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT ALL - + cor0.col0 FROM tab0, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT col1 * col1 * col2 - + col0 FROM tab1
----
16144
36501
5636
query I rowsort
SELECT DISTINCT 50 * tab1.col1 + ( + 37 ) FROM tab1, tab0 AS cor0
----
1337
537
687
onlyif mysql # use DIV operator for integer division
query I rowsort label-9714
SELECT col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9714
SELECT col1 / + col1 AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + col2 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 col0 FROM tab0 AS cor0
----
31
31
31
query I rowsort
SELECT 70 * - col2 AS col1 FROM tab1 AS cor0
----
-3780
-3990
-6720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-9719
SELECT - ( col0 ) DIV 20 FROM tab2 AS cor0
----
-3
-3
0
skipif mysql # not compatible
query I rowsort label-9719
SELECT - ( col0 ) / 20 FROM tab2 AS cor0
----
-3
-3
0
query I rowsort
SELECT DISTINCT - ( col2 ) * - tab0.col1 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ( col1 ) * col0 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT + + col0 * col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9723
SELECT ALL - col2 + col2 DIV ( - col1 ) FROM tab1 AS cor0
----
-103
-56
-62
skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL - col2 + col2 / ( - col1 ) FROM tab1 AS cor0
----
-103
-56
-62
query I rowsort
SELECT ALL ( - col2 ) + - ( col2 ) FROM tab1 AS cor0
----
-108
-114
-192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9725
SELECT ALL - ( col0 ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL - ( 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 - ( + col1 ) col2 FROM tab1
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 + col1 * - col1 col0 FROM tab0 cor0
----
-7356
-8241
-9369
query I rowsort
SELECT ( ( cor0.col1 ) ) + + 51 FROM tab0, tab0 AS cor0
----
9 values hashing to c3b814593fecf7f741e46c66e5608a6b
query I rowsort
SELECT DISTINCT + - 37 AS col2 FROM tab1 AS cor0
----
-37
query I rowsort
SELECT DISTINCT col2 + + col0 * 34 AS col2 FROM tab0 AS cor0
----
1191
3108
849
query I rowsort
SELECT ALL - 35 * + col1 AS col2 FROM tab0 AS cor0
----
-3010
-3185
-3395
query I rowsort
SELECT ALL + 33 AS col1 FROM tab2 AS cor0
----
33
33
33
query I rowsort
SELECT DISTINCT - col1 * - col0 + col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT - col0 + - 12 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-331
-390
-535
query I rowsort
SELECT ALL col0 * 26 FROM tab0 AS cor0
----
2314
624
910
query I rowsort
SELECT ALL - cor0.col1 * 71 AS col0 FROM tab1 AS cor0
----
-1846
-710
-923
query I rowsort
SELECT DISTINCT + col2 + + 76 * - col2 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
-4024
-4265
-7187
query I rowsort
SELECT DISTINCT + col1 + - 91 AS col2 FROM tab1 AS cor0
----
-65
-78
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9739
SELECT CAST( - col1 AS SIGNED ) + cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9739
SELECT CAST ( - col1 AS INTEGER ) + cor0.col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - 40 + + 41 FROM tab0 AS cor0
----
81
81
81
query I rowsort
SELECT col1 * col1 + - col0 FROM tab1 AS cor0
----
36
673
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9742
SELECT + + col2 DIV + 76 + - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-88
skipif mysql # not compatible
query I rowsort label-9742
SELECT + + col2 / + 76 + - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-88
query I rowsort
SELECT ALL - + ( - cor0.col0 ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT col2 * - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - col2 + - 80 FROM tab0 AS cor0
----
-113
-162
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9746
SELECT DISTINCT - col0 + - col1 * + col0 - + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-2002
-3333
-8097
skipif mysql # not compatible
query I rowsort label-9746
SELECT DISTINCT - col0 + - col1 * + col0 - + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-2002
-3333
-8097
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9747
SELECT CAST( col1 AS SIGNED ) - - col1 FROM tab2 cor0
----
118
34
62
skipif mysql # not compatible
query I rowsort label-9747
SELECT CAST ( col1 AS INTEGER ) - - col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT col1 * 8 + col1 * + ( col0 ) FROM tab0 AS cor0
----
2752
4171
8827
query I rowsort
SELECT ALL col1 + 68 * - col0 * + ( + col0 ) FROM tab0 AS cor0
----
-39082
-538537
-83203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9750
SELECT + CAST( NULL AS SIGNED ) * col2 + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9750
SELECT + CAST ( NULL AS INTEGER ) * col2 + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 * col1 + col0 * + 22 AS col2 FROM tab0 cor0
----
-2310
-5504
673
query I rowsort
SELECT DISTINCT + - 91 - + col2 * col1 FROM tab0 AS cor0
----
-188
-2929
-7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-9753
SELECT + + col0 * col0 - cor0.col1 DIV - 37 FROM tab0 AS cor0
----
1227
578
7923
skipif mysql # not compatible
query I rowsort label-9753
SELECT + + col0 * col0 - cor0.col1 / - 37 FROM tab0 AS cor0
----
1227
578
7923
query I rowsort
SELECT DISTINCT col2 * 27 * + col1 + + ( - 88 ) * + col1 AS col1 FROM tab0 AS cor0
----
-5917
193466
69058
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9755
SELECT ALL + - CAST( 10 AS SIGNED ) + col0 - 1 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-19
-3
24
skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL + - CAST ( 10 AS INTEGER ) + col0 - 1 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-19
-3
24
query I rowsort
SELECT - col2 + - 84 * cor0.col1 FROM tab2 AS cor0
----
-1466
-2631
-4982
query I rowsort
SELECT 64 * 83 + - col1 AS col1 FROM tab0 AS cor0
----
5215
5221
5226
query I rowsort
SELECT DISTINCT + + 73 FROM tab1 AS cor0
----
73
query I rowsort
SELECT ALL col1 + - col2 + + col0 FROM tab2 AS cor0
----
11
111
58
query I rowsort
SELECT DISTINCT + ( + col1 ) * + 65 AS col0 FROM tab0 AS cor0
----
5590
5915
6305
query I rowsort
SELECT ALL - 93 + 83 FROM tab1
----
-10
-10
-10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 75 + + col0 col0 FROM tab0
----
-1776
-2590
-6586
query I rowsort
SELECT ALL col0 * col1 + col1 * - 56 AS col1 FROM tab1
----
-1378
312
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 + col0 * col0 col1 FROM tab0
----
1198
549
7894
query I rowsort
SELECT DISTINCT - + cor0.col2 * - 65 FROM tab1 AS cor0
----
3510
3705
6240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + - 68 * - col2 col2 FROM tab0 AS cor0
----
2211
5494
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9767
SELECT + - col1 * CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9767
SELECT + - col1 * CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col0 + 27 FROM tab1 AS cor0
----
-37
-53
24
query I rowsort
SELECT DISTINCT - col2 - - 61 * - col1 AS col0 FROM tab2 AS cor0
----
-1075
-1918
-3625
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 * + col2 col2 FROM tab0 AS cor0
----
-1
-35937
-551368
query I rowsort
SELECT DISTINCT + col0 * 57 + col1 + - col1 AS col2 FROM tab0 cor0
----
1368
1995
5073
query I rowsort
SELECT + 64 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT col2 * - 80 FROM tab2 AS cor0
----
-2080
-2160
-3040
query I rowsort
SELECT - 28 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115
query I rowsort
SELECT ALL col0 + tab0.col0 * + col1 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT - col1 - - col2 * col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT + + col1 - 52 * - col2 * + ( 68 ) AS col2 FROM tab1 AS cor0
----
190970
201562
339469
query I rowsort
SELECT - - col2 * + col1 + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f
query I rowsort
SELECT + 96 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT ALL col1 * 87 + - tab0.col1 FROM tab0
----
7396
7826
8342
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9782
SELECT ( + col1 ) * col2 + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9782
SELECT ( + col1 ) * col2 + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9783
SELECT - 58 DIV + 46 + + tab0.col1 AS col1 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-9783
SELECT - 58 / + 46 + + tab0.col1 AS col1 FROM tab0
----
85
90
96
query I rowsort
SELECT ALL 6 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT DISTINCT col1 * - tab0.col0 AS col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + ( - cor0.col2 ) AS col2 FROM tab2, tab2 cor0, tab2 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT DISTINCT ( + col2 ) * ( col1 ) FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL + 30 AS col0 FROM tab1 cor0
----
30
30
30
query I rowsort
SELECT ALL - col1 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - col1 * col1 + - col1 * col0 AS col1 FROM tab1 AS cor0
----
-1209
-740
-754
query I rowsort
SELECT - 22 * col2 * + 46 FROM tab1 AS cor0
----
-54648
-57684
-97152
query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col1 + cor0.col2 * + col1 FROM tab0 AS cor0
----
-4558
-819
-9312
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 ( 91 ) FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT col1 * 69 AS col2 FROM tab0
----
5934
6279
6693
query I rowsort
SELECT + col2 * 93 FROM tab0 AS cor0
----
3069
7626
93
query I rowsort
SELECT - - col2 + + 45 AS col0 FROM tab0 AS cor0
----
127
46
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9799
SELECT col1 * CAST( 56 + + col0 AS SIGNED ) FROM tab1 AS cor0
----
1200
1534
1768
skipif mysql # not compatible
query I rowsort label-9799
SELECT col1 * CAST ( 56 + + col0 AS INTEGER ) FROM tab1 AS cor0
----
1200
1534
1768
query I rowsort
SELECT - 95 * + col1 * col0 AS col2 FROM tab0
----
-196080
-322525
-769405
query I rowsort
SELECT ALL + tab2.col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL + - 36 + 41 + cor0.col1 * ( + col2 ) FROM tab1 cor0
----
1253
1409
575
query I rowsort
SELECT - ( + col2 ) + cor0.col1 * + col2 * + col0 AS col1 FROM tab0 cor0
----
3394
664036
68079
query I rowsort
SELECT ALL - ( 93 ) FROM tab1
----
-93
-93
-93
query I rowsort
SELECT - - col1 + - cor0.col0 + col1 AS col0 FROM tab2 AS cor0
----
-45
40
55
query I rowsort
SELECT + + ( col2 ) * + 71 FROM tab1 cor0
----
3834
4047
6816
query I rowsort
SELECT - + cor0.col2 + - col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT - col2 + cor0.col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9809
SELECT + col2 + + cor0.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-9809
SELECT + col2 + + cor0.col1 + + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 63 AS col0 FROM tab0
----
63
63
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + col2 col1 FROM tab0 cor0
----
103
152
71
query I rowsort
SELECT - col0 * col1 + 83 AS col2 FROM tab1 AS cor0
----
-557
-957
5
query I rowsort
SELECT DISTINCT + ( + 19 ) FROM tab0
----
19
query I rowsort
SELECT DISTINCT 25 * col1 AS col0 FROM tab2 AS cor0
----
1475
425
775
query I rowsort
SELECT ALL - 7 AS col2 FROM tab2 AS cor0
----
-7
-7
-7
query I rowsort
SELECT ALL + - col0 + + ( - col0 ) * - cor0.col0 * 18 AS col1 FROM tab0 cor0
----
10344
142489
22015
query I rowsort
SELECT + 52 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT ALL 96 * + col2 FROM tab2 AS cor0
----
2496
2592
3648
query I rowsort
SELECT DISTINCT + 66 AS col0 FROM tab0, tab1 AS cor0, tab2 cor1, tab0 cor2
----
66
query I rowsort
SELECT cor0.col0 * - 71 AS col0 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to cb4783e87cbaab3f7fafc73904bfe5b3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9821
SELECT CAST( - ( col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-9821
SELECT CAST ( - ( col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + cor0.col1 + 61 FROM tab2 AS cor0
----
120
78
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9823
SELECT + + CAST( cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9823
SELECT + + CAST ( cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82
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-9825
SELECT ALL + col0 * - col2 + col1 DIV col0 AS col1 FROM tab1 AS cor0
----
-154
-3648
-7680
skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL + col0 * - col2 + col1 / col0 AS col1 FROM tab1 AS cor0
----
-154
-3648
-7680
query I rowsort
SELECT DISTINCT col2 * + col1 * - col0 FROM tab2
----
-119652
-51034
-5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 col0 FROM tab0 AS cor0
----
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 60 + - col2 * 38 * - ( col0 ) col0 FROM tab0 AS cor0
----
1390
277384
30156
onlyif mysql # use DIV operator for integer division
query I rowsort label-9829
SELECT ALL + 25 DIV col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL + 25 / col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT + col1 * col1 + cor0.col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
228
329
682
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT col2 * col2 * - col0 FROM tab1 cor0
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT col1 * 32 FROM tab2 AS cor0
----
1888
544
992
query I rowsort
SELECT col0 + col0 - - col1 AS col2 FROM tab2
----
175
215
45
query I rowsort
SELECT DISTINCT - col2 * + col2 - - col1 AS col1 FROM tab1
----
-2890
-3239
-9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-9836
SELECT - ( tab1.col0 ) DIV - col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9836
SELECT - ( tab1.col0 ) / - col2 FROM tab1
----
0
0
1
query I rowsort
SELECT ALL 49 - col1 AS col0 FROM tab2
----
-10
18
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-9838
SELECT + - col0 DIV - col2 + 70 FROM tab1 AS cor0
----
70
70
71
skipif mysql # not compatible
query I rowsort label-9838
SELECT + - col0 / - col2 + 70 FROM tab1 AS cor0
----
70
70
71
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to c0625992cd48bef51317edf43a55d9e4
query I rowsort
SELECT DISTINCT - col2 * - 19 + - 99 + - tab0.col1 AS col1 FROM tab0
----
-177
1368
442
onlyif mysql # use DIV operator for integer division
query I rowsort label-9841
SELECT + col2 DIV + col0 + 31 * col0 AS col0 FROM tab2 cor0
----
220
2418
2449
skipif mysql # not compatible
query I rowsort label-9841
SELECT + col2 / + col0 + 31 * col0 AS col0 FROM tab2 cor0
----
220
2418
2449
query I rowsort
SELECT - + col1 + col1 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - cor0.col1 * + col2 * col2 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT - - col2 + + 71 * ( col1 * - 7 ) FROM tab2 AS cor0
----
-15380
-29297
-8411
query I rowsort
SELECT DISTINCT + col1 * cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT ALL col2 + - 96 * - 1 AS col2 FROM tab1 AS cor0
----
150
153
192
query I rowsort
SELECT - col1 + ( - col0 ) * col0 FROM tab2 cor0
----
-6143
-6258
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9848
SELECT DISTINCT - col0 DIV + col1 AS col2 FROM tab1 cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-9848
SELECT DISTINCT - col0 / + col1 AS col2 FROM tab1 cor0
----
-6
0
query I rowsort
SELECT - col0 + + 18 * col1 AS col1 FROM tab1 cor0
----
116
154
465
query I rowsort
SELECT cor0.col2 + ( col0 ) * col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT + col1 + 79 + + col0 FROM tab0
----
189
211
259
query I rowsort
SELECT DISTINCT - tab2.col1 * col2 + - col2 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT + 56 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT - col2 - ( - tab0.col0 ) AS col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT + col0 + ( + ( tab0.col1 ) ) + - col2 AS col1 FROM tab0
----
131
77
98
query I rowsort
SELECT col0 * 45 * col1 FROM tab2
----
207090
60435
9765
query I rowsort
SELECT - col1 - 49 * tab1.col1 AS col2 FROM tab1
----
-1300
-500
-650
query I rowsort
SELECT - col2 + + 37 AS col1 FROM tab1
----
-17
-20
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 49 col0 FROM tab0
----
131
50
82
query I rowsort
SELECT DISTINCT col2 * - ( + col2 ) + col2 AS col1 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT col0 - 99 FROM tab1 AS cor0
----
-19
-35
-96
query I rowsort
SELECT + col2 - 67 AS col0 FROM tab0 cor0
----
-34
-66
15
query I rowsort
SELECT ALL col0 + cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT ALL cor0.col0 * + col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9865
SELECT - cor0.col2 + col0 + cor0.col0 DIV + col2 FROM tab1 AS cor0
----
-16
-51
8
skipif mysql # not compatible
query I rowsort label-9865
SELECT - cor0.col2 + col0 + cor0.col0 / + col2 FROM tab1 AS cor0
----
-16
-51
8
query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT col2 * col1 + + col1 + col0 AS col0 FROM tab0
----
229
2948
7642
query I rowsort
SELECT 75 * + cor0.col2 FROM tab2 AS cor0
----
1950
2025
2850
query I rowsort
SELECT DISTINCT + - col2 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9870
SELECT DISTINCT CAST( - col0 AS SIGNED ) + - col2 * + ( col1 ) FROM tab1 AS cor0
----
-1328
-1407
-634
skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT CAST ( - col0 AS INTEGER ) + - col2 * + ( col1 ) FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT ALL - col0 + - ( + col1 ) * + col0 AS col2 FROM tab1 cor0
----
-1120
-704
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9872
SELECT ALL + - ( + col2 ) + + col0 + CAST( + 2 + col1 AS SIGNED ) FROM tab2 AS cor0
----
113
13
60
skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL + - ( + col2 ) + + col0 + CAST ( + 2 + col1 AS INTEGER ) FROM tab2 AS cor0
----
113
13
60
query I rowsort
SELECT ALL + ( col1 ) * + cor0.col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - 75 * + 85 AS col1 FROM tab2 AS cor0
----
-6375
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - + 92 FROM tab2 AS cor0
----
-92
query I rowsort
SELECT + + 49 + - cor0.col2 * col1 * 41 + - col2 * col1 FROM tab2 AS cor0
----
-27083
-35105
-64379
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * cor0.col1 col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + + ( col1 ) * + cor0.col1 * 71 FROM tab1 AS cor0
----
11999
47996
7100
query I rowsort
SELECT ALL + ( col2 ) + ( + 95 ) FROM tab2 AS cor0
----
121
122
133
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 AS col2 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9882
SELECT + col1 * + col1 + - ( tab0.col2 ) DIV + col0 FROM tab0
----
7395
8281
9409
skipif mysql # not compatible
query I rowsort label-9882
SELECT + col1 * + col1 + - ( tab0.col2 ) / + col0 FROM tab0
----
7395
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9883
SELECT - 97 * + col1 + + CAST( 31 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1230
-2491
-939
skipif mysql # not compatible
query I rowsort label-9883
SELECT - 97 * + col1 + + CAST ( 31 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1230
-2491
-939
query I rowsort
SELECT DISTINCT col0 + cor0.col0 * - ( col1 ) FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT - - ( col1 ) + col2 + 17 FROM tab0 AS cor0
----
115
136
190
query I rowsort
SELECT 71 FROM tab2 cor0
----
71
71
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-9887
SELECT ALL 50 * col2 DIV col1 FROM tab0 cor0
----
0
19
45
skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL 50 * col2 / col1 FROM tab0 cor0
----
0
19
45
query I rowsort
SELECT ALL col0 * col2 - - ( + col2 ) * col1 AS col0 FROM tab2 AS cor0
----
1026
3562
3648
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 * + col1 + + col2 * 61 col2 FROM tab2 AS cor0
----
1350
1523
2250
query I rowsort
SELECT DISTINCT - 35 * cor0.col0 FROM tab0 AS cor0
----
-1225
-3115
-840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9891
SELECT ALL col0 * + col0 * + CAST( NULL AS SIGNED ) + - col1 / cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL col0 * + col0 * + CAST ( NULL AS INTEGER ) + - col1 / cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col1 * + col2 + - cor0.col2 * - 48 + - col0 AS col2 FROM tab2 AS cor0
----
-364
1099
452
query I rowsort
SELECT DISTINCT + cor0.col0 * + 64 FROM tab0 AS cor0
----
1536
2240
5696
query I rowsort
SELECT DISTINCT - cor0.col2 - col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9895
SELECT - - col0 / 12 - ( - col0 + + CAST( NULL AS SIGNED ) ) / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9895
SELECT - - col0 / 12 - ( - col0 + + CAST ( NULL AS INTEGER ) ) / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 * col1 * col2 FROM tab0 cor0
----
3395
664118
68112
query I rowsort
SELECT + col1 - ( 61 ) FROM tab0 AS cor0
----
25
30
36
query I rowsort
SELECT DISTINCT col1 * col0 + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL col1 * col2 + - col2 FROM tab0 AS cor0
----
2805
7380
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9900
SELECT tab0.col2 + col2 DIV + 51 AS col0 FROM tab0
----
1
33
83
skipif mysql # not compatible
query I rowsort label-9900
SELECT tab0.col2 + col2 / + 51 AS col0 FROM tab0
----
1
33
83
query I rowsort
SELECT DISTINCT - 7 FROM tab1, tab1 AS cor0
----
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9902
SELECT ALL CAST( NULL AS DECIMAL ) * tab0.col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL CAST ( NULL AS REAL ) * tab0.col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( 63 ) * tab2.col0 * tab2.col0 AS col1 FROM tab2
----
-3087
-383292
-393183
query I rowsort
SELECT + 3 * - col0 AS col2 FROM tab2 AS cor0
----
-21
-234
-237
onlyif mysql # use DIV operator for integer division
query I rowsort label-9905
SELECT + col0 DIV - 45 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-9905
SELECT + col0 / - 45 FROM tab1 AS cor0
----
-1
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9906
SELECT + 98 DIV col0 AS col0 FROM tab2 AS cor0
----
1
1
14
skipif mysql # not compatible
query I rowsort label-9906
SELECT + 98 / col0 AS col0 FROM tab2 AS cor0
----
1
1
14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 col2 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT 26 * col0 - - col2 FROM tab2
----
2054
209
2092
query I rowsort
SELECT ALL cor0.col2 * + ( 53 * col1 ) + + col2 FROM tab0 AS cor0
----
150447
395568
5142
query I rowsort
SELECT - col0 * col2 + col0 * + col2 * col2 AS col0 FROM tab1 AS cor0
----
204288
729600
8586
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - + col2 * col0 + col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT col1 * + 1 FROM tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col0 col0 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9915
SELECT + col1 - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-9915
SELECT + col1 - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT col2 + + 63 AS col0 FROM tab0 AS cor0
----
145
64
96
query I rowsort
SELECT + cor0.col0 * - col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT - + cor0.col0 + col2 + + 16 * - col0 AS col1 FROM tab1 cor0
----
-1031
-1264
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9919
SELECT + - CAST( + 56 AS SIGNED ) FROM tab1 AS cor0
----
-56
-56
-56
skipif mysql # not compatible
query I rowsort label-9919
SELECT + - CAST ( + 56 AS INTEGER ) FROM tab1 AS cor0
----
-56
-56
-56
query I rowsort
SELECT DISTINCT - col0 * ( col0 + - col1 * + col0 ) FROM tab2
----
1470
352872
99856
onlyif mysql # use DIV operator for integer division
query I rowsort label-9921
SELECT + + col0 * col0 DIV col0 + + col0 AS col2 FROM tab0 AS cor0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-9921
SELECT + + col0 * col0 / col0 + + col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT + cor0.col1 * col2 + col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - col1 + + col2 * col0 AS col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT + col0 + col1 * - col1 * col1 AS col2 FROM tab2 AS cor0
----
-205301
-29784
-4834
query I rowsort
SELECT + col1 + + col2 * col0 FROM tab0 AS cor0
----
132
7389
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + cor0.col2 + col0 * col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT col2 * col1 + - col1 AS col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT + col2 * col2 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 * col2 )
----
query I rowsort
SELECT ALL col0 + col0 * - col1 + + col0 * + col0 FROM tab1 AS cor0
----
-66
3520
5440
query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE - col2 - + col2 * col2 >= ( NULL )
----
query I rowsort
SELECT + + col2 * + col2 * col1 - - col1 FROM tab2 AS cor0
----
22630
24565
39943
query I rowsort
SELECT - - col0 * cor0.col1 + col1 * col0 - - col1 AS col0 FROM tab1 AS cor0
----
1290
182
2093
query I rowsort
SELECT ALL + - cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT ALL cor0.col1 + - tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 3cc218330ba81edc559461e742483378
query I rowsort
SELECT ALL col1 + + col2 * col2 * col0 - + col1 FROM tab0
----
26136
35
598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-9938
SELECT DISTINCT + col0 - + col0 DIV col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9938
SELECT DISTINCT + col0 - + col0 / col1 FROM tab0
----
24
35
89
query I rowsort
SELECT - col2 + col0 - col1 AS col1 FROM tab2
----
-51
-7
24
query I rowsort
SELECT - col0 * col0 + + tab0.col0 + col1 FROM tab0
----
-1093
-466
-7741
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * cor0.col0 col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + cor0.col1 + - col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT col0 * - col2 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-70
-7387
-816
query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NULL = ( NULL )
----
query I rowsort
SELECT + col0 * cor0.col2 - - cor0.col0 * col0 * col1 FROM tab2 cor0
----
109099
1708
360984
onlyif mysql # use DIV operator for integer division
query I rowsort label-9946
SELECT DISTINCT col2 + tab0.col1 DIV + col0 FROM tab0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT col2 + tab0.col1 / + col0 FROM tab0
----
3
36
83
query I rowsort
SELECT col2 + col0 * col0 AS col0 FROM tab1
----
4153
63
6496
query I rowsort
SELECT ALL + ( tab1.col1 ) + + col0 + col0 * col1 AS col1 FROM tab1
----
107
1133
714
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9949
SELECT - ( col2 ) * + CAST( + col2 AS SIGNED ) col1 FROM tab1 cor0
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9949
SELECT - ( col2 ) * + CAST ( + col2 AS INTEGER ) col1 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT col2 + + col0 AS col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT - col0 * + col0 - + col2 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-4797
-5408
680
query I rowsort
SELECT DISTINCT + col0 + + col1 AS col1 FROM tab0 cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-9953
SELECT DISTINCT col0 DIV col0 + 59 AS col0 FROM tab2 AS cor0
----
60
skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT col0 / col0 + 59 AS col0 FROM tab2 AS cor0
----
60
query I rowsort
SELECT - col2 * col1 * 66 + - ( - col2 ) + - col1 FROM tab1 AS cor0
----
-37573
-82285
-92636
query I rowsort
SELECT ALL + 42 * + col0 FROM tab2 AS cor0
----
294
3276
3318
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 - + col2 col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT + ( col2 ) + - col0 * - col2 + col1 * - 68 FROM tab0 AS cor0
----
-5023
-6560
1192
query I rowsort
SELECT DISTINCT - 45 AS col1 FROM tab2 AS cor0
----
-45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9959
SELECT - - col1 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9959
SELECT - - col1 * - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col2 * - 72 FROM tab1 AS cor0
----
3888
4104
6912
query I rowsort
SELECT ALL cor0.col1 + 50 * + col2 FROM tab0 AS cor0
----
147
1736
4191
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * 46 * col0 col2 FROM tab2 cor0
----
-2254
-279864
-287086
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab1 cor1, tab0, tab2 cor2
----
3645 values hashing to 149298fc0224e93f3bc2df24a3ebeeb8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + col0 + - col0 * col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT + ( + col0 ) - - col1 * col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + 53 * + ( + cor0.col0 ) AS col0 FROM tab0 AS cor0
----
1272
1855
4717
query I rowsort
SELECT DISTINCT + 45 * + 84 FROM tab2 AS cor0
----
3780
query I rowsort
SELECT ( - cor0.col1 ) FROM tab0, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT DISTINCT ( 31 ) * - col0 * 59 - col2 AS col2 FROM tab1 AS cor0
----
-117113
-146416
-5541
query I rowsort
SELECT DISTINCT - - col1 * col1 - cor0.col1 * col1 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 15 col1 FROM tab0 AS cor0
----
15
15
15
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9973
SELECT - CAST( NULL AS SIGNED ) * - 71 * col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9973
SELECT - CAST ( NULL AS INTEGER ) * - 71 * col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9974
SELECT DISTINCT - - col1 + col0 + + cor0.col2 DIV col1 FROM tab0 cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT - - col1 + col0 + + cor0.col2 / col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT cor0.col0 * col2 + col1 FROM tab2 AS cor0
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * col1 - col1 col1 FROM tab2 AS cor0
----
1598
2914
5546
query I rowsort
SELECT col0 * col1 * 67 + cor0.col1 * col0 AS col2 FROM tab1 cor0
----
43520
5304
70720
query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 AS col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL - 48 + col1 AS col0 FROM tab2 cor0
----
-17
-31
11
query I rowsort
SELECT ALL ( col1 * col0 ) + - col0 * 23 - col1 * + 97 AS col1 FROM tab1
----
-1802
-2061
-2513
query I rowsort
SELECT + 45 + - col2 * col0 AS col0 FROM tab0
----
-7253
-747
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-9982
SELECT + col0 DIV tab0.col2 - col2 * 15 FROM tab0
----
-1229
-495
20
skipif mysql # not compatible
query I rowsort label-9982
SELECT + col0 / tab0.col2 - col2 * 15 FROM tab0
----
-1229
-495
20
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-9984
SELECT ALL + - col2 * col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL + - col2 * col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 44 * + cor0.col1 * - ( col2 ) FROM tab0 AS cor0
----
124872
328328
4268
onlyif mysql # use DIV operator for integer division
query I rowsort label-9986
SELECT DISTINCT - col1 - - col2 DIV col1 col0 FROM tab2 AS cor0
----
-15
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9986
SELECT DISTINCT - col1 - - col2 / col1 col0 FROM tab2 AS cor0
----
-15
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9987
SELECT - col0 * + col2 DIV col2 AS col2 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9987
SELECT - col0 * + col2 / col2 AS col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT 29 * tab1.col0 + - ( col0 ) + - col1 * col1 * + col1 FROM tab1
----
-17492
43
792
query I rowsort
SELECT - col2 + col1 + ( - col0 ) FROM tab1
----
-111
-163
-31
query I rowsort
SELECT col2 + + tab0.col2 * ( + col2 ) AS col1 FROM tab0
----
1122
2
6806
query I rowsort
SELECT DISTINCT - col1 + - col2 * + ( 75 ) FROM tab0
----
-172
-2561
-6241
query I rowsort
SELECT tab0.col2 * - tab0.col0 + 6 + + col1 AS col2 FROM tab0
----
-700
-7201
68
query I rowsort
SELECT ALL 77 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT - tab2.col2 * - tab2.col1 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL col2 * + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-34
1065
6635
onlyif mysql # use DIV operator for integer division
query I rowsort label-9996
SELECT DISTINCT + col2 * + col2 - col0 DIV + 76 AS col1 FROM tab0 cor0
----
1
1089
6723
skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT + col2 * + col2 - col0 / + 76 AS col1 FROM tab0 cor0
----
1
1089
6723
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col1 * - col0 col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT - col1 * - col2 * - 54 + - col1 FROM tab2
----
-34901
-45229
-82895